@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504221607 → 0.6.10-nightly.202504231607
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/en-US.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/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/en-US.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/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/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.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/en-US.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/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';
|
|
1
|
+
'use strict';const _0x3be257=_0x442f;(function(_0x54846e,_0x3da607){const _0x55beb8=_0x442f,_0x33636d=_0x54846e();while(!![]){try{const _0x22b4cf=-parseInt(_0x55beb8(0x10f))/0x1*(-parseInt(_0x55beb8(0x11d))/0x2)+parseInt(_0x55beb8(0x117))/0x3*(parseInt(_0x55beb8(0x111))/0x4)+parseInt(_0x55beb8(0x10e))/0x5*(-parseInt(_0x55beb8(0x11b))/0x6)+parseInt(_0x55beb8(0x114))/0x7+parseInt(_0x55beb8(0x119))/0x8*(parseInt(_0x55beb8(0x11a))/0x9)+-parseInt(_0x55beb8(0x11f))/0xa+parseInt(_0x55beb8(0x11c))/0xb*(-parseInt(_0x55beb8(0x118))/0xc);if(_0x22b4cf===_0x3da607)break;else _0x33636d['push'](_0x33636d['shift']());}catch(_0x3aca8f){_0x33636d['push'](_0x33636d['shift']());}}}(_0xb6e3,0x29d15));function _0x442f(_0x322934,_0x1a8f15){const _0xb6e37b=_0xb6e3();return _0x442f=function(_0x442fd1,_0x575a98){_0x442fd1=_0x442fd1-0x10d;let _0x4ad15b=_0xb6e37b[_0x442fd1];return _0x4ad15b;},_0x442f(_0x322934,_0x1a8f15);}const t=require(_0x3be257(0x113)),e=require(_0x3be257(0x116));class c extends e[_0x3be257(0x11e)]{[_0x3be257(0x10d)](_0x498ec8,_0x424b82,..._0x79b5ec){const _0x38f73f=_0x3be257;return this[_0x38f73f(0x115)][_0x38f73f(0x112)](t[_0x38f73f(0x110)])[_0x38f73f(0x10d)](_0x498ec8,_0x424b82,{},..._0x79b5ec);}}function _0xb6e3(){const _0x186016=['_injector','@univerjs/core/facade','189MpOQxN','556788cbhHvw','126088GwLQOa','18AMhzpr','493806sssndG','11aHrtLa','40294qiHMej','FUniver','1748190HFvXUS','runOnServer','5LZhfhD','17pZgOBJ','RemoteUniscriptService','1324arAwgz','get','@univerjs-pro/collaboration-client-ui','559510sinmpY'];_0xb6e3=function(){return _0x186016;};return _0xb6e3();}e['FUniver']['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5f41c4=_0x5234;(function(_0x3a84a4,_0x52f711){const _0x3e7a6c=_0x5234,_0x37d581=_0x3a84a4();while(!![]){try{const _0x3e7c3c=-parseInt(_0x3e7a6c(0x16c))/0x1*(-parseInt(_0x3e7a6c(0x324))/0x2)+-parseInt(_0x3e7a6c(0x163))/0x3+parseInt(_0x3e7a6c(0x277))/0x4+-parseInt(_0x3e7a6c(0x30a))/0x5*(parseInt(_0x3e7a6c(0x2f4))/0x6)+-parseInt(_0x3e7a6c(0x1ac))/0x7+-parseInt(_0x3e7a6c(0x34d))/0x8*(parseInt(_0x3e7a6c(0x2a4))/0x9)+-parseInt(_0x3e7a6c(0x254))/0xa*(-parseInt(_0x3e7a6c(0x22a))/0xb);if(_0x3e7c3c===_0x52f711)break;else _0x37d581['push'](_0x37d581['shift']());}catch(_0xb16a3b){_0x37d581['push'](_0x37d581['shift']());}}}(_0x94aa,0xe1f00));var Xe=Object[_0x5f41c4(0x310)],Ge=(_0x23d342,_0x3a3982,_0x39d0d7)=>_0x3a3982 in _0x23d342?Xe(_0x23d342,_0x3a3982,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39d0d7}):_0x23d342[_0x3a3982]=_0x39d0d7,_=(_0x28885d,_0x3340bf,_0x1bd681)=>Ge(_0x28885d,typeof _0x3340bf!=_0x5f41c4(0x282)?_0x3340bf+'':_0x3340bf,_0x1bd681);Object[_0x5f41c4(0x310)](exports,Symbol['toStringTag'],{'value':_0x5f41c4(0x1d4)});const u=require(_0x5f41c4(0x2de)),a=require(_0x5f41c4(0x329)),p=require(_0x5f41c4(0x198)),q=require('@univerjs/network'),b=require(_0x5f41c4(0x2fc)),qe=require(_0x5f41c4(0x15a)),d=require('rxjs'),Y=require(_0x5f41c4(0x211)),m=require(_0x5f41c4(0x2dd)),Te=require(_0x5f41c4(0x144)),g=require(_0x5f41c4(0x2a0)),$=require(_0x5f41c4(0x273)),G=require(_0x5f41c4(0x2e9)),P=require('react/jsx-runtime'),O=require(_0x5f41c4(0x177)),T=require(_0x5f41c4(0x35d)),M=require(_0x5f41c4(0x30e)),Ke=require(_0x5f41c4(0x11b));var ze=Object[_0x5f41c4(0x16f)],Je=(_0x38840a,_0xfe5fc8,_0x87d8c6,_0x3dd024)=>{const _0x469f7b=_0x5f41c4;for(var _0x2860a1=_0x3dd024>0x1?void 0x0:_0x3dd024?ze(_0xfe5fc8,_0x87d8c6):_0xfe5fc8,_0xb5c072=_0x38840a[_0x469f7b(0x1c8)]-0x1,_0x597eef;_0xb5c072>=0x0;_0xb5c072--)(_0x597eef=_0x38840a[_0xb5c072])&&(_0x2860a1=_0x597eef(_0x2860a1)||_0x2860a1);return _0x2860a1;},Oe=(_0x4516c7,_0x36f0d6)=>(_0x4400db,_0x284b95)=>_0x36f0d6(_0x4400db,_0x284b95,_0x4516c7);let fe=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x328d27,_0xeb41a4){const _0x7a5bf3=_0x5f41c4;super(),this[_0x7a5bf3(0x33a)]=_0x328d27,this[_0x7a5bf3(0x36f)]=_0xeb41a4,this[_0x7a5bf3(0x185)]();}[_0x5f41c4(0x185)](){const _0x3341a8=_0x5f41c4,_0xefd278=this;this['disposeWithMe'](this[_0x3341a8(0x33a)]['addClipboardHook']({'onBeforePasteImage':async _0x75d922=>{const _0x5bb290=_0x3341a8,_0x571285=await _0xefd278[_0x5bb290(0x36f)][_0x5bb290(0x267)](_0x75d922);return _0x571285?{'source':_0x571285[_0x5bb290(0x2f8)],'imageSourceType':_0x571285[_0x5bb290(0x323)]}:null;}}));}};fe=Je([Oe(0x0,b['IDocClipboardService']),Oe(0x1,qe[_0x5f41c4(0x2ff)])],fe);const Re=[_0x5f41c4(0x1a7),_0x5f41c4(0x2cb),_0x5f41c4(0x265),_0x5f41c4(0x2a2),_0x5f41c4(0x11c),_0x5f41c4(0x2a5)];class Ce extends a[_0x5f41c4(0x153)]{constructor(){const _0x1a6fb0=_0x5f41c4;super(...arguments),_(this,_0x1a6fb0(0x132),new Map()),_(this,_0x1a6fb0(0x118),0x0);}[_0x5f41c4(0x114)](_0x1c45ff){const _0x1d7608=_0x5f41c4;if(this['_assignedColors'][_0x1d7608(0x287)](_0x1c45ff))return this[_0x1d7608(0x132)]['get'](_0x1c45ff);const _0x630e02=Re[this[_0x1d7608(0x118)]];return this[_0x1d7608(0x118)]=(this[_0x1d7608(0x118)]+0x1)%Re['length'],this[_0x1d7608(0x132)][_0x1d7608(0x28c)](_0x1c45ff,_0x630e02),_0x630e02;}}function we(_0x71720){const _0x2f0b92=_0x5f41c4;let _0x4f4fc8='';for(const _0x23210a of _0x71720){const {startOffset:_0xd6f1ef,endOffset:_0x9da337,isActive:_0x499401,rangeType:_0x320873,segmentId:_0x44d00c,segmentPage:_0x4d7751}=_0x23210a;_0x4f4fc8[_0x2f0b92(0x1c8)]&&(_0x4f4fc8+=','),_0x4f4fc8+=_0xd6f1ef+':'+_0x9da337+':'+(_0x499401?'1':'0')+':'+_0x320873+':'+_0x44d00c+':'+_0x4d7751;}return _0x4f4fc8;}function Ze(_0x267fa4){const _0x246e42=_0x5f41c4,_0x1bfd1b=_0x267fa4[_0x246e42(0x17e)](','),_0x406711=[];for(const _0x1755ad of _0x1bfd1b){const [_0x5cf5cc,_0x56b712,_0xe691ae,_0x533d92,_0x1bd6ed,_0x5bdb4c]=_0x1755ad['split'](':');_0x406711['push']({'startOffset':Number(_0x5cf5cc),'endOffset':Number(_0x56b712),'collapsed':_0x5cf5cc===_0x56b712,'isActive':_0xe691ae==='1','rangeType':_0x533d92===a[_0x246e42(0x266)][_0x246e42(0x1b4)]?a['DOC_RANGE_TYPE'][_0x246e42(0x1b4)]:a['DOC_RANGE_TYPE'][_0x246e42(0x216)],'segmentId':typeof _0x1bd6ed==_0x246e42(0x344)?String(_0x1bd6ed):'','segmentPage':Number(_0x5bdb4c!=null?_0x5bdb4c:-0x1)});}return _0x406711[_0x246e42(0x143)](_0x4a47c3=>_0x4a47c3['isActive'])||(_0x406711[0x0][_0x246e42(0xff)]=!0x0),_0x406711;}class pe extends a[_0x5f41c4(0x2ef)]{constructor(){const _0x15e570=_0x5f41c4;super(...arguments),_(this,_0x15e570(0x375),new d[(_0x15e570(0x359))](null)),_(this,_0x15e570(0x27b),this[_0x15e570(0x375)][_0x15e570(0x174)]());}[_0x5f41c4(0x1aa)](_0x1576c5){const _0x99e891=_0x5f41c4,{unitID:_0xb635a2,memberID:_0x4a220a,textRanges:_0x200ee6}=_0x1576c5,_0x47c942=we(_0x200ee6);if(_0x47c942==='')return;const _0x1e0067={'unitID':_0xb635a2,'memberID':_0x4a220a,'selection':_0x47c942};this[_0x99e891(0x375)][_0x99e891(0x226)](_0x1e0067);}}var Qe=Object[_0x5f41c4(0x16f)],et=(_0x703dc8,_0x15e806,_0x9905e1,_0x10d16a)=>{const _0x2c832b=_0x5f41c4;for(var _0x133408=_0x10d16a>0x1?void 0x0:_0x10d16a?Qe(_0x15e806,_0x9905e1):_0x15e806,_0x3114e0=_0x703dc8[_0x2c832b(0x1c8)]-0x1,_0x5ea83d;_0x3114e0>=0x0;_0x3114e0--)(_0x5ea83d=_0x703dc8[_0x3114e0])&&(_0x133408=_0x5ea83d(_0x133408)||_0x133408);return _0x133408;},L=(_0x5ab9c1,_0x37a583)=>(_0x52023d,_0x3d89e4)=>_0x37a583(_0x52023d,_0x3d89e4,_0x5ab9c1);const tt=0x12c,st=0x64;let Se=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x528dd3,_0x78c8ab,_0x3e8e2a,_0x3e0a44,_0xb6aac4,_0x576307,_0x5940dc,_0xfa8369,_0x27e579){const _0x14a075=_0x5f41c4;super(),_(this,_0x14a075(0x2bf),!0x1),_(this,_0x14a075(0x185),!0x1),_(this,_0x14a075(0x25a),new d['BehaviorSubject'](new Map())),_(this,_0x14a075(0x2eb),this[_0x14a075(0x25a)][_0x14a075(0x174)]()),_(this,'_roomMembers$',new d[(_0x14a075(0x359))]([])),_(this,_0x14a075(0x264),this[_0x14a075(0xfb)]['pipe'](d['debounceTime'](tt))),_(this,_0x14a075(0x131),a[_0x14a075(0x24c)](_0x51ca22=>{const _0x4e67d5=_0x14a075,_0x46c878={'eventID':m['CollaborationEvent'][_0x4e67d5(0x129)],'data':{'unitID':this[_0x4e67d5(0x2e6)],'memberID':this[_0x4e67d5(0x2f6)][_0x4e67d5(0x24b)](),'selection':we(_0x51ca22)}};this[_0x4e67d5(0x2f6)][_0x4e67d5(0x2b8)](_0x46c878,this[_0x4e67d5(0x2e6)]);},st)),(this['unitID']=_0x528dd3,this['_session']=_0x78c8ab,this['_injector']=_0x3e8e2a,this[_0x14a075(0x146)]=_0x3e0a44,this[_0x14a075(0x166)]=_0xb6aac4,this[_0x14a075(0x27e)]=_0x576307,this[_0x14a075(0x368)]=_0x5940dc,this['_univerInstanceService']=_0xfa8369,this[_0x14a075(0x15e)]=_0x27e579);}get[_0x5f41c4(0x2c3)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x4d0277=_0x5f41c4;return this['_roomMembers$'][_0x4d0277(0x224)]();}[_0x5f41c4(0x2c9)](){const _0x45df9d=_0x5f41c4;super[_0x45df9d(0x2c9)](),this[_0x45df9d(0x25a)]['next'](new Map()),this[_0x45df9d(0x25a)][_0x45df9d(0x33f)](),this[_0x45df9d(0xfb)]['next']([]),this[_0x45df9d(0xfb)][_0x45df9d(0x33f)]();}[_0x5f41c4(0x308)](){const _0x26efc0=_0x5f41c4;this['_init']||(this[_0x26efc0(0x185)]=!0x0,this[_0x26efc0(0x2f6)][_0x26efc0(0x35a)][_0x26efc0(0x1ce)](d['takeUntil'](this[_0x26efc0(0x18a)]))[_0x26efc0(0x309)](_0x3829fd=>{const _0x4afcb1=_0x26efc0;_0x3829fd===u[_0x4afcb1(0x1c0)][_0x4afcb1(0x184)]?this['_toggleOnline']():this[_0x4afcb1(0x233)]();}),this[_0x26efc0(0x2f6)]['event$']['pipe'](d[_0x26efc0(0x172)](this[_0x26efc0(0x18a)]))[_0x26efc0(0x309)](_0x11713b=>{const _0x43d3fe=_0x26efc0,_0x5c25dd=_0x11713b[_0x43d3fe(0x112)];_0x5c25dd===m[_0x43d3fe(0x231)][_0x43d3fe(0x129)]&&this[_0x43d3fe(0x363)](_0x11713b),_0x5c25dd===m[_0x43d3fe(0x231)][_0x43d3fe(0x108)]&&this['_onCursorDelete'](_0x11713b);}),this['disposeWithMe'](this[_0x26efc0(0x15e)][_0x26efc0(0x356)](_0xd1d6be=>{const _0x1a7358=_0x26efc0,_0x496de4=_0xd1d6be[_0x1a7358(0x22e)];_0x496de4!=null&&this['_online']&&_0xd1d6be['id']===Y['SetTextSelectionsOperation']['id']&&_0x496de4[_0x1a7358(0x1ed)]===this[_0x1a7358(0x2e6)]&&_0x496de4[_0x1a7358(0x286)]===!0x1&&_0x496de4[_0x1a7358(0x202)][_0x1a7358(0x1c8)]>0x0&&this[_0x1a7358(0x131)](_0x496de4[_0x1a7358(0x202)]);})),this['_syncEditingCollabCursorService'][_0x26efc0(0x27b)][_0x26efc0(0x1ce)](d['takeUntil'](this[_0x26efc0(0x18a)]))[_0x26efc0(0x309)](_0x41c8d9=>{const _0x5004f9=_0x26efc0;if((_0x41c8d9==null?void 0x0:_0x41c8d9[_0x5004f9(0x2e6)])!==this[_0x5004f9(0x2e6)])return;const _0x190174={'eventID':m['CollaborationEvent'][_0x5004f9(0x129)],'data':_0x41c8d9};this[_0x5004f9(0x363)](_0x190174);}),this[_0x26efc0(0x30b)](this[_0x26efc0(0x15e)][_0x26efc0(0x356)](_0x35f7e5=>{const _0x2b3d2a=_0x26efc0;if(_0x35f7e5['params']==null)return;const _0x1ed89c=_0x35f7e5[_0x2b3d2a(0x22e)];if(_0x35f7e5['id']!==Y[_0x2b3d2a(0x1f6)]['id']||_0x1ed89c['unitId']!==this[_0x2b3d2a(0x2e6)])return;const _0x1ea395={'id':_0x2b3d2a(0x1bb),'params':_0x1ed89c},_0x3e28df=this['cursorInfo'];for(const [_0x4cf29a,_0x18ae67]of _0x3e28df){const _0x5b042b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2b3d2a(0x2e6)],'actions':null,'textRanges':_0x18ae67[_0x2b3d2a(0x202)]}},_0x373dfe=this[_0x2b3d2a(0x368)][_0x2b3d2a(0x2a8)](_0x1ea395,_0x5b042b,!0x1);if(m[_0x2b3d2a(0x305)](_0x373dfe))throw _0x373dfe[_0x2b3d2a(0x189)];_0x3e28df['set'](_0x4cf29a,{..._0x18ae67,'ranges':_0x373dfe['m2Prime'][_0x2b3d2a(0x22e)][_0x2b3d2a(0x33d)]});}queueMicrotask(()=>{const _0x4a0eae=_0x2b3d2a;this['_cursorInfo$'][_0x4a0eae(0x226)](_0x3e28df);});})));}['_onCursorUpdate'](_0x16e725){const _0x15413c=_0x5f41c4;var _0x15cb67,_0x4bbbda;const {memberID:_0x54e393,selection:_0x4cd6c4}=_0x16e725[_0x15413c(0xfd)],_0x4e7b7f=Ze(_0x4cd6c4),_0x48f7b6=(_0x4bbbda=(_0x15cb67=this[_0x15413c(0x166)][_0x15413c(0x336)](this['unitID'],_0x54e393))==null?void 0x0:_0x15cb67[_0x15413c(0x347)])!=null?_0x4bbbda:_0x15413c(0x281),_0x3c21f4={'color':this[_0x15413c(0x146)][_0x15413c(0x114)](_0x54e393),'name':_0x48f7b6,'ranges':_0x4e7b7f},_0x50a932=this[_0x15413c(0x2c3)];_0x50a932['set'](_0x54e393,_0x3c21f4),this[_0x15413c(0x25a)][_0x15413c(0x226)](_0x50a932);}['_onCursorDelete'](_0xe044df){const _0x2e2ebd=_0x5f41c4,{memberID:_0x39c57d}=_0xe044df[_0x2e2ebd(0xfd)],_0x2c90a1=this['cursorInfo'];_0x2c90a1[_0x2e2ebd(0x1d1)](_0x39c57d),this[_0x2e2ebd(0x25a)][_0x2e2ebd(0x226)](_0x2c90a1);}[_0x5f41c4(0x27f)](){const _0x5b6a07=_0x5f41c4;var _0x5a4a4f;if(this[_0x5b6a07(0x2bf)]=!0x0,((_0x5a4a4f=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x5a4a4f[_0x5b6a07(0x2da)]())!==this[_0x5b6a07(0x2e6)])return;const _0x408998=this[_0x5b6a07(0x2b3)][_0x5b6a07(0x1f5)](Y[_0x5b6a07(0x28e)])['getDocRanges']();Array[_0x5b6a07(0x1c5)](_0x408998)&&_0x408998[_0x5b6a07(0x1c8)]>0x0&&this[_0x5b6a07(0x131)](_0x408998);}[_0x5f41c4(0x233)](){const _0x2a6377=_0x5f41c4;this[_0x2a6377(0x2bf)]=!0x1;}};Se=et([L(0x2,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),L(0x3,a['Inject'](Ce)),L(0x4,a['Inject'](u[_0x5f41c4(0x1bc)])),L(0x5,a[_0x5f41c4(0x180)](pe)),L(0x6,m[_0x5f41c4(0x2d3)]),L(0x7,a[_0x5f41c4(0x164)]),L(0x8,a['ICommandService'])],Se);var nt=Object[_0x5f41c4(0x16f)],it=(_0x321292,_0x55bbeb,_0x299dde,_0xe32d5)=>{const _0x1283da=_0x5f41c4;for(var _0x5aae65=_0xe32d5>0x1?void 0x0:_0xe32d5?nt(_0x55bbeb,_0x299dde):_0x55bbeb,_0x52cd1c=_0x321292[_0x1283da(0x1c8)]-0x1,_0x5353f4;_0x52cd1c>=0x0;_0x52cd1c--)(_0x5353f4=_0x321292[_0x52cd1c])&&(_0x5aae65=_0x5353f4(_0x5aae65)||_0x5aae65);return _0x5aae65;},A=(_0xa5d188,_0xd2f27c)=>(_0x145981,_0x3d79b0)=>_0xd2f27c(_0x145981,_0x3d79b0,_0xa5d188);const rt=0x12c,ot=0x64,at=()=>{let _0x5f17e6=[],_0x2313d2=!0x1;return _0x5e4b65=>{const _0x247611=_0x5234;_0x5f17e6[_0x247611(0x27d)](_0x5e4b65),_0x2313d2||(_0x2313d2=!0x0,setTimeout(()=>{const _0x3bb395=_0x247611;_0x5f17e6[_0x3bb395(0x334)](_0x36c450=>_0x36c450()),_0x5f17e6=[],_0x2313d2=!0x1;}));};};let Ie=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x454c51,_0x4db908,_0x4fbf5,_0x55247b,_0x4e226c,_0x23cb92,_0x1c0135,_0x360f75){const _0x5e1f4d=_0x5f41c4;super(),_(this,_0x5e1f4d(0x2bf),!0x1),_(this,_0x5e1f4d(0x185),!0x1),_(this,_0x5e1f4d(0x25a),new d['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x5e1f4d(0x25a)][_0x5e1f4d(0x174)]()),_(this,_0x5e1f4d(0xfb),new d['BehaviorSubject']([])),_(this,_0x5e1f4d(0x264),this[_0x5e1f4d(0xfb)][_0x5e1f4d(0x1ce)](d['debounceTime'](rt))),_(this,_0x5e1f4d(0x131),a['debounce']((_0x6a77de,_0x3b2d4b)=>{const _0x26acfc=_0x5e1f4d,_0x49abbf={'eventID':m[_0x26acfc(0x231)][_0x26acfc(0x129)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Te[_0x26acfc(0x208)](_0x6a77de,_0x3b2d4b['range'])}};this[_0x26acfc(0x2f6)][_0x26acfc(0x2b8)](_0x49abbf,this[_0x26acfc(0x2e6)]);},ot)),(this['unitID']=_0x454c51,this[_0x5e1f4d(0x2f6)]=_0x4db908,this[_0x5e1f4d(0x2b3)]=_0x4fbf5,this[_0x5e1f4d(0x146)]=_0x55247b,this[_0x5e1f4d(0x166)]=_0x4e226c,this[_0x5e1f4d(0x1dd)]=_0x23cb92,this['_commandService']=_0x1c0135,this[_0x5e1f4d(0x187)]=_0x360f75);}get['cursorInfo'](){const _0x1fc7cd=_0x5f41c4;return this[_0x1fc7cd(0x25a)][_0x1fc7cd(0x224)]();}get['roomMembers'](){const _0x16d314=_0x5f41c4;return this[_0x16d314(0xfb)][_0x16d314(0x224)]();}['dispose'](){const _0x20c258=_0x5f41c4;super[_0x20c258(0x2c9)](),this[_0x20c258(0x25a)]['next'](new Map()),this[_0x20c258(0x25a)][_0x20c258(0x33f)](),this[_0x20c258(0xfb)][_0x20c258(0x226)]([]),this['_roomMembers$'][_0x20c258(0x33f)]();}[_0x5f41c4(0x308)](){const _0x1ffc89=_0x5f41c4;this[_0x1ffc89(0x185)]||(this[_0x1ffc89(0x185)]=!0x0,this[_0x1ffc89(0x2f6)][_0x1ffc89(0x35a)][_0x1ffc89(0x1ce)](d[_0x1ffc89(0x172)](this['dispose$']))[_0x1ffc89(0x309)](_0x16f300=>{const _0x47169e=_0x1ffc89;_0x16f300===u[_0x47169e(0x1c0)][_0x47169e(0x184)]?this[_0x47169e(0x27f)]():this[_0x47169e(0x233)]();}),this[_0x1ffc89(0x2f6)][_0x1ffc89(0x191)][_0x1ffc89(0x1ce)](d[_0x1ffc89(0x172)](this[_0x1ffc89(0x18a)]))[_0x1ffc89(0x309)](_0x4d0c4f=>{const _0x30e08c=_0x1ffc89,_0x1bf67e=_0x4d0c4f[_0x30e08c(0x112)];_0x1bf67e===m[_0x30e08c(0x231)][_0x30e08c(0x129)]&&this[_0x30e08c(0x363)](_0x4d0c4f),_0x1bf67e===m[_0x30e08c(0x231)][_0x30e08c(0x108)]&&this[_0x30e08c(0x1af)](_0x4d0c4f);}),this[_0x1ffc89(0x101)](),this[_0x1ffc89(0x30b)](this[_0x1ffc89(0x15e)]['onCommandExecuted'](_0x23cc7d=>{const _0x43534f=_0x1ffc89;if(this[_0x43534f(0x2bf)]&&_0x23cc7d['id']===g[_0x43534f(0x130)]['id']&&_0x23cc7d[_0x43534f(0x22e)]['unitId']===this[_0x43534f(0x2e6)]){const _0x3c3bf0=_0x23cc7d[_0x43534f(0x22e)];this['_updateLocalCursor'](_0x3c3bf0[_0x43534f(0x235)],_0x3c3bf0['selections'][0x0]);}})));}[_0x5f41c4(0x363)](_0x273567){const _0x3b2fc1=_0x5f41c4;var _0x172fe6,_0xe82daa;const {memberID:_0x10a854,selection:_0x6b8e91}=_0x273567[_0x3b2fc1(0xfd)],{sheetName:_0x569365,range:_0x5c7937}=Te[_0x3b2fc1(0x283)](_0x6b8e91),_0x26795d={'name':(_0xe82daa=(_0x172fe6=this[_0x3b2fc1(0x166)][_0x3b2fc1(0x336)](this[_0x3b2fc1(0x2e6)],_0x10a854))==null?void 0x0:_0x172fe6['name'])!=null?_0xe82daa:_0x3b2fc1(0x281),'range':this['_getMergeRange'](_0x569365,_0x5c7937),'sheetID':_0x569365,'color':this['_colorAssignService'][_0x3b2fc1(0x114)](_0x10a854),'selection':_0x6b8e91},_0x1f7da6=this[_0x3b2fc1(0x2c3)];_0x1f7da6[_0x3b2fc1(0x28c)](_0x10a854,_0x26795d),this[_0x3b2fc1(0x25a)][_0x3b2fc1(0x226)](_0x1f7da6);}[_0x5f41c4(0x1af)](_0x17f765){const _0xbf75e9=_0x5f41c4,{memberID:_0x895f72}=_0x17f765[_0xbf75e9(0xfd)],_0x5e611=this[_0xbf75e9(0x2c3)];_0x5e611[_0xbf75e9(0x1d1)](_0x895f72),this[_0xbf75e9(0x25a)][_0xbf75e9(0x226)](_0x5e611);}[_0x5f41c4(0x300)](_0x4ee0b4,_0x57f5d8){const _0x4328f6=_0x5f41c4;var _0x3b31fa,_0x7ab4b0;const _0x3a1699=(_0x7ab4b0=(_0x3b31fa=this[_0x4328f6(0x1dd)][_0x4328f6(0x252)](this['unitID']))==null?void 0x0:_0x3b31fa[_0x4328f6(0x123)](_0x4ee0b4))==null?void 0x0:_0x7ab4b0[_0x4328f6(0x2f2)]();return(_0x3a1699==null?void 0x0:_0x3a1699[_0x4328f6(0x1fb)](_0x46b8c1=>a['Rectangle'][_0x4328f6(0x1e6)](_0x46b8c1,_0x57f5d8)))||_0x57f5d8;}[_0x5f41c4(0x101)](){const _0x2aa03d=_0x5f41c4,_0x5a7b06=new a[(_0x2aa03d(0x1ee))](),_0x3cf8cd=at(),_0xa62138=()=>{const _0x21527f=_0x2aa03d;_0x5a7b06[_0x21527f(0x2c9)]();const _0x4ee5d6=(_0x27f187,_0x599425,_0x4f0bea,_0x4034c2)=>{const _0x26a00a=_0x21527f;let _0x347d68=[];switch(_0x27f187['id']){case g[_0x26a00a(0x360)]['DeleteRangeMoveLeftCommandId']:{_0x347d68=g[_0x26a00a(0x263)](_0x27f187,_0x4034c2);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x347d68=g[_0x26a00a(0x1b0)](_0x27f187,_0x4034c2);break;}case g[_0x26a00a(0x360)][_0x26a00a(0x24a)]:{_0x347d68=g['handleInsertCol'](_0x27f187,_0x4034c2);break;}case g[_0x26a00a(0x360)]['InsertRangeMoveDownCommandId']:{_0x347d68=g['handleInsertRangeMoveDown'](_0x27f187,_0x4034c2);break;}case g[_0x26a00a(0x360)][_0x26a00a(0x299)]:{_0x347d68=g[_0x26a00a(0x1e9)](_0x27f187,_0x4034c2);break;}case g['EffectRefRangId'][_0x26a00a(0x307)]:{_0x347d68=g[_0x26a00a(0x1a4)](_0x27f187,_0x4034c2);break;}case g['EffectRefRangId'][_0x26a00a(0x2b2)]:{_0x347d68=g[_0x26a00a(0x32e)](_0x27f187,_0x4034c2);break;}case g['EffectRefRangId']['RemoveColCommandId']:{_0x347d68=g['handleIRemoveCol'](_0x27f187,_0x4034c2);break;}case g[_0x26a00a(0x360)]['RemoveRowCommandId']:{_0x347d68=g[_0x26a00a(0x121)](_0x27f187,_0x4034c2);break;}}const _0x2a170a=g[_0x26a00a(0x253)](_0x347d68,_0x4034c2),_0x260590=this['cursorInfo']['get'](_0x599425);if(_0x260590&&_0x2a170a){const _0x3ab378={..._0x260590,'range':_0x2a170a};this[_0x26a00a(0x2c3)]['set'](_0x599425,_0x3ab378),_0x3cf8cd(()=>{const _0x5aae88=_0x26a00a,_0x5baa25=this[_0x5aae88(0x187)][_0x5aae88(0x171)](_0x2a170a,_0x5afe00=>(_0x5baa25['dispose'](),_0x4ee5d6(_0x5afe00,_0x599425,_0x4f0bea,_0x2a170a)));_0x5a7b06[_0x5aae88(0x20b)](_0x5baa25);});}return{'redos':[],'undos':[]};};this[_0x21527f(0x2c3)][_0x21527f(0x334)]((_0x54b178,_0x2075ab)=>{const _0x25f4ec=_0x21527f,{range:_0x513e0d,sheetID:_0x2b6ef2}=_0x54b178,_0x448674=this[_0x25f4ec(0x187)][_0x25f4ec(0x171)](_0x513e0d,_0x4b6648=>(_0x448674['dispose'](),_0x4ee5d6(_0x4b6648,_0x2075ab,_0x2b6ef2,_0x513e0d)));_0x5a7b06[_0x25f4ec(0x20b)](_0x448674);});};this[_0x2aa03d(0x30b)](a[_0x2aa03d(0x289)](this['_cursorInfo$']['subscribe'](()=>{_0xa62138();})));}[_0x5f41c4(0x27f)](){const _0x17c623=_0x5f41c4;var _0x4487ae,_0x5b6b98;if(this[_0x17c623(0x2bf)]=!0x0,((_0x4487ae=this[_0x17c623(0x1dd)][_0x17c623(0x2d5)]())==null?void 0x0:_0x4487ae[_0x17c623(0x2da)]())!==this[_0x17c623(0x2e6)])return;const _0xa16585=(_0x5b6b98=this['_injector'][_0x17c623(0x1f5)](g[_0x17c623(0x28f)])['getCurrentSelections']())==null?void 0x0:_0x5b6b98[0x0],_0x4c2bca=this[_0x17c623(0x1dd)][_0x17c623(0x35e)](a[_0x17c623(0x372)]['UNIVER_SHEET'])['getActiveSheet']();_0xa16585&&_0x4c2bca&&this[_0x17c623(0x131)](_0x4c2bca[_0x17c623(0x28b)](),_0xa16585);}[_0x5f41c4(0x233)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x5f41c4(0x180)](a['Injector'])),A(0x3,a[_0x5f41c4(0x180)](Ce)),A(0x4,a[_0x5f41c4(0x180)](u[_0x5f41c4(0x1bc)])),A(0x5,a[_0x5f41c4(0x164)]),A(0x6,a[_0x5f41c4(0x12a)]),A(0x7,a['Inject'](g[_0x5f41c4(0x1da)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x301731,_0x24c898,_0x503c71,_0x2f9557)=>{const _0x41d358=_0x5f41c4;for(var _0x28b1f4=_0x2f9557>0x1?void 0x0:_0x2f9557?ct(_0x24c898,_0x503c71):_0x24c898,_0xef6843=_0x301731[_0x41d358(0x1c8)]-0x1,_0xc3ef98;_0xef6843>=0x0;_0xef6843--)(_0xc3ef98=_0x301731[_0xef6843])&&(_0x28b1f4=_0xc3ef98(_0x28b1f4)||_0x28b1f4);return _0x28b1f4;},ie=(_0x240ba9,_0x4834c1)=>(_0x3aabc2,_0x199827)=>_0x4834c1(_0x3aabc2,_0x199827,_0x240ba9);let x=class extends a['RxDisposable']{constructor(_0x5c0e5a,_0x387119,_0xae8e80){const _0x350cb1=_0x5f41c4;super(),_(this,_0x350cb1(0x341),new Map()),_(this,_0x350cb1(0x1cd),new d[(_0x350cb1(0x221))]()),(this[_0x350cb1(0x1dd)]=_0x5c0e5a,this['_injector']=_0x387119,this[_0x350cb1(0x238)]=_0xae8e80,this[_0x350cb1(0x185)]());}[_0x5f41c4(0x2c9)](){const _0x4847b0=_0x5f41c4;super[_0x4847b0(0x2c9)](),this[_0x4847b0(0x1cd)]['complete'](),this[_0x4847b0(0x341)][_0x4847b0(0x334)](_0xac49ca=>_0xac49ca[_0x4847b0(0x2c9)]());}[_0x5f41c4(0x10e)](_0x3da838){const _0x3d7019=_0x5f41c4;return this['_entities']['has'](_0x3da838)?this[_0x3d7019(0x341)][_0x3d7019(0x1f5)](_0x3da838)[_0x3d7019(0x2eb)]:this['_entityInit$'][_0x3d7019(0x1ce)](d[_0x3d7019(0x10d)](_0x2c5458=>_0x2c5458['unitID']===_0x3da838),d['switchMap'](_0x2511b8=>_0x2511b8['cursorInfo$']));}[_0x5f41c4(0x185)](){const _0x3e3da8=_0x5f41c4;this[_0x3e3da8(0x1dd)][_0x3e3da8(0x194)](a[_0x3e3da8(0x372)]['UNIVER_SHEET'])['pipe'](d['takeUntil'](this[_0x3e3da8(0x18a)]))[_0x3e3da8(0x309)](async _0x55f2d1=>{const _0x1c177e=_0x3e3da8,_0x53ce7f=_0x55f2d1[_0x1c177e(0x2da)](),_0xfbe0b8=await this[_0x1c177e(0x377)](_0x53ce7f);this['_entityInit$'][_0x1c177e(0x226)](_0xfbe0b8),this[_0x1c177e(0x341)]['set'](_0x53ce7f,_0xfbe0b8);}),this[_0x3e3da8(0x1dd)][_0x3e3da8(0x194)](a['UniverInstanceType'][_0x3e3da8(0x257)])[_0x3e3da8(0x1ce)](d[_0x3e3da8(0x172)](this['dispose$']))['pipe'](d['filter'](_0x3ad15b=>!_0x3ad15b[_0x3e3da8(0x2da)]()['startsWith']('__')))[_0x3e3da8(0x309)](async _0x4d141a=>{const _0x5eed2c=_0x3e3da8,_0x449178=_0x4d141a[_0x5eed2c(0x2da)](),_0x307c5b=await this[_0x5eed2c(0x25c)](_0x449178);this[_0x5eed2c(0x1cd)]['next'](_0x307c5b),this['_entities'][_0x5eed2c(0x28c)](_0x449178,_0x307c5b);}),d['merge'](this[_0x3e3da8(0x1dd)][_0x3e3da8(0x26c)](a[_0x3e3da8(0x372)]['UNIVER_DOC']),this[_0x3e3da8(0x1dd)][_0x3e3da8(0x26c)](a['UniverInstanceType'][_0x3e3da8(0x19a)]))[_0x3e3da8(0x1ce)](d[_0x3e3da8(0x172)](this[_0x3e3da8(0x18a)]))[_0x3e3da8(0x309)](_0x5f4462=>{const _0x4ed7b2=_0x3e3da8,_0x2fe6e4=_0x5f4462['getUnitId'](),_0x1b3073=this['_entities'][_0x4ed7b2(0x1f5)](_0x2fe6e4);_0x1b3073&&(_0x1b3073[_0x4ed7b2(0x2c9)](),this[_0x4ed7b2(0x341)][_0x4ed7b2(0x1d1)](_0x2fe6e4));});}async[_0x5f41c4(0x377)](_0x54a4cc){const _0x54023d=_0x5f41c4,_0x2efeec=await this[_0x54023d(0x238)][_0x54023d(0x152)](_0x54a4cc),_0xc4d75=this['_injector']['createInstance'](Ie,_0x54a4cc,_0x2efeec);return _0xc4d75[_0x54023d(0x308)](),_0xc4d75;}async[_0x5f41c4(0x25c)](_0x30d74f){const _0x157f77=_0x5f41c4,_0x3a7384=await this[_0x157f77(0x238)][_0x157f77(0x152)](_0x30d74f),_0x20d614=this[_0x157f77(0x2b3)][_0x157f77(0x1c9)](Se,_0x30d74f,_0x3a7384);return _0x20d614[_0x157f77(0x308)](),_0x20d614;}};x=lt([ie(0x0,a[_0x5f41c4(0x164)]),ie(0x1,a[_0x5f41c4(0x180)](a['Injector'])),ie(0x2,a['Inject'](u[_0x5f41c4(0x15b)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x362816,_0x85424d){const _0x5cd37a=_0x5f41c4;let {radius:_0x17e557,width:_0x190349,height:_0x1d8d0e}=_0x85424d;_0x17e557=_0x17e557!=null?_0x17e557:0x0,_0x190349=_0x190349!=null?_0x190349:0x1e,_0x1d8d0e=_0x1d8d0e!=null?_0x1d8d0e:0x1e;let _0x5f01a5=0x0,_0x44c3fe=0x0,_0x3a9e47=0x0;_0x5f01a5=_0x44c3fe=_0x3a9e47=Math[_0x5cd37a(0x205)](_0x17e557,_0x190349/0x2,_0x1d8d0e/0x2),_0x362816[_0x5cd37a(0x361)](),_0x362816[_0x5cd37a(0x1c2)](_0x5f01a5,0x0),_0x362816[_0x5cd37a(0x2b6)](_0x190349-_0x44c3fe,0x0),_0x362816[_0x5cd37a(0x298)](_0x190349-_0x44c3fe,_0x44c3fe,_0x44c3fe,Math['PI']*0x3/0x2,0x0,!0x1),_0x362816[_0x5cd37a(0x2b6)](_0x190349,_0x1d8d0e-_0x3a9e47),_0x362816[_0x5cd37a(0x298)](_0x190349-_0x3a9e47,_0x1d8d0e-_0x3a9e47,_0x3a9e47,0x0,Math['PI']/0x2,!0x1),_0x362816[_0x5cd37a(0x2b6)](0x0,_0x1d8d0e),_0x362816[_0x5cd37a(0x2b6)](0x0,_0x5f01a5),_0x362816[_0x5cd37a(0x298)](_0x5f01a5,_0x5f01a5,_0x5f01a5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x362816[_0x5cd37a(0x1b7)](),_0x85424d[_0x5cd37a(0x245)]&&(_0x362816[_0x5cd37a(0x1d9)](),_0x362816[_0x5cd37a(0x241)]=_0x85424d['fill'],_0x85424d[_0x5cd37a(0x16a)]===_0x5cd37a(0x161)?_0x362816[_0x5cd37a(0x245)](_0x5cd37a(0x161)):_0x362816['fill'](),_0x362816[_0x5cd37a(0x328)]());}class te extends p[_0x5f41c4(0x139)]{constructor(_0x4fa34b,_0x4cd16c){const _0x2b3f93=_0x5f41c4;super(_0x4fa34b,_0x4cd16c),_(this,_0x2b3f93(0x102)),_(this,'text'),(this[_0x2b3f93(0x102)]=_0x4cd16c==null?void 0x0:_0x4cd16c[_0x2b3f93(0x102)],this[_0x2b3f93(0x23b)]=_0x4cd16c==null?void 0x0:_0x4cd16c[_0x2b3f93(0x23b)]);}static[_0x5f41c4(0x1f9)](_0x461d5a,_0xabd8d6){const _0x2a09f4=_0x5f41c4,{text:_0x53ee72,color:_0x18cc07}=_0xabd8d6;_0x461d5a[_0x2a09f4(0x1d9)](),_0x461d5a[_0x2a09f4(0x32d)]=_0x2a09f4(0x1cc);const _0x6eb2a9=_0x461d5a[_0x2a09f4(0x18c)](_0x53ee72)[_0x2a09f4(0x311)],_0x5b31ab=Math[_0x2a09f4(0x205)](_0x6eb2a9+0x2*re,De);ht(_0x461d5a,{'height':K,'radius':0x4,'width':_0x5b31ab,'fill':_0x18cc07}),_0x461d5a[_0x2a09f4(0x241)]=_0x2a09f4(0x255);const _0x266b03=re,_0x1716d8=K-_t,_0x32e569=De-0x2*re;if(_0x6eb2a9>_0x32e569){let _0x590cdb='',_0x22b902=0x0;for(const _0x207407 of _0x53ee72){const _0xe8970f=_0x461d5a['measureText'](_0x207407)[_0x2a09f4(0x311)];if(_0x22b902+_0xe8970f<=_0x32e569-_0x461d5a[_0x2a09f4(0x18c)](_0x2a09f4(0x234))[_0x2a09f4(0x311)])_0x590cdb+=_0x207407,_0x22b902+=_0xe8970f;else{_0x590cdb+=_0x2a09f4(0x234);break;}}_0x461d5a[_0x2a09f4(0x21d)](_0x590cdb,_0x266b03,_0x1716d8);}else _0x461d5a[_0x2a09f4(0x21d)](_0x53ee72,_0x266b03,_0x1716d8);_0x461d5a[_0x2a09f4(0x328)]();}['_draw'](_0x106de8){const _0xf0bef9=_0x5f41c4;te[_0xf0bef9(0x1f9)](_0x106de8,this);}}const oe='collab-text-anchor-',ut='collab-text-range-',dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x5f41c4(0x293);class Ue{constructor(_0x2f6e6a,_0x4feb80,_0x30d8f9,_0x430010){const _0x245cf2=_0x5f41c4;_(this,_0x245cf2(0x290),[]),_(this,_0x245cf2(0x1a5),null),_(this,_0x245cf2(0x246),null),_(this,'_anchorDot',null),_(this,_0x245cf2(0x314),null),_(this,_0x245cf2(0x111),null),(this['_cursor']=_0x2f6e6a,this[_0x245cf2(0x23d)]=_0x4feb80,this['_docSkeleton']=_0x30d8f9,this[_0x245cf2(0x31f)]=_0x430010,this['_render']());}set[_0x5f41c4(0x262)](_0x219950){const _0x2937b9=_0x5f41c4;_0x219950?(this['_anchorDot']&&this['_anchorDot'][_0x2937b9(0x148)](),this['_textBubble']&&this[_0x2937b9(0x246)][_0x2937b9(0x2b1)]()):(this[_0x2937b9(0x32f)]&&this[_0x2937b9(0x32f)]['show'](),this[_0x2937b9(0x246)]&&this[_0x2937b9(0x246)]['hide']());}[_0x5f41c4(0x2c9)](){const _0x22c6ec=_0x5f41c4;for(const _0x22f1f9 of this['_shapes'])_0x22f1f9[_0x22c6ec(0x2c9)]();this[_0x22c6ec(0x246)]&&this['_textBubble']['dispose'](),this[_0x22c6ec(0x32f)]&&this[_0x22c6ec(0x32f)][_0x22c6ec(0x2c9)](),this[_0x22c6ec(0x1a5)]&&this['_anchor'][_0x22c6ec(0x2c9)](),this[_0x22c6ec(0x111)]&&this[_0x22c6ec(0x111)]();}['_render'](){const _0x191540=_0x5f41c4;var _0x1df871;const {_docSkeleton:_0x4c6f37,_document:_0x5d82f4}=this,{color:_0x3dcee8,name:_0x284000,ranges:_0x35e467}=this[_0x191540(0x351)],_0x39bc76=_0x5d82f4['getOffsetConfig'](),{docsLeft:_0x2a30c7,docsTop:_0x31b522}=_0x39bc76,_0x530bd3=new b['NodePositionConvertToCursor'](_0x39bc76,_0x4c6f37);for(const {startOffset:_0x72fdaa,endOffset:_0x204bec,rangeType:_0x4a4d6a,segmentId:_0x428567,segmentPage:_0x152c39,collapsed:_0x41997e,isActive:_0x55eba7}of _0x35e467){const _0x312f45=_0x4c6f37[_0x191540(0x27a)](_0x72fdaa,!0x0,_0x428567,_0x152c39);let _0x4bdcb9=_0x4c6f37[_0x191540(0x27a)](_0x204bec,!0x0,_0x428567,_0x152c39);if(_0x4bdcb9==null&&(_0x4bdcb9=_0x4c6f37[_0x191540(0x27a)](_0x204bec-0x1,!0x1,_0x428567,_0x152c39)),_0x55eba7){const {contentBoxPointGroup:_0x584c10}=_0x530bd3[_0x191540(0x141)](_0x4bdcb9,_0x4bdcb9);if(_0x584c10['length']===0x0)continue;this['_drawAnchor'](_0x3dcee8,_0x584c10,_0x2a30c7,_0x31b522,_0x284000),this['_eventUnsubscribe']=this[_0x191540(0x244)]();}if(_0x312f45&&_0x4bdcb9){if(_0x4a4d6a===a[_0x191540(0x266)][_0x191540(0x216)]){const _0x1013d5=new b['NodePositionConvertToRectRange'](_0x39bc76,_0x4c6f37),{pointGroup:_0x37dde0}=(_0x1df871=_0x1013d5['getRangePointData'](_0x312f45,_0x4bdcb9))!=null?_0x1df871:{};if(_0x37dde0==null||_0x37dde0['length']===0x0)continue;this[_0x191540(0x2ac)](_0x3dcee8,_0x37dde0,_0x2a30c7,_0x31b522);}else{if(!_0x41997e){const {borderBoxPointGroup:_0x7c997c}=_0x530bd3[_0x191540(0x141)](_0x312f45,_0x4bdcb9);if(_0x7c997c['length']===0x0)continue;this[_0x191540(0x167)](_0x3dcee8,_0x7c997c,_0x2a30c7,_0x31b522);}}}}}[_0x5f41c4(0x312)](_0x3ac85a,_0x308710,_0x2ecbd5,_0x3d4f82,_0x1f4716){const _0x54d2d7=_0x5f41c4,_0x45761a=this[_0x54d2d7(0x2f7)](_0x308710),{left:_0x573a19,top:_0x472075,height:_0x3cb1d3}=_0x45761a,_0x1e09ef=this['_getScale'](),_0x40a366=St/_0x1e09ef,_0x2d665a=new p['Rect'](oe+a[_0x54d2d7(0x1b3)][_0x54d2d7(0x322)](k),{'left':_0x573a19+_0x2ecbd5-_0x40a366,'top':_0x472075+_0x3d4f82,'height':_0x3cb1d3,'width':ft,'fill':_0x3ac85a||p[_0x54d2d7(0x155)](a[_0x54d2d7(0x35b)][_0x54d2d7(0x338)],0x0),'strokeWidth':_0x40a366,'stroke':It,'evented':!0x0});this[_0x54d2d7(0x1a5)]=_0x2d665a,this[_0x54d2d7(0x23d)][_0x54d2d7(0x32c)](_0x2d665a,b['TEXT_RANGE_LAYER_INDEX']);const _0xd73625=new p[(_0x54d2d7(0x34a))](oe+a['Tools'][_0x54d2d7(0x322)](k),{'left':_0x573a19+_0x2ecbd5-_0x40a366,'top':_0x472075+_0x3d4f82-ae/0x2,'height':ae,'width':ae,'fill':_0x3ac85a||p[_0x54d2d7(0x155)](a['COLORS'][_0x54d2d7(0x338)],0x0),'strokeWidth':0x0,'stroke':_0x3ac85a||p[_0x54d2d7(0x155)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0xd73625,this[_0x54d2d7(0x23d)][_0x54d2d7(0x32c)](_0xd73625,b['TEXT_RANGE_LAYER_INDEX']);const _0x2c9b66=new te(oe+a[_0x54d2d7(0x1b3)][_0x54d2d7(0x322)](k),{'left':_0x573a19+_0x2ecbd5-_0x40a366,'top':_0x472075+_0x3d4f82-K,'text':_0x1f4716,'color':_0x3ac85a});this[_0x54d2d7(0x246)]=_0x2c9b66,this['_scene'][_0x54d2d7(0x32c)](_0x2c9b66,b[_0x54d2d7(0x29b)]),this[_0x54d2d7(0x262)]=!0x1;}[_0x5f41c4(0x244)](){const _0x4c50d9=_0x5f41c4,_0x567f0a=this[_0x4c50d9(0x1a5)][_0x4c50d9(0x28d)][_0x4c50d9(0x376)](()=>{const _0x10447c=_0x4c50d9;this[_0x10447c(0x262)]=!0x0;}),_0x26c078=this['_anchor'][_0x4c50d9(0x13c)][_0x4c50d9(0x376)](()=>{const _0x1338c6=_0x4c50d9;this[_0x1338c6(0x314)]&&clearTimeout(this[_0x1338c6(0x314)]),this[_0x1338c6(0x314)]=setTimeout(()=>{const _0x55114d=_0x1338c6;this[_0x55114d(0x262)]=!0x1;},0x7d0);});return()=>{_0x567f0a['unsubscribe'](),_0x26c078['unsubscribe']();};}[_0x5f41c4(0x167)](_0x5cd930,_0x9ea10f,_0x152b09,_0x51395b){const _0x3b111d=_0x5f41c4,_0x544c56=new a[(_0x3b111d(0x331))](_0x5cd930)[_0x3b111d(0x2e2)](0.2)[_0x3b111d(0x339)](),_0x51329f=new p[(_0x3b111d(0x260))](ut+a[_0x3b111d(0x1b3)][_0x3b111d(0x322)](k),{'pointsGroup':_0x9ea10f,'fill':_0x544c56||p[_0x3b111d(0x155)](a['COLORS'][_0x3b111d(0x338)],0.2),'left':_0x152b09,'top':_0x51395b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3b111d(0x27d)](_0x51329f),this['_scene'][_0x3b111d(0x32c)](_0x51329f,b[_0x3b111d(0x29b)]);}[_0x5f41c4(0x2ac)](_0x6ec766,_0x1570a9,_0x10e95c,_0x33b8bd){const _0x3bde27=_0x5f41c4,_0x410eb4=new a['ColorKit'](_0x6ec766)[_0x3bde27(0x2e2)](0.2)[_0x3bde27(0x339)](),_0x36dc0a=new p[(_0x3bde27(0x260))](dt+a[_0x3bde27(0x1b3)][_0x3bde27(0x322)](k),{'pointsGroup':_0x1570a9,'fill':_0x410eb4||p[_0x3bde27(0x155)](a['COLORS'][_0x3bde27(0x338)],0.2),'left':_0x10e95c,'top':_0x33b8bd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3bde27(0x290)][_0x3bde27(0x27d)](_0x36dc0a),this[_0x3bde27(0x23d)][_0x3bde27(0x32c)](_0x36dc0a,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5f41c4(0x2f7)](_0x41b5db){const _0x5972e9=_0x41b5db[0x0],_0x1c94a5=_0x5972e9[0x0],_0x234bb7=_0x5972e9[0x2],{x:_0x5d99bb,y:_0x593457}=_0x1c94a5,{x:_0x260fe9,y:_0x262b8c}=_0x234bb7;return{'left':_0x5d99bb,'top':_0x593457,'width':_0x260fe9-_0x5d99bb,'height':_0x262b8c-_0x593457};}['_getScale'](){const _0x1bb193=_0x5f41c4,{scaleX:_0x226c0e,scaleY:_0x45cff0}=this[_0x1bb193(0x23d)][_0x1bb193(0x242)]();return Math['max'](_0x226c0e,_0x45cff0);}}var vt=Object[_0x5f41c4(0x16f)],gt=(_0x65f8a8,_0x27e858,_0x28e76e,_0x3f9734)=>{for(var _0x4020bd=_0x3f9734>0x1?void 0x0:_0x3f9734?vt(_0x27e858,_0x28e76e):_0x27e858,_0x383b61=_0x65f8a8['length']-0x1,_0x25ef58;_0x383b61>=0x0;_0x383b61--)(_0x25ef58=_0x65f8a8[_0x383b61])&&(_0x4020bd=_0x25ef58(_0x4020bd)||_0x4020bd);return _0x4020bd;},V=(_0x3ff7e6,_0x5392c0)=>(_0x2fe229,_0x78de3)=>_0x5392c0(_0x2fe229,_0x78de3,_0x3ff7e6);let ve=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x49c38d,_0x2df0b5,_0x1cc556,_0x2e5b18,_0xc69bb6){const _0x1d53f8=_0x5f41c4;super(),_(this,_0x1d53f8(0x2d6),[]),_(this,'_cursors',[]),(this['_context']=_0x49c38d,this[_0x1d53f8(0x353)]=_0x2df0b5,this[_0x1d53f8(0x17c)]=_0x1cc556,this[_0x1d53f8(0x15e)]=_0x2e5b18,this[_0x1d53f8(0x2b0)]=_0xc69bb6,this[_0x1d53f8(0x185)]());}[_0x5f41c4(0x185)](){const _0x4324cf=_0x5f41c4,_0x317172=this[_0x4324cf(0x31d)][_0x4324cf(0x1ed)],_0x3f02ea=this[_0x4324cf(0x353)];this[_0x4324cf(0x30b)](d[_0x4324cf(0x1db)]([this[_0x4324cf(0x17c)]['getCollabCursors$'](_0x317172),this[_0x4324cf(0x2b0)][_0x4324cf(0x127)]])[_0x4324cf(0x1ce)]($[_0x4324cf(0x2c5)](([_0x3b135f,_0x301295])=>({'skeleton':_0x3f02ea[_0x4324cf(0x158)](),'cursors':[..._0x3b135f[_0x4324cf(0x230)]()]['flatMap'](_0x2116bd=>({..._0x2116bd,'color':_0x301295[_0x2116bd[_0x4324cf(0x102)]]}))})))[_0x4324cf(0x309)](_0x465d67=>{const _0x175a14=_0x4324cf;if(this[_0x175a14(0x201)](),_0x465d67){const {skeleton:_0x163289,cursors:_0x31dae6}=_0x465d67;this[_0x175a14(0x100)](_0x163289,_0x31dae6);}})),this[_0x4324cf(0x1b5)](),this[_0x4324cf(0x17a)]();}[_0x5f41c4(0x100)](_0x48684b,_0x401c7f){const _0x2c3fe3=_0x5f41c4,{scene:_0x664fd6,mainComponent:_0xeacb01}=this[_0x2c3fe3(0x31d)],_0x2f9f16=_0x401c7f[_0x2c3fe3(0x2c5)](_0x288e59=>new Ue(_0x288e59,_0x664fd6,_0x48684b,_0xeacb01));this['_cursorShapes']=_0x2f9f16,this[_0x2c3fe3(0x179)]=_0x401c7f;}[_0x5f41c4(0x218)](){const _0x1d2372=_0x5f41c4;this['_removeCollabCursors']();const {scene:_0x508969,mainComponent:_0x37cb28}=this['_context'],_0x1e939e=this[_0x1d2372(0x353)][_0x1d2372(0x158)](),_0x1a7d40=this[_0x1d2372(0x179)][_0x1d2372(0x2c5)](_0x5abce4=>new Ue(_0x5abce4,_0x508969,_0x1e939e,_0x37cb28));this[_0x1d2372(0x2d6)]=_0x1a7d40;}[_0x5f41c4(0x201)](){const _0x2834b4=_0x5f41c4;this[_0x2834b4(0x2d6)][_0x2834b4(0x334)](_0x5369c1=>_0x5369c1[_0x2834b4(0x2c9)]()),this[_0x2834b4(0x2d6)]=[];}[_0x5f41c4(0x17a)](){const _0xc82582=_0x5f41c4,_0x4f05d4=[b[_0xc82582(0x327)]['id']];this[_0xc82582(0x30b)](this['_commandService']['onCommandExecuted'](_0x1abb14=>{const _0x5a7cc2=_0xc82582;_0x4f05d4[_0x5a7cc2(0x340)](_0x1abb14['id'])&&_0x1abb14['params'][_0x5a7cc2(0x1ed)]===this[_0x5a7cc2(0x31d)][_0x5a7cc2(0x1ed)]&&this[_0x5a7cc2(0x218)]();}));}[_0x5f41c4(0x1b5)](){const _0x127f39=_0x5f41c4;this[_0x127f39(0x30b)](a['fromEventSubject'](this[_0x127f39(0x31d)]['engine'][_0x127f39(0x378)])['pipe']($['filter'](_0x2ea322=>_0x2ea322[_0x127f39(0x183)]===p[_0x127f39(0x1c6)][_0x127f39(0x11f)]),$['throttleTime'](0x10))[_0x127f39(0x309)](()=>{const _0x5d564a=_0x127f39;this[_0x5d564a(0x218)]();}));}};ve=gt([V(0x1,a[_0x5f41c4(0x180)](Y[_0x5f41c4(0x345)])),V(0x2,a[_0x5f41c4(0x180)](x)),V(0x3,a[_0x5f41c4(0x12a)]),V(0x4,a[_0x5f41c4(0x180)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x5f41c4(0x139)]{constructor(_0x299eaf,_0xd7e975){const _0x3f1b7d=_0x5f41c4;super(_0x299eaf,_0xd7e975),_(this,_0x3f1b7d(0x133)),_(this,'_hovered',!0x1),_(this,_0x3f1b7d(0x315)),_(this,_0x3f1b7d(0x196),''),_(this,_0x3f1b7d(0x2aa),_0x3f1b7d(0x20e)),_(this,'_backgroundColor'),(_0xd7e975&&this[_0x3f1b7d(0x140)](_0xd7e975),this[_0x3f1b7d(0x28d)][_0x3f1b7d(0x376)](()=>this[_0x3f1b7d(0x140)]({'hovered':!0x0})),this[_0x3f1b7d(0x13c)][_0x3f1b7d(0x376)](()=>this[_0x3f1b7d(0x140)]({'hovered':!0x1})));}[_0x5f41c4(0x140)](_0x5b0ed4){const _0x1c21f4=_0x5f41c4;var _0xce7228,_0x4235ee,_0x41c7fd,_0x14a00c,_0x218335,_0x3cd171;this[_0x1c21f4(0x133)]=(_0xce7228=_0x5b0ed4[_0x1c21f4(0x102)])!=null?_0xce7228:this[_0x1c21f4(0x133)],this['_hovered']=(_0x4235ee=_0x5b0ed4[_0x1c21f4(0x1cf)])!=null?_0x4235ee:this[_0x1c21f4(0x23c)],this[_0x1c21f4(0x315)]=(_0x41c7fd=_0x5b0ed4[_0x1c21f4(0x1f8)])!=null?_0x41c7fd:this[_0x1c21f4(0x315)],this[_0x1c21f4(0x196)]=(_0x14a00c=_0x5b0ed4['name'])!=null?_0x14a00c:this['_name'],this[_0x1c21f4(0x2aa)]=(_0x218335=_0x5b0ed4['labelPosition'])!=null?_0x218335:this['_labelPosition'],this['_backgroundColor']=(_0x3cd171=_0x5b0ed4[_0x1c21f4(0x12d)])!=null?_0x3cd171:this[_0x1c21f4(0x1ad)],this[_0x1c21f4(0x1f7)]({'width':_0x5b0ed4[_0x1c21f4(0x311)],'height':_0x5b0ed4[_0x1c21f4(0x1ba)]});}[_0x5f41c4(0x162)](_0x545f53){const _0x550ec1=_0x5f41c4,{row:_0x2099e1,column:_0x599abc}=_0x545f53;if(_0x2099e1>=this['_range']['startRow']&&_0x2099e1<=this[_0x550ec1(0x315)]['endRow']&&_0x599abc>=this[_0x550ec1(0x315)][_0x550ec1(0x2cc)]&&_0x599abc<=this[_0x550ec1(0x315)][_0x550ec1(0x1b2)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x550ec1(0x140)]({'hovered':!0x1});}[_0x5f41c4(0x1f4)](_0x56f8ba){return!0x1;}[_0x5f41c4(0x1c7)](_0x5b1e9a){const _0x366dec=_0x5f41c4;p[_0x366dec(0x34a)][_0x366dec(0x1f9)](_0x5b1e9a,{'width':this[_0x366dec(0x311)],'height':this[_0x366dec(0x1ba)],'strokeWidth':Ct,'stroke':this[_0x366dec(0x133)],'evented':!0x1,'fill':this[_0x366dec(0x1ad)]}),this[_0x366dec(0x23c)]&&(_0x5b1e9a[_0x366dec(0x1d9)](),_0x5b1e9a[_0x366dec(0x1dc)](0x1,0x0,0x0,0x1,this[_0x366dec(0x311)],this[_0x366dec(0x2aa)]===_0x366dec(0x2f9)?0x0:-0x14),te[_0x366dec(0x1f9)](_0x5b1e9a,{'text':this[_0x366dec(0x196)],'color':this[_0x366dec(0x133)]}),_0x5b1e9a['restore']());}}var pt=Object[_0x5f41c4(0x16f)],bt=(_0x1e0273,_0x392bf3,_0xe88422,_0x3a64c0)=>{for(var _0x1942aa=_0x3a64c0>0x1?void 0x0:_0x3a64c0?pt(_0x392bf3,_0xe88422):_0x392bf3,_0x5e858e=_0x1e0273['length']-0x1,_0x12a6e5;_0x5e858e>=0x0;_0x5e858e--)(_0x12a6e5=_0x1e0273[_0x5e858e])&&(_0x1942aa=_0x12a6e5(_0x1942aa)||_0x1942aa);return _0x1942aa;},ce=(_0x488e1f,_0x4040b0)=>(_0x4ddfa3,_0x3094e5)=>_0x4040b0(_0x4ddfa3,_0x3094e5,_0x488e1f);const Et=0x1389;let ge=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x171255,_0x246079,_0x596094,_0x407581){const _0x45e521=_0x5f41c4;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x171255,this[_0x45e521(0x274)]=_0x246079,this[_0x45e521(0x17c)]=_0x596094,this[_0x45e521(0x2b0)]=_0x407581,this[_0x45e521(0x185)]());}[_0x5f41c4(0x185)](){const _0x3882e5=_0x5f41c4;this[_0x3882e5(0x274)][_0x3882e5(0x26b)][_0x3882e5(0x1ce)]($[_0x3882e5(0x172)](this[_0x3882e5(0x18a)]),$['switchMap'](_0x5c515d=>{const _0x8ee22f=_0x3882e5;if(_0x5c515d){const _0x47d9a9=_0x5c515d[_0x8ee22f(0x1d5)];return d[_0x8ee22f(0x1db)](this[_0x8ee22f(0x17c)][_0x8ee22f(0x10e)](this['_context'][_0x8ee22f(0x1ed)]),this['_themeService'][_0x8ee22f(0x127)])[_0x8ee22f(0x1ce)]($[_0x8ee22f(0x2c5)](([_0x4a558c,_0x55ae4c])=>{const _0x57636e=_0x8ee22f,_0xa860d2=new Map();return _0x4a558c[_0x57636e(0x334)]((_0x564a9c,_0xaf8cbd)=>{const _0x44a3f8=_0x57636e;if(_0x564a9c[_0x44a3f8(0x30d)]===_0x47d9a9){const _0x570a94={..._0x564a9c};_0x570a94[_0x44a3f8(0x102)]=_0x55ae4c[_0x564a9c[_0x44a3f8(0x102)]],_0xa860d2[_0x44a3f8(0x28c)](_0xaf8cbd,_0x570a94);}}),{'skeleton':_0x5c515d,'cursors':_0xa860d2};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3882e5(0x309)](({skeleton:_0x9eb651,cursors:_0x2f80de})=>{const _0x3b41fd=_0x3882e5;this[_0x3b41fd(0x201)](),_0x9eb651&&this[_0x3b41fd(0x100)](_0x9eb651,_0x2f80de);}),this[_0x3882e5(0x274)][_0x3882e5(0x26b)][_0x3882e5(0x309)](_0x57ef7e=>{const _0x196a89=_0x3882e5;if(_0x57ef7e==null)return;const {skeleton:_0x39018c}=_0x57ef7e,{scene:_0x363a91}=this[_0x196a89(0x31d)];_0x363a91[_0x196a89(0x2c0)][_0x196a89(0x376)](a[_0x196a89(0x24c)](_0x1098e3=>{const _0x2b50be=_0x196a89;var _0x40c5dd,_0x47857f;const {offsetX:_0x5010f0,offsetY:_0xcc34e4}=_0x1098e3,{x:_0x5a8874,y:_0x173085}=_0x363a91[_0x2b50be(0x30c)](p['Vector2'][_0x2b50be(0x295)]([_0x5010f0,_0xcc34e4])),{scaleX:_0x582c85,scaleY:_0x137ed2}=_0x363a91[_0x2b50be(0x242)](),_0x27adda=_0x363a91[_0x2b50be(0x1a8)](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x48102d=_0x363a91['getVpScrollXYInfoByPosToVp'](p['Vector2']['FromArray']([_0x5a8874,_0x173085]),_0x27adda),_0x131b5a=_0x39018c['getCellPositionByOffset'](_0x5010f0,_0xcc34e4,_0x582c85,_0x137ed2,_0x48102d);((_0x40c5dd=this[_0x2b50be(0x19d)])==null?void 0x0:_0x40c5dd[_0x2b50be(0x256)])===_0x131b5a[_0x2b50be(0x256)]&&((_0x47857f=this[_0x2b50be(0x19d)])==null?void 0x0:_0x47857f[_0x2b50be(0x34b)])===_0x131b5a[_0x2b50be(0x34b)]||this[_0x2b50be(0x179)][_0x2b50be(0x334)](_0x1d12dd=>{const _0x14f8b9=_0x2b50be;_0x1d12dd[_0x14f8b9(0x162)](_0x131b5a);});},0x64));});}[_0x5f41c4(0x100)](_0x2a184e,_0x1065ff){const _0x42a0e5=_0x5f41c4;var _0x27239c;const _0x42c5f1=(_0x27239c=this[_0x42a0e5(0x274)][_0x42a0e5(0x10c)]())==null?void 0x0:_0x27239c[_0x42a0e5(0x147)];if(!_0x42c5f1)return;const _0x1bfa71=this[_0x42a0e5(0x2e5)]();if(!_0x1bfa71)return;this[_0x42a0e5(0x179)]['forEach'](_0x44ce8b=>{const _0x1bbac8=_0x42a0e5;_0x44ce8b[_0x1bbac8(0x285)]();});const {scene:_0x9a5810}=_0x1bfa71,_0x192872=Tt(Array[_0x42a0e5(0x239)](_0x1065ff['values']()))['map'](_0xe3e624=>{const _0x5d7581=_0x42a0e5,{color:_0x4dcfe9,range:_0x5a0f53,name:_0x431d34,selection:_0x590632,sheetID:_0x17745c}=_0xe3e624,{startColumn:_0x4b7b3a,startRow:_0x2bcb0f,endColumn:_0x3641da,endRow:_0x2e2222}=_0x5a0f53,_0x38bc3e=G[_0x5d7581(0x27c)](_0x2bcb0f,_0x4b7b3a,_0x9a5810,_0x42c5f1),_0x5c09d5=G[_0x5d7581(0x27c)](_0x2e2222,_0x3641da,_0x9a5810,_0x42c5f1),{columnHeaderHeightAndMarginTop:_0x56ca2d}=_0x42c5f1,{startX:_0x506881,startY:_0x1a5c09}=_0x38bc3e,{endX:_0x1d1b52,endY:_0x4e2cc7}=_0x5c09d5,_0x187fee=_0x1d1b52-_0x506881,_0x195d5e=_0x4e2cc7-_0x1a5c09,_0x58af9b={'labelPosition':_0x1a5c09-_0x56ca2d>=K?_0x5d7581(0x20e):'bottom','sheetID':_0x17745c,'range':_0x5a0f53,'color':_0x4dcfe9,'name':_0x431d34,'selection':_0x590632,'left':_0x506881,'top':_0x1a5c09,'width':_0x187fee,'height':_0x195d5e,'evented':!0x1,'zIndex':Et};return new Ae(_0x431d34,_0x58af9b);});_0x9a5810[_0x42a0e5(0x24f)](_0x192872,mt),this[_0x42a0e5(0x179)]=new Set(_0x192872);}[_0x5f41c4(0x201)](){const _0x2eb72e=_0x5f41c4;var _0x45faa1;(_0x45faa1=this[_0x2eb72e(0x179)])==null||_0x45faa1['forEach'](_0xfa2e76=>_0xfa2e76[_0x2eb72e(0x2c9)]());}[_0x5f41c4(0x2e5)](){const _0x39e54c=_0x5f41c4;return G[_0x39e54c(0x1d2)](this['_context'][_0x39e54c(0xfc)],this['_context']);}};ge=bt([ce(0x1,a[_0x5f41c4(0x180)](G[_0x5f41c4(0x126)])),ce(0x2,a[_0x5f41c4(0x180)](x)),ce(0x3,a[_0x5f41c4(0x180)](a[_0x5f41c4(0xf7)]))],ge);function Tt(_0x81f3bf){const _0x507057=_0x5f41c4,_0x2ec72=new Map();return _0x81f3bf['forEach'](_0x5bcd95=>{const _0x5adc89=_0x5234;if(_0x2ec72[_0x5adc89(0x287)](_0x5bcd95[_0x5adc89(0x248)])){const _0x150e62=_0x2ec72[_0x5adc89(0x1f5)](_0x5bcd95[_0x5adc89(0x248)]);_0x150e62['name']+=',\x20'+_0x5bcd95[_0x5adc89(0x347)];}else _0x2ec72[_0x5adc89(0x28c)](_0x5bcd95[_0x5adc89(0x248)],_0x5bcd95);}),Array[_0x507057(0x239)](_0x2ec72[_0x507057(0x230)]());}var E=function(){const _0x43065e=_0x5f41c4;return E=Object[_0x43065e(0x2a7)]||function(_0xf6dd){const _0x5c7978=_0x43065e;for(var _0xe79430,_0x459e5f=0x1,_0x4f2afe=arguments[_0x5c7978(0x1c8)];_0x459e5f<_0x4f2afe;_0x459e5f++){_0xe79430=arguments[_0x459e5f];for(var _0x62bd89 in _0xe79430)Object[_0x5c7978(0x250)][_0x5c7978(0x316)]['call'](_0xe79430,_0x62bd89)&&(_0xf6dd[_0x62bd89]=_0xe79430[_0x62bd89]);}return _0xf6dd;},E[_0x43065e(0x350)](this,arguments);},Ot=function(_0x1148a0,_0x4b88f1){const _0x508a3b=_0x5f41c4;var _0x56d4b6={};for(var _0x5abbd2 in _0x1148a0)Object[_0x508a3b(0x250)][_0x508a3b(0x316)][_0x508a3b(0x190)](_0x1148a0,_0x5abbd2)&&_0x4b88f1[_0x508a3b(0x36d)](_0x5abbd2)<0x0&&(_0x56d4b6[_0x5abbd2]=_0x1148a0[_0x5abbd2]);if(_0x1148a0!=null&&typeof Object['getOwnPropertySymbols']==_0x508a3b(0x1d0)){for(var _0x20e005=0x0,_0x5abbd2=Object[_0x508a3b(0x25f)](_0x1148a0);_0x20e005<_0x5abbd2[_0x508a3b(0x1c8)];_0x20e005++)_0x4b88f1[_0x508a3b(0x36d)](_0x5abbd2[_0x20e005])<0x0&&Object[_0x508a3b(0x250)][_0x508a3b(0x2d2)][_0x508a3b(0x190)](_0x1148a0,_0x5abbd2[_0x20e005])&&(_0x56d4b6[_0x5abbd2[_0x20e005]]=_0x1148a0[_0x5abbd2[_0x20e005]]);}return _0x56d4b6;},be=M[_0x5f41c4(0x151)](function(_0x956c5a,_0x4cf266){const _0x4b9193=_0x5f41c4;var _0x277101=_0x956c5a[_0x4b9193(0x1a6)],_0x16ea6d=_0x956c5a['id'],_0x515590=_0x956c5a[_0x4b9193(0x193)],_0x1bed2e=_0x956c5a['extend'],_0x1ba3c5=Ot(_0x956c5a,[_0x4b9193(0x1a6),'id','className',_0x4b9193(0x318)]),_0x5474a2=_0x4b9193(0xfa)[_0x4b9193(0x2f0)](_0x16ea6d,'\x20')[_0x4b9193(0x2f0)](_0x515590||'')[_0x4b9193(0x26d)](),_0x4f5752=M[_0x4b9193(0x181)]('_'['concat'](Ut()));return ye(_0x277101,''[_0x4b9193(0x2f0)](_0x16ea6d),{'defIds':_0x277101['defIds'],'idSuffix':_0x4f5752[_0x4b9193(0x228)]},E({'ref':_0x4cf266,'className':_0x5474a2},_0x1ba3c5),_0x1bed2e);});function ye(_0x2c28d0,_0x122436,_0x26ed2e,_0x3d3011,_0x14f7fd){const _0x342434=_0x5f41c4;return M[_0x342434(0x227)](_0x2c28d0[_0x342434(0x29d)],E(E({'key':_0x122436},Rt(_0x2c28d0,_0x26ed2e,_0x14f7fd)),_0x3d3011),(Dt(_0x2c28d0,_0x26ed2e)[_0x342434(0x2db)]||[])[_0x342434(0x2c5)](function(_0x55e5aa,_0x45a71f){const _0x13ab83=_0x342434;return ye(_0x55e5aa,''[_0x13ab83(0x2f0)](_0x122436,'-')[_0x13ab83(0x2f0)](_0x2c28d0['tag'],'-')['concat'](_0x45a71f),_0x26ed2e,void 0x0,_0x14f7fd);}));}function Rt(_0x114237,_0x533a49,_0x200297){const _0x253c7e=_0x5f41c4;var _0x30d893=E({},_0x114237['attrs']);_0x200297!=null&&_0x200297[_0x253c7e(0x206)]&&_0x30d893['fill']===_0x253c7e(0x206)&&(_0x30d893[_0x253c7e(0x245)]=_0x200297[_0x253c7e(0x206)]),_0x114237[_0x253c7e(0x29d)]==='mask'&&_0x30d893['id']&&(_0x30d893['id']=_0x30d893['id']+_0x533a49['idSuffix']),Object[_0x253c7e(0x2c2)](_0x30d893)[_0x253c7e(0x334)](function(_0x2164d7){const _0x5da8c6=_0x253c7e;var _0x5f41d2=_0x2164d7[0x0],_0x37ced1=_0x2164d7[0x1];_0x5f41d2==='mask'&&typeof _0x37ced1=='string'&&(_0x30d893[_0x5f41d2]=_0x37ced1[_0x5da8c6(0x169)](/url\(#(.*)\)/,_0x5da8c6(0x37a)[_0x5da8c6(0x2f0)](_0x533a49[_0x5da8c6(0x33c)],')')));});var _0x12b494=_0x533a49[_0x253c7e(0x13e)];return!_0x12b494||_0x12b494[_0x253c7e(0x1c8)]===0x0||(_0x114237['tag']===_0x253c7e(0x29e)&&_0x30d893[_0x253c7e(0x2d7)]&&(_0x30d893[_0x253c7e(0x2d7)]=_0x30d893[_0x253c7e(0x2d7)]+_0x533a49[_0x253c7e(0x33c)]),Object[_0x253c7e(0x2c2)](_0x30d893)[_0x253c7e(0x334)](function(_0xbe660a){const _0x182bbe=_0x253c7e;var _0x4c2df2=_0xbe660a[0x0],_0x47d0fc=_0xbe660a[0x1];typeof _0x47d0fc==_0x182bbe(0x344)&&(_0x30d893[_0x4c2df2]=_0x47d0fc[_0x182bbe(0x169)](/url\(#(.*)\)/,_0x182bbe(0x37a)[_0x182bbe(0x2f0)](_0x533a49[_0x182bbe(0x33c)],')')));})),_0x30d893;}function Dt(_0xee26e4,_0x21ce09){const _0x27435b=_0x5f41c4;var _0x163507,_0x4e4fde=_0x21ce09[_0x27435b(0x13e)];return!_0x4e4fde||_0x4e4fde['length']===0x0?_0xee26e4:_0xee26e4[_0x27435b(0x29d)]==='defs'&&(!((_0x163507=_0xee26e4[_0x27435b(0x2db)])===null||_0x163507===void 0x0)&&_0x163507[_0x27435b(0x1c8)])?E(E({},_0xee26e4),{'children':_0xee26e4[_0x27435b(0x2db)]['map'](function(_0x3e43b3){const _0x498329=_0x27435b;return typeof _0x3e43b3['attrs']['id']==_0x498329(0x344)&&_0x4e4fde&&_0x4e4fde['indexOf'](_0x3e43b3[_0x498329(0x259)]['id'])>-0x1?E(E({},_0x3e43b3),{'attrs':E(E({},_0x3e43b3['attrs']),{'id':_0x3e43b3[_0x498329(0x259)]['id']+_0x21ce09['idSuffix']})}):_0x3e43b3;})}):_0xee26e4;}function Ut(){const _0x20ffbc=_0x5f41c4;return Math[_0x20ffbc(0x117)]()[_0x20ffbc(0x2cf)](0x24)[_0x20ffbc(0x18d)](0x2,0x8);}be[_0x5f41c4(0x2d1)]=_0x5f41c4(0x31a);var Nt={'tag':_0x5f41c4(0x2ca),'attrs':{'fill':'none','viewBox':_0x5f41c4(0x357),'width':'1em','height':_0x5f41c4(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f41c4(0x371)},'children':[{'tag':_0x5f41c4(0x2d9),'attrs':{'stroke':_0x5f41c4(0x124),'d':_0x5f41c4(0x1ec),'strokeLinecap':_0x5f41c4(0x379),'strokeLinejoin':_0x5f41c4(0x379),'strokeWidth':1.2}}]},{'tag':_0x5f41c4(0x107),'attrs':{},'children':[{'tag':_0x5f41c4(0x36e),'attrs':{'id':_0x5f41c4(0x2e0)},'children':[{'tag':_0x5f41c4(0x2d9),'attrs':{'fill':_0x5f41c4(0x2e3),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5f41c4(0x2e0)]},$e=M[_0x5f41c4(0x151)](function(_0x5e7f86,_0x51b8d8){const _0x6adfc3=_0x5f41c4;return M[_0x6adfc3(0x227)](be,Object[_0x6adfc3(0x2a7)]({},_0x5e7f86,{'id':'off-line-single','ref':_0x51b8d8,'icon':Nt}));});$e[_0x5f41c4(0x2d1)]=_0x5f41c4(0x26f);var Mt={'tag':_0x5f41c4(0x2ca),'attrs':{'fill':_0x5f41c4(0x225),'viewBox':_0x5f41c4(0x325),'width':_0x5f41c4(0x21f),'height':_0x5f41c4(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f41c4(0x247)},'children':[{'tag':'path','attrs':{'stroke':_0x5f41c4(0x124),'d':_0x5f41c4(0x11d),'strokeLinecap':_0x5f41c4(0x379),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5f41c4(0x107),'attrs':{},'children':[{'tag':_0x5f41c4(0x36e),'attrs':{'id':_0x5f41c4(0x2b9)},'children':[{'tag':'path','attrs':{'fill':_0x5f41c4(0x2e3),'d':_0x5f41c4(0x2a1),'transform':_0x5f41c4(0x319)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=M[_0x5f41c4(0x151)](function(_0xdd3f18,_0x575f76){const _0x1c67c2=_0x5f41c4;return M[_0x1c67c2(0x227)](be,Object['assign']({},_0xdd3f18,{'id':'on-line-single','ref':_0x575f76,'icon':Mt}));});xe[_0x5f41c4(0x2d1)]='OnLineSingle';const Lt=_0x5f41c4(0x21e),Pt=_0x5f41c4(0x30f),wt=_0x5f41c4(0x36b),At=_0x5f41c4(0x154),yt=_0x5f41c4(0x26a),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x2e07ff){const _0x531f9e=_0x5f41c4;switch(_0x2e07ff){case u[_0x531f9e(0x186)][_0x531f9e(0x1eb)]:return _0x531f9e(0x2c7);case u[_0x531f9e(0x186)][_0x531f9e(0x31e)]:return'collabStatus.conflict';case u[_0x531f9e(0x186)]['FETCH_MISS']:return _0x531f9e(0x1f3);case u[_0x531f9e(0x186)]['NOT_COLLAB']:return _0x531f9e(0x2d8);case u['CollaborationStatus'][_0x531f9e(0x2f5)]:case u[_0x531f9e(0x186)][_0x531f9e(0x197)]:return _0x531f9e(0x19c);case u[_0x531f9e(0x186)]['SYNCED']:case u['CollaborationStatus']['PENDING']:return'collabStatus.synced';}}function je(_0x5e8881){const _0x4ef026=_0x5f41c4,{status$:_0x4dd471}=_0x5e8881,_0x1db0fe=O[_0x4ef026(0x2ea)](_0x4dd471,u[_0x4ef026(0x186)]['NOT_COLLAB']),_0x4c1733=O['useDependency'](a[_0x4ef026(0x1a3)]),_0x591ed2=O[_0x4ef026(0x346)](u[_0x4ef026(0x15b)]),_0x1f3ed6=_0x1db0fe!==u['CollaborationStatus']['OFFLINE'],_0x1122af=_0x4c1733['t']($t(_0x1db0fe)),_0x144b3d=T[_0x4ef026(0x175)](H[_0x4ef026(0x113)],{[H['online']]:_0x1f3ed6,[H[_0x4ef026(0x292)]]:!_0x1f3ed6}),_0xbd1d83=_0x1f3ed6?P[_0x4ef026(0x13a)](xe,{}):P['jsx']($e,{}),_0x204a01=M['useCallback'](()=>{const _0x1cf5e0=_0x4ef026;_0x1f3ed6||_0x591ed2[_0x1cf5e0(0x12b)]();},[_0x1f3ed6,_0x591ed2]);function _0x204e32(){const _0x183b26=_0x4ef026;return P[_0x183b26(0x279)](_0x183b26(0x2fe),{'className':T['clsx'](_0x144b3d,_0x183b26(0x36a)),'onClick':_0x204a01,'children':[P[_0x183b26(0x13a)](_0x183b26(0x2fe),{'className':H['onlineStatusIcon'],'children':_0xbd1d83}),P['jsx'](_0x183b26(0x2fe),{'className':H[_0x183b26(0x14b)],'children':_0x1122af})]});}return _0x1f3ed6?_0x204e32():P['jsx'](T['Tooltip'],{'title':_0x4c1733['t']('collab-client.tooltip.reconnect'),'children':_0x204e32()});}function _0x5234(_0x4f0d59,_0x20e138){const _0x94aa6e=_0x94aa();return _0x5234=function(_0x5234af,_0x550c70){_0x5234af=_0x5234af-0xf7;let _0x3d403e=_0x94aa6e[_0x5234af];return _0x3d403e;},_0x5234(_0x4f0d59,_0x20e138);}var xt=Object[_0x5f41c4(0x16f)],jt=(_0x3d3e74,_0xa05c4c,_0x5f240c,_0x450d20)=>{const _0x547e82=_0x5f41c4;for(var _0x39d076=_0x450d20>0x1?void 0x0:_0x450d20?xt(_0xa05c4c,_0x5f240c):_0xa05c4c,_0x45950a=_0x3d3e74[_0x547e82(0x1c8)]-0x1,_0x376669;_0x45950a>=0x0;_0x45950a--)(_0x376669=_0x3d3e74[_0x45950a])&&(_0x39d076=_0x376669(_0x39d076)||_0x39d076);return _0x39d076;},X=(_0x24d843,_0x124205)=>(_0x14ec1f,_0x9901f)=>_0x124205(_0x14ec1f,_0x9901f,_0x24d843);exports[_0x5f41c4(0x22c)]=class extends a['Disposable']{constructor(_0x46947b,_0x2d0312,_0x574862,_0x1123a0){const _0x2b1f96=_0x5f41c4;super(),_(this,_0x2b1f96(0x165),new d[(_0x2b1f96(0x359))](u[_0x2b1f96(0x186)]['NOT_COLLAB'])),(this[_0x2b1f96(0x1dd)]=_0x46947b,this['_injector']=_0x2d0312,this['_collaborationController']=_0x574862,this[_0x2b1f96(0x125)]=_0x1123a0,this[_0x2b1f96(0x11e)](),this[_0x2b1f96(0x297)]());}[_0x5f41c4(0x297)](){const _0x3c7d05=_0x5f41c4;this[_0x3c7d05(0x30b)](this['_univerInstanceService'][_0x3c7d05(0x294)][_0x3c7d05(0x1ce)](d[_0x3c7d05(0x270)](()=>{const _0x133319=_0x3c7d05,_0x316ee4=this['_univerInstanceService'][_0x133319(0x2d5)]();return _0x316ee4?this[_0x133319(0x16b)][_0x133319(0x33b)](_0x316ee4[_0x133319(0x2da)]()):d['of'](null);}),d['switchMap'](_0x283c75=>_0x283c75?_0x283c75[_0x3c7d05(0x34c)]:d['of'](u['CollaborationStatus'][_0x3c7d05(0x31c)])))[_0x3c7d05(0x309)](_0x1fe3c7=>{const _0x484a8b=_0x3c7d05;this['_status$'][_0x484a8b(0x226)](_0x1fe3c7);}));}[_0x5f41c4(0x11e)](){const _0x54d71c=_0x5f41c4;this[_0x54d71c(0x30b)](this['_uiPartsService'][_0x54d71c(0x1d8)](O['BuiltInUIPart'][_0x54d71c(0x22d)],()=>O[_0x54d71c(0x2c1)](Bt({'status$':this[_0x54d71c(0x165)]['asObservable']()}),this[_0x54d71c(0x2b3)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x5f41c4(0x164)]),X(0x1,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),X(0x2,a[_0x5f41c4(0x180)](u[_0x5f41c4(0x24d)])),X(0x3,O[_0x5f41c4(0x366)])],exports[_0x5f41c4(0x22c)]);function Bt(_0x3196bb){const {status$:_0x58e527}=_0x3196bb;return function(){const _0x282dbc=_0x5234;return P[_0x282dbc(0x13a)](je,{'status$':_0x58e527});};}var kt=Object[_0x5f41c4(0x16f)],Ht=(_0x158291,_0x15f53e,_0x26f96d,_0x34977e)=>{const _0x10a2f6=_0x5f41c4;for(var _0x6cdde5=_0x34977e>0x1?void 0x0:_0x34977e?kt(_0x15f53e,_0x26f96d):_0x15f53e,_0x419c3c=_0x158291[_0x10a2f6(0x1c8)]-0x1,_0x33fcdf;_0x419c3c>=0x0;_0x419c3c--)(_0x33fcdf=_0x158291[_0x419c3c])&&(_0x6cdde5=_0x33fcdf(_0x6cdde5)||_0x6cdde5);return _0x6cdde5;},y=(_0x49343a,_0x5b83c8)=>(_0x1ca545,_0x35b427)=>_0x5b83c8(_0x1ca545,_0x35b427,_0x49343a);let z=class extends a[_0x5f41c4(0x153)]{constructor(_0x1f6d4e,_0x5e600b,_0xded190,_0x1354bf,_0x3881ca,_0x7e5fdb){const _0x2206c0=_0x5f41c4;super(),this[_0x2206c0(0x203)]=_0x1f6d4e,this['_localCacheService']=_0x5e600b,this[_0x2206c0(0x142)]=_0xded190,this['_messageService']=_0x1354bf,this[_0x2206c0(0x173)]=_0x3881ca,this[_0x2206c0(0x240)]=_0x7e5fdb,this[_0x2206c0(0x1e7)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x3daf3a=_0x5f41c4;this['disposeWithMe'](this[_0x3daf3a(0x203)]['registerBeforeClose'](()=>{const _0x1e2718=_0x3daf3a;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x1e2718(0x240)]['t'](_0x1e2718(0x1e2));}));}[_0x5f41c4(0x156)](){const _0x99e182=_0x5f41c4;this[_0x99e182(0x30b)](this[_0x99e182(0x142)][_0x99e182(0x191)][_0x99e182(0x309)](_0xdb626a=>{const _0x1d0228=_0x99e182;_0xdb626a['id']===u[_0x1d0228(0x335)][_0x1d0228(0x2d0)]&&this[_0x1d0228(0x32b)]['show']({'type':T[_0x1d0228(0x303)][_0x1d0228(0xf8)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x1ef))}),_0xdb626a['id']===u['CollaborationUIEventId'][_0x1d0228(0x2c8)]&&this['_messageService'][_0x1d0228(0x2b1)]({'type':T[_0x1d0228(0x303)]['Warning'],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x1a9))}),_0xdb626a['id']===u[_0x1d0228(0x335)][_0x1d0228(0x2ad)]&&this[_0x1d0228(0x173)]['show']({'title':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x2f1)),'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x2cd)),'type':_0x1d0228(0x189),'duration':0x0}),_0xdb626a['id']===u['CollaborationUIEventId'][_0x1d0228(0x31e)]&&this[_0x1d0228(0x32b)][_0x1d0228(0x2b1)]({'type':T[_0x1d0228(0x303)][_0x1d0228(0x207)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x1a9))+'('+_0xdb626a['data']+')'}),_0xdb626a['id']===u[_0x1d0228(0x335)][_0x1d0228(0x2fb)]&&this[_0x1d0228(0x32b)]['show']({'type':T[_0x1d0228(0x303)]['Warning'],'content':this[_0x1d0228(0x240)]['t'](_0xdb626a[_0x1d0228(0xfd)]||'')}),_0xdb626a['id']===u[_0x1d0228(0x335)]['SOCKET_FAILED_RETRY']&&this[_0x1d0228(0x32b)][_0x1d0228(0x2b1)]({'type':T['MessageType'][_0x1d0228(0xf8)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x2b4))}),_0xdb626a['id']===u['CollaborationUIEventId'][_0x1d0228(0x275)]&&this[_0x1d0228(0x32b)][_0x1d0228(0x2b1)]({'type':T[_0x1d0228(0x303)][_0x1d0228(0x207)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x284))}),_0xdb626a['id']===u[_0x1d0228(0x335)][_0x1d0228(0x2c4)]&&this['_messageService'][_0x1d0228(0x2b1)]({'type':T[_0x1d0228(0x303)][_0x1d0228(0x207)],'content':this[_0x1d0228(0x240)]['t'](_0x1d0228(0x28a))});}));}};function _0x94aa(){const _0x40c2a0=['pushState','offline','rgba(255,\x20255,\x20255,\x200.01)','focused$','FromArray','result','_initStatusListener','arc','InsertRangeMoveRightCommandId','location','TEXT_RANGE_LAYER_INDEX','INVITE_CODE_HAS_BEEN_UES','tag','use','_updateURLWithCurrentState','@univerjs/sheets','M0\x200H16V16H0z','red300','clearInterval','9XOqNKe','gold400','_registerDependencies','assign','transformMutation','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_labelPosition','IMessageService','_drawRectRange','PERMISSION_DENIED','with','IURLService','_themeService','show','MoveRangeCommandId','_injector','session.will-retry','DocStateChangeManagerService','lineTo','setConfig','send','on-line-single_clip0_910_349','_scheduleSaving','_send','Workbook','clearTimeout','entityInit$','_online','onPointerMove$','connectInjector','entries','cursorInfo','SUBMIT_CHANGESET_TIMEOUT','map','updateOfflineData','collabStatus.offline','CLOSE_ROOM','dispose','svg','jiqing500','startColumn','permission.content','LICENSE_DISTRO_REJECTED','toString','OTHER_CLIENT_EDITING','displayName','propertyIsEnumerable','ITransformService','/run/','getFocusedUnit','_cursorShapes','xlink:href','collabStatus.notCollab','path','getUnitId','children','UNDEFINED','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','_docTransformSelectionsService','off-line-single_clip0_910_343','size','setAlpha','#fff','deepClone','_getSheetObject','unitID','pluginName','createIdentifier','@univerjs/sheets-ui','useObservable','cursorInfo$','_initEntityListener','LOCAL_CACHE_INTERVAL','newValue','RxDisposable','concat','permission.title','getMergeData','ILocalCacheService','2436594oInvGS','AWAITING','_session','_getAnchorBounding','source','bottom','_logService','JOIN_ROOM_FAILED','@univerjs/docs-ui','IRemoteInstanceService','div','IImageIoService','_getMergeRange','uni.network.url-service','getDocRanges','MessageType','memberID','isTransformMutationFailure','_id','InsertRowCommandId','init','subscribe','10HbCWgq','disposeWithMe','getRelativeToViewportCoord','sheetID','react','univer-online-status-title','defineProperty','width','_drawAnchor','disposeUnit','_hideTimer','_range','hasOwnProperty','OTHER_CLIENTS_EDITING','extend','translate(.97)','UniverIcon','UNAUTHENTICATED','NOT_COLLAB','_context','CONFLICT','_document','YUUMI_SUBSCRIPTION_NOT_FOUND','unshift','generateRandomId','imageSourceType','1335412MJcjCK','0\x200\x2017\x2016','_dataLoaderService','SetDocZoomRatioOperation','restore','@univerjs/core','getLocalCacheKey','_messageService','addObject','font','handleMoveRange','_anchorDot','stringify','ColorKit','_handleEvent','_selfUnitIDs','forEach','CollaborationUIEventId','getMember','IConfigService','black','toRgbString','_docClipboardService','getCollabEntity$','idSuffix','textRanges','_clearOtherTimers','complete','includes','_entities','disableLocalCache','EMAIL_HAS_BEEN_BOUND','string','DocSkeletonManagerService','useDependency','name','getUnitStatus$','_instanceService','Rect','row','status$','6670248WPsufs','_scheduleHeartbeat','_createSocketURL','apply','_cursor','urlChange$','_docSkeletonManagerService','mutations','invokeId','onCommandExecuted','0\x200\x2016\x2016','APPLY_NON_SEQUENTIAL_REVISION','BehaviorSubject','sessionStatus$','COLORS','debug','@univerjs/design','getCurrentUnitForType','setParam','EffectRefRangId','beginPath','getUndoRedoMutationParamsCache','_onCursorUpdate','YUUMI_UNABLE_LOAD_URL','distinctUntilChanged','IUIPartsService','NOT_FOUND','_transformService','then','univer-flex\x20univer-items-center','univer-online-status','_handleLeaveEvent','indexOf','clipPath','_imageIoService','body','url(#off-line-single_clip0_910_343)','UniverInstanceType','saveOfflineData','all','_collabCursorState$','subscribeEvent','_startSheetCollabCursor','onTransformChange$','round','url(#$1','ThemeService','Warning','origin','univerjs-icon\x20univerjs-icon-','_roomMembers$','unit','data','_urlService','isActive','_updateCollabCursors','_onRefRangeChange','color','_localStorageService','addEventListener','MUTATION','CollaborationDataLoaderController','defs','USERS_LEAVE','code','RemoteUniscriptService','transformMutationsWithChangeset','getCurrent','filter','getCollabCursors$','setItem','INTERNAL_ERROR','_eventUnsubscribe','eventID','onlineStatus','assignAColorForMemberID','ACTIVE_UNIT_EVENT_CHANNEL','SetWorksheetActivateCommand','random','_colorIndex','SNAPSHOT_HAS_BEEN_REMOVED','_getSessionTicket','@univerjs/rpc','blue400','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','_initStatusComponent','resize','PY_RUNTIME_SCRIPT_ERROR','handleIRemoveRow','_handleJoinEvent','getSheetBySheetId','currentColor','_uiPartsService','SheetSkeletonManagerService','currentTheme$','merge','UPDATE_CURSOR','ICommandService','reconnect','WebSocketService','backgroundColor','parse','USER_NOT_INVITED_CODE','SetSelectionsOperation','_updateLocalCursor','_assignedColors','_color','getStateCache','undoState','SheetCollabCursorShape','_cachedData','DependentOn','Shape','jsx','getConfig','onPointerLeave$','getActiveRange','defIds','getUnhiddenWorksheets','setShapeProps','getRangePointData','_collaborationUIEventService','some','@univerjs/engine-formula','IBeforeCloseService','_colorAssignService','skeleton','hide','mapTo','YUUMI_URL_COL_OUT_OF_RANGE','onlineStatusTitle','application/json','INVALID_ARGUMENT','ALREADY_EXISTS','redoState','WebBrowserSingleActiveUnitService','forwardRef','requireSession','Disposable','univer-online','getColor','_initEvent','editingUnit','getSkeleton','LOGIN_FAILED','@univerjs/drawing','CollaborationSessionService','UniverCollaborationClientPlugin','APPLY_REVISION_CONFILICT','_commandService','popstate','transformIMECache','evenodd','onMouseMove','2498250dSioUB','IUniverInstanceService','_status$','_memberService','_drawTextRange','_renderManagerService','replace','fillRule','_collaborationController','2GfTxuY','_transformUndoRedoStack','CommandType','getOwnPropertyDescriptor','Plugin','registerRefRange','takeUntil','_notificationService','asObservable','clsx','DocIMEInputManagerService','@univerjs/ui','UnitStatus','_cursors','_initCommandExecutedListener','_registerRenderDependencies','_collabCursorController','_initDependencies','split','LICENSE_IMPORT_SIZE_EXCEEDED','Inject','useRef','WECHAT_HAS_BEEN_BOUND','type','ONLINE','_init','CollaborationStatus','_refRangeService','Injector','error','dispose$','touchDependencies','measureText','substring','override','APPLY_DUPLICATED','call','event$','UNRECOGNIZED','className','getTypeOfUnitAdded$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_name','AWAITING_WITH_PENDING','@univerjs/engine-render','TOO_MANY_REQUESTS','UNIVER_SHEET','SNAPSHOT_INVALID_SNAPSHOT','collabStatus.syncing','_lastPointer','UniverCollaborationClientUIPlugin','getItem','executeCommand','IRenderManagerService','COMPLETION_FINISHED','LocaleService','handleInsertRow','_anchor','icon','purple300','getViewport','collaboration.closeRoom','syncEditingCollabCursor','_doCreateSocket','863408XQIaRW','_backgroundColor','getParam','_onCursorDelete','handleDeleteRangeMoveUp','CollaborationSocketService','endColumn','Tools','TEXT','_initResize','onLocalMutation','closePath','onRendered','_docStateChangeManagerService','height','doc.mutation.rich-text-editing','MemberService','actions','wsSessionTicketUrl','YUUMI_NO_CUBOID_FOR_QUESTION','SessionStatus','replaceState','moveTo','Failed','setTimeout','isArray','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_draw','length','createInstance','ILocalStorageService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_entityInit$','pipe','hovered','function','delete','getSheetObject','APPLY_PERMISSION_DENIED','Module','sheetId','_handleHeartbeatEvent','INVITE_CODE_REQUIRED','registerComponent','save','RefRangeService','combineLatest','transform','_univerInstanceService','_configService','BrowserCollaborationSocketService','fromEvent','[CollaborationDataLoaderController]','collaboration-client.offline-data-not-saved','CollaborationStatusDisplay','HTTPService','onStarting','contains','_setupBeforeClosingHandler','_saveCache','handleInsertRangeMoveRight','loadUnit','OFFLINE','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','unitId','DisposableCollection','collaboration.single-unit.warning','transformStateCache','CHANGESET_REVISION_CONFILICT','getRenderById','collabStatus.fetchMiss','triggerDblclick','get','RichTextEditingMutation','transformByState','range','drawWith','registerDependencies','find','_scheduleClearOtherTimer','setUndoRedoMutationParamsCache','_docSyncEditingCollabCursorService','_config','YUUMI_ASYNCIO_CANCELLED','_removeCollabCursors','ranges','_beforeCloseService','ISocketService','min','colorChannel1','Error','serializeRangeWithSheet','loadOfflineData','transformSelections','add','_disabled','mergeOverrideWithDependencies','top','isTransformMutationsWithChangesetSuccess','_ensureSubject','@univerjs/docs','post','CONNECTOR_DATA_TOO_LARGE','NO_OTHER_CLIENTS_EDITING','INotificationService','RECT','_unitStatus','_refreshCollabCursors','_revisionService','_heartbeatTimer','ISnapshotServerService','_httpService','fillText','univer-online-status-icon','1em','subunit','Subject','_removeClearOtherTimer','docStateChange$','getValue','none','next','createElement','current','DEFAULT_WS_SESSION_TICKET_URL','121zlEGRp','ticket','DesktopCollaborationStatusDisplayController','HEADER_MENU','params','replaceDocRanges','values','CollaborationEvent','runId','_toggleOffline','...','subUnitId','WebURLService','m1Prime','_collabSessionService','from','_updateSubUnitFromURLParams','text','_hovered','_scene','RevisionService','APPLY_REJECT','_localeService','fillStyle','getAncestorScale','LICENSE_EXPORT_SIZE_EXCEEDED','_handleHover','fill','_textBubble','url(#on-line-single_clip0_910_349)','selection','ILogService','InsertColCommandId','getMemberID','debounce','CollaborationController','_saveTaskMap','addObjects','prototype','exhaustSavingTask','getUniverSheetInstance','runRefRangeMutations','1627380qVrKph','#FFF','column','UNIVER_DOC','m2Prime','attrs','_cursorInfo$','_unitOnClients','_startDocCollabCursor','INVITE_CODE_ALREADY_BOUND','searchParams','getOwnPropertySymbols','RegularPolygon','transformRemoteChangeset','_hover','handleDeleteRangeMoveLeft','roomMembers$','verdancy600','DOC_RANGE_TYPE','saveImage','_docTransformIMECacheService','_docTransformStateCacheService','univer-offline','currentSkeleton$','getTypeOfUnitDisposed$','trim','setActiveRange','OffLineSingle','switchMap','href','whenReady','rxjs/operators','_sheetSkeletonManagerService','SOCKET_FAILED','YUUMI_RATE_OVER_LIMIT','1607932vedOvm','MOBILE_HAS_BEEN_BOUND','jsxs','findNodePositionByCharIndex','collabCursorState$','getCoordByCell','push','_syncEditingCollabCursorService','_toggleOnline','history','Unknown\x20user','symbol','deserializeRangeWithSheet','session.connection-failed','makeDirty','isEditing','has','registerRenderModule','toDisposable','session.collaboration-timeout','getSheetId','set','onPointerEnter$','DocSelectionManagerService','SheetsSelectionsService','_shapes'];_0x94aa=function(){return _0x40c2a0;};return _0x94aa();}z=Ht([y(0x0,O[_0x5f41c4(0x145)]),y(0x1,u[_0x5f41c4(0x2f3)]),y(0x2,a[_0x5f41c4(0x180)](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O[_0x5f41c4(0x215)]),y(0x5,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x1a3)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a[_0x5f41c4(0x2e8)](_0x5f41c4(0x301));var Wt=Object[_0x5f41c4(0x16f)],Yt=(_0x2e226b,_0x4d7734,_0x5eed50,_0x2f5383)=>{const _0x37d5d8=_0x5f41c4;for(var _0x218850=_0x2f5383>0x1?void 0x0:_0x2f5383?Wt(_0x4d7734,_0x5eed50):_0x4d7734,_0x31fc9d=_0x2e226b[_0x37d5d8(0x1c8)]-0x1,_0x2a6d2c;_0x31fc9d>=0x0;_0x31fc9d--)(_0x2a6d2c=_0x2e226b[_0x31fc9d])&&(_0x218850=_0x2a6d2c(_0x218850)||_0x218850);return _0x218850;},F=(_0x4f463f,_0x1d22ca)=>(_0x306a7f,_0x28ac7e)=>_0x1d22ca(_0x306a7f,_0x28ac7e,_0x4f463f);exports[_0x5f41c4(0x106)]=class extends a[_0x5f41c4(0x2ef)]{constructor(_0x2608d7,_0x223038,_0x4c4dcb,_0x276d1b,_0x5e9e59){const _0x3e988c=_0x5f41c4;super(),this['_urlService']=_0x2608d7,this[_0x3e988c(0x2fa)]=_0x223038,this[_0x3e988c(0x15e)]=_0x4c4dcb,this['_dataLoaderService']=_0x276d1b,_0x5e9e59?_0x5e9e59==null||_0x5e9e59[_0x3e988c(0x272)]()['then'](()=>this[_0x3e988c(0x185)]()):(this[_0x3e988c(0x2fa)][_0x3e988c(0x35c)](_0x3e988c(0x1e1),_0x3e988c(0x195)),this['_init']());}async[_0x5f41c4(0x185)](){const _0x47f3b7=_0x5f41c4,_0x55a8ed=this['_urlService'][_0x47f3b7(0x1ae)](_0x47f3b7(0xfc)),_0x24ed85=this[_0x47f3b7(0xfe)]['getParam']('type'),_0x2bb3d4=this[_0x47f3b7(0xfe)][_0x47f3b7(0x1ae)]('subunit');if(!_0x55a8ed||!_0x24ed85){this[_0x47f3b7(0x2fa)]['debug'](_0x47f3b7(0x1e1),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4ff821=await this[_0x47f3b7(0x326)][_0x47f3b7(0x1ea)](_0x55a8ed,Number(_0x24ed85),_0x2bb3d4);_0x4ff821&&_0x4ff821 instanceof a[_0x47f3b7(0x2bc)]&&this['_setupSubUnitSync'](_0x4ff821);}async['_setupSubUnitSync'](_0x169bcd){const _0x32d547=_0x5f41c4;await this[_0x32d547(0x23a)](_0x169bcd),_0x169bcd['activeSheet$']['pipe'](d['takeUntil'](this[_0x32d547(0x18a)]))['subscribe'](_0x589f7b=>{const _0x2849a3=_0x32d547;_0x589f7b&&this[_0x2849a3(0x29f)](_0x589f7b);}),this[_0x32d547(0xfe)][_0x32d547(0x352)][_0x32d547(0x1ce)](d['takeUntil'](this[_0x32d547(0x18a)]))[_0x32d547(0x309)](()=>this['_updateSubUnitFromURLParams'](_0x169bcd));}[_0x5f41c4(0x29f)](_0x13a502,_0x16c0da=!0x1){const _0x82c62b=_0x5f41c4,_0x86b928=this[_0x82c62b(0xfe)][_0x82c62b(0x1ae)](_0x82c62b(0x220));_0x13a502[_0x82c62b(0x28b)]()!==_0x86b928&&this[_0x82c62b(0xfe)][_0x82c62b(0x35f)](_0x82c62b(0x220),_0x13a502[_0x82c62b(0x28b)](),_0x16c0da);}async['_updateSubUnitFromURLParams'](_0x373f78){const _0x8b12f5=_0x5f41c4;var _0x578fdc;const _0x4cf38a=this[_0x8b12f5(0xfe)][_0x8b12f5(0x1ae)](_0x8b12f5(0x220));if(!_0x4cf38a||!_0x373f78['getSheetBySheetId'](_0x4cf38a)){const _0x52ebed=_0x373f78[_0x8b12f5(0x13f)]()[0x0],_0x3fca93=_0x373f78[_0x8b12f5(0x123)](_0x52ebed);if(!_0x3fca93)return;this[_0x8b12f5(0x29f)](_0x3fca93,!0x0),await this[_0x8b12f5(0x15e)][_0x8b12f5(0x1a0)](g[_0x8b12f5(0x116)]['id'],{'unitId':_0x373f78[_0x8b12f5(0x2da)](),'subUnitId':_0x52ebed});return;}((_0x578fdc=_0x373f78['getActiveSheet']())==null?void 0x0:_0x578fdc[_0x8b12f5(0x28b)]())!==_0x4cf38a&&await this[_0x8b12f5(0x15e)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x373f78[_0x8b12f5(0x2da)](),'subUnitId':_0x4cf38a});}},exports[_0x5f41c4(0x106)]=Yt([F(0x0,Ee),F(0x1,a[_0x5f41c4(0x249)]),F(0x2,a[_0x5f41c4(0x12a)]),F(0x3,a[_0x5f41c4(0x180)](u['DataLoaderService'])),F(0x4,a['Optional'](Ke[_0x5f41c4(0x2fd)]))],exports[_0x5f41c4(0x106)]);var Vt=Object[_0x5f41c4(0x16f)],Xt=(_0x44feac,_0x592d40,_0x3bb74a,_0x25a374)=>{for(var _0xcceabd=_0x25a374>0x1?void 0x0:_0x25a374?Vt(_0x592d40,_0x3bb74a):_0x592d40,_0x13f404=_0x44feac['length']-0x1,_0xb5f1f2;_0x13f404>=0x0;_0x13f404--)(_0xb5f1f2=_0x44feac[_0x13f404])&&(_0xcceabd=_0xb5f1f2(_0xcceabd)||_0xcceabd);return _0xcceabd;},le=(_0xf4c52f,_0x196b0a)=>(_0x163390,_0x1edfdb)=>_0x196b0a(_0x163390,_0x1edfdb,_0xf4c52f);let J=class{constructor(_0x333d46,_0x512f59,_0x55ffd0){const _0x34353c=_0x5f41c4;this[_0x34353c(0x2b3)]=_0x333d46,this['_transformService']=_0x512f59,this[_0x34353c(0x168)]=_0x55ffd0;}[_0x5f41c4(0x160)](_0x12f7cb){this['_transformUndoRedoStack'](_0x12f7cb),this['_transformPreviousActiveRange'](_0x12f7cb);}[_0x5f41c4(0x261)](_0x4a426b){const _0xf2d465=_0x5f41c4,{unitID:_0xa1ca6d}=_0x4a426b,_0x5c1a49=this[_0xf2d465(0x168)][_0xf2d465(0x1f2)](_0xa1ca6d)[_0xf2d465(0x2ae)](b[_0xf2d465(0x176)]),{redoCache:_0x3cb275}=_0x5c1a49[_0xf2d465(0x362)]();if(_0x3cb275[_0xf2d465(0x1c8)]===0x0)return _0x4a426b;let _0x6b5de3=a[_0xf2d465(0x1b3)][_0xf2d465(0x2e4)](_0x4a426b[_0xf2d465(0x354)][0x0]);for(let _0x32904a=0x0;_0x32904a<_0x3cb275['length'];_0x32904a++){const _0x50d0f9={'id':'doc.mutation.rich-text-editing','params':{..._0x3cb275[_0x32904a]}},_0x2e45a6=this['_transformService'][_0xf2d465(0x2a8)](_0x6b5de3,_0x50d0f9,!0x1);if(m[_0xf2d465(0x305)](_0x2e45a6))throw _0x2e45a6['error'];_0x6b5de3=_0x2e45a6[_0xf2d465(0x237)];}return{...a[_0xf2d465(0x1b3)][_0xf2d465(0x2e4)](_0x4a426b),'mutations':[_0x6b5de3]};}[_0x5f41c4(0x16d)](_0x108a9b){const _0x15197a=_0x5f41c4,{unitID:_0x2e0e9f}=_0x108a9b,_0x473181=this[_0x15197a(0x168)]['getRenderById'](_0x2e0e9f)[_0x15197a(0x2ae)](b[_0x15197a(0x176)]),{undoCache:_0x542aab,redoCache:_0x34050f}=_0x473181['getUndoRedoMutationParamsCache']();if(_0x542aab[_0x15197a(0x1c8)]===0x0||_0x34050f[_0x15197a(0x1c8)]===0x0)return;const _0x20aa95=[],_0x5d49ee=[];let _0x143445=a[_0x15197a(0x1b3)]['deepClone'](_0x108a9b[_0x15197a(0x354)][0x0]),_0x5aa15f=a[_0x15197a(0x1b3)]['deepClone'](_0x108a9b[_0x15197a(0x354)][0x0]);for(let _0x56e6cc=_0x542aab[_0x15197a(0x1c8)]-0x1;_0x56e6cc>=0x0;_0x56e6cc--){const _0xa73fb8={'id':_0x15197a(0x1bb),'params':{..._0x542aab[_0x56e6cc]}},_0x16253b={'id':'doc.mutation.rich-text-editing','params':{..._0x34050f[_0x56e6cc]}},_0x21f1b9=this[_0x15197a(0x368)]['transformMutation'](_0x143445,_0xa73fb8,!0x1),_0xc8048=this['_transformService'][_0x15197a(0x2a8)](_0x5aa15f,_0x16253b,!0x1);if(m[_0x15197a(0x305)](_0x21f1b9))throw _0x21f1b9[_0x15197a(0x189)];if(m[_0x15197a(0x305)](_0xc8048))throw _0xc8048[_0x15197a(0x189)];_0x20aa95[_0x15197a(0x321)](_0x21f1b9[_0x15197a(0x258)][_0x15197a(0x22e)]),_0x5d49ee['unshift'](_0xc8048['m2Prime'][_0x15197a(0x22e)]),_0x143445=_0x21f1b9[_0x15197a(0x237)],_0x5aa15f=_0xc8048[_0x15197a(0x237)];}_0x473181[_0x15197a(0x1fd)]({'undoCache':_0x20aa95,'redoCache':_0x5d49ee});}['_transformPreviousActiveRange'](_0x4469dc){const _0x16a522=_0x5f41c4,{unitID:_0x5f0f98}=_0x4469dc,_0x136647=this[_0x16a522(0x168)][_0x16a522(0x1f2)](_0x5f0f98)[_0x16a522(0x2ae)](b[_0x16a522(0x176)]),_0x1d0a84=_0x136647[_0x16a522(0x13d)]();if(_0x1d0a84==null)return;const _0x5a786b=[{'id':_0x16a522(0x1bb),'params':{'unitId':_0x4469dc['unitID'],'actions':null,'textRanges':[_0x1d0a84]}}],_0x38d100=this['_transformService'][_0x16a522(0x10b)](_0x4469dc,_0x5a786b);if(!m[_0x16a522(0x20f)](_0x38d100))throw _0x38d100[_0x16a522(0x189)];const _0x18e971=_0x38d100[_0x16a522(0x258)][0x0]['params'][_0x16a522(0x33d)];Array[_0x16a522(0x1c5)](_0x18e971)&&_0x18e971[_0x16a522(0x1c8)]&&_0x136647[_0x16a522(0x26e)](_0x18e971[0x0]);}};J=Xt([le(0x0,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),le(0x1,m[_0x5f41c4(0x2d3)]),le(0x2,p[_0x5f41c4(0x1a1)])],J);var Gt=Object[_0x5f41c4(0x16f)],qt=(_0x4d250c,_0x282128,_0x1c82f1,_0x42467c)=>{const _0x54fa0c=_0x5f41c4;for(var _0x4a3b5f=_0x42467c>0x1?void 0x0:_0x42467c?Gt(_0x282128,_0x1c82f1):_0x282128,_0x5381f4=_0x4d250c[_0x54fa0c(0x1c8)]-0x1,_0x1df113;_0x5381f4>=0x0;_0x5381f4--)(_0x1df113=_0x4d250c[_0x5381f4])&&(_0x4a3b5f=_0x1df113(_0x4a3b5f)||_0x4a3b5f);return _0x4a3b5f;},_e=(_0x2f4562,_0x2441cc)=>(_0x537b02,_0x5dc687)=>_0x2441cc(_0x537b02,_0x5dc687,_0x2f4562);let Z=class{constructor(_0x1f26f0,_0x4705ff,_0x3eaf3f){const _0x4179b6=_0x5f41c4;this['_injector']=_0x1f26f0,this['_transformService']=_0x4705ff,this[_0x4179b6(0x1b9)]=_0x3eaf3f;}[_0x5f41c4(0x1f0)](_0x12af3f){this['_transformHistoryAndStateStack'](_0x12af3f);}['transformRemoteChangeset'](_0xa074d1){const _0x8799f7=_0x5f41c4,{unitID:_0x2dd0eb}=_0xa074d1,{collaboration:_0x57a612}=this['_docStateChangeManagerService'][_0x8799f7(0x134)](_0x2dd0eb);if(_0x57a612[_0x8799f7(0x1c8)]===0x0)return _0xa074d1;let _0x46fe8f=a[_0x8799f7(0x1b3)][_0x8799f7(0x2e4)](_0xa074d1[_0x8799f7(0x354)][0x0]);for(let _0x422de2=0x0;_0x422de2<_0x57a612[_0x8799f7(0x1c8)];_0x422de2++){const _0x33adaa={'id':_0x8799f7(0x1bb),'params':{'unitId':_0x57a612[_0x422de2][_0x8799f7(0x1ed)],..._0x57a612[_0x422de2][_0x8799f7(0x14f)]}},_0x1e5d5c=this[_0x8799f7(0x368)][_0x8799f7(0x2a8)](_0x46fe8f,_0x33adaa,!0x1);if(m[_0x8799f7(0x305)](_0x1e5d5c))throw _0x1e5d5c[_0x8799f7(0x189)];_0x46fe8f=_0x1e5d5c[_0x8799f7(0x237)];}return{...a[_0x8799f7(0x1b3)]['deepClone'](_0xa074d1),'mutations':[_0x46fe8f]};}['_transformHistoryAndStateStack'](_0xc27a7e){const _0x512caa=_0x5f41c4,{unitID:_0x756eac}=_0xc27a7e,{history:_0x52e6a4,collaboration:_0x414ab0}=this[_0x512caa(0x1b9)][_0x512caa(0x134)](_0x756eac);if(_0x52e6a4[_0x512caa(0x1c8)]===0x0&&_0x414ab0[_0x512caa(0x1c8)]===0x0)return;const _0x2657be=[],_0x363cd0=[];let _0x120183=a[_0x512caa(0x1b3)]['deepClone'](_0xc27a7e[_0x512caa(0x354)][0x0]),_0x2fbdfd=a[_0x512caa(0x1b3)][_0x512caa(0x2e4)](_0xc27a7e[_0x512caa(0x354)][0x0]);for(let _0x3d2b07=_0x52e6a4[_0x512caa(0x1c8)]-0x1;_0x3d2b07>=0x0;_0x3d2b07--){const _0x3dce19={'id':_0x512caa(0x1bb),'params':{'unitId':_0x52e6a4[_0x3d2b07]['unitId'],..._0x52e6a4[_0x3d2b07][_0x512caa(0x135)]}},_0x4f9d51={'id':_0x512caa(0x1bb),'params':{'unitId':_0x52e6a4[_0x3d2b07][_0x512caa(0x1ed)],..._0x52e6a4[_0x3d2b07][_0x512caa(0x14f)]}},_0x2c4668=this['_transformService'][_0x512caa(0x2a8)](_0x120183,_0x3dce19,!0x1),_0x2ab9c9=this['_transformService'][_0x512caa(0x2a8)](_0x2fbdfd,_0x4f9d51,!0x1);if(m['isTransformMutationFailure'](_0x2c4668))throw _0x2c4668[_0x512caa(0x189)];if(m['isTransformMutationFailure'](_0x2ab9c9))throw _0x2ab9c9['error'];_0x2657be[_0x512caa(0x321)]({..._0x52e6a4[_0x3d2b07],'undoState':_0x2c4668['m2Prime'][_0x512caa(0x22e)],'redoState':_0x2ab9c9[_0x512caa(0x258)][_0x512caa(0x22e)]}),_0x120183=_0x2c4668['m1Prime'],_0x2fbdfd=_0x2ab9c9[_0x512caa(0x237)];}_0x120183=a[_0x512caa(0x1b3)]['deepClone'](_0xc27a7e[_0x512caa(0x354)][0x0]),_0x2fbdfd=a[_0x512caa(0x1b3)][_0x512caa(0x2e4)](_0xc27a7e['mutations'][0x0]);for(let _0x40185f=_0x414ab0[_0x512caa(0x1c8)]-0x1;_0x40185f>=0x0;_0x40185f--){const _0x691f22={'id':_0x512caa(0x1bb),'params':{'unitId':_0x414ab0[_0x40185f]['unitId'],..._0x414ab0[_0x40185f]['undoState']}},_0x805177={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x414ab0[_0x40185f][_0x512caa(0x1ed)],..._0x414ab0[_0x40185f][_0x512caa(0x14f)]}},_0xea98c2=this[_0x512caa(0x368)][_0x512caa(0x2a8)](_0x120183,_0x691f22,!0x1),_0x3b0193=this[_0x512caa(0x368)]['transformMutation'](_0x2fbdfd,_0x805177,!0x1);if(m[_0x512caa(0x305)](_0xea98c2))throw _0xea98c2[_0x512caa(0x189)];if(m[_0x512caa(0x305)](_0x3b0193))throw _0x3b0193[_0x512caa(0x189)];_0x363cd0['unshift']({..._0x414ab0[_0x40185f],'undoState':_0xea98c2[_0x512caa(0x258)][_0x512caa(0x22e)],'redoState':_0x3b0193[_0x512caa(0x258)][_0x512caa(0x22e)]}),_0x120183=_0xea98c2[_0x512caa(0x237)],_0x2fbdfd=_0x3b0193[_0x512caa(0x237)];}this[_0x512caa(0x1b9)]['setStateCache'](_0x756eac,{'history':_0x2657be,'collaboration':_0x363cd0});}};Z=qt([_e(0x0,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),_e(0x1,m['ITransformService']),_e(0x2,a['Inject'](b['DocStateChangeManagerService']))],Z);var Kt=Object[_0x5f41c4(0x16f)],zt=(_0x243203,_0x31e79c,_0x59e26b,_0x371a3f)=>{for(var _0x271325=_0x371a3f>0x1?void 0x0:_0x371a3f?Kt(_0x31e79c,_0x59e26b):_0x31e79c,_0x44770e=_0x243203['length']-0x1,_0x5d61b3;_0x44770e>=0x0;_0x44770e--)(_0x5d61b3=_0x243203[_0x44770e])&&(_0x271325=_0x5d61b3(_0x271325)||_0x271325);return _0x271325;},Me=(_0x4bb162,_0x1fe158)=>(_0x27f881,_0x45f2dd)=>_0x1fe158(_0x27f881,_0x45f2dd,_0x4bb162);let Q=class{constructor(_0x37e778,_0x1db772){const _0x12df5c=_0x5f41c4;this['_injector']=_0x37e778,this[_0x12df5c(0x368)]=_0x1db772;}['transformSelections'](_0x242c02){const _0x5dfe91=_0x5f41c4;var _0x8ba2b5;const _0x4c26b6=this[_0x5dfe91(0x2b3)][_0x5dfe91(0x1f5)](Y[_0x5dfe91(0x28e)]),_0x27c024=(_0x8ba2b5=_0x4c26b6[_0x5dfe91(0x302)]())!=null?_0x8ba2b5:[];if(_0x27c024['length']===0x0)return;const _0x1691e9=_0x242c02[_0x5dfe91(0x2e6)],_0x34a3e1=[{'id':_0x5dfe91(0x1bb),'params':{'unitId':_0x1691e9,'actions':null,'textRanges':_0x27c024}}],_0x43858b=this[_0x5dfe91(0x368)][_0x5dfe91(0x10b)](_0x242c02,_0x34a3e1);if(!m[_0x5dfe91(0x20f)](_0x43858b))throw _0x43858b[_0x5dfe91(0x189)];const _0x2c3bcc=_0x43858b['m2Prime'][0x0][_0x5dfe91(0x22e)]['textRanges'];Array['isArray'](_0x2c3bcc)&&_0x2c3bcc[_0x5dfe91(0x1c8)]&&_0x4c26b6[_0x5dfe91(0x22f)](_0x2c3bcc,{'unitId':_0x1691e9,'subUnitId':_0x1691e9},!0x1);}};Q=zt([Me(0x0,a['Inject'](a['Injector'])),Me(0x1,m[_0x5f41c4(0x2d3)])],Q);var Jt=Object[_0x5f41c4(0x16f)],Zt=(_0x4e041b,_0x5e5b33,_0x5796c9,_0x826b20)=>{const _0xdaacf4=_0x5f41c4;for(var _0x37effb=_0x826b20>0x1?void 0x0:_0x826b20?Jt(_0x5e5b33,_0x5796c9):_0x5e5b33,_0x1527ae=_0x4e041b[_0xdaacf4(0x1c8)]-0x1,_0x18e406;_0x1527ae>=0x0;_0x1527ae--)(_0x18e406=_0x4e041b[_0x1527ae])&&(_0x37effb=_0x18e406(_0x37effb)||_0x37effb);return _0x37effb;},N=(_0x55fb86,_0x45bac6)=>(_0x1f5f32,_0x196a44)=>_0x45bac6(_0x1f5f32,_0x196a44,_0x55fb86);let ee=class extends a[_0x5f41c4(0x153)]{constructor(_0x261d60,_0x3d6777,_0x46e7b8,_0x421d23,_0x16d494,_0x175163,_0x452240,_0x2c1ea5){const _0x1f2750=_0x5f41c4;super(),_(this,_0x1f2750(0x165),new d[(_0x1f2750(0x359))](u['CollaborationStatus'][_0x1f2750(0x31c)])),(this[_0x1f2750(0x1b9)]=_0x261d60,this[_0x1f2750(0x16b)]=_0x3d6777,this['_docTransformIMECacheService']=_0x46e7b8,this[_0x1f2750(0x269)]=_0x421d23,this[_0x1f2750(0x2df)]=_0x16d494,this[_0x1f2750(0x1fe)]=_0x175163,this['_messageService']=_0x452240,this[_0x1f2750(0x240)]=_0x2c1ea5,this[_0x1f2750(0x2ec)]());}[_0x5f41c4(0x2ec)](){const _0x537bc9=_0x5f41c4;this['disposeWithMe'](this['_collaborationController'][_0x537bc9(0x2be)]['subscribe'](_0x13173e=>{const _0x72e0e=_0x537bc9,_0x54562b=this[_0x72e0e(0x1b9)][_0x72e0e(0x223)][_0x72e0e(0x309)](_0xb57169=>{const _0x1004a6=_0x72e0e;if(_0xb57169==null)return;const {unitId:_0x2bd22e,redoState:_0x3c30e4,commandId:_0x4b23e8}=_0xb57169;if(_0x2bd22e!==_0x13173e[_0x1004a6(0x2e6)])return;const _0x14f62a={'id':_0x4b23e8,'type':a[_0x1004a6(0x16e)][_0x1004a6(0x105)],'params':{'unitId':_0x2bd22e,'actions':_0x3c30e4[_0x1004a6(0x1bd)],'textRanges':null}};_0x13173e[_0x1004a6(0x1b6)](_0x14f62a);});if(_0x13173e[_0x72e0e(0x30b)](_0x54562b),_0x13173e instanceof u['DocCollaborationEntity']){const _0x4cb065={'onTransformIME':_0x44a9aa=>this[_0x72e0e(0x268)][_0x72e0e(0x160)](_0x44a9aa),'onTransformState':_0x314ce5=>this[_0x72e0e(0x269)][_0x72e0e(0x1f0)](_0x314ce5),'onTransformSelections':_0x2a99a1=>this[_0x72e0e(0x2df)][_0x72e0e(0x20a)](_0x2a99a1),'onSyncEditingCollabCursor':_0x2764db=>this[_0x72e0e(0x1fe)][_0x72e0e(0x1aa)](_0x2764db),'onTransformRemoteChangesetByIMECache':_0x5e8687=>this[_0x72e0e(0x268)][_0x72e0e(0x261)](_0x5e8687),'onTransformRemoteChangesetByStateCache':_0x12071e=>this['_docTransformStateCacheService'][_0x72e0e(0x261)](_0x12071e)};_0x13173e['addHandlerCallback'](_0x4cb065);}}));}};ee=Zt([N(0x0,a['Inject'](b[_0x5f41c4(0x2b5)])),N(0x1,a[_0x5f41c4(0x180)](u[_0x5f41c4(0x24d)])),N(0x2,a[_0x5f41c4(0x180)](J)),N(0x3,a[_0x5f41c4(0x180)](Z)),N(0x4,a[_0x5f41c4(0x180)](Q)),N(0x5,a[_0x5f41c4(0x180)](pe)),N(0x6,O[_0x5f41c4(0x2ab)]),N(0x7,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x1a3)]))],ee);var Qt=Object[_0x5f41c4(0x16f)],es=(_0xe7bf5a,_0x10fcf2,_0x2a4f40,_0x37fee9)=>{for(var _0x5d8cd1=_0x37fee9>0x1?void 0x0:_0x37fee9?Qt(_0x10fcf2,_0x2a4f40):_0x10fcf2,_0x445675=_0xe7bf5a['length']-0x1,_0x3dc60c;_0x445675>=0x0;_0x445675--)(_0x3dc60c=_0xe7bf5a[_0x445675])&&(_0x5d8cd1=_0x3dc60c(_0x5d8cd1)||_0x5d8cd1);return _0x5d8cd1;},he=(_0x26fa2d,_0xaef8d7)=>(_0x1a43e1,_0x17c9f9)=>_0xaef8d7(_0x1a43e1,_0x17c9f9,_0x26fa2d);let me=class extends a[_0x5f41c4(0x153)]{constructor(_0x3ba4e4,_0x5e737c,_0x3da981){const _0x4a1ddb=_0x5f41c4;super(),_(this,_0x4a1ddb(0x137),new Map()),_(this,_0x4a1ddb(0x24e),new Map()),_(this,_0x4a1ddb(0x20c),!0x1),(this['_configService']=_0x3ba4e4,this[_0x4a1ddb(0x103)]=_0x5e737c,this[_0x4a1ddb(0x219)]=_0x3da981);}[_0x5f41c4(0x342)](){this['_disabled']=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x36f8b0=_0x5f41c4;this[_0x36f8b0(0x251)]()[_0x36f8b0(0x369)](()=>super[_0x36f8b0(0x2c9)]());}async[_0x5f41c4(0x209)](_0x4bcbbc){const _0x466640=_0x5f41c4;return this[_0x466640(0x20c)]?null:this[_0x466640(0x103)][_0x466640(0x19f)](u[_0x466640(0x32a)](_0x4bcbbc));}async[_0x5f41c4(0x373)](_0x2e8bf6,_0x216762){const _0x4ddece=_0x5f41c4;return!!this[_0x4ddece(0x103)][_0x4ddece(0x10f)](_0x2e8bf6,_0x216762);}[_0x5f41c4(0x2c6)](_0x329b7f,_0x330f6d,_0x7d6993,_0x48f58d){const _0x3f0273=_0x5f41c4,_0x1ffdc1=this[_0x3f0273(0x219)]['getCurrentRevOfUnit'](_0x329b7f);this[_0x3f0273(0x137)][_0x3f0273(0x28c)](_0x329b7f,{'unitID':_0x329b7f,'type':_0x330f6d,'awaitingChangeset':_0x7d6993,'mutations':_0x48f58d,'rev':_0x1ffdc1}),this[_0x3f0273(0x24e)][_0x3f0273(0x287)](_0x329b7f)||this[_0x3f0273(0x2ba)](_0x329b7f);}[_0x5f41c4(0x2ba)](_0x2f0e4c){const _0x2a9d8f=_0x5f41c4,_0x26e3a0=this['_getSaveTimeout']();_0x26e3a0===0x0?this[_0x2a9d8f(0x1e8)](_0x2f0e4c):this[_0x2a9d8f(0x24e)][_0x2a9d8f(0x28c)](_0x2f0e4c,setTimeout(()=>this[_0x2a9d8f(0x1e8)](_0x2f0e4c),_0x26e3a0));}['_getSaveTimeout'](){const _0x34cc0c=_0x5f41c4;var _0x3f0878;return(_0x3f0878=this['_configService'][_0x34cc0c(0x13b)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x3f0878:u[_0x34cc0c(0x2ed)];}[_0x5f41c4(0x1e8)](_0x19fd39){const _0x46b069=_0x5f41c4,_0x28f92b=this[_0x46b069(0x24e)][_0x46b069(0x1f5)](_0x19fd39);return _0x28f92b!==void 0x0&&window[_0x46b069(0x2bd)](_0x28f92b),this[_0x46b069(0x103)][_0x46b069(0x10f)](u[_0x46b069(0x32a)](_0x19fd39),this[_0x46b069(0x137)][_0x46b069(0x1f5)](_0x19fd39))[_0x46b069(0x369)](()=>this[_0x46b069(0x24e)][_0x46b069(0x1d1)](_0x19fd39));}async[_0x5f41c4(0x251)](){const _0x3c4458=_0x5f41c4,_0xe72332=[];this['_saveTaskMap'][_0x3c4458(0x334)]((_0x3b828d,_0x142a76)=>{const _0x1ac6fc=_0x3c4458;window['clearTimeout'](_0x3b828d),_0xe72332[_0x1ac6fc(0x27d)](this[_0x1ac6fc(0x1e8)](_0x142a76)[_0x1ac6fc(0x369)](()=>{const _0x57447b=_0x1ac6fc;this['_saveTaskMap'][_0x57447b(0x1d1)](_0x142a76);}));}),await Promise[_0x3c4458(0x374)](_0xe72332);}};me=es([he(0x0,a[_0x5f41c4(0x337)]),he(0x1,a[_0x5f41c4(0x1ca)]),he(0x2,a['Inject'](m[_0x5f41c4(0x23e)]))],me);class Be extends a['RxDisposable']{constructor(){const _0x3149d1=_0x5f41c4;super(),_(this,'urlChange$'),this['urlChange$']=d[_0x3149d1(0x1e0)](window,_0x3149d1(0x15f))[_0x3149d1(0x1ce)](d[_0x3149d1(0x172)](this[_0x3149d1(0x18a)]),d['shareReplay'](0x1),d[_0x3149d1(0x149)](void 0x0));}[_0x5f41c4(0x35f)](_0x39625b,_0xb27449,_0x1248b1=!0x1){const _0x5a1089=_0x5f41c4,_0x4072b2=new URL(window[_0x5a1089(0x29a)][_0x5a1089(0x271)]);_0x4072b2[_0x5a1089(0x25e)][_0x5a1089(0x28c)](_0x39625b,_0xb27449),_0x1248b1?window[_0x5a1089(0x280)]['replaceState']('','',_0x4072b2['toString']()):window[_0x5a1089(0x280)][_0x5a1089(0x291)]('','',_0x4072b2[_0x5a1089(0x2cf)]());}['removeParam'](_0x1e151b,_0x19ee76=!0x1){const _0x102ec=_0x5f41c4,_0x196fa0=new URL(window[_0x102ec(0x29a)][_0x102ec(0x271)]);_0x196fa0[_0x102ec(0x25e)][_0x102ec(0x1d1)](_0x1e151b),_0x19ee76?window['history'][_0x102ec(0x1c1)]('','',_0x196fa0[_0x102ec(0x2cf)]()):window[_0x102ec(0x280)]['pushState']('','',_0x196fa0[_0x102ec(0x2cf)]());}[_0x5f41c4(0x1ae)](_0x5af689){const _0x1eac4b=_0x5f41c4;var _0x3cb27d;return(_0x3cb27d=new URL(window[_0x1eac4b(0x29a)][_0x1eac4b(0x271)])[_0x1eac4b(0x25e)][_0x1eac4b(0x1f5)](_0x5af689))!=null?_0x3cb27d:void 0x0;}}var ts=Object[_0x5f41c4(0x310)],ss=Object[_0x5f41c4(0x16f)],ns=(_0x49423e,_0xfa7ca4,_0x2626f1)=>_0xfa7ca4 in _0x49423e?ts(_0x49423e,_0xfa7ca4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2626f1}):_0x49423e[_0xfa7ca4]=_0x2626f1,is=(_0x2f970c,_0x5f23a9,_0x159e5d,_0x4ff32f)=>{const _0xfd2648=_0x5f41c4;for(var _0x31d59e=_0x4ff32f>0x1?void 0x0:_0x4ff32f?ss(_0x5f23a9,_0x159e5d):_0x5f23a9,_0xebda66=_0x2f970c[_0xfd2648(0x1c8)]-0x1,_0x58a2a6;_0xebda66>=0x0;_0xebda66--)(_0x58a2a6=_0x2f970c[_0xebda66])&&(_0x31d59e=_0x58a2a6(_0x31d59e)||_0x31d59e);return _0x31d59e;},ue=(_0xe26a22,_0xdf1347)=>(_0x34d659,_0x32d2eb)=>_0xdf1347(_0x34d659,_0x32d2eb,_0xe26a22),rs=(_0x3c95be,_0x110f01,_0x24a0ec)=>ns(_0x3c95be,_0x110f01+'',_0x24a0ec);const os=_0x5f41c4(0x2a9);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5f41c4(0x170)]{constructor(_0x4c7c00=Ne,_0x5a7196,_0x39885f,_0x4a4dfd){const _0x40de25=_0x5f41c4;super(),this[_0x40de25(0x1ff)]=_0x4c7c00,this[_0x40de25(0x168)]=_0x5a7196,this[_0x40de25(0x2b3)]=_0x39885f,this['_configService']=_0x4a4dfd;const {..._0x1fafd9}=a[_0x40de25(0x128)]({},Ne,this[_0x40de25(0x1ff)]);this[_0x40de25(0x1de)][_0x40de25(0x2b7)](Ft,_0x1fafd9);}[_0x5f41c4(0x1e5)](){const _0x13a0e3=_0x5f41c4;this[_0x13a0e3(0x2a6)](),this[_0x13a0e3(0x17d)]();}[_0x5f41c4(0x1b8)](){const _0x1d312f=_0x5f41c4;this[_0x1d312f(0x17b)]();}[_0x5f41c4(0x2a6)](){const _0x5e8afa=_0x5f41c4;var _0x5e62b6;const _0x16c38c=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x5e8afa(0x204)],{'useClass':q[_0x5e8afa(0x12c)]}],[u[_0x5e8afa(0x2f3)],{'useClass':me}],[exports[_0x5e8afa(0x22c)]],[ee],[z],[x],[fe],[exports[_0x5e8afa(0x106)]]];a[_0x5e8afa(0x1fa)](this[_0x5e8afa(0x2b3)],a[_0x5e8afa(0x20d)](_0x16c38c,(_0x5e62b6=this['_config'])==null?void 0x0:_0x5e62b6[_0x5e8afa(0x18e)]));}[_0x5f41c4(0x17b)](){const _0x18cd1e=_0x5f41c4;this['disposeWithMe'](this[_0x18cd1e(0x168)][_0x18cd1e(0x288)](a[_0x18cd1e(0x372)][_0x18cd1e(0x257)],[ve])),this[_0x18cd1e(0x30b)](this[_0x18cd1e(0x168)][_0x18cd1e(0x288)](a[_0x18cd1e(0x372)]['UNIVER_SHEET'],[ge]));}[_0x5f41c4(0x17d)](){const _0x258348=_0x5f41c4;a[_0x258348(0x18b)](this['_injector'],[[x],[exports[_0x258348(0x22c)]],[ee],[z],[exports[_0x258348(0x106)]]]);}},rs(exports[_0x5f41c4(0x19e)],_0x5f41c4(0x2e7),os),exports[_0x5f41c4(0x19e)]=is([a[_0x5f41c4(0x138)](u[_0x5f41c4(0x15c)]),ue(0x1,p['IRenderManagerService']),ue(0x2,a[_0x5f41c4(0x180)](a[_0x5f41c4(0x188)])),ue(0x3,a[_0x5f41c4(0x337)])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x5f41c4(0x16f)],cs=(_0x4e8617,_0xf3978d,_0x15ba22,_0x17764d)=>{const _0x433b30=_0x5f41c4;for(var _0x493eb2=_0x17764d>0x1?void 0x0:_0x17764d?as(_0xf3978d,_0x15ba22):_0xf3978d,_0xba6cba=_0x4e8617[_0x433b30(0x1c8)]-0x1,_0x4f2217;_0xba6cba>=0x0;_0xba6cba--)(_0x4f2217=_0x4e8617[_0xba6cba])&&(_0x493eb2=_0x4f2217(_0x493eb2)||_0x493eb2);return _0x493eb2;},W=(_0x1ad679,_0x2094db)=>(_0x461ecb,_0x524411)=>_0x2094db(_0x461ecb,_0x524411,_0x1ad679);exports[_0x5f41c4(0x1df)]=class extends u[_0x5f41c4(0x1b1)]{constructor(_0x594273,_0x5fc698,_0x557105,_0x565d52,_0x2b406b){super(_0x594273,_0x5fc698,_0x557105,_0x565d52,_0x2b406b);}async['createSocket'](_0x4e3eb7){const _0x561565=_0x5f41c4,_0x27aaa4=await this[_0x561565(0x11a)](),_0x24ad13=this[_0x561565(0x34f)](_0x4e3eb7,_0x27aaa4);return this[_0x561565(0x1ab)](_0x24ad13);}[_0x5f41c4(0x34f)](_0x1c7fa3,_0x549ded){const _0x970c3c=_0x5f41c4,_0x1fa587=typeof window>'u'?new URL(_0x1c7fa3):new URL(_0x1c7fa3,window['location'][_0x970c3c(0xf9)]);_0x1fa587[_0x970c3c(0x25e)][_0x970c3c(0x28c)]('sessionTicket',_0x549ded);const _0x196dc6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x970c3c(0x29a)]['search']);return _0x196dc6['get'](_0x970c3c(0x232))&&_0x1fa587[_0x970c3c(0x25e)][_0x970c3c(0x28c)](_0x970c3c(0x232),_0x196dc6[_0x970c3c(0x1f5)](_0x970c3c(0x232))),_0x1fa587[_0x970c3c(0x2cf)]();}async[_0x5f41c4(0x11a)](){const _0x41f31c=_0x5f41c4;var _0x28982c,_0x1749f2,_0x1e8030;const _0x34e927=this[_0x41f31c(0x1de)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x49bf90=(_0x28982c=_0x34e927==null?void 0x0:_0x34e927[_0x41f31c(0x1be)])!=null?_0x28982c:u[_0x41f31c(0x229)];return(_0x1e8030=(_0x1749f2=(await this[_0x41f31c(0x21c)]['get'](_0x49bf90,{'headers':{'Content-Type':_0x41f31c(0x14c)}}))[_0x41f31c(0x370)])==null?void 0x0:_0x1749f2[_0x41f31c(0x22b)])!=null?_0x1e8030:'';}},exports['BrowserCollaborationSocketService']=cs([W(0x0,a['Inject'](a[_0x5f41c4(0x188)])),W(0x1,a[_0x5f41c4(0x180)](q[_0x5f41c4(0x1e4)])),W(0x2,a[_0x5f41c4(0x337)]),W(0x3,a['ILogService']),W(0x4,m[_0x5f41c4(0x21b)])],exports[_0x5f41c4(0x1df)]);const Le=0x7530,Pe=_0x5f41c4(0x115);class ls extends a['Disposable']{constructor(){const _0x1f2902=_0x5f41c4;super(),_(this,_0x1f2902(0x306),a[_0x1f2902(0x322)]()),_(this,_0x1f2902(0x333),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x1f2902(0x21a),null),_(this,_0x1f2902(0x33e),new Map()),_(this,_0x1f2902(0x217),new Map()),this['_init']();}[_0x5f41c4(0x2c9)](){const _0xd9845=_0x5f41c4;super['dispose'](),this[_0xd9845(0x33e)][_0xd9845(0x334)]((_0x12929b,_0x336351)=>this['_removeClearOtherTimer'](_0x336351)),this[_0xd9845(0x21a)]&&window[_0xd9845(0x2a3)](this[_0xd9845(0x21a)]);}[_0x5f41c4(0x348)](_0xd62688){const _0x572d17=_0x5f41c4;return this[_0x572d17(0x210)](_0xd62688)[_0x572d17(0x1ce)](d[_0x572d17(0x365)]());}[_0x5f41c4(0x157)](_0x3a3404){const _0x1ac256=_0x5f41c4;this[_0x1ac256(0x333)][_0x1ac256(0x2e1)]===0x0&&this[_0x1ac256(0x34e)](),this[_0x1ac256(0x333)][_0x1ac256(0x20b)](_0x3a3404),this['_send']({'type':0x0,'memberID':this[_0x1ac256(0x306)],'unitIDs':[_0x3a3404],'isForwarded':!0x1});}[_0x5f41c4(0x313)](_0x9d39da){const _0xa71668=_0x5f41c4;this[_0xa71668(0x333)][_0xa71668(0x1d1)](_0x9d39da),this[_0xa71668(0x333)][_0xa71668(0x2e1)]===0x0&&this[_0xa71668(0x21a)]&&window[_0xa71668(0x2a3)](this['_heartbeatTimer']);}['_init'](){const _0x219902=_0x5f41c4;this[_0x219902(0x30b)](a[_0x219902(0x289)](d[_0x219902(0x1e0)](window,'storage')['subscribe'](_0x3586d5=>{const _0x16dfa2=_0x219902;if(_0x3586d5['key']!==Pe||!_0x3586d5[_0x16dfa2(0x2ee)])return;const _0x29df7c=JSON[_0x16dfa2(0x12e)](_0x3586d5[_0x16dfa2(0x2ee)]);this[_0x16dfa2(0x332)](_0x29df7c);}))),window[_0x219902(0x104)]('unload',()=>this[_0x219902(0x2bb)]({'type':0x1,'memberID':this[_0x219902(0x306)],'unitIDs':Array[_0x219902(0x239)](this[_0x219902(0x333)])}));}['_handleEvent'](_0x396a72){const _0x5bd3d4=_0x5f41c4;switch(_0x396a72[_0x5bd3d4(0x183)]){case 0x0:this[_0x5bd3d4(0x122)](_0x396a72);break;case 0x1:this['_handleLeaveEvent'](_0x396a72);break;case 0x2:this[_0x5bd3d4(0x1d6)](_0x396a72);break;}}['_handleJoinEvent'](_0x2b83b9){const _0x19887d=_0x5f41c4,{unitIDs:_0x462e41,memberID:_0x598101,isForwarded:_0x5c5c38}=_0x2b83b9;_0x462e41['forEach'](_0x5350b4=>{const _0x4b9e5e=_0x5234;if(!_0x5c5c38&&this[_0x4b9e5e(0x25b)]['has'](_0x5350b4)&&this['_ensureSubject'](_0x5350b4)['next'](u[_0x4b9e5e(0x178)][_0x4b9e5e(0x317)]),!this['_unitOnClients']['has'](_0x5350b4)||!this[_0x4b9e5e(0x25b)][_0x4b9e5e(0x1f5)](_0x5350b4)[_0x4b9e5e(0x287)](_0x598101)){const _0x370221=this[_0x4b9e5e(0x25b)][_0x4b9e5e(0x1f5)](_0x5350b4)||new Set();_0x370221[_0x4b9e5e(0x20b)](_0x598101),this[_0x4b9e5e(0x25b)][_0x4b9e5e(0x28c)](_0x5350b4,_0x370221),this[_0x4b9e5e(0x1fc)](_0x598101);}}),_0x5c5c38||this[_0x19887d(0x2bb)]({'type':0x0,'memberID':this[_0x19887d(0x306)],'unitIDs':[...this[_0x19887d(0x333)]],'isForwarded':!0x0});}[_0x5f41c4(0x1fc)](_0x3b02df){const _0xef4c67=_0x5f41c4;this[_0xef4c67(0x222)](_0x3b02df);const _0x418eef=window[_0xef4c67(0x1c4)](()=>{const _0x59778d=_0xef4c67;this[_0x59778d(0x25b)]['forEach'](_0x1f19f4=>{const _0x409263=_0x59778d;_0x1f19f4[_0x409263(0x1d1)](_0x3b02df);});},Le*0x2);this[_0xef4c67(0x33e)][_0xef4c67(0x28c)](_0x3b02df,_0x418eef);}[_0x5f41c4(0x222)](_0x1471f0){const _0x1f1423=_0x5f41c4;if(this[_0x1f1423(0x33e)][_0x1f1423(0x287)](_0x1471f0)){const _0x5538c2=this[_0x1f1423(0x33e)][_0x1f1423(0x1f5)](_0x1471f0);_0x5538c2&&window[_0x1f1423(0x2bd)](_0x5538c2),this['_clearOtherTimers']['set'](_0x1471f0,null);}}[_0x5f41c4(0x36c)](_0x4aa0f5){const _0x514e44=_0x5f41c4,{memberID:_0x2d0acd,unitIDs:_0x21491e}=_0x4aa0f5;_0x21491e[_0x514e44(0x334)](_0x1d71e4=>{const _0x27a909=_0x514e44;var _0x1a3bf1;const _0x147022=this[_0x27a909(0x25b)]['get'](_0x1d71e4);_0x147022&&(_0x147022[_0x27a909(0x1d1)](_0x2d0acd),(_0x1a3bf1=this[_0x27a909(0x210)](_0x1d71e4))==null||_0x1a3bf1['next'](_0x147022[_0x27a909(0x2e1)]===0x0?u['UnitStatus'][_0x27a909(0x214)]:u[_0x27a909(0x178)][_0x27a909(0x317)]));}),this['_removeClearOtherTimer'](_0x2d0acd);}[_0x5f41c4(0x1d6)](_0x1a11a9){const _0x2d345f=_0x5f41c4;this['_scheduleClearOtherTimer'](_0x1a11a9[_0x2d345f(0x304)]);}[_0x5f41c4(0x2bb)](_0x5582eb){const _0x52882b=_0x5f41c4;localStorage[_0x52882b(0x10f)](Pe,JSON[_0x52882b(0x330)](_0x5582eb));}['_scheduleHeartbeat'](){const _0x44c9b5=_0x5f41c4;this[_0x44c9b5(0x21a)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Le);}[_0x5f41c4(0x210)](_0xd14042){const _0x5dd7bc=_0x5f41c4;return this[_0x5dd7bc(0x217)][_0x5dd7bc(0x287)](_0xd14042)||this[_0x5dd7bc(0x217)][_0x5dd7bc(0x28c)](_0xd14042,new d[(_0x5dd7bc(0x359))](u[_0x5dd7bc(0x178)][_0x5dd7bc(0x214)])),this[_0x5dd7bc(0x217)][_0x5dd7bc(0x1f5)](_0xd14042);}}var ke=(_0x2e0fd9=>(_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x2dc)]=0x0]='UNDEFINED',_0x2e0fd9[_0x2e0fd9['OK']=0x1]='OK',_0x2e0fd9[_0x2e0fd9['INTERNAL_ERROR']=0x2]=_0x5f41c4(0x110),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x2ad)]=0x3]=_0x5f41c4(0x2ad),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x367)]=0x4]=_0x5f41c4(0x367),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x31b)]=0x5]=_0x5f41c4(0x31b),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x14e)]=0x6]=_0x5f41c4(0x14e),_0x2e0fd9[_0x2e0fd9['INVALID_ARGUMENT']=0x7]=_0x5f41c4(0x14d),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x199)]=0x8]='TOO_MANY_REQUESTS',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x1a2)]=0x9]=_0x5f41c4(0x1a2),_0x2e0fd9[_0x2e0fd9['LOGIN_FAILED']=0xa]=_0x5f41c4(0x159),_0x2e0fd9[_0x2e0fd9['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5f41c4(0x1f1),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x19b)]=0x1771]=_0x5f41c4(0x19b),_0x2e0fd9[_0x2e0fd9['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x5f41c4(0x119),_0x2e0fd9[_0x2e0fd9['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x23f)]=0x1b59]=_0x5f41c4(0x23f),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x358)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x15d)]=0x1b5b]=_0x5f41c4(0x15d),_0x2e0fd9[_0x2e0fd9['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5f41c4(0x1d3),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x18f)]=0x1b5d]=_0x5f41c4(0x18f),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x213)]=0x1f41]=_0x5f41c4(0x213),_0x2e0fd9[_0x2e0fd9['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2e0fd9[_0x2e0fd9['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5f41c4(0x1cb),_0x2e0fd9[_0x2e0fd9['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5f41c4(0x17f),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x243)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2e0fd9[_0x2e0fd9['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5f41c4(0x2ce),_0x2e0fd9[_0x2e0fd9['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5f41c4(0x364),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x14a)]=0x2712]=_0x5f41c4(0x14a),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x276)]=0x2713]=_0x5f41c4(0x276),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x320)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x1bf)]=0x271a]=_0x5f41c4(0x1bf),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x200)]=0x271b]=_0x5f41c4(0x200),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x120)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x29c)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2e0fd9[_0x2e0fd9['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x1d7)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2e0fd9[_0x2e0fd9['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5f41c4(0x12f),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x25d)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x182)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x278)]=0x32ca]=_0x5f41c4(0x278),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x343)]=0x32cb]=_0x5f41c4(0x343),_0x2e0fd9[_0x2e0fd9[_0x5f41c4(0x192)]=-0x1]='UNRECOGNIZED',_0x2e0fd9))(ke||{}),_s=Object[_0x5f41c4(0x16f)],hs=(_0x4365b5,_0x10e7d4,_0x3e83e7,_0x4e4bbd)=>{for(var _0x2f3fec=_0x4e4bbd>0x1?void 0x0:_0x4e4bbd?_s(_0x10e7d4,_0x3e83e7):_0x10e7d4,_0x4c6b6f=_0x4365b5['length']-0x1,_0xf13b76;_0x4c6b6f>=0x0;_0x4c6b6f--)(_0xf13b76=_0x4365b5[_0x4c6b6f])&&(_0x2f3fec=_0xf13b76(_0x2f3fec)||_0x2f3fec);return _0x2f3fec;},de=(_0x455557,_0x27fa0b)=>(_0x2c0e0f,_0x5155ac)=>_0x27fa0b(_0x2c0e0f,_0x5155ac,_0x455557);exports[_0x5f41c4(0x10a)]=class extends a[_0x5f41c4(0x153)]{constructor(_0x4cef37,_0x243b6c,_0x5b1c71){const _0x4ecd74=_0x5f41c4;super(),this[_0x4ecd74(0x349)]=_0x4cef37,this['_httpService']=_0x243b6c,this[_0x4ecd74(0x1de)]=_0x5b1c71;}async['runOnServer'](_0x580e1e,_0x1583f3,_0x5ebf25,..._0x2cf8d4){const _0x325599=_0x5f41c4;var _0x2a79c2,_0xc7212e,_0x341795,_0x41cf7e;const _0x363875=this[_0x325599(0x349)][_0x325599(0x2d5)]();if(!_0x363875)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5e4a55=((_0x2a79c2=this['_configService']['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x2a79c2:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x580e1e+_0x325599(0x2d4)+_0x1583f3,_0x27fff1=new URL(window[_0x325599(0x29a)][_0x325599(0x271)]),_0x35d5d9={'scriptId':_0x580e1e,'runId':(_0xc7212e=_0x27fff1[_0x325599(0x25e)][_0x325599(0x1f5)](_0x325599(0x232)))!=null?_0xc7212e:'','function':_0x1583f3,'unitId':_0x363875[_0x325599(0x2da)](),'argsOfFunction':JSON[_0x325599(0x330)](_0x2cf8d4),'invokeId':(_0x341795=_0x5ebf25[_0x325599(0x355)])!=null?_0x341795:'','executionId':(_0x41cf7e=_0x5ebf25['executionId'])!=null?_0x41cf7e:''};try{const _0x5168e7=await this[_0x325599(0x21c)][_0x325599(0x212)](_0x5e4a55,{'body':_0x35d5d9});return _0x5168e7[_0x325599(0x370)][_0x325599(0x189)]&&_0x5168e7[_0x325599(0x370)][_0x325599(0x189)][_0x325599(0x109)]!==ke['OK']?'Failed':_0x5168e7[_0x325599(0x370)][_0x325599(0x296)];}catch{return _0x325599(0x1c3);}}},exports[_0x5f41c4(0x10a)]=hs([de(0x0,a[_0x5f41c4(0x164)]),de(0x1,a[_0x5f41c4(0x180)](q[_0x5f41c4(0x1e4)])),de(0x2,a[_0x5f41c4(0x337)])],exports['RemoteUniscriptService']),exports[_0x5f41c4(0x1e3)]=je,exports[_0x5f41c4(0x2af)]=Ee,exports[_0x5f41c4(0x136)]=Ae,exports[_0x5f41c4(0x150)]=ls,exports[_0x5f41c4(0x236)]=Be;
|
|
1
|
+
'use strict';const _0x49483b=_0x6961;(function(_0x4eacd5,_0xe3994){const _0x398218=_0x6961,_0x2d83e0=_0x4eacd5();while(!![]){try{const _0x306922=-parseInt(_0x398218(0x30c))/0x1*(parseInt(_0x398218(0x2f0))/0x2)+-parseInt(_0x398218(0x1c1))/0x3+-parseInt(_0x398218(0x2f4))/0x4*(parseInt(_0x398218(0x126))/0x5)+-parseInt(_0x398218(0x34a))/0x6+parseInt(_0x398218(0x18b))/0x7+parseInt(_0x398218(0x365))/0x8+-parseInt(_0x398218(0x2d2))/0x9*(-parseInt(_0x398218(0x393))/0xa);if(_0x306922===_0xe3994)break;else _0x2d83e0['push'](_0x2d83e0['shift']());}catch(_0x491f91){_0x2d83e0['push'](_0x2d83e0['shift']());}}}(_0x2197,0xed854));var Xe=Object['defineProperty'],Ge=(_0xac3fd1,_0x135096,_0x293362)=>_0x135096 in _0xac3fd1?Xe(_0xac3fd1,_0x135096,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x293362}):_0xac3fd1[_0x135096]=_0x293362,_=(_0x587ab8,_0x1ac244,_0x595e3f)=>Ge(_0x587ab8,typeof _0x1ac244!=_0x49483b(0x287)?_0x1ac244+'':_0x1ac244,_0x595e3f);Object[_0x49483b(0x13a)](exports,Symbol['toStringTag'],{'value':_0x49483b(0x244)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require(_0x49483b(0x26f)),q=require(_0x49483b(0x257)),b=require(_0x49483b(0x235)),qe=require(_0x49483b(0x359)),d=require('rxjs'),Y=require(_0x49483b(0x1a0)),m=require(_0x49483b(0x2fc)),Te=require(_0x49483b(0x242)),g=require(_0x49483b(0x270)),$=require(_0x49483b(0x1ca)),G=require(_0x49483b(0x14f)),P=require('react/jsx-runtime'),O=require(_0x49483b(0x247)),T=require(_0x49483b(0x321)),M=require('react'),Ke=require(_0x49483b(0x266));var ze=Object[_0x49483b(0x16b)],Je=(_0x44a0e2,_0x38eae2,_0x21cdc4,_0x507d9b)=>{const _0x1b71b0=_0x49483b;for(var _0x266fff=_0x507d9b>0x1?void 0x0:_0x507d9b?ze(_0x38eae2,_0x21cdc4):_0x38eae2,_0x4ae0ee=_0x44a0e2[_0x1b71b0(0x22f)]-0x1,_0x2d6448;_0x4ae0ee>=0x0;_0x4ae0ee--)(_0x2d6448=_0x44a0e2[_0x4ae0ee])&&(_0x266fff=_0x2d6448(_0x266fff)||_0x266fff);return _0x266fff;},Oe=(_0x1291f2,_0x1004d5)=>(_0x1ed5b2,_0x456201)=>_0x1004d5(_0x1ed5b2,_0x456201,_0x1291f2);let fe=class extends a[_0x49483b(0x17a)]{constructor(_0x185abd,_0x2238d6){const _0x1f42cb=_0x49483b;super(),this[_0x1f42cb(0x37a)]=_0x185abd,this[_0x1f42cb(0x181)]=_0x2238d6,this[_0x1f42cb(0x31c)]();}[_0x49483b(0x31c)](){const _0x513bb3=_0x49483b,_0x5d4e10=this;this[_0x513bb3(0x200)](this[_0x513bb3(0x37a)][_0x513bb3(0x240)]({'onBeforePasteImage':async _0x4d3326=>{const _0x498d5b=_0x513bb3,_0x4a010d=await _0x5d4e10[_0x498d5b(0x181)][_0x498d5b(0x236)](_0x4d3326);return _0x4a010d?{'source':_0x4a010d['source'],'imageSourceType':_0x4a010d['imageSourceType']}:null;}}));}};fe=Je([Oe(0x0,b[_0x49483b(0x121)]),Oe(0x1,qe[_0x49483b(0x1d5)])],fe);const Re=[_0x49483b(0x339),_0x49483b(0x192),_0x49483b(0x379),_0x49483b(0x1ee),'blue400',_0x49483b(0x281)];class Ce extends a[_0x49483b(0x2b2)]{constructor(){const _0x275f11=_0x49483b;super(...arguments),_(this,_0x275f11(0x1e4),new Map()),_(this,_0x275f11(0x2d8),0x0);}['assignAColorForMemberID'](_0x1b9c47){const _0x26bd0c=_0x49483b;if(this[_0x26bd0c(0x1e4)]['has'](_0x1b9c47))return this[_0x26bd0c(0x1e4)][_0x26bd0c(0x1bd)](_0x1b9c47);const _0x383477=Re[this[_0x26bd0c(0x2d8)]];return this[_0x26bd0c(0x2d8)]=(this[_0x26bd0c(0x2d8)]+0x1)%Re[_0x26bd0c(0x22f)],this[_0x26bd0c(0x1e4)]['set'](_0x1b9c47,_0x383477),_0x383477;}}function we(_0x36f9ec){const _0x3a8444=_0x49483b;let _0x599aab='';for(const _0x265789 of _0x36f9ec){const {startOffset:_0x4818cf,endOffset:_0x292f75,isActive:_0x48cd23,rangeType:_0x49c431,segmentId:_0x347043,segmentPage:_0xa3d51f}=_0x265789;_0x599aab[_0x3a8444(0x22f)]&&(_0x599aab+=','),_0x599aab+=_0x4818cf+':'+_0x292f75+':'+(_0x48cd23?'1':'0')+':'+_0x49c431+':'+_0x347043+':'+_0xa3d51f;}return _0x599aab;}function Ze(_0x3f6f0a){const _0x16f54e=_0x49483b,_0x206249=_0x3f6f0a[_0x16f54e(0x2e7)](','),_0xb1b65d=[];for(const _0x1d89a0 of _0x206249){const [_0xe804d,_0x4bfd2c,_0x2e3147,_0x3cdb7c,_0x55295a,_0x256076]=_0x1d89a0[_0x16f54e(0x2e7)](':');_0xb1b65d['push']({'startOffset':Number(_0xe804d),'endOffset':Number(_0x4bfd2c),'collapsed':_0xe804d===_0x4bfd2c,'isActive':_0x2e3147==='1','rangeType':_0x3cdb7c===a[_0x16f54e(0x292)][_0x16f54e(0x2c1)]?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x16f54e(0x1b7)],'segmentId':typeof _0x55295a==_0x16f54e(0x21d)?String(_0x55295a):'','segmentPage':Number(_0x256076!=null?_0x256076:-0x1)});}return _0xb1b65d['some'](_0x4f1519=>_0x4f1519[_0x16f54e(0x320)])||(_0xb1b65d[0x0][_0x16f54e(0x320)]=!0x0),_0xb1b65d;}class pe extends a[_0x49483b(0x17a)]{constructor(){const _0x399b72=_0x49483b;super(...arguments),_(this,_0x399b72(0x33c),new d[(_0x399b72(0x33f))](null)),_(this,_0x399b72(0x2b4),this[_0x399b72(0x33c)]['asObservable']());}[_0x49483b(0x344)](_0x443698){const _0x2ab609=_0x49483b,{unitID:_0x241263,memberID:_0x70dc72,textRanges:_0x327daa}=_0x443698,_0x1af129=we(_0x327daa);if(_0x1af129==='')return;const _0x4c0dda={'unitID':_0x241263,'memberID':_0x70dc72,'selection':_0x1af129};this[_0x2ab609(0x33c)][_0x2ab609(0x160)](_0x4c0dda);}}var Qe=Object[_0x49483b(0x16b)],et=(_0x5e56b1,_0x2aa3ac,_0x1d9ddf,_0x974b95)=>{const _0x279f5f=_0x49483b;for(var _0x7a6be1=_0x974b95>0x1?void 0x0:_0x974b95?Qe(_0x2aa3ac,_0x1d9ddf):_0x2aa3ac,_0x1d99fa=_0x5e56b1[_0x279f5f(0x22f)]-0x1,_0x512c05;_0x1d99fa>=0x0;_0x1d99fa--)(_0x512c05=_0x5e56b1[_0x1d99fa])&&(_0x7a6be1=_0x512c05(_0x7a6be1)||_0x7a6be1);return _0x7a6be1;},L=(_0x4386ef,_0x1047f8)=>(_0x5935a6,_0xdaa6c6)=>_0x1047f8(_0x5935a6,_0xdaa6c6,_0x4386ef);const tt=0x12c,st=0x64;let Se=class extends a[_0x49483b(0x17a)]{constructor(_0x304efa,_0x13b108,_0x1d7954,_0x21d6e0,_0x591223,_0x35ba9b,_0x173aef,_0xe6175c,_0x183dbd){const _0x164863=_0x49483b;super(),_(this,'_online',!0x1),_(this,_0x164863(0x31c),!0x1),_(this,_0x164863(0x387),new d[(_0x164863(0x33f))](new Map())),_(this,'cursorInfo$',this[_0x164863(0x387)][_0x164863(0x332)]()),_(this,_0x164863(0x32f),new d[(_0x164863(0x33f))]([])),_(this,_0x164863(0x1d4),this[_0x164863(0x32f)][_0x164863(0x2dc)](d[_0x164863(0x29f)](tt))),_(this,_0x164863(0x11c),a[_0x164863(0x1e9)](_0x3a9d04=>{const _0x293a89=_0x164863,_0x3b9903={'eventID':m[_0x293a89(0x20b)][_0x293a89(0x326)],'data':{'unitID':this[_0x293a89(0x115)],'memberID':this[_0x293a89(0x1e2)]['getMemberID'](),'selection':we(_0x3a9d04)}};this[_0x293a89(0x1e2)][_0x293a89(0x1cb)](_0x3b9903,this[_0x293a89(0x115)]);},st)),(this[_0x164863(0x115)]=_0x304efa,this[_0x164863(0x1e2)]=_0x13b108,this[_0x164863(0x34e)]=_0x1d7954,this['_colorAssignService']=_0x21d6e0,this[_0x164863(0x113)]=_0x591223,this[_0x164863(0x333)]=_0x35ba9b,this[_0x164863(0x1b3)]=_0x173aef,this['_univerInstanceService']=_0xe6175c,this[_0x164863(0x347)]=_0x183dbd);}get[_0x49483b(0x2df)](){const _0x498291=_0x49483b;return this[_0x498291(0x387)][_0x498291(0x28c)]();}get[_0x49483b(0x1cd)](){const _0xf52723=_0x49483b;return this[_0xf52723(0x32f)][_0xf52723(0x28c)]();}['dispose'](){const _0x1d682c=_0x49483b;super[_0x1d682c(0x202)](),this[_0x1d682c(0x387)]['next'](new Map()),this['_cursorInfo$'][_0x1d682c(0x260)](),this[_0x1d682c(0x32f)][_0x1d682c(0x160)]([]),this[_0x1d682c(0x32f)][_0x1d682c(0x260)]();}[_0x49483b(0x378)](){const _0x45b992=_0x49483b;this[_0x45b992(0x31c)]||(this[_0x45b992(0x31c)]=!0x0,this['_session'][_0x45b992(0x23b)][_0x45b992(0x2dc)](d[_0x45b992(0x272)](this[_0x45b992(0x2cb)]))[_0x45b992(0x175)](_0x46bd21=>{const _0x1d01c7=_0x45b992;_0x46bd21===u[_0x1d01c7(0x1ce)][_0x1d01c7(0x21a)]?this['_toggleOnline']():this[_0x1d01c7(0x1ab)]();}),this[_0x45b992(0x1e2)][_0x45b992(0x12b)][_0x45b992(0x2dc)](d[_0x45b992(0x272)](this[_0x45b992(0x2cb)]))['subscribe'](_0x1d3d4b=>{const _0x4026d8=_0x45b992,_0x5e6915=_0x1d3d4b[_0x4026d8(0x12e)];_0x5e6915===m['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1d3d4b),_0x5e6915===m[_0x4026d8(0x20b)][_0x4026d8(0x2bf)]&&this['_onCursorDelete'](_0x1d3d4b);}),this['disposeWithMe'](this[_0x45b992(0x347)][_0x45b992(0x140)](_0x22f33b=>{const _0x534d3f=_0x45b992,_0x4aee81=_0x22f33b[_0x534d3f(0x151)];_0x4aee81!=null&&this[_0x534d3f(0x127)]&&_0x22f33b['id']===Y[_0x534d3f(0x243)]['id']&&_0x4aee81[_0x534d3f(0x31e)]===this[_0x534d3f(0x115)]&&_0x4aee81['isEditing']===!0x1&&_0x4aee81[_0x534d3f(0x147)][_0x534d3f(0x22f)]>0x0&&this['_updateLocalCursor'](_0x4aee81[_0x534d3f(0x147)]);})),this[_0x45b992(0x333)][_0x45b992(0x2b4)][_0x45b992(0x2dc)](d[_0x45b992(0x272)](this[_0x45b992(0x2cb)]))['subscribe'](_0x4ada9a=>{const _0x1eea62=_0x45b992;if((_0x4ada9a==null?void 0x0:_0x4ada9a['unitID'])!==this['unitID'])return;const _0x3dcc11={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4ada9a};this[_0x1eea62(0x2b9)](_0x3dcc11);}),this[_0x45b992(0x200)](this[_0x45b992(0x347)][_0x45b992(0x140)](_0x27a19f=>{const _0x3f8488=_0x45b992;if(_0x27a19f[_0x3f8488(0x151)]==null)return;const _0x5d21c0=_0x27a19f['params'];if(_0x27a19f['id']!==Y[_0x3f8488(0x1ba)]['id']||_0x5d21c0[_0x3f8488(0x31e)]!==this[_0x3f8488(0x115)])return;const _0xd27f7d={'id':_0x3f8488(0x146),'params':_0x5d21c0},_0x5a551e=this[_0x3f8488(0x2df)];for(const [_0x4df2c3,_0x32a841]of _0x5a551e){const _0x3f377b={'id':_0x3f8488(0x146),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x32a841[_0x3f8488(0x147)]}},_0x39ea97=this[_0x3f8488(0x1b3)][_0x3f8488(0x2ac)](_0xd27f7d,_0x3f377b,!0x1);if(m[_0x3f8488(0x224)](_0x39ea97))throw _0x39ea97[_0x3f8488(0x20e)];_0x5a551e[_0x3f8488(0x25c)](_0x4df2c3,{..._0x32a841,'ranges':_0x39ea97[_0x3f8488(0x1ed)][_0x3f8488(0x151)][_0x3f8488(0x1bc)]});}queueMicrotask(()=>{const _0x47f1b2=_0x3f8488;this[_0x47f1b2(0x387)][_0x47f1b2(0x160)](_0x5a551e);});})));}[_0x49483b(0x2b9)](_0x3461ab){const _0x44d012=_0x49483b;var _0x2b3cfc,_0x451be8;const {memberID:_0x2f40fb,selection:_0x4dc13c}=_0x3461ab[_0x44d012(0x14e)],_0x19886f=Ze(_0x4dc13c),_0x42a1ae=(_0x451be8=(_0x2b3cfc=this['_memberService'][_0x44d012(0x125)](this[_0x44d012(0x115)],_0x2f40fb))==null?void 0x0:_0x2b3cfc[_0x44d012(0x132)])!=null?_0x451be8:_0x44d012(0x375),_0x200feb={'color':this[_0x44d012(0x307)]['assignAColorForMemberID'](_0x2f40fb),'name':_0x42a1ae,'ranges':_0x19886f},_0x2026b9=this[_0x44d012(0x2df)];_0x2026b9[_0x44d012(0x25c)](_0x2f40fb,_0x200feb),this['_cursorInfo$'][_0x44d012(0x160)](_0x2026b9);}['_onCursorDelete'](_0x1bf2cd){const _0x3bbc46=_0x49483b,{memberID:_0x231183}=_0x1bf2cd[_0x3bbc46(0x14e)],_0x3a8f76=this['cursorInfo'];_0x3a8f76[_0x3bbc46(0x334)](_0x231183),this[_0x3bbc46(0x387)][_0x3bbc46(0x160)](_0x3a8f76);}[_0x49483b(0x164)](){const _0xd3cf26=_0x49483b;var _0x5ed2b9;if(this[_0xd3cf26(0x127)]=!0x0,((_0x5ed2b9=this[_0xd3cf26(0x145)][_0xd3cf26(0x362)]())==null?void 0x0:_0x5ed2b9[_0xd3cf26(0x18c)]())!==this[_0xd3cf26(0x115)])return;const _0x49a47a=this[_0xd3cf26(0x34e)]['get'](Y[_0xd3cf26(0x2a2)])[_0xd3cf26(0x133)]();Array['isArray'](_0x49a47a)&&_0x49a47a[_0xd3cf26(0x22f)]>0x0&&this[_0xd3cf26(0x11c)](_0x49a47a);}[_0x49483b(0x1ab)](){this['_online']=!0x1;}};Se=et([L(0x2,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),L(0x3,a[_0x49483b(0x199)](Ce)),L(0x4,a[_0x49483b(0x199)](u[_0x49483b(0x2a8)])),L(0x5,a[_0x49483b(0x199)](pe)),L(0x6,m[_0x49483b(0x372)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x49483b(0x2fb)])],Se);var nt=Object['getOwnPropertyDescriptor'],it=(_0x471a8e,_0x59c0bf,_0x301f35,_0x113209)=>{for(var _0x54d8b0=_0x113209>0x1?void 0x0:_0x113209?nt(_0x59c0bf,_0x301f35):_0x59c0bf,_0x157854=_0x471a8e['length']-0x1,_0x953033;_0x157854>=0x0;_0x157854--)(_0x953033=_0x471a8e[_0x157854])&&(_0x54d8b0=_0x953033(_0x54d8b0)||_0x54d8b0);return _0x54d8b0;},A=(_0x2f24b8,_0x23eceb)=>(_0x14f5fd,_0x487573)=>_0x23eceb(_0x14f5fd,_0x487573,_0x2f24b8);const rt=0x12c,ot=0x64,at=()=>{let _0x1ef2b7=[],_0x581fad=!0x1;return _0x55f1ec=>{const _0x3d924b=_0x6961;_0x1ef2b7[_0x3d924b(0x119)](_0x55f1ec),_0x581fad||(_0x581fad=!0x0,setTimeout(()=>{_0x1ef2b7['forEach'](_0x51da86=>_0x51da86()),_0x1ef2b7=[],_0x581fad=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0xc4e646,_0x361715,_0x4f249e,_0x5d05b9,_0x3679a8,_0x567ed0,_0x15cba2,_0x48d72a){const _0x3abeb4=_0x49483b;super(),_(this,'_online',!0x1),_(this,_0x3abeb4(0x31c),!0x1),_(this,'_cursorInfo$',new d[(_0x3abeb4(0x33f))](new Map())),_(this,_0x3abeb4(0x168),this[_0x3abeb4(0x387)][_0x3abeb4(0x332)]()),_(this,_0x3abeb4(0x32f),new d['BehaviorSubject']([])),_(this,_0x3abeb4(0x1d4),this['_roomMembers$']['pipe'](d[_0x3abeb4(0x29f)](rt))),_(this,_0x3abeb4(0x11c),a['debounce']((_0x1fdb70,_0x256e8e)=>{const _0x2fe2b6=_0x3abeb4,_0x50811f={'eventID':m[_0x2fe2b6(0x20b)][_0x2fe2b6(0x326)],'data':{'unitID':this[_0x2fe2b6(0x115)],'memberID':this[_0x2fe2b6(0x1e2)]['getMemberID'](),'selection':Te[_0x2fe2b6(0x251)](_0x1fdb70,_0x256e8e[_0x2fe2b6(0x24d)])}};this[_0x2fe2b6(0x1e2)]['send'](_0x50811f,this[_0x2fe2b6(0x115)]);},ot)),(this[_0x3abeb4(0x115)]=_0xc4e646,this['_session']=_0x361715,this[_0x3abeb4(0x34e)]=_0x4f249e,this[_0x3abeb4(0x307)]=_0x5d05b9,this['_memberService']=_0x3679a8,this[_0x3abeb4(0x145)]=_0x567ed0,this['_commandService']=_0x15cba2,this[_0x3abeb4(0x28f)]=_0x48d72a);}get[_0x49483b(0x2df)](){const _0x4d0a45=_0x49483b;return this[_0x4d0a45(0x387)]['getValue']();}get['roomMembers'](){const _0x54e068=_0x49483b;return this['_roomMembers$'][_0x54e068(0x28c)]();}['dispose'](){const _0x41bbb7=_0x49483b;super[_0x41bbb7(0x202)](),this[_0x41bbb7(0x387)]['next'](new Map()),this[_0x41bbb7(0x387)][_0x41bbb7(0x260)](),this[_0x41bbb7(0x32f)][_0x41bbb7(0x160)]([]),this[_0x41bbb7(0x32f)]['complete']();}[_0x49483b(0x378)](){const _0x26a01f=_0x49483b;this['_init']||(this[_0x26a01f(0x31c)]=!0x0,this[_0x26a01f(0x1e2)]['sessionStatus$'][_0x26a01f(0x2dc)](d['takeUntil'](this[_0x26a01f(0x2cb)]))['subscribe'](_0x2811d3=>{const _0x160a65=_0x26a01f;_0x2811d3===u[_0x160a65(0x1ce)][_0x160a65(0x21a)]?this[_0x160a65(0x164)]():this[_0x160a65(0x1ab)]();}),this[_0x26a01f(0x1e2)][_0x26a01f(0x12b)][_0x26a01f(0x2dc)](d[_0x26a01f(0x272)](this['dispose$']))[_0x26a01f(0x175)](_0x48d8cb=>{const _0x228b07=_0x26a01f,_0x54b198=_0x48d8cb['eventID'];_0x54b198===m[_0x228b07(0x20b)]['UPDATE_CURSOR']&&this[_0x228b07(0x2b9)](_0x48d8cb),_0x54b198===m['CollaborationEvent'][_0x228b07(0x2bf)]&&this[_0x228b07(0x2ee)](_0x48d8cb);}),this[_0x26a01f(0x304)](),this[_0x26a01f(0x200)](this[_0x26a01f(0x347)][_0x26a01f(0x140)](_0x4ef0bc=>{const _0x590348=_0x26a01f;if(this[_0x590348(0x127)]&&_0x4ef0bc['id']===g[_0x590348(0x245)]['id']&&_0x4ef0bc[_0x590348(0x151)]['unitId']===this[_0x590348(0x115)]){const _0x98bb85=_0x4ef0bc['params'];this[_0x590348(0x11c)](_0x98bb85[_0x590348(0x2d9)],_0x98bb85[_0x590348(0x29b)][0x0]);}})));}['_onCursorUpdate'](_0x49b55c){const _0x4bd521=_0x49483b;var _0x52e2fa,_0xdaa9a8;const {memberID:_0x517a32,selection:_0x268add}=_0x49b55c['data'],{sheetName:_0x3e2541,range:_0x28a1f9}=Te['deserializeRangeWithSheet'](_0x268add),_0x30a108={'name':(_0xdaa9a8=(_0x52e2fa=this[_0x4bd521(0x113)][_0x4bd521(0x125)](this[_0x4bd521(0x115)],_0x517a32))==null?void 0x0:_0x52e2fa[_0x4bd521(0x132)])!=null?_0xdaa9a8:_0x4bd521(0x375),'range':this['_getMergeRange'](_0x3e2541,_0x28a1f9),'sheetID':_0x3e2541,'color':this[_0x4bd521(0x307)][_0x4bd521(0x2e5)](_0x517a32),'selection':_0x268add},_0x501e6a=this[_0x4bd521(0x2df)];_0x501e6a[_0x4bd521(0x25c)](_0x517a32,_0x30a108),this[_0x4bd521(0x387)][_0x4bd521(0x160)](_0x501e6a);}[_0x49483b(0x2ee)](_0x411a78){const _0x7cf98e=_0x49483b,{memberID:_0x786982}=_0x411a78['data'],_0x2a1a49=this['cursorInfo'];_0x2a1a49['delete'](_0x786982),this['_cursorInfo$'][_0x7cf98e(0x160)](_0x2a1a49);}[_0x49483b(0x1f3)](_0x7f50c4,_0x22c596){const _0x44f1f5=_0x49483b;var _0x2136a6,_0x4d929b;const _0x8440a9=(_0x4d929b=(_0x2136a6=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x44f1f5(0x115)]))==null?void 0x0:_0x2136a6[_0x44f1f5(0x337)](_0x7f50c4))==null?void 0x0:_0x4d929b[_0x44f1f5(0x1ec)]();return(_0x8440a9==null?void 0x0:_0x8440a9[_0x44f1f5(0x37d)](_0x2dc566=>a[_0x44f1f5(0x17e)]['contains'](_0x2dc566,_0x22c596)))||_0x22c596;}[_0x49483b(0x304)](){const _0x1a52e0=_0x49483b,_0x120d16=new a[(_0x1a52e0(0x380))](),_0x897c3c=at(),_0x2c4a67=()=>{const _0x5e8367=_0x1a52e0;_0x120d16['dispose']();const _0x724eb=(_0x3224dc,_0x2b3241,_0x4441c3,_0x3326fb)=>{const _0x53ef36=_0x6961;let _0x2ff660=[];switch(_0x3224dc['id']){case g[_0x53ef36(0x2de)][_0x53ef36(0x228)]:{_0x2ff660=g['handleDeleteRangeMoveLeft'](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)][_0x53ef36(0x1d2)]:{_0x2ff660=g[_0x53ef36(0x12d)](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)][_0x53ef36(0x1ad)]:{_0x2ff660=g['handleInsertCol'](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)][_0x53ef36(0x161)]:{_0x2ff660=g[_0x53ef36(0x197)](_0x3224dc,_0x3326fb);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2ff660=g[_0x53ef36(0x148)](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)]['InsertRowCommandId']:{_0x2ff660=g[_0x53ef36(0x35d)](_0x3224dc,_0x3326fb);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0x2ff660=g[_0x53ef36(0x10e)](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)]['RemoveColCommandId']:{_0x2ff660=g[_0x53ef36(0x1a3)](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)]['RemoveRowCommandId']:{_0x2ff660=g[_0x53ef36(0x388)](_0x3224dc,_0x3326fb);break;}}const _0x4ee78a=g[_0x53ef36(0x230)](_0x2ff660,_0x3326fb),_0xd6cdd4=this['cursorInfo'][_0x53ef36(0x1bd)](_0x2b3241);if(_0xd6cdd4&&_0x4ee78a){const _0x236c9d={..._0xd6cdd4,'range':_0x4ee78a};this[_0x53ef36(0x2df)][_0x53ef36(0x25c)](_0x2b3241,_0x236c9d),_0x897c3c(()=>{const _0x1691f6=_0x53ef36,_0x304313=this['_refRangeService'][_0x1691f6(0x2ba)](_0x4ee78a,_0x563ff0=>(_0x304313['dispose'](),_0x724eb(_0x563ff0,_0x2b3241,_0x4441c3,_0x4ee78a)));_0x120d16[_0x1691f6(0x1b1)](_0x304313);});}return{'redos':[],'undos':[]};};this[_0x5e8367(0x2df)][_0x5e8367(0x32e)]((_0x502496,_0x38a08a)=>{const _0x20c5dd=_0x5e8367,{range:_0x3b8662,sheetID:_0x1b0982}=_0x502496,_0x19cf58=this[_0x20c5dd(0x28f)][_0x20c5dd(0x2ba)](_0x3b8662,_0x4282a0=>(_0x19cf58[_0x20c5dd(0x202)](),_0x724eb(_0x4282a0,_0x38a08a,_0x1b0982,_0x3b8662)));_0x120d16[_0x20c5dd(0x1b1)](_0x19cf58);});};this[_0x1a52e0(0x200)](a[_0x1a52e0(0x143)](this[_0x1a52e0(0x387)][_0x1a52e0(0x175)](()=>{_0x2c4a67();})));}[_0x49483b(0x164)](){const _0x211c5b=_0x49483b;var _0x18cc83,_0x29db1e;if(this[_0x211c5b(0x127)]=!0x0,((_0x18cc83=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x18cc83[_0x211c5b(0x18c)]())!==this[_0x211c5b(0x115)])return;const _0x3c11dd=(_0x29db1e=this[_0x211c5b(0x34e)][_0x211c5b(0x1bd)](g[_0x211c5b(0x221)])[_0x211c5b(0x276)]())==null?void 0x0:_0x29db1e[0x0],_0x26faea=this[_0x211c5b(0x145)][_0x211c5b(0x1aa)](a[_0x211c5b(0x24a)][_0x211c5b(0x2ec)])['getActiveSheet']();_0x3c11dd&&_0x26faea&&this['_updateLocalCursor'](_0x26faea[_0x211c5b(0x312)](),_0x3c11dd);}[_0x49483b(0x1ab)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),A(0x3,a['Inject'](Ce)),A(0x4,a[_0x49483b(0x199)](u[_0x49483b(0x2a8)])),A(0x5,a[_0x49483b(0x363)]),A(0x6,a[_0x49483b(0x2fb)]),A(0x7,a[_0x49483b(0x199)](g['RefRangeService']))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x561e6b,_0x918a51,_0x12eb10,_0x40f412)=>{const _0x10e5fa=_0x49483b;for(var _0x26efdc=_0x40f412>0x1?void 0x0:_0x40f412?ct(_0x918a51,_0x12eb10):_0x918a51,_0x407184=_0x561e6b[_0x10e5fa(0x22f)]-0x1,_0x4d6f7f;_0x407184>=0x0;_0x407184--)(_0x4d6f7f=_0x561e6b[_0x407184])&&(_0x26efdc=_0x4d6f7f(_0x26efdc)||_0x26efdc);return _0x26efdc;},ie=(_0x12debc,_0x4a9ae7)=>(_0x3db8ea,_0x3ce011)=>_0x4a9ae7(_0x3db8ea,_0x3ce011,_0x12debc);let x=class extends a[_0x49483b(0x17a)]{constructor(_0x40788a,_0x5f493c,_0x16a221){const _0x2d73f8=_0x49483b;super(),_(this,_0x2d73f8(0x33e),new Map()),_(this,_0x2d73f8(0x1c7),new d[(_0x2d73f8(0x171))]()),(this[_0x2d73f8(0x145)]=_0x40788a,this['_injector']=_0x5f493c,this[_0x2d73f8(0x265)]=_0x16a221,this[_0x2d73f8(0x31c)]());}[_0x49483b(0x202)](){const _0x3a32ca=_0x49483b;super[_0x3a32ca(0x202)](),this[_0x3a32ca(0x1c7)]['complete'](),this[_0x3a32ca(0x33e)][_0x3a32ca(0x32e)](_0x346a38=>_0x346a38[_0x3a32ca(0x202)]());}[_0x49483b(0x351)](_0x2ccd21){const _0x1eba48=_0x49483b;return this[_0x1eba48(0x33e)]['has'](_0x2ccd21)?this['_entities'][_0x1eba48(0x1bd)](_0x2ccd21)[_0x1eba48(0x168)]:this['_entityInit$'][_0x1eba48(0x2dc)](d['filter'](_0x3a5a4e=>_0x3a5a4e[_0x1eba48(0x115)]===_0x2ccd21),d[_0x1eba48(0x316)](_0x3f80a0=>_0x3f80a0[_0x1eba48(0x168)]));}['_init'](){const _0x46b50c=_0x49483b;this[_0x46b50c(0x145)][_0x46b50c(0x305)](a[_0x46b50c(0x24a)][_0x46b50c(0x2ec)])[_0x46b50c(0x2dc)](d[_0x46b50c(0x272)](this[_0x46b50c(0x2cb)]))[_0x46b50c(0x175)](async _0x131b03=>{const _0x35caee=_0x46b50c,_0x2c0513=_0x131b03[_0x35caee(0x18c)](),_0x3e9711=await this[_0x35caee(0x22d)](_0x2c0513);this['_entityInit$'][_0x35caee(0x160)](_0x3e9711),this[_0x35caee(0x33e)][_0x35caee(0x25c)](_0x2c0513,_0x3e9711);}),this[_0x46b50c(0x145)][_0x46b50c(0x305)](a[_0x46b50c(0x24a)][_0x46b50c(0x2f9)])['pipe'](d[_0x46b50c(0x272)](this[_0x46b50c(0x2cb)]))[_0x46b50c(0x2dc)](d[_0x46b50c(0x1a1)](_0x40d081=>!_0x40d081['getUnitId']()[_0x46b50c(0x17b)]('__')))[_0x46b50c(0x175)](async _0x245862=>{const _0x50f8a1=_0x46b50c,_0x4f50aa=_0x245862['getUnitId'](),_0x43b52b=await this[_0x50f8a1(0x331)](_0x4f50aa);this[_0x50f8a1(0x1c7)][_0x50f8a1(0x160)](_0x43b52b),this[_0x50f8a1(0x33e)][_0x50f8a1(0x25c)](_0x4f50aa,_0x43b52b);}),d[_0x46b50c(0x1f9)](this[_0x46b50c(0x145)][_0x46b50c(0x11f)](a[_0x46b50c(0x24a)][_0x46b50c(0x2f9)]),this['_univerInstanceService'][_0x46b50c(0x11f)](a[_0x46b50c(0x24a)][_0x46b50c(0x2ec)]))['pipe'](d[_0x46b50c(0x272)](this[_0x46b50c(0x2cb)]))[_0x46b50c(0x175)](_0x13ee77=>{const _0xb13cd0=_0x46b50c,_0x1b52af=_0x13ee77[_0xb13cd0(0x18c)](),_0x1473ff=this[_0xb13cd0(0x33e)][_0xb13cd0(0x1bd)](_0x1b52af);_0x1473ff&&(_0x1473ff[_0xb13cd0(0x202)](),this['_entities'][_0xb13cd0(0x334)](_0x1b52af));});}async[_0x49483b(0x22d)](_0x176b27){const _0x363780=_0x49483b,_0x13263d=await this[_0x363780(0x265)]['requireSession'](_0x176b27),_0xea17e8=this[_0x363780(0x34e)][_0x363780(0x1f7)](Ie,_0x176b27,_0x13263d);return _0xea17e8[_0x363780(0x378)](),_0xea17e8;}async[_0x49483b(0x331)](_0xd18aa8){const _0x2410bb=_0x49483b,_0x1ccee6=await this['_collabSessionService'][_0x2410bb(0x233)](_0xd18aa8),_0xabfd35=this[_0x2410bb(0x34e)][_0x2410bb(0x1f7)](Se,_0xd18aa8,_0x1ccee6);return _0xabfd35[_0x2410bb(0x378)](),_0xabfd35;}};x=lt([ie(0x0,a[_0x49483b(0x363)]),ie(0x1,a['Inject'](a[_0x49483b(0x1ef)])),ie(0x2,a[_0x49483b(0x199)](u[_0x49483b(0x123)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x48ae5e,_0x3d90c2){const _0x11b008=_0x49483b;let {radius:_0x501375,width:_0x3cdf70,height:_0x1a5ccb}=_0x3d90c2;_0x501375=_0x501375!=null?_0x501375:0x0,_0x3cdf70=_0x3cdf70!=null?_0x3cdf70:0x1e,_0x1a5ccb=_0x1a5ccb!=null?_0x1a5ccb:0x1e;let _0x1cf298=0x0,_0x22d18e=0x0,_0x390254=0x0;_0x1cf298=_0x22d18e=_0x390254=Math[_0x11b008(0x2b6)](_0x501375,_0x3cdf70/0x2,_0x1a5ccb/0x2),_0x48ae5e[_0x11b008(0x112)](),_0x48ae5e['moveTo'](_0x1cf298,0x0),_0x48ae5e[_0x11b008(0x1db)](_0x3cdf70-_0x22d18e,0x0),_0x48ae5e[_0x11b008(0x150)](_0x3cdf70-_0x22d18e,_0x22d18e,_0x22d18e,Math['PI']*0x3/0x2,0x0,!0x1),_0x48ae5e[_0x11b008(0x1db)](_0x3cdf70,_0x1a5ccb-_0x390254),_0x48ae5e[_0x11b008(0x150)](_0x3cdf70-_0x390254,_0x1a5ccb-_0x390254,_0x390254,0x0,Math['PI']/0x2,!0x1),_0x48ae5e[_0x11b008(0x1db)](0x0,_0x1a5ccb),_0x48ae5e[_0x11b008(0x1db)](0x0,_0x1cf298),_0x48ae5e[_0x11b008(0x150)](_0x1cf298,_0x1cf298,_0x1cf298,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x48ae5e[_0x11b008(0x2dd)](),_0x3d90c2[_0x11b008(0x299)]&&(_0x48ae5e[_0x11b008(0x210)](),_0x48ae5e[_0x11b008(0x374)]=_0x3d90c2[_0x11b008(0x299)],_0x3d90c2[_0x11b008(0x341)]===_0x11b008(0x227)?_0x48ae5e[_0x11b008(0x299)](_0x11b008(0x227)):_0x48ae5e['fill'](),_0x48ae5e[_0x11b008(0x1f2)]());}class te extends p[_0x49483b(0x26d)]{constructor(_0x45173e,_0x40c341){const _0x2c04be=_0x49483b;super(_0x45173e,_0x40c341),_(this,_0x2c04be(0x1bf)),_(this,_0x2c04be(0x25b)),(this[_0x2c04be(0x1bf)]=_0x40c341==null?void 0x0:_0x40c341[_0x2c04be(0x1bf)],this[_0x2c04be(0x25b)]=_0x40c341==null?void 0x0:_0x40c341['text']);}static[_0x49483b(0x225)](_0x738b23,_0x39b862){const _0x1f3542=_0x49483b,{text:_0x5e331e,color:_0x4bcff7}=_0x39b862;_0x738b23[_0x1f3542(0x210)](),_0x738b23[_0x1f3542(0x19c)]=_0x1f3542(0x29c);const _0x55e5fe=_0x738b23[_0x1f3542(0x213)](_0x5e331e)[_0x1f3542(0x38d)],_0x3c2b55=Math[_0x1f3542(0x2b6)](_0x55e5fe+0x2*re,De);ht(_0x738b23,{'height':K,'radius':0x4,'width':_0x3c2b55,'fill':_0x4bcff7}),_0x738b23[_0x1f3542(0x374)]='#FFF';const _0x3e1628=re,_0x1653fc=K-_t,_0x1a4ff3=De-0x2*re;if(_0x55e5fe>_0x1a4ff3){let _0x27f79c='',_0x4c546b=0x0;for(const _0x2d43e8 of _0x5e331e){const _0x140d45=_0x738b23['measureText'](_0x2d43e8)[_0x1f3542(0x38d)];if(_0x4c546b+_0x140d45<=_0x1a4ff3-_0x738b23[_0x1f3542(0x213)](_0x1f3542(0x31f))[_0x1f3542(0x38d)])_0x27f79c+=_0x2d43e8,_0x4c546b+=_0x140d45;else{_0x27f79c+=_0x1f3542(0x31f);break;}}_0x738b23['fillText'](_0x27f79c,_0x3e1628,_0x1653fc);}else _0x738b23[_0x1f3542(0x1c4)](_0x5e331e,_0x3e1628,_0x1653fc);_0x738b23[_0x1f3542(0x1f2)]();}[_0x49483b(0x38c)](_0x2f8cc3){const _0x2048a5=_0x49483b;te[_0x2048a5(0x225)](_0x2f8cc3,this);}}const oe='collab-text-anchor-',ut=_0x49483b(0x11a),dt=_0x49483b(0x172),k=0x6,ft=1.5,ae=0x4,St=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x17d852,_0x96474,_0x247aa1,_0x52dc18){const _0x51a9b3=_0x49483b;_(this,'_shapes',[]),_(this,_0x51a9b3(0x158),null),_(this,'_textBubble',null),_(this,_0x51a9b3(0x2eb),null),_(this,'_hideTimer',null),_(this,_0x51a9b3(0x282),null),(this[_0x51a9b3(0x2b8)]=_0x17d852,this[_0x51a9b3(0x226)]=_0x96474,this[_0x51a9b3(0x2f6)]=_0x247aa1,this['_document']=_0x52dc18,this[_0x51a9b3(0x31b)]());}set[_0x49483b(0x28d)](_0x28e441){const _0x239f00=_0x49483b;_0x28e441?(this[_0x239f00(0x2eb)]&&this[_0x239f00(0x2eb)]['hide'](),this[_0x239f00(0x30f)]&&this['_textBubble'][_0x239f00(0x17d)]()):(this[_0x239f00(0x2eb)]&&this[_0x239f00(0x2eb)]['show'](),this['_textBubble']&&this[_0x239f00(0x30f)]['hide']());}[_0x49483b(0x202)](){const _0x538eab=_0x49483b;for(const _0x64e244 of this[_0x538eab(0x201)])_0x64e244['dispose']();this[_0x538eab(0x30f)]&&this[_0x538eab(0x30f)][_0x538eab(0x202)](),this[_0x538eab(0x2eb)]&&this[_0x538eab(0x2eb)][_0x538eab(0x202)](),this[_0x538eab(0x158)]&&this['_anchor'][_0x538eab(0x202)](),this[_0x538eab(0x282)]&&this[_0x538eab(0x282)]();}['_render'](){const _0x33f5ac=_0x49483b;var _0x525f19;const {_docSkeleton:_0x4efada,_document:_0x349e8e}=this,{color:_0x533ad8,name:_0x3f1764,ranges:_0x121ee6}=this[_0x33f5ac(0x2b8)],_0x30cec1=_0x349e8e[_0x33f5ac(0x329)](),{docsLeft:_0x14bbc0,docsTop:_0x48a75f}=_0x30cec1,_0x589110=new b[(_0x33f5ac(0x2ad))](_0x30cec1,_0x4efada);for(const {startOffset:_0xbeab58,endOffset:_0x30d80e,rangeType:_0x1939e1,segmentId:_0x10d487,segmentPage:_0xc47d67,collapsed:_0x30dba7,isActive:_0x3d0c65}of _0x121ee6){const _0x5e4388=_0x4efada[_0x33f5ac(0x212)](_0xbeab58,!0x0,_0x10d487,_0xc47d67);let _0x407132=_0x4efada[_0x33f5ac(0x212)](_0x30d80e,!0x0,_0x10d487,_0xc47d67);if(_0x407132==null&&(_0x407132=_0x4efada[_0x33f5ac(0x212)](_0x30d80e-0x1,!0x1,_0x10d487,_0xc47d67)),_0x3d0c65){const {contentBoxPointGroup:_0x511c0f}=_0x589110['getRangePointData'](_0x407132,_0x407132);if(_0x511c0f[_0x33f5ac(0x22f)]===0x0)continue;this[_0x33f5ac(0x26e)](_0x533ad8,_0x511c0f,_0x14bbc0,_0x48a75f,_0x3f1764),this[_0x33f5ac(0x282)]=this[_0x33f5ac(0x325)]();}if(_0x5e4388&&_0x407132){if(_0x1939e1===a['DOC_RANGE_TYPE'][_0x33f5ac(0x1b7)]){const _0x108230=new b[(_0x33f5ac(0x367))](_0x30cec1,_0x4efada),{pointGroup:_0x312b5b}=(_0x525f19=_0x108230[_0x33f5ac(0x1a2)](_0x5e4388,_0x407132))!=null?_0x525f19:{};if(_0x312b5b==null||_0x312b5b[_0x33f5ac(0x22f)]===0x0)continue;this[_0x33f5ac(0x2e3)](_0x533ad8,_0x312b5b,_0x14bbc0,_0x48a75f);}else{if(!_0x30dba7){const {borderBoxPointGroup:_0x37ffb1}=_0x589110[_0x33f5ac(0x1a2)](_0x5e4388,_0x407132);if(_0x37ffb1[_0x33f5ac(0x22f)]===0x0)continue;this['_drawTextRange'](_0x533ad8,_0x37ffb1,_0x14bbc0,_0x48a75f);}}}}}['_drawAnchor'](_0x187ef1,_0x3caf44,_0x4e3b3d,_0x33cdd6,_0xea22f1){const _0x19cf3a=_0x49483b,_0xd76cee=this[_0x19cf3a(0x297)](_0x3caf44),{left:_0x49e5cd,top:_0x4ad7e1,height:_0x339559}=_0xd76cee,_0x45ad21=this[_0x19cf3a(0x2e1)](),_0x5370eb=St/_0x45ad21,_0x293273=new p[(_0x19cf3a(0x269))](oe+a['Tools']['generateRandomId'](k),{'left':_0x49e5cd+_0x4e3b3d-_0x5370eb,'top':_0x4ad7e1+_0x33cdd6,'height':_0x339559,'width':ft,'fill':_0x187ef1||p['getColor'](a['COLORS'][_0x19cf3a(0x356)],0x0),'strokeWidth':_0x5370eb,'stroke':It,'evented':!0x0});this[_0x19cf3a(0x158)]=_0x293273,this[_0x19cf3a(0x226)][_0x19cf3a(0x2c7)](_0x293273,b[_0x19cf3a(0x2a6)]);const _0x1c09a7=new p[(_0x19cf3a(0x269))](oe+a[_0x19cf3a(0x15b)]['generateRandomId'](k),{'left':_0x49e5cd+_0x4e3b3d-_0x5370eb,'top':_0x4ad7e1+_0x33cdd6-ae/0x2,'height':ae,'width':ae,'fill':_0x187ef1||p[_0x19cf3a(0x35f)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x187ef1||p[_0x19cf3a(0x35f)](a[_0x19cf3a(0x25e)][_0x19cf3a(0x356)],0x0),'evented':!0x1});this[_0x19cf3a(0x2eb)]=_0x1c09a7,this[_0x19cf3a(0x226)][_0x19cf3a(0x2c7)](_0x1c09a7,b[_0x19cf3a(0x2a6)]);const _0x2f40c7=new te(oe+a[_0x19cf3a(0x15b)][_0x19cf3a(0x23a)](k),{'left':_0x49e5cd+_0x4e3b3d-_0x5370eb,'top':_0x4ad7e1+_0x33cdd6-K,'text':_0xea22f1,'color':_0x187ef1});this[_0x19cf3a(0x30f)]=_0x2f40c7,this[_0x19cf3a(0x226)][_0x19cf3a(0x2c7)](_0x2f40c7,b[_0x19cf3a(0x2a6)]),this[_0x19cf3a(0x28d)]=!0x1;}[_0x49483b(0x325)](){const _0xb56b19=_0x49483b,_0x38c243=this[_0xb56b19(0x158)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x2f2495=_0xb56b19;this[_0x2f2495(0x28d)]=!0x0;}),_0x2246a0=this[_0xb56b19(0x158)][_0xb56b19(0x390)][_0xb56b19(0x1c5)](()=>{const _0xe64d46=_0xb56b19;this[_0xe64d46(0x288)]&&clearTimeout(this[_0xe64d46(0x288)]),this[_0xe64d46(0x288)]=setTimeout(()=>{const _0x54c68d=_0xe64d46;this[_0x54c68d(0x28d)]=!0x1;},0x7d0);});return()=>{const _0x527386=_0xb56b19;_0x38c243[_0x527386(0x1e1)](),_0x2246a0[_0x527386(0x1e1)]();};}[_0x49483b(0x33d)](_0x3625a2,_0x46c1dd,_0x23acef,_0x5ae34a){const _0x17136e=_0x49483b,_0x3ad75f=new a[(_0x17136e(0x38e))](_0x3625a2)[_0x17136e(0x29a)](0.2)[_0x17136e(0x1cc)](),_0x5a56eb=new p[(_0x17136e(0x1af))](ut+a[_0x17136e(0x15b)][_0x17136e(0x23a)](k),{'pointsGroup':_0x46c1dd,'fill':_0x3ad75f||p[_0x17136e(0x35f)](a[_0x17136e(0x25e)][_0x17136e(0x356)],0.2),'left':_0x23acef,'top':_0x5ae34a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x17136e(0x201)][_0x17136e(0x119)](_0x5a56eb),this[_0x17136e(0x226)][_0x17136e(0x2c7)](_0x5a56eb,b[_0x17136e(0x2a6)]);}['_drawRectRange'](_0x26ce98,_0xaa644c,_0x8519f5,_0x1143e8){const _0x5ca18e=_0x49483b,_0x104822=new a[(_0x5ca18e(0x38e))](_0x26ce98)[_0x5ca18e(0x29a)](0.2)[_0x5ca18e(0x1cc)](),_0xdc452c=new p[(_0x5ca18e(0x1af))](dt+a[_0x5ca18e(0x15b)][_0x5ca18e(0x23a)](k),{'pointsGroup':_0xaa644c,'fill':_0x104822||p['getColor'](a[_0x5ca18e(0x25e)][_0x5ca18e(0x356)],0.2),'left':_0x8519f5,'top':_0x1143e8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0xdc452c),this['_scene']['addObject'](_0xdc452c,b[_0x5ca18e(0x2a6)]);}[_0x49483b(0x297)](_0x176a7f){const _0x2f79d3=_0x176a7f[0x0],_0xf00d6d=_0x2f79d3[0x0],_0x2e079a=_0x2f79d3[0x2],{x:_0x41f0a1,y:_0x21929f}=_0xf00d6d,{x:_0x3e2c18,y:_0x4ca79a}=_0x2e079a;return{'left':_0x41f0a1,'top':_0x21929f,'width':_0x3e2c18-_0x41f0a1,'height':_0x4ca79a-_0x21929f};}[_0x49483b(0x2e1)](){const _0x4e5146=_0x49483b,{scaleX:_0x2258e8,scaleY:_0x21989a}=this[_0x4e5146(0x226)][_0x4e5146(0x155)]();return Math[_0x4e5146(0x216)](_0x2258e8,_0x21989a);}}var vt=Object[_0x49483b(0x16b)],gt=(_0x59963b,_0x3cc06f,_0x3841ef,_0x2ea6d1)=>{for(var _0x6e3f21=_0x2ea6d1>0x1?void 0x0:_0x2ea6d1?vt(_0x3cc06f,_0x3841ef):_0x3cc06f,_0x4916c2=_0x59963b['length']-0x1,_0x536c03;_0x4916c2>=0x0;_0x4916c2--)(_0x536c03=_0x59963b[_0x4916c2])&&(_0x6e3f21=_0x536c03(_0x6e3f21)||_0x6e3f21);return _0x6e3f21;},V=(_0x4eff18,_0x2d3900)=>(_0x318d11,_0xba1d20)=>_0x2d3900(_0x318d11,_0xba1d20,_0x4eff18);let ve=class extends a[_0x49483b(0x17a)]{constructor(_0x209c08,_0x5438dd,_0x18d05b,_0x3bb694,_0x2d49f1){const _0x5c15f6=_0x49483b;super(),_(this,_0x5c15f6(0x20f),[]),_(this,_0x5c15f6(0x36d),[]),(this[_0x5c15f6(0x18f)]=_0x209c08,this['_docSkeletonManagerService']=_0x5438dd,this[_0x5c15f6(0x2cf)]=_0x18d05b,this[_0x5c15f6(0x347)]=_0x3bb694,this[_0x5c15f6(0x27f)]=_0x2d49f1,this[_0x5c15f6(0x31c)]());}[_0x49483b(0x31c)](){const _0x5c5025=_0x49483b,_0x2b6d72=this[_0x5c5025(0x18f)][_0x5c5025(0x31e)],_0x20ee3a=this[_0x5c5025(0x280)];this['disposeWithMe'](d['combineLatest']([this[_0x5c5025(0x2cf)]['getCollabCursors$'](_0x2b6d72),this[_0x5c5025(0x27f)][_0x5c5025(0x170)]])[_0x5c5025(0x2dc)]($[_0x5c5025(0x1ae)](([_0x2c0086,_0x390fc1])=>({'skeleton':_0x20ee3a[_0x5c5025(0x152)](),'cursors':[..._0x2c0086[_0x5c5025(0x385)]()][_0x5c5025(0x27c)](_0x53f3a0=>({..._0x53f3a0,'color':_0x390fc1[_0x53f3a0[_0x5c5025(0x1bf)]]}))})))[_0x5c5025(0x175)](_0xc355b8=>{const _0x4e281a=_0x5c5025;if(this[_0x4e281a(0x350)](),_0xc355b8){const {skeleton:_0x19da43,cursors:_0x477c7c}=_0xc355b8;this[_0x4e281a(0x2f2)](_0x19da43,_0x477c7c);}})),this[_0x5c5025(0x187)](),this[_0x5c5025(0x1c2)]();}[_0x49483b(0x2f2)](_0xc0e6ce,_0x1981a5){const _0x165c02=_0x49483b,{scene:_0x4f25c0,mainComponent:_0x107713}=this[_0x165c02(0x18f)],_0x1b792c=_0x1981a5[_0x165c02(0x1ae)](_0x21f4eb=>new Ue(_0x21f4eb,_0x4f25c0,_0xc0e6ce,_0x107713));this[_0x165c02(0x20f)]=_0x1b792c,this['_cursors']=_0x1981a5;}[_0x49483b(0x190)](){const _0x249c4a=_0x49483b;this[_0x249c4a(0x350)]();const {scene:_0x79a015,mainComponent:_0x20ab62}=this[_0x249c4a(0x18f)],_0x5130db=this[_0x249c4a(0x280)][_0x249c4a(0x152)](),_0x1d8199=this[_0x249c4a(0x36d)][_0x249c4a(0x1ae)](_0x508cf9=>new Ue(_0x508cf9,_0x79a015,_0x5130db,_0x20ab62));this[_0x249c4a(0x20f)]=_0x1d8199;}['_removeCollabCursors'](){const _0x3e119b=_0x49483b;this[_0x3e119b(0x20f)][_0x3e119b(0x32e)](_0x208df3=>_0x208df3[_0x3e119b(0x202)]()),this['_cursorShapes']=[];}[_0x49483b(0x1c2)](){const _0x22c77d=_0x49483b,_0x5c569f=[b[_0x22c77d(0x1eb)]['id']];this[_0x22c77d(0x200)](this['_commandService'][_0x22c77d(0x140)](_0x522ce9=>{const _0x3bd7f8=_0x22c77d;_0x5c569f[_0x3bd7f8(0x2af)](_0x522ce9['id'])&&_0x522ce9['params']['unitId']===this['_context'][_0x3bd7f8(0x31e)]&&this['_refreshCollabCursors']();}));}[_0x49483b(0x187)](){const _0x756db3=_0x49483b;this['disposeWithMe'](a[_0x756db3(0x300)](this[_0x756db3(0x18f)]['engine']['onTransformChange$'])['pipe']($['filter'](_0x1a7fd2=>_0x1a7fd2[_0x756db3(0x1e6)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x756db3(0x348)]),$[_0x756db3(0x1b0)](0x10))[_0x756db3(0x175)](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x49483b(0x199)](Y[_0x49483b(0x27d)])),V(0x2,a[_0x49483b(0x199)](x)),V(0x3,a[_0x49483b(0x2fb)]),V(0x4,a[_0x49483b(0x199)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x49483b(0x26d)]{constructor(_0x55b916,_0x4acdf9){const _0x47bd42=_0x49483b;super(_0x55b916,_0x4acdf9),_(this,_0x47bd42(0x19f)),_(this,_0x47bd42(0x22a),!0x1),_(this,_0x47bd42(0x1fd)),_(this,_0x47bd42(0x1df),''),_(this,'_labelPosition',_0x47bd42(0x284)),_(this,_0x47bd42(0x2b5)),(_0x4acdf9&&this[_0x47bd42(0x253)](_0x4acdf9),this[_0x47bd42(0x295)][_0x47bd42(0x1c5)](()=>this[_0x47bd42(0x253)]({'hovered':!0x0})),this[_0x47bd42(0x390)][_0x47bd42(0x1c5)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x49483b(0x253)](_0x329dd4){const _0x11d4f9=_0x49483b;var _0x3400a4,_0x30ee68,_0x2ab821,_0x2d8daf,_0x4ecb29,_0x4036b1;this[_0x11d4f9(0x19f)]=(_0x3400a4=_0x329dd4[_0x11d4f9(0x1bf)])!=null?_0x3400a4:this[_0x11d4f9(0x19f)],this[_0x11d4f9(0x22a)]=(_0x30ee68=_0x329dd4[_0x11d4f9(0x1d9)])!=null?_0x30ee68:this[_0x11d4f9(0x22a)],this[_0x11d4f9(0x1fd)]=(_0x2ab821=_0x329dd4[_0x11d4f9(0x24d)])!=null?_0x2ab821:this[_0x11d4f9(0x1fd)],this[_0x11d4f9(0x1df)]=(_0x2d8daf=_0x329dd4[_0x11d4f9(0x132)])!=null?_0x2d8daf:this[_0x11d4f9(0x1df)],this[_0x11d4f9(0x1fe)]=(_0x4ecb29=_0x329dd4[_0x11d4f9(0x1d8)])!=null?_0x4ecb29:this[_0x11d4f9(0x1fe)],this['_backgroundColor']=(_0x4036b1=_0x329dd4[_0x11d4f9(0x2d0)])!=null?_0x4036b1:this[_0x11d4f9(0x2b5)],this[_0x11d4f9(0x275)]({'width':_0x329dd4[_0x11d4f9(0x38d)],'height':_0x329dd4[_0x11d4f9(0x1e5)]});}[_0x49483b(0x206)](_0x18af41){const _0x264600=_0x49483b,{row:_0x438af2,column:_0x4ba3e4}=_0x18af41;if(_0x438af2>=this['_range'][_0x264600(0x381)]&&_0x438af2<=this[_0x264600(0x1fd)][_0x264600(0x389)]&&_0x4ba3e4>=this['_range'][_0x264600(0x2a7)]&&_0x4ba3e4<=this[_0x264600(0x1fd)][_0x264600(0x36c)]){this[_0x264600(0x253)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x49483b(0x25d)](_0xd23ccd){return!0x1;}[_0x49483b(0x38c)](_0x11c75d){const _0x10a96f=_0x49483b;p['Rect'][_0x10a96f(0x225)](_0x11c75d,{'width':this[_0x10a96f(0x38d)],'height':this[_0x10a96f(0x1e5)],'strokeWidth':Ct,'stroke':this[_0x10a96f(0x19f)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x11c75d['save'](),_0x11c75d[_0x10a96f(0x2b7)](0x1,0x0,0x0,0x1,this[_0x10a96f(0x38d)],this[_0x10a96f(0x1fe)]===_0x10a96f(0x36f)?0x0:-0x14),te[_0x10a96f(0x225)](_0x11c75d,{'text':this[_0x10a96f(0x1df)],'color':this[_0x10a96f(0x19f)]}),_0x11c75d[_0x10a96f(0x1f2)]());}}var pt=Object[_0x49483b(0x16b)],bt=(_0x21fa2b,_0x3e64a9,_0xa3c42c,_0x30c2ab)=>{for(var _0x349771=_0x30c2ab>0x1?void 0x0:_0x30c2ab?pt(_0x3e64a9,_0xa3c42c):_0x3e64a9,_0x526722=_0x21fa2b['length']-0x1,_0x5548cc;_0x526722>=0x0;_0x526722--)(_0x5548cc=_0x21fa2b[_0x526722])&&(_0x349771=_0x5548cc(_0x349771)||_0x349771);return _0x349771;},ce=(_0x53b5a2,_0x178149)=>(_0xd3b55b,_0x12bb2c)=>_0x178149(_0xd3b55b,_0x12bb2c,_0x53b5a2);const Et=0x1389;let ge=class extends a[_0x49483b(0x17a)]{constructor(_0x1837d7,_0x3a6edd,_0x2c55a2,_0x53c24e){const _0x1e3198=_0x49483b;super(),_(this,'_cursors',new Set()),_(this,_0x1e3198(0x2f1),null),(this[_0x1e3198(0x18f)]=_0x1837d7,this['_sheetSkeletonManagerService']=_0x3a6edd,this[_0x1e3198(0x2cf)]=_0x2c55a2,this[_0x1e3198(0x27f)]=_0x53c24e,this[_0x1e3198(0x31c)]());}[_0x49483b(0x31c)](){const _0x2effde=_0x49483b;this[_0x2effde(0x153)][_0x2effde(0x340)]['pipe']($[_0x2effde(0x272)](this[_0x2effde(0x2cb)]),$[_0x2effde(0x316)](_0x1d849d=>{const _0x1322df=_0x2effde;if(_0x1d849d){const _0x204fbb=_0x1d849d[_0x1322df(0x188)];return d['combineLatest'](this[_0x1322df(0x2cf)][_0x1322df(0x351)](this[_0x1322df(0x18f)][_0x1322df(0x31e)]),this[_0x1322df(0x27f)][_0x1322df(0x170)])['pipe']($[_0x1322df(0x1ae)](([_0x2c155c,_0x30708d])=>{const _0x56ad0c=_0x1322df,_0x4ed846=new Map();return _0x2c155c[_0x56ad0c(0x32e)]((_0x41823e,_0x1a455a)=>{const _0x1f9f52=_0x56ad0c;if(_0x41823e[_0x1f9f52(0x314)]===_0x204fbb){const _0x477c0f={..._0x41823e};_0x477c0f['color']=_0x30708d[_0x41823e[_0x1f9f52(0x1bf)]],_0x4ed846[_0x1f9f52(0x25c)](_0x1a455a,_0x477c0f);}}),{'skeleton':_0x1d849d,'cursors':_0x4ed846};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2effde(0x175)](({skeleton:_0x57508b,cursors:_0x2dceb6})=>{const _0x3f3367=_0x2effde;this['_removeCollabCursors'](),_0x57508b&&this[_0x3f3367(0x2f2)](_0x57508b,_0x2dceb6);}),this[_0x2effde(0x153)]['currentSkeleton$'][_0x2effde(0x175)](_0x4fb541=>{const _0x4eaf90=_0x2effde;if(_0x4fb541==null)return;const {skeleton:_0xc1b593}=_0x4fb541,{scene:_0x394988}=this[_0x4eaf90(0x18f)];_0x394988[_0x4eaf90(0x29e)][_0x4eaf90(0x1c5)](a[_0x4eaf90(0x1e9)](_0x46ce83=>{const _0x420ffa=_0x4eaf90;var _0x6e54d3,_0x387a3e;const {offsetX:_0x5455c0,offsetY:_0x58b06b}=_0x46ce83,{x:_0x52c697,y:_0x356bc3}=_0x394988[_0x420ffa(0x1be)](p[_0x420ffa(0x1c0)][_0x420ffa(0x124)]([_0x5455c0,_0x58b06b])),{scaleX:_0x3bd29d,scaleY:_0x5a4e81}=_0x394988[_0x420ffa(0x155)](),_0x53e785=_0x394988[_0x420ffa(0x2aa)](p['SHEET_VIEWPORT_KEY'][_0x420ffa(0x373)]),_0x2e5cfc=_0x394988['getVpScrollXYInfoByPosToVp'](p['Vector2']['FromArray']([_0x52c697,_0x356bc3]),_0x53e785),_0x1f3094=_0xc1b593[_0x420ffa(0x2bc)](_0x5455c0,_0x58b06b,_0x3bd29d,_0x5a4e81,_0x2e5cfc);((_0x6e54d3=this['_lastPointer'])==null?void 0x0:_0x6e54d3[_0x420ffa(0x1d7)])===_0x1f3094[_0x420ffa(0x1d7)]&&((_0x387a3e=this[_0x420ffa(0x2f1)])==null?void 0x0:_0x387a3e[_0x420ffa(0x1d0)])===_0x1f3094['row']||this[_0x420ffa(0x36d)][_0x420ffa(0x32e)](_0x13d709=>{_0x13d709['onMouseMove'](_0x1f3094);});},0x64));});}[_0x49483b(0x2f2)](_0x43c5e1,_0x18e698){const _0x4c890d=_0x49483b;var _0x585ba9;const _0x4a13b1=(_0x585ba9=this[_0x4c890d(0x153)][_0x4c890d(0x191)]())==null?void 0x0:_0x585ba9[_0x4c890d(0x162)];if(!_0x4a13b1)return;const _0x5a5e41=this['_getSheetObject']();if(!_0x5a5e41)return;this[_0x4c890d(0x36d)][_0x4c890d(0x32e)](_0x59d5a9=>{const _0x1a4708=_0x4c890d;_0x59d5a9[_0x1a4708(0x2ea)]();});const {scene:_0x3289f4}=_0x5a5e41,_0x35141f=Tt(Array[_0x4c890d(0x352)](_0x18e698[_0x4c890d(0x385)]()))['map'](_0xf7a0cd=>{const _0x3b23c1=_0x4c890d,{color:_0x48ca7d,range:_0x1be5f8,name:_0x550665,selection:_0x37bd2e,sheetID:_0x5b8784}=_0xf7a0cd,{startColumn:_0x4e29e5,startRow:_0x156e30,endColumn:_0x55747f,endRow:_0x3a54b6}=_0x1be5f8,_0x598fa7=G[_0x3b23c1(0x183)](_0x156e30,_0x4e29e5,_0x3289f4,_0x4a13b1),_0x3eb382=G[_0x3b23c1(0x183)](_0x3a54b6,_0x55747f,_0x3289f4,_0x4a13b1),{columnHeaderHeightAndMarginTop:_0x284e07}=_0x4a13b1,{startX:_0x3077b2,startY:_0x4b3ef5}=_0x598fa7,{endX:_0x3659fb,endY:_0x4b288a}=_0x3eb382,_0xa385f0=_0x3659fb-_0x3077b2,_0xf52c10=_0x4b288a-_0x4b3ef5,_0x4bfc8c={'labelPosition':_0x4b3ef5-_0x284e07>=K?_0x3b23c1(0x284):_0x3b23c1(0x36f),'sheetID':_0x5b8784,'range':_0x1be5f8,'color':_0x48ca7d,'name':_0x550665,'selection':_0x37bd2e,'left':_0x3077b2,'top':_0x4b3ef5,'width':_0xa385f0,'height':_0xf52c10,'evented':!0x1,'zIndex':Et};return new Ae(_0x550665,_0x4bfc8c);});_0x3289f4[_0x4c890d(0x2d7)](_0x35141f,mt),this[_0x4c890d(0x36d)]=new Set(_0x35141f);}['_removeCollabCursors'](){const _0x4c1cea=_0x49483b;var _0xf9227a;(_0xf9227a=this[_0x4c1cea(0x36d)])==null||_0xf9227a[_0x4c1cea(0x32e)](_0x533d3e=>_0x533d3e[_0x4c1cea(0x202)]());}['_getSheetObject'](){const _0x71bedd=_0x49483b;return G['getSheetObject'](this['_context'][_0x71bedd(0x14c)],this['_context']);}};ge=bt([ce(0x1,a[_0x49483b(0x199)](G[_0x49483b(0x26b)])),ce(0x2,a[_0x49483b(0x199)](x)),ce(0x3,a['Inject'](a[_0x49483b(0x11b)]))],ge);function Tt(_0x47bfee){const _0x1c8d68=_0x49483b,_0x19524f=new Map();return _0x47bfee[_0x1c8d68(0x32e)](_0x3672fb=>{const _0x50a37d=_0x1c8d68;if(_0x19524f[_0x50a37d(0x179)](_0x3672fb['selection'])){const _0x57df55=_0x19524f[_0x50a37d(0x1bd)](_0x3672fb[_0x50a37d(0x165)]);_0x57df55[_0x50a37d(0x132)]+=',\x20'+_0x3672fb[_0x50a37d(0x132)];}else _0x19524f[_0x50a37d(0x25c)](_0x3672fb[_0x50a37d(0x165)],_0x3672fb);}),Array['from'](_0x19524f['values']());}var E=function(){const _0x4b6af4=_0x49483b;return E=Object[_0x4b6af4(0x17c)]||function(_0x33c367){const _0x9ea029=_0x4b6af4;for(var _0x5a3eed,_0x5bf048=0x1,_0x580f63=arguments[_0x9ea029(0x22f)];_0x5bf048<_0x580f63;_0x5bf048++){_0x5a3eed=arguments[_0x5bf048];for(var _0x3ca8b5 in _0x5a3eed)Object[_0x9ea029(0x345)][_0x9ea029(0x231)]['call'](_0x5a3eed,_0x3ca8b5)&&(_0x33c367[_0x3ca8b5]=_0x5a3eed[_0x3ca8b5]);}return _0x33c367;},E[_0x4b6af4(0x1a9)](this,arguments);},Ot=function(_0x5ceff3,_0x314843){const _0x5e6f39=_0x49483b;var _0x14daaa={};for(var _0x54ec48 in _0x5ceff3)Object[_0x5e6f39(0x345)][_0x5e6f39(0x231)][_0x5e6f39(0x38b)](_0x5ceff3,_0x54ec48)&&_0x314843[_0x5e6f39(0x159)](_0x54ec48)<0x0&&(_0x14daaa[_0x54ec48]=_0x5ceff3[_0x54ec48]);if(_0x5ceff3!=null&&typeof Object[_0x5e6f39(0x209)]==_0x5e6f39(0x2f7)){for(var _0x124e26=0x0,_0x54ec48=Object['getOwnPropertySymbols'](_0x5ceff3);_0x124e26<_0x54ec48[_0x5e6f39(0x22f)];_0x124e26++)_0x314843[_0x5e6f39(0x159)](_0x54ec48[_0x124e26])<0x0&&Object[_0x5e6f39(0x345)]['propertyIsEnumerable'][_0x5e6f39(0x38b)](_0x5ceff3,_0x54ec48[_0x124e26])&&(_0x14daaa[_0x54ec48[_0x124e26]]=_0x5ceff3[_0x54ec48[_0x124e26]]);}return _0x14daaa;},be=M[_0x49483b(0x28e)](function(_0x3a285f,_0x475b93){const _0x3d0ec3=_0x49483b;var _0x4b4ec5=_0x3a285f[_0x3d0ec3(0x156)],_0x284284=_0x3a285f['id'],_0x4faab1=_0x3a285f[_0x3d0ec3(0x2cc)],_0x1912bf=_0x3a285f[_0x3d0ec3(0x36e)],_0x40fead=Ot(_0x3a285f,[_0x3d0ec3(0x156),'id','className',_0x3d0ec3(0x36e)]),_0x1f9794=_0x3d0ec3(0x1f1)['concat'](_0x284284,'\x20')[_0x3d0ec3(0x34b)](_0x4faab1||'')['trim'](),_0x50a359=M[_0x3d0ec3(0x263)]('_'[_0x3d0ec3(0x34b)](Ut()));return ye(_0x4b4ec5,''[_0x3d0ec3(0x34b)](_0x284284),{'defIds':_0x4b4ec5[_0x3d0ec3(0x285)],'idSuffix':_0x50a359[_0x3d0ec3(0x174)]},E({'ref':_0x475b93,'className':_0x1f9794},_0x40fead),_0x1912bf);});function ye(_0x1328a1,_0x52f013,_0xbd2199,_0x56950c,_0x29862e){const _0x2b59cf=_0x49483b;return M[_0x2b59cf(0x258)](_0x1328a1[_0x2b59cf(0x204)],E(E({'key':_0x52f013},Rt(_0x1328a1,_0xbd2199,_0x29862e)),_0x56950c),(Dt(_0x1328a1,_0xbd2199)['children']||[])[_0x2b59cf(0x1ae)](function(_0x4d029d,_0x25fbca){const _0x45fe4a=_0x2b59cf;return ye(_0x4d029d,''['concat'](_0x52f013,'-')[_0x45fe4a(0x34b)](_0x1328a1[_0x45fe4a(0x204)],'-')['concat'](_0x25fbca),_0xbd2199,void 0x0,_0x29862e);}));}function Rt(_0x3abc97,_0x59a0e9,_0x4d7594){const _0x2d7d13=_0x49483b;var _0x54c944=E({},_0x3abc97['attrs']);_0x4d7594!=null&&_0x4d7594['colorChannel1']&&_0x54c944[_0x2d7d13(0x299)]==='colorChannel1'&&(_0x54c944['fill']=_0x4d7594[_0x2d7d13(0x349)]),_0x3abc97[_0x2d7d13(0x204)]==='mask'&&_0x54c944['id']&&(_0x54c944['id']=_0x54c944['id']+_0x59a0e9[_0x2d7d13(0x116)]),Object[_0x2d7d13(0x268)](_0x54c944)[_0x2d7d13(0x32e)](function(_0x1ef8ee){const _0x860784=_0x2d7d13;var _0x459f69=_0x1ef8ee[0x0],_0x10465c=_0x1ef8ee[0x1];_0x459f69===_0x860784(0x2da)&&typeof _0x10465c==_0x860784(0x21d)&&(_0x54c944[_0x459f69]=_0x10465c[_0x860784(0x376)](/url\(#(.*)\)/,_0x860784(0x118)['concat'](_0x59a0e9[_0x860784(0x116)],')')));});var _0x1dd8cb=_0x59a0e9[_0x2d7d13(0x285)];return!_0x1dd8cb||_0x1dd8cb[_0x2d7d13(0x22f)]===0x0||(_0x3abc97[_0x2d7d13(0x204)]===_0x2d7d13(0x252)&&_0x54c944['xlink:href']&&(_0x54c944[_0x2d7d13(0x318)]=_0x54c944[_0x2d7d13(0x318)]+_0x59a0e9[_0x2d7d13(0x116)]),Object[_0x2d7d13(0x268)](_0x54c944)[_0x2d7d13(0x32e)](function(_0x5bd791){const _0x236167=_0x2d7d13;var _0x4937cf=_0x5bd791[0x0],_0x548a8f=_0x5bd791[0x1];typeof _0x548a8f==_0x236167(0x21d)&&(_0x54c944[_0x4937cf]=_0x548a8f[_0x236167(0x376)](/url\(#(.*)\)/,_0x236167(0x118)[_0x236167(0x34b)](_0x59a0e9[_0x236167(0x116)],')')));})),_0x54c944;}function Dt(_0x16dda7,_0x53c4a7){const _0x31a25b=_0x49483b;var _0x4c2f4b,_0x42e5b9=_0x53c4a7[_0x31a25b(0x285)];return!_0x42e5b9||_0x42e5b9['length']===0x0?_0x16dda7:_0x16dda7[_0x31a25b(0x204)]==='defs'&&(!((_0x4c2f4b=_0x16dda7['children'])===null||_0x4c2f4b===void 0x0)&&_0x4c2f4b['length'])?E(E({},_0x16dda7),{'children':_0x16dda7[_0x31a25b(0x26a)][_0x31a25b(0x1ae)](function(_0x2fe9a2){const _0x682d7=_0x31a25b;return typeof _0x2fe9a2[_0x682d7(0x28a)]['id']==_0x682d7(0x21d)&&_0x42e5b9&&_0x42e5b9[_0x682d7(0x159)](_0x2fe9a2['attrs']['id'])>-0x1?E(E({},_0x2fe9a2),{'attrs':E(E({},_0x2fe9a2[_0x682d7(0x28a)]),{'id':_0x2fe9a2[_0x682d7(0x28a)]['id']+_0x53c4a7[_0x682d7(0x116)]})}):_0x2fe9a2;})}):_0x16dda7;}function Ut(){const _0x4cb155=_0x49483b;return Math[_0x4cb155(0x273)]()[_0x4cb155(0x237)](0x24)[_0x4cb155(0x1a7)](0x2,0x8);}be[_0x49483b(0x184)]=_0x49483b(0x355);var Nt={'tag':'svg','attrs':{'fill':_0x49483b(0x31a),'viewBox':_0x49483b(0x361),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x49483b(0x2fa),'d':_0x49483b(0x239),'strokeLinecap':_0x49483b(0x371),'strokeLinejoin':_0x49483b(0x371),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x49483b(0x278)},'children':[{'tag':_0x49483b(0x286),'attrs':{'fill':_0x49483b(0x271),'d':_0x49483b(0x11d)}}]}]}],'defIds':[_0x49483b(0x278)]},$e=M[_0x49483b(0x28e)](function(_0x169e86,_0x2cde55){const _0x202271=_0x49483b;return M['createElement'](be,Object[_0x202271(0x17c)]({},_0x169e86,{'id':_0x202271(0x289),'ref':_0x2cde55,'icon':Nt}));});$e[_0x49483b(0x184)]=_0x49483b(0x391);var Mt={'tag':_0x49483b(0x211),'attrs':{'fill':_0x49483b(0x31a),'viewBox':_0x49483b(0x384),'width':'1em','height':_0x49483b(0x35c)},'children':[{'tag':'g','attrs':{'clipPath':_0x49483b(0x1c8)},'children':[{'tag':_0x49483b(0x286),'attrs':{'stroke':'currentColor','d':_0x49483b(0x250),'strokeLinecap':_0x49483b(0x371),'strokeLinejoin':_0x49483b(0x371),'strokeWidth':1.2}}]},{'tag':_0x49483b(0x322),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x49483b(0x1b8)},'children':[{'tag':_0x49483b(0x286),'attrs':{'fill':_0x49483b(0x271),'d':_0x49483b(0x11d),'transform':_0x49483b(0x19d)}}]}]}],'defIds':[_0x49483b(0x1b8)]},xe=M[_0x49483b(0x28e)](function(_0xcaa530,_0x3e8947){const _0x443894=_0x49483b;return M['createElement'](be,Object[_0x443894(0x17c)]({},_0xcaa530,{'id':_0x443894(0x208),'ref':_0x3e8947,'icon':Mt}));});function _0x2197(){const _0x37c93b=['Workbook','@univerjs/network','createElement','session.collaboration-timeout','_localeService','text','set','triggerDblclick','COLORS','removeParam','complete','HEADER_MENU','collabStatus.syncing','useRef','LOGIN_FAILED','_collabSessionService','@univerjs/rpc','mutations','entries','Rect','children','SheetSkeletonManagerService','executionId','Shape','_drawAnchor','@univerjs/engine-render','@univerjs/sheets','#fff','takeUntil','random','_disabled','transformByState','getCurrentSelections','CollaborationSocketService','off-line-single_clip0_910_343','[CollaborationDataLoaderController]','NOT_COLLAB','_initEntityListener','flatMap','DocSkeletonManagerService','ticket','_themeService','_docSkeletonManagerService','gold400','_eventUnsubscribe','APPLY_PERMISSION_DENIED','top','defIds','path','symbol','_hideTimer','off-line-single','attrs','editingUnit','getValue','_hover','forwardRef','_refRangeService','setInterval','stringify','DOC_RANGE_TYPE','onlineStatus','getCurrentRevOfUnit','onPointerEnter$','SOCKET_FAILED_RETRY','_getAnchorBounding','DocCollaborationEntity','fill','setAlpha','selections','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','YUUMI_NO_CUBOID_FOR_QUESTION','onPointerMove$','debounceTime','_uiPartsService','touchDependencies','DocSelectionManagerService','transformSelections','DocIMEInputManagerService','transformMutationsWithChangeset','TEXT_RANGE_LAYER_INDEX','startColumn','MemberService','HTTPService','getViewport','subunit','transformMutation','NodePositionConvertToCursor','mapTo','includes','_dataLoaderService','setParam','Disposable','executeCommand','collabCursorState$','_backgroundColor','min','transform','_cursor','_onCursorUpdate','registerRefRange','registerRenderModule','getCellPositionByOffset','debug','_getSaveTimeout','USERS_LEAVE','activeSheet$','TEXT','disposeUnit','TOO_MANY_REQUESTS','DataLoaderService','SetWorksheetActivateCommand','transformStateCache','addObject','WebSocketService','getActiveRange','with','dispose$','className','PERMISSION_DENIED','status$','_collabCursorController','backgroundColor','Optional','427554ILYCmE','getUnitStatus$','CollaborationUIEventId','ALREADY_EXISTS','onStarting','addObjects','_colorIndex','subUnitId','mask','newValue','pipe','closePath','EffectRefRangId','cursorInfo','_beforeCloseService','_getScale','div','_drawRectRange','_selfUnitIDs','assignAColorForMemberID','_scheduleClearOtherTimer','split','setConfig','_docTransformStateCacheService','makeDirty','_anchorDot','UNIVER_SHEET','connectInjector','_onCursorDelete','NOT_FOUND','2vXNWPM','_lastPointer','_updateCollabCursors','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','4gyPxQZ','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_docSkeleton','function','origin','UNIVER_DOC','currentColor','ICommandService','@univerjs-pro/collaboration','uni.network.url-service','_heartbeatTimer','ISocketService','fromEventSubject','memberID','EMAIL_HAS_BEEN_BOUND','getUndoRedoMutationParamsCache','_onRefRangeChange','getTypeOfUnitAdded$','getActiveSheet','_colorAssignService','getCollabEntity$','YUUMI_RATE_OVER_LIMIT','_initEvent','UNDEFINED','898523TblDXG','registerBeforeClose','useObservable','_textBubble','APPLY_REJECT','UNAUTHENTICATED','getSheetId','collabStatus.synced','sheetID','runOnServer','switchMap','SNAPSHOT_INVALID_SNAPSHOT','xlink:href','_handleLeaveEvent','none','_render','_init','_docTransformSelectionsService','unitId','...','isActive','@univerjs/design','defs','clearInterval','CollaborationStatusDisplay','_handleHover','UPDATE_CURSOR','_scheduleHeartbeat','_initStatusListener','getOffsetConfig','_status$','Error','useDependency','YUUMI_ASYNCIO_CANCELLED','forEach','_roomMembers$','SNAPSHOT_HAS_BEEN_REMOVED','_startDocCollabCursor','asObservable','_syncEditingCollabCursorService','delete','result','isArray','getSheetBySheetId','_messageService','purple300','IUIPartsService','_updateSubUnitFromURLParams','_collabCursorState$','_drawTextRange','_entities','BehaviorSubject','currentSkeleton$','fillRule','undoState','parse','syncEditingCollabCursor','prototype','all','_commandService','resize','colorChannel1','2444346fSBGqj','concat','_ensureSubject','DocStateChangeManagerService','_injector','_getSessionTicket','_removeCollabCursors','getCollabCursors$','from','YUUMI_URL_COL_OUT_OF_RANGE','JOIN_ROOM_FAILED','UniverIcon','black','APPLY_REVISION_CONFILICT','_transformUndoRedoStack','@univerjs/drawing','_configService','_send','1em','handleInsertRow','onRendered','getColor','IConfigService','0\x200\x2016\x2016','getFocusedUnit','IUniverInstanceService','storage','99656uAWNfO','_saveTaskMap','NodePositionConvertToRectRange','clsx','_docTransformIMECacheService','INVALID_INVITE_CODE','DesktopCollaborationStatusDisplayController','endColumn','_cursors','extend','bottom','ILogService','round','ITransformService','VIEW_MAIN','fillStyle','Unknown\x20user','replace','_transformPreviousActiveRange','init','verdancy600','_docClipboardService','focused$','online','find','registerDependencies','_createSocketURL','DisposableCollection','startRow','LOCAL_CACHE_INTERVAL_KEY','UnitStatus','0\x200\x2017\x2016','values','RemoteUniscriptService','_cursorInfo$','handleIRemoveRow','endRow','IMessageService','call','_draw','width','ColorKit','WebURLService','onPointerLeave$','OffLineSingle','_initStatusComponent','420mBMuDy','searchParams','fromEvent','univer-flex\x20univer-items-center','size','setActiveRange','handleMoveRange','addHandlerCallback','INVITE_CODE_REQUIRED','clearTimeout','beginPath','_memberService','_clearOtherTimers','unitID','idSuffix','_renderManagerService','url(#$1','push','collab-text-range-','ThemeService','_updateLocalCursor','M0\x200H16V16H0z','YUUMI_UNABLE_LOAD_URL','getTypeOfUnitDisposed$','ISnapshotServerService','IDocClipboardService','application/json','CollaborationSessionService','FromArray','getMember','205435onuCoX','_online','_config','CommandType','BuiltInUIPart','event$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','handleDeleteRangeMoveUp','eventID','_transformHistoryAndStateStack','setTimeout','getLocalCacheKey','name','getDocRanges','Plugin','deepClone','SheetCollabCursorShape','invokeId','CHANGESET_REVISION_CONFILICT','OnLineSingle','defineProperty','href','registerComponent','WebBrowserSingleActiveUnitService','getUnhiddenWorksheets','isTransformMutationsWithChangesetSuccess','onCommandExecuted','updateOfflineData','CLOSE_ROOM','toDisposable','permission.content','_univerInstanceService','doc.mutation.rich-text-editing','ranges','handleInsertRangeMoveRight','jsxs','_registerRenderDependencies','IRenderManagerService','unit','ILocalCacheService','data','@univerjs/sheets-ui','arc','params','getSkeleton','_sheetSkeletonManagerService','_handleEvent','getAncestorScale','icon','then','_anchor','indexOf','pluginName','Tools','collaboration-client.offline-data-not-saved','unshift','replaceDocRanges','setUndoRedoMutationParamsCache','next','InsertRangeMoveDownCommandId','skeleton','_docStateChangeManagerService','_toggleOnline','selection','AWAITING','[RemoteUniscriptService]:\x20no\x20focused\x20unit','cursorInfo$','whenReady','collabStatus.conflict','getOwnPropertyDescriptor','key','session.connection-failed','_initDependencies','INVITE_CODE_HAS_BEEN_UES','currentTheme$','Subject','collab-rect-range-','unload','current','subscribe','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_removeClearOtherTimer','collaboration.single-unit.warning','has','RxDisposable','startsWith','assign','show','Rectangle','setItem','transformRemoteChangeset','_imageIoService','_collaborationUIEventService','getCoordByCell','displayName','CONFLICT','permission.title','_initResize','sheetId','CollaborationController','/run/','7286013jJhkDv','getUnitId','_logService','history','_context','_refreshCollabCursors','getCurrent','jiqing500','APPLY_DUPLICATED','_unitOnClients','collabStatus.notCollab','APPLY_NON_SEQUENTIAL_REVISION','handleInsertRangeMoveDown','_instanceService','Inject','_id','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','font','translate(.97)','urlChange$','_color','@univerjs/docs','filter','getRangePointData','handleIRemoveCol','UNRECOGNIZED','_notificationService','_unitStatus','substring','CollaborationDataLoaderController','apply','getCurrentUnitForType','_toggleOffline','MessageType','InsertColCommandId','map','RegularPolygon','throttleTime','add','createSocket','_transformService','code','LICENSE_DISTRO_REJECTED','pushState','RECT','on-line-single_clip0_910_349','entityInit$','RichTextEditingMutation','collab-client.tooltip.reconnect','textRanges','get','getRelativeToViewportCoord','color','Vector2','2186049aYncPU','_initCommandExecutedListener','_revisionService','fillText','subscribeEvent','ACTIVE_UNIT_EVENT_CHANNEL','_entityInit$','url(#on-line-single_clip0_910_349)','Tooltip','rxjs/operators','send','toRgbString','roomMembers','SessionStatus','getItem','row','_scheduleSaving','DeleteRangeMoveUpCommandId','m1Prime','roomMembers$','IImageIoService','CollaborationUIEventService','column','labelPosition','hovered','ENSURE_SNAPSHOT_EXECUTION','lineTo','replaceState','_docSyncEditingCollabCursorService','enableLocalCache','_name','loadOfflineData','unsubscribe','_session','sessionTicket','_assignedColors','height','type','DEFAULT_WS_SESSION_TICKET_URL','collabStatus.offline','debounce','shareReplay','SetDocZoomRatioOperation','getMergeData','m2Prime','red300','Injector','_urlService','univerjs-icon\x20univerjs-icon-','restore','_getMergeRange','USER_NOT_INVITED_CODE','SOCKET_FAILED','getRenderById','createInstance','runId','merge','search','session.will-retry','LICENSE_IMPORT_SIZE_EXCEEDED','_range','_labelPosition','OTHER_CLIENTS_EDITING','disposeWithMe','_shapes','dispose','CollaborationStatus','tag','body','onMouseMove','IBeforeCloseService','on-line-single','getOwnPropertySymbols','exhaustSavingTask','CollaborationEvent','SUBMIT_CHANGESET_TIMEOUT','LocaleService','error','_cursorShapes','save','svg','findNodePositionByCharIndex','measureText','BrowserCollaborationSocketService','univer-online-status','max','univer-online-status-icon','MOBILE_HAS_BEEN_BOUND','INVITE_CODE_ALREADY_BOUND','ONLINE','_updateURLWithCurrentState','post','string','WECHAT_HAS_BEEN_BOUND','CONNECTOR_DATA_TOO_LARGE','LICENSE_MAX_UNITS_EXCEEDED','SheetsSelectionsService','disableLocalCache','_saveCache','isTransformMutationFailure','drawWith','_scene','evenodd','DeleteRangeMoveLeftCommandId','_collaborationController','_hovered','location','createIdentifier','_startSheetCollabCursor','OFFLINE','length','runRefRangeMutations','hasOwnProperty','redoState','requireSession','getConfig','@univerjs/docs-ui','saveImage','toString','RevisionService','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','generateRandomId','sessionStatus$','UniverCollaborationClientUIPlugin','INTERNAL_ERROR','Warning','_registerDependencies','addClipboardHook','PY_RUNTIME_SCRIPT_ERROR','@univerjs/engine-formula','SetTextSelectionsOperation','Module','SetSelectionsOperation','_handleJoinEvent','@univerjs/ui','getParam','MUTATION','UniverInstanceType','_localStorageService','_cachedData','range','IURLService','jsx','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','serializeRangeWithSheet','use','setShapeProps','setStateCache','_httpService'];_0x2197=function(){return _0x37c93b;};return _0x2197();}xe[_0x49483b(0x184)]=_0x49483b(0x139);const Lt=_0x49483b(0x217),Pt='univer-online-status-title',wt=_0x49483b(0x215),At='univer-online',yt='univer-offline',H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x59aa88){const _0x55c795=_0x49483b;switch(_0x59aa88){case u[_0x55c795(0x203)][_0x55c795(0x22e)]:return _0x55c795(0x1e8);case u[_0x55c795(0x203)][_0x55c795(0x185)]:return _0x55c795(0x16a);case u['CollaborationStatus']['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x55c795(0x203)]['NOT_COLLAB']:return _0x55c795(0x195);case u[_0x55c795(0x203)][_0x55c795(0x166)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x55c795(0x262);case u[_0x55c795(0x203)]['SYNCED']:case u['CollaborationStatus']['PENDING']:return _0x55c795(0x313);}}function je(_0x1cef5a){const _0x2d52e4=_0x49483b,{status$:_0x3afb07}=_0x1cef5a,_0x50481e=O[_0x2d52e4(0x30e)](_0x3afb07,u[_0x2d52e4(0x203)][_0x2d52e4(0x27a)]),_0x32204b=O[_0x2d52e4(0x32c)](a[_0x2d52e4(0x20d)]),_0x288627=O[_0x2d52e4(0x32c)](u['CollaborationSessionService']),_0x56c1e7=_0x50481e!==u[_0x2d52e4(0x203)][_0x2d52e4(0x22e)],_0x50f316=_0x32204b['t']($t(_0x50481e)),_0x206d6a=T['clsx'](H[_0x2d52e4(0x293)],{[H[_0x2d52e4(0x37c)]]:_0x56c1e7,[H['offline']]:!_0x56c1e7}),_0xd12e11=_0x56c1e7?P[_0x2d52e4(0x24f)](xe,{}):P[_0x2d52e4(0x24f)]($e,{}),_0x33640e=M['useCallback'](()=>{_0x56c1e7||_0x288627['reconnect']();},[_0x56c1e7,_0x288627]);function _0x32ee89(){const _0x19baa9=_0x2d52e4;return P[_0x19baa9(0x149)](_0x19baa9(0x2e2),{'className':T[_0x19baa9(0x368)](_0x206d6a,_0x19baa9(0x10b)),'onClick':_0x33640e,'children':[P[_0x19baa9(0x24f)](_0x19baa9(0x2e2),{'className':H['onlineStatusIcon'],'children':_0xd12e11}),P[_0x19baa9(0x24f)]('div',{'className':H['onlineStatusTitle'],'children':_0x50f316})]});}return _0x56c1e7?_0x32ee89():P['jsx'](T[_0x2d52e4(0x1c9)],{'title':_0x32204b['t'](_0x2d52e4(0x1bb)),'children':_0x32ee89()});}var xt=Object[_0x49483b(0x16b)],jt=(_0x386a5c,_0x21c743,_0x5a2d6f,_0x2cc752)=>{const _0x32e477=_0x49483b;for(var _0x319e0d=_0x2cc752>0x1?void 0x0:_0x2cc752?xt(_0x21c743,_0x5a2d6f):_0x21c743,_0x194cb0=_0x386a5c[_0x32e477(0x22f)]-0x1,_0x2fb0ad;_0x194cb0>=0x0;_0x194cb0--)(_0x2fb0ad=_0x386a5c[_0x194cb0])&&(_0x319e0d=_0x2fb0ad(_0x319e0d)||_0x319e0d);return _0x319e0d;},X=(_0x55a73c,_0x49a5b2)=>(_0x1637aa,_0x3d6256)=>_0x49a5b2(_0x1637aa,_0x3d6256,_0x55a73c);exports[_0x49483b(0x36b)]=class extends a[_0x49483b(0x2b2)]{constructor(_0x129ed2,_0x1dd9d1,_0x5bc8a0,_0x5c7123){const _0x25b80a=_0x49483b;super(),_(this,_0x25b80a(0x32a),new d[(_0x25b80a(0x33f))](u[_0x25b80a(0x203)][_0x25b80a(0x27a)])),(this['_univerInstanceService']=_0x129ed2,this[_0x25b80a(0x34e)]=_0x1dd9d1,this[_0x25b80a(0x229)]=_0x5bc8a0,this['_uiPartsService']=_0x5c7123,this[_0x25b80a(0x392)](),this[_0x25b80a(0x328)]());}[_0x49483b(0x328)](){const _0x38500d=_0x49483b;this[_0x38500d(0x200)](this[_0x38500d(0x145)][_0x38500d(0x37b)][_0x38500d(0x2dc)](d[_0x38500d(0x316)](()=>{const _0x44ae50=_0x38500d,_0x14bf2c=this[_0x44ae50(0x145)][_0x44ae50(0x362)]();return _0x14bf2c?this['_collaborationController'][_0x44ae50(0x308)](_0x14bf2c['getUnitId']()):d['of'](null);}),d['switchMap'](_0x3cdca8=>_0x3cdca8?_0x3cdca8[_0x38500d(0x2ce)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x4cbd1c=>{const _0x3fda54=_0x38500d;this['_status$'][_0x3fda54(0x160)](_0x4cbd1c);}));}['_initStatusComponent'](){const _0x163ffd=_0x49483b;this['disposeWithMe'](this[_0x163ffd(0x2a0)][_0x163ffd(0x13c)](O[_0x163ffd(0x12a)][_0x163ffd(0x261)],()=>O[_0x163ffd(0x2ed)](Bt({'status$':this[_0x163ffd(0x32a)]['asObservable']()}),this[_0x163ffd(0x34e)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x49483b(0x363)]),X(0x1,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),X(0x2,a[_0x49483b(0x199)](u[_0x49483b(0x189)])),X(0x3,O[_0x49483b(0x33a)])],exports['DesktopCollaborationStatusDisplayController']);function Bt(_0x440415){const {status$:_0x55011c}=_0x440415;return function(){const _0x27aca8=_0x6961;return P[_0x27aca8(0x24f)](je,{'status$':_0x55011c});};}var kt=Object['getOwnPropertyDescriptor'],Ht=(_0xe99687,_0x29a516,_0x114571,_0x4dd304)=>{const _0x52500c=_0x49483b;for(var _0x1d9682=_0x4dd304>0x1?void 0x0:_0x4dd304?kt(_0x29a516,_0x114571):_0x29a516,_0x5a6a3b=_0xe99687[_0x52500c(0x22f)]-0x1,_0x2964af;_0x5a6a3b>=0x0;_0x5a6a3b--)(_0x2964af=_0xe99687[_0x5a6a3b])&&(_0x1d9682=_0x2964af(_0x1d9682)||_0x1d9682);return _0x1d9682;},y=(_0x5ef0c2,_0x183e8d)=>(_0x536ada,_0x2b29e3)=>_0x183e8d(_0x536ada,_0x2b29e3,_0x5ef0c2);let z=class extends a['Disposable']{constructor(_0x101a58,_0x46a369,_0x4e4fcc,_0x2bfae6,_0x14da06,_0xee4227){const _0x17abfa=_0x49483b;super(),this[_0x17abfa(0x2e0)]=_0x101a58,this['_localCacheService']=_0x46a369,this[_0x17abfa(0x182)]=_0x4e4fcc,this[_0x17abfa(0x338)]=_0x2bfae6,this[_0x17abfa(0x1a5)]=_0x14da06,this['_localeService']=_0xee4227,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x45ccc4=_0x49483b;this[_0x45ccc4(0x200)](this[_0x45ccc4(0x2e0)][_0x45ccc4(0x30d)](()=>{const _0x5d4609=_0x45ccc4;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x5d4609(0x25a)]['t'](_0x5d4609(0x15c));}));}[_0x49483b(0x30a)](){const _0x2d95aa=_0x49483b;this[_0x2d95aa(0x200)](this[_0x2d95aa(0x182)][_0x2d95aa(0x12b)]['subscribe'](_0x5d3107=>{const _0xead263=_0x2d95aa;_0x5d3107['id']===u[_0xead263(0x2d4)]['OTHER_CLIENT_EDITING']&&this[_0xead263(0x338)][_0xead263(0x17d)]({'type':T[_0xead263(0x1ac)]['Warning'],'content':this[_0xead263(0x25a)]['t'](_0xead263(0x178))}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x142)]&&this[_0xead263(0x338)][_0xead263(0x17d)]({'type':T['MessageType'][_0xead263(0x23e)],'content':this[_0xead263(0x25a)]['t']('collaboration.closeRoom')}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x2cd)]&&this['_notificationService']['show']({'title':this[_0xead263(0x25a)]['t'](_0xead263(0x186)),'content':this[_0xead263(0x25a)]['t'](_0xead263(0x144)),'type':_0xead263(0x20e),'duration':0x0}),_0x5d3107['id']===u['CollaborationUIEventId'][_0xead263(0x185)]&&this[_0xead263(0x338)][_0xead263(0x17d)]({'type':T[_0xead263(0x1ac)][_0xead263(0x32b)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x5d3107[_0xead263(0x14e)]+')'}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x354)]&&this['_messageService'][_0xead263(0x17d)]({'type':T['MessageType']['Warning'],'content':this[_0xead263(0x25a)]['t'](_0x5d3107[_0xead263(0x14e)]||'')}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x296)]&&this['_messageService'][_0xead263(0x17d)]({'type':T['MessageType'][_0xead263(0x23e)],'content':this[_0xead263(0x25a)]['t'](_0xead263(0x1fb))}),_0x5d3107['id']===u['CollaborationUIEventId'][_0xead263(0x1f5)]&&this['_messageService'][_0xead263(0x17d)]({'type':T['MessageType'][_0xead263(0x32b)],'content':this['_localeService']['t'](_0xead263(0x16d))}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x20c)]&&this['_messageService'][_0xead263(0x17d)]({'type':T[_0xead263(0x1ac)][_0xead263(0x32b)],'content':this['_localeService']['t'](_0xead263(0x259))});}));}};z=Ht([y(0x0,O[_0x49483b(0x207)]),y(0x1,u[_0x49483b(0x14d)]),y(0x2,a[_0x49483b(0x199)](u[_0x49483b(0x1d6)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x49483b(0x20d)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a[_0x49483b(0x22c)](_0x49483b(0x2fd));var Wt=Object[_0x49483b(0x16b)],Yt=(_0x2e6340,_0x1a1108,_0x467390,_0x200177)=>{const _0x557bee=_0x49483b;for(var _0x2223a1=_0x200177>0x1?void 0x0:_0x200177?Wt(_0x1a1108,_0x467390):_0x1a1108,_0x440cdd=_0x2e6340[_0x557bee(0x22f)]-0x1,_0x34eb0e;_0x440cdd>=0x0;_0x440cdd--)(_0x34eb0e=_0x2e6340[_0x440cdd])&&(_0x2223a1=_0x34eb0e(_0x2223a1)||_0x2223a1);return _0x2223a1;},F=(_0x30a94f,_0x34dc2d)=>(_0x4fc5d3,_0x351801)=>_0x34dc2d(_0x4fc5d3,_0x351801,_0x30a94f);exports[_0x49483b(0x1a8)]=class extends a[_0x49483b(0x17a)]{constructor(_0x1ee016,_0x111d15,_0x593ba6,_0x129584,_0x3ccf74){const _0x2e452f=_0x49483b;super(),this[_0x2e452f(0x1f0)]=_0x1ee016,this[_0x2e452f(0x18d)]=_0x111d15,this['_commandService']=_0x593ba6,this[_0x2e452f(0x2b0)]=_0x129584,_0x3ccf74?_0x3ccf74==null||_0x3ccf74[_0x2e452f(0x169)]()[_0x2e452f(0x157)](()=>this[_0x2e452f(0x31c)]()):(this['_logService'][_0x2e452f(0x2bd)](_0x2e452f(0x279),_0x2e452f(0x176)),this['_init']());}async[_0x49483b(0x31c)](){const _0xb8868=_0x49483b,_0x3590f0=this[_0xb8868(0x1f0)][_0xb8868(0x248)](_0xb8868(0x14c)),_0x5f387b=this[_0xb8868(0x1f0)][_0xb8868(0x248)](_0xb8868(0x1e6)),_0x212e67=this[_0xb8868(0x1f0)][_0xb8868(0x248)](_0xb8868(0x2ab));if(!_0x3590f0||!_0x5f387b){this[_0xb8868(0x18d)][_0xb8868(0x2bd)](_0xb8868(0x279),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x39774c=await this[_0xb8868(0x2b0)]['loadUnit'](_0x3590f0,Number(_0x5f387b),_0x212e67);_0x39774c&&_0x39774c instanceof a[_0xb8868(0x256)]&&this['_setupSubUnitSync'](_0x39774c);}async['_setupSubUnitSync'](_0x4d71ea){const _0x2c2ebc=_0x49483b;await this['_updateSubUnitFromURLParams'](_0x4d71ea),_0x4d71ea[_0x2c2ebc(0x2c0)]['pipe'](d[_0x2c2ebc(0x272)](this['dispose$']))['subscribe'](_0x4574c3=>{const _0x23a979=_0x2c2ebc;_0x4574c3&&this[_0x23a979(0x21b)](_0x4574c3);}),this[_0x2c2ebc(0x1f0)][_0x2c2ebc(0x19e)]['pipe'](d[_0x2c2ebc(0x272)](this[_0x2c2ebc(0x2cb)]))[_0x2c2ebc(0x175)](()=>this['_updateSubUnitFromURLParams'](_0x4d71ea));}[_0x49483b(0x21b)](_0x24d493,_0x262b77=!0x1){const _0x1327be=_0x49483b,_0x16bb7a=this['_urlService'][_0x1327be(0x248)](_0x1327be(0x2ab));_0x24d493['getSheetId']()!==_0x16bb7a&&this[_0x1327be(0x1f0)][_0x1327be(0x2b1)](_0x1327be(0x2ab),_0x24d493['getSheetId'](),_0x262b77);}async[_0x49483b(0x33b)](_0x2a6c56){const _0x46f3bd=_0x49483b;var _0x395cae;const _0x4509d4=this[_0x46f3bd(0x1f0)][_0x46f3bd(0x248)](_0x46f3bd(0x2ab));if(!_0x4509d4||!_0x2a6c56[_0x46f3bd(0x337)](_0x4509d4)){const _0x224854=_0x2a6c56[_0x46f3bd(0x13e)]()[0x0],_0x3655c4=_0x2a6c56[_0x46f3bd(0x337)](_0x224854);if(!_0x3655c4)return;this[_0x46f3bd(0x21b)](_0x3655c4,!0x0),await this[_0x46f3bd(0x347)][_0x46f3bd(0x2b3)](g[_0x46f3bd(0x2c5)]['id'],{'unitId':_0x2a6c56[_0x46f3bd(0x18c)](),'subUnitId':_0x224854});return;}((_0x395cae=_0x2a6c56[_0x46f3bd(0x306)]())==null?void 0x0:_0x395cae[_0x46f3bd(0x312)]())!==_0x4509d4&&await this[_0x46f3bd(0x347)][_0x46f3bd(0x2b3)](g[_0x46f3bd(0x2c5)]['id'],{'unitId':_0x2a6c56['getUnitId'](),'subUnitId':_0x4509d4});}},exports[_0x49483b(0x1a8)]=Yt([F(0x0,Ee),F(0x1,a[_0x49483b(0x370)]),F(0x2,a[_0x49483b(0x2fb)]),F(0x3,a['Inject'](u[_0x49483b(0x2c4)])),F(0x4,a[_0x49483b(0x2d1)](Ke['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var Vt=Object[_0x49483b(0x16b)],Xt=(_0x4ff8b4,_0x2f0d36,_0x36477d,_0x19c608)=>{const _0x5678df=_0x49483b;for(var _0x40bdcd=_0x19c608>0x1?void 0x0:_0x19c608?Vt(_0x2f0d36,_0x36477d):_0x2f0d36,_0x4ae256=_0x4ff8b4[_0x5678df(0x22f)]-0x1,_0x3a64ea;_0x4ae256>=0x0;_0x4ae256--)(_0x3a64ea=_0x4ff8b4[_0x4ae256])&&(_0x40bdcd=_0x3a64ea(_0x40bdcd)||_0x40bdcd);return _0x40bdcd;},le=(_0x593953,_0x2c44a8)=>(_0x4a64e2,_0x26cbc6)=>_0x2c44a8(_0x4a64e2,_0x26cbc6,_0x593953);let J=class{constructor(_0x21dfc5,_0x13d9f1,_0xf0057f){const _0xac88b7=_0x49483b;this[_0xac88b7(0x34e)]=_0x21dfc5,this[_0xac88b7(0x1b3)]=_0x13d9f1,this[_0xac88b7(0x117)]=_0xf0057f;}['transformIMECache'](_0x4b95be){this['_transformUndoRedoStack'](_0x4b95be),this['_transformPreviousActiveRange'](_0x4b95be);}[_0x49483b(0x180)](_0x39f279){const _0x27eb4c=_0x49483b,{unitID:_0x173497}=_0x39f279,_0x372371=this[_0x27eb4c(0x117)]['getRenderById'](_0x173497)[_0x27eb4c(0x2ca)](b[_0x27eb4c(0x2a4)]),{redoCache:_0x290a78}=_0x372371[_0x27eb4c(0x303)]();if(_0x290a78[_0x27eb4c(0x22f)]===0x0)return _0x39f279;let _0x26f843=a[_0x27eb4c(0x15b)][_0x27eb4c(0x135)](_0x39f279[_0x27eb4c(0x267)][0x0]);for(let _0x1ecfb7=0x0;_0x1ecfb7<_0x290a78[_0x27eb4c(0x22f)];_0x1ecfb7++){const _0x4f4eed={'id':'doc.mutation.rich-text-editing','params':{..._0x290a78[_0x1ecfb7]}},_0x5a0c87=this[_0x27eb4c(0x1b3)][_0x27eb4c(0x2ac)](_0x26f843,_0x4f4eed,!0x1);if(m['isTransformMutationFailure'](_0x5a0c87))throw _0x5a0c87['error'];_0x26f843=_0x5a0c87[_0x27eb4c(0x1d3)];}return{...a['Tools'][_0x27eb4c(0x135)](_0x39f279),'mutations':[_0x26f843]};}[_0x49483b(0x358)](_0x33f6b5){const _0x486047=_0x49483b,{unitID:_0x467fbd}=_0x33f6b5,_0x5d4836=this[_0x486047(0x117)]['getRenderById'](_0x467fbd)[_0x486047(0x2ca)](b[_0x486047(0x2a4)]),{undoCache:_0x2bdf3e,redoCache:_0x3d3ac0}=_0x5d4836[_0x486047(0x303)]();if(_0x2bdf3e[_0x486047(0x22f)]===0x0||_0x3d3ac0[_0x486047(0x22f)]===0x0)return;const _0x40fbc2=[],_0x52448c=[];let _0x463667=a[_0x486047(0x15b)][_0x486047(0x135)](_0x33f6b5[_0x486047(0x267)][0x0]),_0x2f67b7=a[_0x486047(0x15b)][_0x486047(0x135)](_0x33f6b5[_0x486047(0x267)][0x0]);for(let _0x30c2c1=_0x2bdf3e['length']-0x1;_0x30c2c1>=0x0;_0x30c2c1--){const _0x2bd460={'id':_0x486047(0x146),'params':{..._0x2bdf3e[_0x30c2c1]}},_0x183886={'id':_0x486047(0x146),'params':{..._0x3d3ac0[_0x30c2c1]}},_0x51d2b0=this[_0x486047(0x1b3)]['transformMutation'](_0x463667,_0x2bd460,!0x1),_0x50ed17=this['_transformService']['transformMutation'](_0x2f67b7,_0x183886,!0x1);if(m[_0x486047(0x224)](_0x51d2b0))throw _0x51d2b0[_0x486047(0x20e)];if(m[_0x486047(0x224)](_0x50ed17))throw _0x50ed17[_0x486047(0x20e)];_0x40fbc2[_0x486047(0x15d)](_0x51d2b0[_0x486047(0x1ed)]['params']),_0x52448c[_0x486047(0x15d)](_0x50ed17[_0x486047(0x1ed)][_0x486047(0x151)]),_0x463667=_0x51d2b0[_0x486047(0x1d3)],_0x2f67b7=_0x50ed17[_0x486047(0x1d3)];}_0x5d4836[_0x486047(0x15f)]({'undoCache':_0x40fbc2,'redoCache':_0x52448c});}[_0x49483b(0x377)](_0x39b392){const _0x2a4f5f=_0x49483b,{unitID:_0x187cad}=_0x39b392,_0x47fe71=this[_0x2a4f5f(0x117)][_0x2a4f5f(0x1f6)](_0x187cad)['with'](b[_0x2a4f5f(0x2a4)]),_0x3af502=_0x47fe71[_0x2a4f5f(0x2c9)]();if(_0x3af502==null)return;const _0x16275b=[{'id':_0x2a4f5f(0x146),'params':{'unitId':_0x39b392[_0x2a4f5f(0x115)],'actions':null,'textRanges':[_0x3af502]}}],_0x11ebf7=this[_0x2a4f5f(0x1b3)][_0x2a4f5f(0x2a5)](_0x39b392,_0x16275b);if(!m[_0x2a4f5f(0x13f)](_0x11ebf7))throw _0x11ebf7[_0x2a4f5f(0x20e)];const _0x6bd3c0=_0x11ebf7[_0x2a4f5f(0x1ed)][0x0][_0x2a4f5f(0x151)][_0x2a4f5f(0x1bc)];Array[_0x2a4f5f(0x336)](_0x6bd3c0)&&_0x6bd3c0[_0x2a4f5f(0x22f)]&&_0x47fe71[_0x2a4f5f(0x10d)](_0x6bd3c0[0x0]);}};J=Xt([le(0x0,a['Inject'](a[_0x49483b(0x1ef)])),le(0x1,m[_0x49483b(0x372)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x49483b(0x16b)],qt=(_0x32c256,_0x4297d7,_0xf47d30,_0x5bbb66)=>{const _0x28a732=_0x49483b;for(var _0x57d5b1=_0x5bbb66>0x1?void 0x0:_0x5bbb66?Gt(_0x4297d7,_0xf47d30):_0x4297d7,_0x1a7041=_0x32c256[_0x28a732(0x22f)]-0x1,_0x4e4361;_0x1a7041>=0x0;_0x1a7041--)(_0x4e4361=_0x32c256[_0x1a7041])&&(_0x57d5b1=_0x4e4361(_0x57d5b1)||_0x57d5b1);return _0x57d5b1;},_e=(_0x37b8b1,_0x1f7545)=>(_0x3cdb0c,_0x348ff8)=>_0x1f7545(_0x3cdb0c,_0x348ff8,_0x37b8b1);let Z=class{constructor(_0x4bb2bc,_0x3e581e,_0xf64b68){const _0x26abe0=_0x49483b;this[_0x26abe0(0x34e)]=_0x4bb2bc,this[_0x26abe0(0x1b3)]=_0x3e581e,this[_0x26abe0(0x163)]=_0xf64b68;}[_0x49483b(0x2c6)](_0x249809){const _0x286ae4=_0x49483b;this[_0x286ae4(0x12f)](_0x249809);}[_0x49483b(0x180)](_0x4c0302){const _0x3dad4e=_0x49483b,{unitID:_0x4782ca}=_0x4c0302,{collaboration:_0x7d27fa}=this['_docStateChangeManagerService']['getStateCache'](_0x4782ca);if(_0x7d27fa[_0x3dad4e(0x22f)]===0x0)return _0x4c0302;let _0x1afe82=a['Tools'][_0x3dad4e(0x135)](_0x4c0302[_0x3dad4e(0x267)][0x0]);for(let _0x3b95b3=0x0;_0x3b95b3<_0x7d27fa[_0x3dad4e(0x22f)];_0x3b95b3++){const _0x499ddc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x7d27fa[_0x3b95b3][_0x3dad4e(0x31e)],..._0x7d27fa[_0x3b95b3][_0x3dad4e(0x232)]}},_0x4fd1ee=this['_transformService']['transformMutation'](_0x1afe82,_0x499ddc,!0x1);if(m['isTransformMutationFailure'](_0x4fd1ee))throw _0x4fd1ee['error'];_0x1afe82=_0x4fd1ee['m1Prime'];}return{...a[_0x3dad4e(0x15b)][_0x3dad4e(0x135)](_0x4c0302),'mutations':[_0x1afe82]};}[_0x49483b(0x12f)](_0x44fcc3){const _0x46085e=_0x49483b,{unitID:_0x13ffb4}=_0x44fcc3,{history:_0x1fb0c7,collaboration:_0x3b921e}=this[_0x46085e(0x163)]['getStateCache'](_0x13ffb4);if(_0x1fb0c7[_0x46085e(0x22f)]===0x0&&_0x3b921e[_0x46085e(0x22f)]===0x0)return;const _0x52b529=[],_0x32242b=[];let _0x8d789f=a[_0x46085e(0x15b)]['deepClone'](_0x44fcc3[_0x46085e(0x267)][0x0]),_0x804dd1=a[_0x46085e(0x15b)]['deepClone'](_0x44fcc3[_0x46085e(0x267)][0x0]);for(let _0x8de7a9=_0x1fb0c7[_0x46085e(0x22f)]-0x1;_0x8de7a9>=0x0;_0x8de7a9--){const _0x144271={'id':_0x46085e(0x146),'params':{'unitId':_0x1fb0c7[_0x8de7a9][_0x46085e(0x31e)],..._0x1fb0c7[_0x8de7a9][_0x46085e(0x342)]}},_0x44fe73={'id':_0x46085e(0x146),'params':{'unitId':_0x1fb0c7[_0x8de7a9][_0x46085e(0x31e)],..._0x1fb0c7[_0x8de7a9]['redoState']}},_0x2521fd=this[_0x46085e(0x1b3)][_0x46085e(0x2ac)](_0x8d789f,_0x144271,!0x1),_0x2d6543=this[_0x46085e(0x1b3)][_0x46085e(0x2ac)](_0x804dd1,_0x44fe73,!0x1);if(m[_0x46085e(0x224)](_0x2521fd))throw _0x2521fd[_0x46085e(0x20e)];if(m[_0x46085e(0x224)](_0x2d6543))throw _0x2d6543['error'];_0x52b529[_0x46085e(0x15d)]({..._0x1fb0c7[_0x8de7a9],'undoState':_0x2521fd[_0x46085e(0x1ed)][_0x46085e(0x151)],'redoState':_0x2d6543[_0x46085e(0x1ed)][_0x46085e(0x151)]}),_0x8d789f=_0x2521fd[_0x46085e(0x1d3)],_0x804dd1=_0x2d6543[_0x46085e(0x1d3)];}_0x8d789f=a['Tools'][_0x46085e(0x135)](_0x44fcc3['mutations'][0x0]),_0x804dd1=a[_0x46085e(0x15b)][_0x46085e(0x135)](_0x44fcc3[_0x46085e(0x267)][0x0]);for(let _0xf00fea=_0x3b921e[_0x46085e(0x22f)]-0x1;_0xf00fea>=0x0;_0xf00fea--){const _0x150c3d={'id':_0x46085e(0x146),'params':{'unitId':_0x3b921e[_0xf00fea][_0x46085e(0x31e)],..._0x3b921e[_0xf00fea][_0x46085e(0x342)]}},_0xabb396={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b921e[_0xf00fea][_0x46085e(0x31e)],..._0x3b921e[_0xf00fea]['redoState']}},_0x4e79a7=this[_0x46085e(0x1b3)][_0x46085e(0x2ac)](_0x8d789f,_0x150c3d,!0x1),_0x3131ce=this[_0x46085e(0x1b3)][_0x46085e(0x2ac)](_0x804dd1,_0xabb396,!0x1);if(m[_0x46085e(0x224)](_0x4e79a7))throw _0x4e79a7[_0x46085e(0x20e)];if(m['isTransformMutationFailure'](_0x3131ce))throw _0x3131ce[_0x46085e(0x20e)];_0x32242b[_0x46085e(0x15d)]({..._0x3b921e[_0xf00fea],'undoState':_0x4e79a7[_0x46085e(0x1ed)][_0x46085e(0x151)],'redoState':_0x3131ce[_0x46085e(0x1ed)][_0x46085e(0x151)]}),_0x8d789f=_0x4e79a7[_0x46085e(0x1d3)],_0x804dd1=_0x3131ce['m1Prime'];}this['_docStateChangeManagerService'][_0x46085e(0x254)](_0x13ffb4,{'history':_0x52b529,'collaboration':_0x32242b});}};Z=qt([_e(0x0,a['Inject'](a['Injector'])),_e(0x1,m[_0x49483b(0x372)]),_e(0x2,a[_0x49483b(0x199)](b[_0x49483b(0x34d)]))],Z);var Kt=Object[_0x49483b(0x16b)],zt=(_0x4fd571,_0x4c5380,_0xbf6963,_0x2312bc)=>{for(var _0x567a65=_0x2312bc>0x1?void 0x0:_0x2312bc?Kt(_0x4c5380,_0xbf6963):_0x4c5380,_0x33d018=_0x4fd571['length']-0x1,_0x5583ed;_0x33d018>=0x0;_0x33d018--)(_0x5583ed=_0x4fd571[_0x33d018])&&(_0x567a65=_0x5583ed(_0x567a65)||_0x567a65);return _0x567a65;},Me=(_0x2979df,_0xc91f91)=>(_0x1e1e06,_0x599039)=>_0xc91f91(_0x1e1e06,_0x599039,_0x2979df);let Q=class{constructor(_0x1c7f9b,_0x66ae33){const _0x47aa33=_0x49483b;this[_0x47aa33(0x34e)]=_0x1c7f9b,this[_0x47aa33(0x1b3)]=_0x66ae33;}[_0x49483b(0x2a3)](_0x29c843){const _0x47e086=_0x49483b;var _0x384c00;const _0x16e48b=this[_0x47e086(0x34e)][_0x47e086(0x1bd)](Y['DocSelectionManagerService']),_0x51a85e=(_0x384c00=_0x16e48b[_0x47e086(0x133)]())!=null?_0x384c00:[];if(_0x51a85e[_0x47e086(0x22f)]===0x0)return;const _0x53fd7f=_0x29c843[_0x47e086(0x115)],_0x59fc24=[{'id':_0x47e086(0x146),'params':{'unitId':_0x53fd7f,'actions':null,'textRanges':_0x51a85e}}],_0x391c4f=this[_0x47e086(0x1b3)]['transformMutationsWithChangeset'](_0x29c843,_0x59fc24);if(!m[_0x47e086(0x13f)](_0x391c4f))throw _0x391c4f[_0x47e086(0x20e)];const _0x33d471=_0x391c4f[_0x47e086(0x1ed)][0x0][_0x47e086(0x151)][_0x47e086(0x1bc)];Array[_0x47e086(0x336)](_0x33d471)&&_0x33d471[_0x47e086(0x22f)]&&_0x16e48b[_0x47e086(0x15e)](_0x33d471,{'unitId':_0x53fd7f,'subUnitId':_0x53fd7f},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0x49483b(0x1ef)])),Me(0x1,m[_0x49483b(0x372)])],Q);var Jt=Object[_0x49483b(0x16b)],Zt=(_0x49d6de,_0x1f3da7,_0x3bd1fc,_0x11dd6c)=>{const _0x4ab403=_0x49483b;for(var _0x39b611=_0x11dd6c>0x1?void 0x0:_0x11dd6c?Jt(_0x1f3da7,_0x3bd1fc):_0x1f3da7,_0x52f941=_0x49d6de[_0x4ab403(0x22f)]-0x1,_0x29b39a;_0x52f941>=0x0;_0x52f941--)(_0x29b39a=_0x49d6de[_0x52f941])&&(_0x39b611=_0x29b39a(_0x39b611)||_0x39b611);return _0x39b611;},N=(_0x4b1a8a,_0x226fde)=>(_0x20a2e0,_0x11de79)=>_0x226fde(_0x20a2e0,_0x11de79,_0x4b1a8a);let ee=class extends a['Disposable']{constructor(_0x1cec09,_0x4751a8,_0x10a948,_0x118e50,_0xa59066,_0x138ec6,_0x43eec5,_0xb03b7b){const _0x1ad3c9=_0x49483b;super(),_(this,_0x1ad3c9(0x32a),new d['BehaviorSubject'](u[_0x1ad3c9(0x203)][_0x1ad3c9(0x27a)])),(this[_0x1ad3c9(0x163)]=_0x1cec09,this['_collaborationController']=_0x4751a8,this['_docTransformIMECacheService']=_0x10a948,this[_0x1ad3c9(0x2e9)]=_0x118e50,this[_0x1ad3c9(0x31d)]=_0xa59066,this['_docSyncEditingCollabCursorService']=_0x138ec6,this[_0x1ad3c9(0x338)]=_0x43eec5,this[_0x1ad3c9(0x25a)]=_0xb03b7b,this[_0x1ad3c9(0x27b)]());}['_initEntityListener'](){const _0x5f4b2e=_0x49483b;this[_0x5f4b2e(0x200)](this['_collaborationController'][_0x5f4b2e(0x1b9)][_0x5f4b2e(0x175)](_0x10e8f4=>{const _0x37ac67=_0x5f4b2e,_0x4654f2=this[_0x37ac67(0x163)]['docStateChange$'][_0x37ac67(0x175)](_0x2a464a=>{const _0x4bac74=_0x37ac67;if(_0x2a464a==null)return;const {unitId:_0x69509b,redoState:_0x344f61,commandId:_0x34c1a2}=_0x2a464a;if(_0x69509b!==_0x10e8f4[_0x4bac74(0x115)])return;const _0x1f2c1a={'id':_0x34c1a2,'type':a[_0x4bac74(0x129)][_0x4bac74(0x249)],'params':{'unitId':_0x69509b,'actions':_0x344f61['actions'],'textRanges':null}};_0x10e8f4['onLocalMutation'](_0x1f2c1a);});if(_0x10e8f4[_0x37ac67(0x200)](_0x4654f2),_0x10e8f4 instanceof u[_0x37ac67(0x298)]){const _0x566128={'onTransformIME':_0x2595e1=>this[_0x37ac67(0x369)]['transformIMECache'](_0x2595e1),'onTransformState':_0x58424d=>this[_0x37ac67(0x2e9)][_0x37ac67(0x2c6)](_0x58424d),'onTransformSelections':_0x21fe45=>this['_docTransformSelectionsService'][_0x37ac67(0x2a3)](_0x21fe45),'onSyncEditingCollabCursor':_0xc62ee5=>this[_0x37ac67(0x1dd)][_0x37ac67(0x344)](_0xc62ee5),'onTransformRemoteChangesetByIMECache':_0x48529e=>this[_0x37ac67(0x369)]['transformRemoteChangeset'](_0x48529e),'onTransformRemoteChangesetByStateCache':_0x380089=>this[_0x37ac67(0x2e9)][_0x37ac67(0x180)](_0x380089)};_0x10e8f4[_0x37ac67(0x10f)](_0x566128);}}));}};ee=Zt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0x49483b(0x199)](u['CollaborationController'])),N(0x2,a[_0x49483b(0x199)](J)),N(0x3,a['Inject'](Z)),N(0x4,a[_0x49483b(0x199)](Q)),N(0x5,a[_0x49483b(0x199)](pe)),N(0x6,O[_0x49483b(0x38a)]),N(0x7,a[_0x49483b(0x199)](a[_0x49483b(0x20d)]))],ee);var Qt=Object[_0x49483b(0x16b)],es=(_0x506bbc,_0x39729b,_0x569db7,_0x549ce4)=>{const _0x3058d3=_0x49483b;for(var _0x4f6bf5=_0x549ce4>0x1?void 0x0:_0x549ce4?Qt(_0x39729b,_0x569db7):_0x39729b,_0x82957=_0x506bbc[_0x3058d3(0x22f)]-0x1,_0x27faa3;_0x82957>=0x0;_0x82957--)(_0x27faa3=_0x506bbc[_0x82957])&&(_0x4f6bf5=_0x27faa3(_0x4f6bf5)||_0x4f6bf5);return _0x4f6bf5;},he=(_0x42c6a5,_0x28ae5e)=>(_0x2baf6a,_0x4bd96c)=>_0x28ae5e(_0x2baf6a,_0x4bd96c,_0x42c6a5);let me=class extends a['Disposable']{constructor(_0x5d5424,_0x51426f,_0x554beb){const _0x4d7ebf=_0x49483b;super(),_(this,_0x4d7ebf(0x24c),new Map()),_(this,_0x4d7ebf(0x366),new Map()),_(this,'_disabled',!0x1),(this[_0x4d7ebf(0x35a)]=_0x5d5424,this[_0x4d7ebf(0x24b)]=_0x51426f,this[_0x4d7ebf(0x1c3)]=_0x554beb);}[_0x49483b(0x222)](){const _0x31518b=_0x49483b;this[_0x31518b(0x274)]=!0x0;}[_0x49483b(0x1de)](){const _0xf18019=_0x49483b;this[_0xf18019(0x274)]=!0x1;}get['saveTaskMap'](){const _0x1470cf=_0x49483b;return this[_0x1470cf(0x366)];}['dispose'](){const _0x4b2849=_0x49483b;this[_0x4b2849(0x20a)]()[_0x4b2849(0x157)](()=>super[_0x4b2849(0x202)]());}async[_0x49483b(0x1e0)](_0x3b4d10){const _0x15d9a6=_0x49483b;return this[_0x15d9a6(0x274)]?null:this[_0x15d9a6(0x24b)][_0x15d9a6(0x1cf)](u[_0x15d9a6(0x131)](_0x3b4d10));}async['saveOfflineData'](_0xf84f1a,_0x2cbc0e){const _0x4a3e0e=_0x49483b;return!!this[_0x4a3e0e(0x24b)]['setItem'](_0xf84f1a,_0x2cbc0e);}[_0x49483b(0x141)](_0x2b6b93,_0x527e32,_0x5467f9,_0x2b0d71){const _0x5ad3e7=_0x49483b,_0x43065b=this[_0x5ad3e7(0x1c3)][_0x5ad3e7(0x294)](_0x2b6b93);this[_0x5ad3e7(0x24c)]['set'](_0x2b6b93,{'unitID':_0x2b6b93,'type':_0x527e32,'awaitingChangeset':_0x5467f9,'mutations':_0x2b0d71,'rev':_0x43065b}),this['_saveTaskMap'][_0x5ad3e7(0x179)](_0x2b6b93)||this[_0x5ad3e7(0x1d1)](_0x2b6b93);}[_0x49483b(0x1d1)](_0x5ae62e){const _0x4d696a=_0x49483b,_0x18bca7=this['_getSaveTimeout']();_0x18bca7===0x0?this[_0x4d696a(0x223)](_0x5ae62e):this[_0x4d696a(0x366)]['set'](_0x5ae62e,setTimeout(()=>this[_0x4d696a(0x223)](_0x5ae62e),_0x18bca7));}[_0x49483b(0x2be)](){const _0x5cfbff=_0x49483b;var _0xbd43b0;return(_0xbd43b0=this['_configService']['getConfig'](u[_0x5cfbff(0x382)]))!=null?_0xbd43b0:u['LOCAL_CACHE_INTERVAL'];}[_0x49483b(0x223)](_0x5bc550){const _0x277de2=_0x49483b,_0x345e8b=this['_saveTaskMap'][_0x277de2(0x1bd)](_0x5bc550);return _0x345e8b!==void 0x0&&window[_0x277de2(0x111)](_0x345e8b),this['_localStorageService'][_0x277de2(0x17f)](u['getLocalCacheKey'](_0x5bc550),this['_cachedData']['get'](_0x5bc550))[_0x277de2(0x157)](()=>this[_0x277de2(0x366)][_0x277de2(0x334)](_0x5bc550));}async[_0x49483b(0x20a)](){const _0x4dbef1=_0x49483b,_0x160d9a=[];this[_0x4dbef1(0x366)]['forEach']((_0xd89e9a,_0x1d6fe9)=>{const _0x2487e3=_0x4dbef1;window[_0x2487e3(0x111)](_0xd89e9a),_0x160d9a[_0x2487e3(0x119)](this['_saveCache'](_0x1d6fe9)[_0x2487e3(0x157)](()=>{const _0x295b92=_0x2487e3;this[_0x295b92(0x366)][_0x295b92(0x334)](_0x1d6fe9);}));}),await Promise[_0x4dbef1(0x346)](_0x160d9a);}};me=es([he(0x0,a[_0x49483b(0x360)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x49483b(0x199)](m[_0x49483b(0x238)]))],me);class Be extends a['RxDisposable']{constructor(){const _0x180647=_0x49483b;super(),_(this,_0x180647(0x19e)),this['urlChange$']=d[_0x180647(0x10a)](window,'popstate')[_0x180647(0x2dc)](d['takeUntil'](this[_0x180647(0x2cb)]),d[_0x180647(0x1ea)](0x1),d[_0x180647(0x2ae)](void 0x0));}[_0x49483b(0x2b1)](_0x2ce8ef,_0x5783fa,_0x3b0bf0=!0x1){const _0x5008b0=_0x49483b,_0x5d82fd=new URL(window[_0x5008b0(0x22b)][_0x5008b0(0x13b)]);_0x5d82fd['searchParams'][_0x5008b0(0x25c)](_0x2ce8ef,_0x5783fa),_0x3b0bf0?window['history'][_0x5008b0(0x1dc)]('','',_0x5d82fd[_0x5008b0(0x237)]()):window[_0x5008b0(0x18e)][_0x5008b0(0x1b6)]('','',_0x5d82fd[_0x5008b0(0x237)]());}[_0x49483b(0x25f)](_0x502636,_0x3ad823=!0x1){const _0x2363ca=_0x49483b,_0x588ecc=new URL(window['location'][_0x2363ca(0x13b)]);_0x588ecc[_0x2363ca(0x109)][_0x2363ca(0x334)](_0x502636),_0x3ad823?window[_0x2363ca(0x18e)][_0x2363ca(0x1dc)]('','',_0x588ecc['toString']()):window[_0x2363ca(0x18e)][_0x2363ca(0x1b6)]('','',_0x588ecc[_0x2363ca(0x237)]());}['getParam'](_0x30e47e){const _0x264778=_0x49483b;var _0x382f4f;return(_0x382f4f=new URL(window[_0x264778(0x22b)][_0x264778(0x13b)])[_0x264778(0x109)]['get'](_0x30e47e))!=null?_0x382f4f:void 0x0;}}var ts=Object[_0x49483b(0x13a)],ss=Object['getOwnPropertyDescriptor'],ns=(_0x7a6894,_0x5a49bf,_0x21d98f)=>_0x5a49bf in _0x7a6894?ts(_0x7a6894,_0x5a49bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21d98f}):_0x7a6894[_0x5a49bf]=_0x21d98f,is=(_0x436926,_0x4a8dd9,_0x230e7d,_0x96b9cd)=>{const _0x567ee4=_0x49483b;for(var _0x103b0d=_0x96b9cd>0x1?void 0x0:_0x96b9cd?ss(_0x4a8dd9,_0x230e7d):_0x4a8dd9,_0x3a91cc=_0x436926[_0x567ee4(0x22f)]-0x1,_0x36abf6;_0x3a91cc>=0x0;_0x3a91cc--)(_0x36abf6=_0x436926[_0x3a91cc])&&(_0x103b0d=_0x36abf6(_0x103b0d)||_0x103b0d);return _0x103b0d;},ue=(_0x5cc095,_0x1fbca0)=>(_0x4c23fe,_0x30bcaa)=>_0x1fbca0(_0x4c23fe,_0x30bcaa,_0x5cc095),rs=(_0x29a42e,_0x5a185a,_0x2e39f3)=>ns(_0x29a42e,_0x5a185a+'',_0x2e39f3);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';function _0x6961(_0x2ab517,_0x1b8f3a){const _0x2197be=_0x2197();return _0x6961=function(_0x6961a3,_0x429f7e){_0x6961a3=_0x6961a3-0x109;let _0x13fb31=_0x2197be[_0x6961a3];return _0x13fb31;},_0x6961(_0x2ab517,_0x1b8f3a);}exports[_0x49483b(0x23c)]=class extends a[_0x49483b(0x134)]{constructor(_0x2aaaf8=Ne,_0x5629d6,_0x3f78d8,_0x19a8b9){const _0x28490b=_0x49483b;super(),this[_0x28490b(0x128)]=_0x2aaaf8,this['_renderManagerService']=_0x5629d6,this[_0x28490b(0x34e)]=_0x3f78d8,this[_0x28490b(0x35a)]=_0x19a8b9;const {..._0x83aa18}=a[_0x28490b(0x1f9)]({},Ne,this[_0x28490b(0x128)]);this[_0x28490b(0x35a)][_0x28490b(0x2e8)](Ft,_0x83aa18);}[_0x49483b(0x2d6)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x49483b(0x35e)](){const _0x340b9f=_0x49483b;this[_0x340b9f(0x14a)]();}[_0x49483b(0x23f)](){const _0x2cda8a=_0x49483b;var _0x2d2c33;const _0x12c758=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x2cda8a(0x2ff)],{'useClass':q[_0x2cda8a(0x2c8)]}],[u[_0x2cda8a(0x14d)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a[_0x2cda8a(0x37e)](this['_injector'],a['mergeOverrideWithDependencies'](_0x12c758,(_0x2d2c33=this[_0x2cda8a(0x128)])==null?void 0x0:_0x2d2c33['override']));}[_0x49483b(0x14a)](){const _0x4c6014=_0x49483b;this['disposeWithMe'](this[_0x4c6014(0x117)][_0x4c6014(0x2bb)](a[_0x4c6014(0x24a)]['UNIVER_DOC'],[ve])),this[_0x4c6014(0x200)](this['_renderManagerService'][_0x4c6014(0x2bb)](a[_0x4c6014(0x24a)][_0x4c6014(0x2ec)],[ge]));}[_0x49483b(0x16e)](){const _0x412690=_0x49483b;a[_0x412690(0x2a1)](this[_0x412690(0x34e)],[[x],[exports[_0x412690(0x36b)]],[ee],[z],[exports['CollaborationDataLoaderController']]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x49483b(0x15a),os),exports[_0x49483b(0x23c)]=is([a['DependentOn'](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x49483b(0x14b)]),ue(0x2,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),ue(0x3,a['IConfigService'])],exports[_0x49483b(0x23c)]);var as=Object['getOwnPropertyDescriptor'],cs=(_0x5bc93b,_0x4206e8,_0x589d8a,_0x3027cd)=>{const _0x57ca50=_0x49483b;for(var _0x1e5e5b=_0x3027cd>0x1?void 0x0:_0x3027cd?as(_0x4206e8,_0x589d8a):_0x4206e8,_0x2a3f43=_0x5bc93b[_0x57ca50(0x22f)]-0x1,_0x55254c;_0x2a3f43>=0x0;_0x2a3f43--)(_0x55254c=_0x5bc93b[_0x2a3f43])&&(_0x1e5e5b=_0x55254c(_0x1e5e5b)||_0x1e5e5b);return _0x1e5e5b;},W=(_0x1d3aeb,_0x3f6422)=>(_0x432504,_0x3256e0)=>_0x3f6422(_0x432504,_0x3256e0,_0x1d3aeb);exports[_0x49483b(0x214)]=class extends u[_0x49483b(0x277)]{constructor(_0x2dc0fc,_0x2d4ad6,_0xbf1ddc,_0x317d06,_0x429d31){super(_0x2dc0fc,_0x2d4ad6,_0xbf1ddc,_0x317d06,_0x429d31);}async[_0x49483b(0x1b2)](_0x1a1570){const _0x24fcdc=_0x49483b,_0x341a88=await this[_0x24fcdc(0x34f)](),_0x10bb99=this[_0x24fcdc(0x37f)](_0x1a1570,_0x341a88);return this['_doCreateSocket'](_0x10bb99);}[_0x49483b(0x37f)](_0x3a6cd9,_0x35a6fa){const _0x2c3d7f=_0x49483b,_0x35e623=typeof window>'u'?new URL(_0x3a6cd9):new URL(_0x3a6cd9,window['location'][_0x2c3d7f(0x2f8)]);_0x35e623[_0x2c3d7f(0x109)][_0x2c3d7f(0x25c)](_0x2c3d7f(0x1e3),_0x35a6fa);const _0x383d55=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2c3d7f(0x22b)][_0x2c3d7f(0x1fa)]);return _0x383d55[_0x2c3d7f(0x1bd)](_0x2c3d7f(0x1f8))&&_0x35e623[_0x2c3d7f(0x109)][_0x2c3d7f(0x25c)](_0x2c3d7f(0x1f8),_0x383d55[_0x2c3d7f(0x1bd)](_0x2c3d7f(0x1f8))),_0x35e623[_0x2c3d7f(0x237)]();}async[_0x49483b(0x34f)](){const _0x31c0e2=_0x49483b;var _0x36e6c5,_0x8cafee,_0x490078;const _0x571473=this[_0x31c0e2(0x35a)][_0x31c0e2(0x234)](u[_0x31c0e2(0x2f5)]),_0x36149f=(_0x36e6c5=_0x571473==null?void 0x0:_0x571473['wsSessionTicketUrl'])!=null?_0x36e6c5:u[_0x31c0e2(0x1e7)];return(_0x490078=(_0x8cafee=(await this[_0x31c0e2(0x255)]['get'](_0x36149f,{'headers':{'Content-Type':_0x31c0e2(0x122)}}))[_0x31c0e2(0x205)])==null?void 0x0:_0x8cafee[_0x31c0e2(0x27e)])!=null?_0x490078:'';}},exports[_0x49483b(0x214)]=cs([W(0x0,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),W(0x1,a['Inject'](q[_0x49483b(0x2a9)])),W(0x2,a[_0x49483b(0x360)]),W(0x3,a[_0x49483b(0x370)]),W(0x4,m[_0x49483b(0x120)])],exports['BrowserCollaborationSocketService']);const Le=0x7530,Pe=_0x49483b(0x1c6);class ls extends a[_0x49483b(0x2b2)]{constructor(){const _0x1581aa=_0x49483b;super(),_(this,'_id',a['generateRandomId']()),_(this,'_selfUnitIDs',new Set()),_(this,_0x1581aa(0x194),new Map()),_(this,_0x1581aa(0x2fe),null),_(this,_0x1581aa(0x114),new Map()),_(this,'_unitStatus',new Map()),this[_0x1581aa(0x31c)]();}[_0x49483b(0x202)](){const _0xcd69db=_0x49483b;super['dispose'](),this[_0xcd69db(0x114)]['forEach']((_0x25244e,_0x4fe893)=>this[_0xcd69db(0x177)](_0x4fe893)),this[_0xcd69db(0x2fe)]&&window[_0xcd69db(0x323)](this[_0xcd69db(0x2fe)]);}[_0x49483b(0x2d3)](_0x9a0b71){const _0x42b78e=_0x49483b;return this[_0x42b78e(0x34c)](_0x9a0b71)[_0x42b78e(0x2dc)](d['distinctUntilChanged']());}[_0x49483b(0x28b)](_0x197646){const _0x4df1d9=_0x49483b;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x4df1d9(0x2e4)][_0x4df1d9(0x1b1)](_0x197646),this['_send']({'type':0x0,'memberID':this[_0x4df1d9(0x19a)],'unitIDs':[_0x197646],'isForwarded':!0x1});}[_0x49483b(0x2c2)](_0x2d1fab){const _0x5f0286=_0x49483b;this[_0x5f0286(0x2e4)][_0x5f0286(0x334)](_0x2d1fab),this[_0x5f0286(0x2e4)]['size']===0x0&&this[_0x5f0286(0x2fe)]&&window['clearInterval'](this[_0x5f0286(0x2fe)]);}[_0x49483b(0x31c)](){const _0x4dc160=_0x49483b;this[_0x4dc160(0x200)](a[_0x4dc160(0x143)](d[_0x4dc160(0x10a)](window,_0x4dc160(0x364))[_0x4dc160(0x175)](_0x1ca766=>{const _0x23411f=_0x4dc160;if(_0x1ca766[_0x23411f(0x16c)]!==Pe||!_0x1ca766[_0x23411f(0x2db)])return;const _0x40d23f=JSON[_0x23411f(0x343)](_0x1ca766[_0x23411f(0x2db)]);this['_handleEvent'](_0x40d23f);}))),window['addEventListener'](_0x4dc160(0x173),()=>this[_0x4dc160(0x35b)]({'type':0x1,'memberID':this[_0x4dc160(0x19a)],'unitIDs':Array[_0x4dc160(0x352)](this[_0x4dc160(0x2e4)])}));}[_0x49483b(0x154)](_0x45be4b){const _0x37b533=_0x49483b;switch(_0x45be4b[_0x37b533(0x1e6)]){case 0x0:this[_0x37b533(0x246)](_0x45be4b);break;case 0x1:this['_handleLeaveEvent'](_0x45be4b);break;case 0x2:this['_handleHeartbeatEvent'](_0x45be4b);break;}}['_handleJoinEvent'](_0x95ef5b){const _0x1005c7=_0x49483b,{unitIDs:_0x1cf1f8,memberID:_0x2fb73c,isForwarded:_0xf8e59}=_0x95ef5b;_0x1cf1f8['forEach'](_0xbbc2c1=>{const _0x392e1b=_0x6961;if(!_0xf8e59&&this[_0x392e1b(0x194)][_0x392e1b(0x179)](_0xbbc2c1)&&this[_0x392e1b(0x34c)](_0xbbc2c1)[_0x392e1b(0x160)](u[_0x392e1b(0x383)][_0x392e1b(0x1ff)]),!this[_0x392e1b(0x194)]['has'](_0xbbc2c1)||!this['_unitOnClients']['get'](_0xbbc2c1)[_0x392e1b(0x179)](_0x2fb73c)){const _0x3b2684=this[_0x392e1b(0x194)][_0x392e1b(0x1bd)](_0xbbc2c1)||new Set();_0x3b2684[_0x392e1b(0x1b1)](_0x2fb73c),this[_0x392e1b(0x194)][_0x392e1b(0x25c)](_0xbbc2c1,_0x3b2684),this[_0x392e1b(0x2e6)](_0x2fb73c);}}),_0xf8e59||this[_0x1005c7(0x35b)]({'type':0x0,'memberID':this[_0x1005c7(0x19a)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x49483b(0x2e6)](_0x59ab8f){const _0x736ed=_0x49483b;this[_0x736ed(0x177)](_0x59ab8f);const _0x2ec84f=window[_0x736ed(0x130)](()=>{const _0x3fe8e4=_0x736ed;this[_0x3fe8e4(0x194)][_0x3fe8e4(0x32e)](_0x32dd05=>{const _0x276c81=_0x3fe8e4;_0x32dd05[_0x276c81(0x334)](_0x59ab8f);});},Le*0x2);this[_0x736ed(0x114)]['set'](_0x59ab8f,_0x2ec84f);}[_0x49483b(0x177)](_0x406291){const _0xc75003=_0x49483b;if(this['_clearOtherTimers'][_0xc75003(0x179)](_0x406291)){const _0x101737=this[_0xc75003(0x114)][_0xc75003(0x1bd)](_0x406291);_0x101737&&window[_0xc75003(0x111)](_0x101737),this[_0xc75003(0x114)][_0xc75003(0x25c)](_0x406291,null);}}[_0x49483b(0x319)](_0x32f2f8){const _0xa63434=_0x49483b,{memberID:_0x15ddec,unitIDs:_0x511f18}=_0x32f2f8;_0x511f18['forEach'](_0x22d084=>{const _0x251e8b=_0x6961;var _0x5880a2;const _0x1bd8d2=this['_unitOnClients']['get'](_0x22d084);_0x1bd8d2&&(_0x1bd8d2[_0x251e8b(0x334)](_0x15ddec),(_0x5880a2=this['_ensureSubject'](_0x22d084))==null||_0x5880a2[_0x251e8b(0x160)](_0x1bd8d2[_0x251e8b(0x10c)]===0x0?u[_0x251e8b(0x383)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0xa63434(0x177)](_0x15ddec);}['_handleHeartbeatEvent'](_0x4a581e){const _0x55f1f0=_0x49483b;this[_0x55f1f0(0x2e6)](_0x4a581e[_0x55f1f0(0x301)]);}[_0x49483b(0x35b)](_0x41eb21){const _0x1b3f82=_0x49483b;localStorage['setItem'](Pe,JSON[_0x1b3f82(0x291)](_0x41eb21));}[_0x49483b(0x327)](){const _0x2adfe3=_0x49483b;this['_heartbeatTimer']=window[_0x2adfe3(0x290)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Le);}[_0x49483b(0x34c)](_0x3657a2){const _0x38830c=_0x49483b;return this[_0x38830c(0x1a6)][_0x38830c(0x179)](_0x3657a2)||this[_0x38830c(0x1a6)][_0x38830c(0x25c)](_0x3657a2,new d[(_0x38830c(0x33f))](u[_0x38830c(0x383)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x38830c(0x1a6)][_0x38830c(0x1bd)](_0x3657a2);}}var ke=(_0x355095=>(_0x355095[_0x355095['UNDEFINED']=0x0]=_0x49483b(0x30b),_0x355095[_0x355095['OK']=0x1]='OK',_0x355095[_0x355095[_0x49483b(0x23d)]=0x2]=_0x49483b(0x23d),_0x355095[_0x355095[_0x49483b(0x2cd)]=0x3]=_0x49483b(0x2cd),_0x355095[_0x355095[_0x49483b(0x2ef)]=0x4]=_0x49483b(0x2ef),_0x355095[_0x355095[_0x49483b(0x311)]=0x5]=_0x49483b(0x311),_0x355095[_0x355095[_0x49483b(0x2d5)]=0x6]=_0x49483b(0x2d5),_0x355095[_0x355095['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x355095[_0x355095['TOO_MANY_REQUESTS']=0x8]=_0x49483b(0x2c3),_0x355095[_0x355095['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x355095[_0x355095[_0x49483b(0x264)]=0xa]=_0x49483b(0x264),_0x355095[_0x355095[_0x49483b(0x138)]=0x1389]=_0x49483b(0x138),_0x355095[_0x355095[_0x49483b(0x317)]=0x1771]=_0x49483b(0x317),_0x355095[_0x355095[_0x49483b(0x330)]=0x1772]=_0x49483b(0x330),_0x355095[_0x355095[_0x49483b(0x1da)]=0x1773]=_0x49483b(0x1da),_0x355095[_0x355095[_0x49483b(0x310)]=0x1b59]='APPLY_REJECT',_0x355095[_0x355095[_0x49483b(0x196)]=0x1b5a]=_0x49483b(0x196),_0x355095[_0x355095[_0x49483b(0x357)]=0x1b5b]=_0x49483b(0x357),_0x355095[_0x355095['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x49483b(0x283),_0x355095[_0x355095[_0x49483b(0x193)]=0x1b5d]=_0x49483b(0x193),_0x355095[_0x355095[_0x49483b(0x21f)]=0x1f41]=_0x49483b(0x21f),_0x355095[_0x355095['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x49483b(0x220),_0x355095[_0x355095['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x49483b(0x19b),_0x355095[_0x355095[_0x49483b(0x1fc)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x355095[_0x355095['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x355095[_0x355095[_0x49483b(0x1b5)]=0x232d]=_0x49483b(0x1b5),_0x355095[_0x355095[_0x49483b(0x11e)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x355095[_0x355095[_0x49483b(0x353)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x355095[_0x355095[_0x49483b(0x309)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x355095[_0x355095['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x355095[_0x355095[_0x49483b(0x29d)]=0x271a]=_0x49483b(0x29d),_0x355095[_0x355095[_0x49483b(0x32d)]=0x271b]=_0x49483b(0x32d),_0x355095[_0x355095[_0x49483b(0x241)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x355095[_0x355095[_0x49483b(0x16f)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x355095[_0x355095['INVALID_INVITE_CODE']=0x2ee2]=_0x49483b(0x36a),_0x355095[_0x355095[_0x49483b(0x110)]=0x2ee3]=_0x49483b(0x110),_0x355095[_0x355095[_0x49483b(0x1f4)]=0x2ee4]=_0x49483b(0x1f4),_0x355095[_0x355095[_0x49483b(0x219)]=0x2ee5]=_0x49483b(0x219),_0x355095[_0x355095[_0x49483b(0x21e)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x355095[_0x355095[_0x49483b(0x218)]=0x32ca]=_0x49483b(0x218),_0x355095[_0x355095['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x49483b(0x302),_0x355095[_0x355095[_0x49483b(0x1a4)]=-0x1]=_0x49483b(0x1a4),_0x355095))(ke||{}),_s=Object[_0x49483b(0x16b)],hs=(_0x16410b,_0x56469f,_0x415745,_0x21b214)=>{for(var _0x464edf=_0x21b214>0x1?void 0x0:_0x21b214?_s(_0x56469f,_0x415745):_0x56469f,_0x519734=_0x16410b['length']-0x1,_0x21ed12;_0x519734>=0x0;_0x519734--)(_0x21ed12=_0x16410b[_0x519734])&&(_0x464edf=_0x21ed12(_0x464edf)||_0x464edf);return _0x464edf;},de=(_0x48cef1,_0x363084)=>(_0x2c6972,_0x1b9121)=>_0x363084(_0x2c6972,_0x1b9121,_0x48cef1);exports[_0x49483b(0x386)]=class extends a[_0x49483b(0x2b2)]{constructor(_0x93274d,_0x5c52f2,_0x5271f1){const _0x269dc0=_0x49483b;super(),this[_0x269dc0(0x198)]=_0x93274d,this[_0x269dc0(0x255)]=_0x5c52f2,this[_0x269dc0(0x35a)]=_0x5271f1;}async[_0x49483b(0x315)](_0x250c52,_0x11006a,_0x5c57fb,..._0x14eb6a){const _0x4ac782=_0x49483b;var _0x1978a4,_0x5f45ab,_0x6c5517,_0xffee67;const _0x53f8b3=this[_0x4ac782(0x198)]['getFocusedUnit']();if(!_0x53f8b3)throw new Error(_0x4ac782(0x167));const _0x2259da=((_0x1978a4=this[_0x4ac782(0x35a)]['getConfig'](u[_0x4ac782(0x2f3)]))!=null?_0x1978a4:u[_0x4ac782(0x12c)])+'/'+_0x250c52+_0x4ac782(0x18a)+_0x11006a,_0x3ffd80=new URL(window[_0x4ac782(0x22b)][_0x4ac782(0x13b)]),_0x346093={'scriptId':_0x250c52,'runId':(_0x5f45ab=_0x3ffd80[_0x4ac782(0x109)][_0x4ac782(0x1bd)](_0x4ac782(0x1f8)))!=null?_0x5f45ab:'','function':_0x11006a,'unitId':_0x53f8b3['getUnitId'](),'argsOfFunction':JSON[_0x4ac782(0x291)](_0x14eb6a),'invokeId':(_0x6c5517=_0x5c57fb[_0x4ac782(0x137)])!=null?_0x6c5517:'','executionId':(_0xffee67=_0x5c57fb[_0x4ac782(0x26c)])!=null?_0xffee67:''};try{const _0x673f9=await this[_0x4ac782(0x255)][_0x4ac782(0x21c)](_0x2259da,{'body':_0x346093});return _0x673f9['body'][_0x4ac782(0x20e)]&&_0x673f9['body'][_0x4ac782(0x20e)][_0x4ac782(0x1b4)]!==ke['OK']?'Failed':_0x673f9[_0x4ac782(0x205)][_0x4ac782(0x335)];}catch{return'Failed';}}},exports[_0x49483b(0x386)]=hs([de(0x0,a[_0x49483b(0x363)]),de(0x1,a['Inject'](q['HTTPService'])),de(0x2,a['IConfigService'])],exports[_0x49483b(0x386)]),exports[_0x49483b(0x324)]=je,exports[_0x49483b(0x24e)]=Ee,exports[_0x49483b(0x136)]=Ae,exports[_0x49483b(0x13d)]=ls,exports[_0x49483b(0x38f)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x106f99=_0x101d;(function(_0x2fbf27,_0x239a6c){const _0x5cb234=_0x101d,_0x3f817e=_0x2fbf27();while(!![]){try{const _0x2e6dcf=-parseInt(_0x5cb234(0x13f))/0x1*(parseInt(_0x5cb234(0x14d))/0x2)+-parseInt(_0x5cb234(0x14a))/0x3*(-parseInt(_0x5cb234(0x13d))/0x4)+-parseInt(_0x5cb234(0x147))/0x5+parseInt(_0x5cb234(0x13e))/0x6+parseInt(_0x5cb234(0x13c))/0x7*(parseInt(_0x5cb234(0x142))/0x8)+parseInt(_0x5cb234(0x136))/0x9+parseInt(_0x5cb234(0x151))/0xa*(-parseInt(_0x5cb234(0x149))/0xb);if(_0x2e6dcf===_0x239a6c)break;else _0x3f817e['push'](_0x3f817e['shift']());}catch(_0xd0c526){_0x3f817e['push'](_0x3f817e['shift']());}}}(_0x2a3e,0x391a5));const e={'collab-client':{'tooltip':{'reconnect':_0x106f99(0x14e)}},'collabStatus':{'fetchMiss':_0x106f99(0x13b),'conflict':_0x106f99(0x13a),'notCollab':_0x106f99(0x150),'synced':_0x106f99(0x148),'syncing':_0x106f99(0x141),'offline':_0x106f99(0x140)},'session':{'connection-failed':_0x106f99(0x137),'will-retry':_0x106f99(0x14f),'room-full':_0x106f99(0x143),'collaboration-timeout':_0x106f99(0x14b)},'conflict':{'title':_0x106f99(0x138),'content':'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.'},'permission':{'title':_0x106f99(0x139),'content':_0x106f99(0x145)},'collaboration':{'single-unit':{'warning':_0x106f99(0x146)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x106f99(0x14c)}};function _0x101d(_0x1dbfd2,_0x5a2486){const _0x2a3ed4=_0x2a3e();return _0x101d=function(_0x101d1f,_0x125227){_0x101d1f=_0x101d1f-0x136;let _0x47a5c3=_0x2a3ed4[_0x101d1f];return _0x47a5c3;},_0x101d(_0x1dbfd2,_0x5a2486);}module[_0x106f99(0x144)]=e;function _0x2a3e(){const _0x3e40ff=['10phvHma','3978486fOwzBz','Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20Conflict','Authentication\x20Error','Edit\x20conflicts','Syncing\x20server\x20data...','35112OTZiwl','8EWRGgx','2231040LDsXEU','269iJYQyp','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','152vjmjHj','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','exports','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2170820ekNgGR','Synced','4195169BvKIph','264426RgvQcz','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','268zdfinP','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Local\x20file'];_0x2a3e=function(){return _0x3e40ff;};return _0x2a3e();}
|