@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250419-1304630 → 0.6.10-experimental.20250421-e4eb9bc
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';const
|
|
1
|
+
'use strict';const _0x2fa775=_0x3b90;(function(_0x45fac0,_0x163636){const _0xce9eef=_0x3b90,_0x1d6749=_0x45fac0();while(!![]){try{const _0x552893=parseInt(_0xce9eef(0x114))/0x1+parseInt(_0xce9eef(0x115))/0x2*(parseInt(_0xce9eef(0x11c))/0x3)+parseInt(_0xce9eef(0x119))/0x4*(-parseInt(_0xce9eef(0x112))/0x5)+-parseInt(_0xce9eef(0x113))/0x6+parseInt(_0xce9eef(0x11f))/0x7*(-parseInt(_0xce9eef(0x122))/0x8)+parseInt(_0xce9eef(0x120))/0x9+-parseInt(_0xce9eef(0x116))/0xa*(-parseInt(_0xce9eef(0x121))/0xb);if(_0x552893===_0x163636)break;else _0x1d6749['push'](_0x1d6749['shift']());}catch(_0x25ab47){_0x1d6749['push'](_0x1d6749['shift']());}}}(_0x35bb,0x9b3c2));const t=require(_0x2fa775(0x118)),e=require(_0x2fa775(0x117));class c extends e[_0x2fa775(0x11d)]{[_0x2fa775(0x11a)](_0x17a0f8,_0x9db363,..._0x2dc228){const _0x433b87=_0x2fa775;return this[_0x433b87(0x11e)][_0x433b87(0x11b)](t[_0x433b87(0x111)])[_0x433b87(0x11a)](_0x17a0f8,_0x9db363,{},..._0x2dc228);}}e[_0x2fa775(0x11d)]['extend'](c);function _0x3b90(_0x46f24a,_0x5a3e1e){const _0x35bb76=_0x35bb();return _0x3b90=function(_0x3b9063,_0x41125f){_0x3b9063=_0x3b9063-0x111;let _0x19c376=_0x35bb76[_0x3b9063];return _0x19c376;},_0x3b90(_0x46f24a,_0x5a3e1e);}function _0x35bb(){const _0x5f3e85=['3244041EdiWsh','374geZfNE','2921528thJhPl','RemoteUniscriptService','5gqyceH','2067006PmcqNM','404462hmOeuf','504646NqfpYs','154640TCtXGU','@univerjs/core/facade','@univerjs-pro/collaboration-client-ui','789904uiQpGd','runOnServer','get','3oAytOW','FUniver','_injector','7aNtLdB'];_0x35bb=function(){return _0x5f3e85;};return _0x35bb();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x3e6264=_0x5852;(function(_0x4f627e,_0xf58bb4){const _0x598491=_0x5852,_0x368b9d=_0x4f627e();while(!![]){try{const _0x4b077a=-parseInt(_0x598491(0x14f))/0x1*(-parseInt(_0x598491(0x3ab))/0x2)+-parseInt(_0x598491(0x38f))/0x3+parseInt(_0x598491(0x314))/0x4*(-parseInt(_0x598491(0x34a))/0x5)+-parseInt(_0x598491(0x1d9))/0x6*(-parseInt(_0x598491(0x1e8))/0x7)+-parseInt(_0x598491(0x1b8))/0x8*(parseInt(_0x598491(0x35e))/0x9)+parseInt(_0x598491(0x20a))/0xa+-parseInt(_0x598491(0x16a))/0xb*(-parseInt(_0x598491(0x1a6))/0xc);if(_0x4b077a===_0xf58bb4)break;else _0x368b9d['push'](_0x368b9d['shift']());}catch(_0x3b2e57){_0x368b9d['push'](_0x368b9d['shift']());}}}(_0x4b4f,0xc83fe));var Xe=Object['defineProperty'],Ge=(_0x55ecb6,_0x59093e,_0x19ba8d)=>_0x59093e in _0x55ecb6?Xe(_0x55ecb6,_0x59093e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19ba8d}):_0x55ecb6[_0x59093e]=_0x19ba8d,_=(_0xf40add,_0x2336b8,_0xc3c768)=>Ge(_0xf40add,typeof _0x2336b8!=_0x3e6264(0x235)?_0x2336b8+'':_0x2336b8,_0xc3c768);Object[_0x3e6264(0x1e0)](exports,Symbol[_0x3e6264(0x37e)],{'value':_0x3e6264(0x338)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x3e6264(0x2bb)),p=require(_0x3e6264(0x1f6)),q=require(_0x3e6264(0x180)),b=require(_0x3e6264(0x369)),qe=require(_0x3e6264(0x267)),d=require(_0x3e6264(0x21f)),Y=require(_0x3e6264(0x227)),m=require(_0x3e6264(0x2ca)),Te=require(_0x3e6264(0x230)),g=require(_0x3e6264(0x363)),$=require('rxjs/operators'),G=require(_0x3e6264(0x1b3)),P=require(_0x3e6264(0x254)),O=require(_0x3e6264(0x2ff)),T=require(_0x3e6264(0x296)),M=require('react'),Ke=require(_0x3e6264(0x22f));function _0x5852(_0x262219,_0x44a8bb){const _0x4b4fec=_0x4b4f();return _0x5852=function(_0x585268,_0x26fc8b){_0x585268=_0x585268-0x143;let _0xe523c=_0x4b4fec[_0x585268];return _0xe523c;},_0x5852(_0x262219,_0x44a8bb);}var ze=Object[_0x3e6264(0x2f9)],Je=(_0x30c8dc,_0x43fe9d,_0x233d20,_0x279733)=>{const _0x353591=_0x3e6264;for(var _0x8859a1=_0x279733>0x1?void 0x0:_0x279733?ze(_0x43fe9d,_0x233d20):_0x43fe9d,_0x3a44f0=_0x30c8dc[_0x353591(0x26b)]-0x1,_0x25ea79;_0x3a44f0>=0x0;_0x3a44f0--)(_0x25ea79=_0x30c8dc[_0x3a44f0])&&(_0x8859a1=_0x25ea79(_0x8859a1)||_0x8859a1);return _0x8859a1;},Oe=(_0x517873,_0x5d5cf7)=>(_0x3d30ee,_0x18fc0b)=>_0x5d5cf7(_0x3d30ee,_0x18fc0b,_0x517873);let fe=class extends a['RxDisposable']{constructor(_0x5669ea,_0x5055bd){const _0x4d0690=_0x3e6264;super(),this[_0x4d0690(0x2a9)]=_0x5669ea,this[_0x4d0690(0x2c6)]=_0x5055bd,this[_0x4d0690(0x3d1)]();}['_init'](){const _0x10425c=_0x3e6264,_0x55e683=this;this[_0x10425c(0x337)](this[_0x10425c(0x2a9)][_0x10425c(0x30e)]({'onBeforePasteImage':async _0x49b691=>{const _0x279966=_0x10425c,_0x5b8f2c=await _0x55e683[_0x279966(0x2c6)]['saveImage'](_0x49b691);return _0x5b8f2c?{'source':_0x5b8f2c[_0x279966(0x23b)],'imageSourceType':_0x5b8f2c[_0x279966(0x166)]}:null;}}));}};fe=Je([Oe(0x0,b[_0x3e6264(0x221)]),Oe(0x1,qe[_0x3e6264(0x350)])],fe);const Re=[_0x3e6264(0x3bb),_0x3e6264(0x361),'verdancy600',_0x3e6264(0x20d),_0x3e6264(0x312),_0x3e6264(0x3a9)];class Ce extends a['Disposable']{constructor(){const _0x3bd2d0=_0x3e6264;super(...arguments),_(this,_0x3bd2d0(0x31b),new Map()),_(this,_0x3bd2d0(0x2ea),0x0);}[_0x3e6264(0x375)](_0x5d9873){const _0x2f2627=_0x3e6264;if(this[_0x2f2627(0x31b)][_0x2f2627(0x1d0)](_0x5d9873))return this[_0x2f2627(0x31b)][_0x2f2627(0x320)](_0x5d9873);const _0x2ac697=Re[this[_0x2f2627(0x2ea)]];return this[_0x2f2627(0x2ea)]=(this[_0x2f2627(0x2ea)]+0x1)%Re[_0x2f2627(0x26b)],this[_0x2f2627(0x31b)][_0x2f2627(0x2a6)](_0x5d9873,_0x2ac697),_0x2ac697;}}function we(_0x217099){const _0x523f63=_0x3e6264;let _0x55ebd3='';for(const _0x595cf3 of _0x217099){const {startOffset:_0x50d062,endOffset:_0x1f05ee,isActive:_0x507a84,rangeType:_0x25f8fd,segmentId:_0x4f1ed6,segmentPage:_0x5988dd}=_0x595cf3;_0x55ebd3[_0x523f63(0x26b)]&&(_0x55ebd3+=','),_0x55ebd3+=_0x50d062+':'+_0x1f05ee+':'+(_0x507a84?'1':'0')+':'+_0x25f8fd+':'+_0x4f1ed6+':'+_0x5988dd;}return _0x55ebd3;}function Ze(_0x2bc359){const _0x434f52=_0x3e6264,_0x175b28=_0x2bc359[_0x434f52(0x1c7)](','),_0x5acdf0=[];for(const _0xec2d57 of _0x175b28){const [_0x2e7f72,_0x2885b8,_0x32004,_0xc7675a,_0x20918b,_0x3efe2e]=_0xec2d57['split'](':');_0x5acdf0[_0x434f52(0x228)]({'startOffset':Number(_0x2e7f72),'endOffset':Number(_0x2885b8),'collapsed':_0x2e7f72===_0x2885b8,'isActive':_0x32004==='1','rangeType':_0xc7675a===a[_0x434f52(0x260)][_0x434f52(0x25a)]?a[_0x434f52(0x260)]['TEXT']:a[_0x434f52(0x260)][_0x434f52(0x269)],'segmentId':typeof _0x20918b==_0x434f52(0x3b8)?String(_0x20918b):'','segmentPage':Number(_0x3efe2e!=null?_0x3efe2e:-0x1)});}return _0x5acdf0[_0x434f52(0x146)](_0x4c2493=>_0x4c2493[_0x434f52(0x22b)])||(_0x5acdf0[0x0][_0x434f52(0x22b)]=!0x0),_0x5acdf0;}class pe extends a[_0x3e6264(0x38b)]{constructor(){const _0x5a83df=_0x3e6264;super(...arguments),_(this,_0x5a83df(0x1ff),new d['BehaviorSubject'](null)),_(this,_0x5a83df(0x376),this[_0x5a83df(0x1ff)][_0x5a83df(0x301)]());}[_0x3e6264(0x2ba)](_0xceffaf){const _0x41591f=_0x3e6264,{unitID:_0x5a5451,memberID:_0x42b024,textRanges:_0x4eeea9}=_0xceffaf,_0x3321c0=we(_0x4eeea9);if(_0x3321c0==='')return;const _0x38488c={'unitID':_0x5a5451,'memberID':_0x42b024,'selection':_0x3321c0};this[_0x41591f(0x1ff)][_0x41591f(0x360)](_0x38488c);}}var Qe=Object[_0x3e6264(0x2f9)],et=(_0x18fe43,_0x4add70,_0x3778f1,_0x1c355)=>{const _0x519ed5=_0x3e6264;for(var _0x507801=_0x1c355>0x1?void 0x0:_0x1c355?Qe(_0x4add70,_0x3778f1):_0x4add70,_0x34afc2=_0x18fe43[_0x519ed5(0x26b)]-0x1,_0x8dbbc7;_0x34afc2>=0x0;_0x34afc2--)(_0x8dbbc7=_0x18fe43[_0x34afc2])&&(_0x507801=_0x8dbbc7(_0x507801)||_0x507801);return _0x507801;},L=(_0x280293,_0x3a679f)=>(_0x2629e9,_0x27d574)=>_0x3a679f(_0x2629e9,_0x27d574,_0x280293);const tt=0x12c,st=0x64;let Se=class extends a[_0x3e6264(0x38b)]{constructor(_0x3934ef,_0x2fdfa2,_0x5d018f,_0x1ec258,_0x3d1f40,_0x4b3443,_0x49c0a2,_0x30a52e,_0x20aeca){const _0x5692b8=_0x3e6264;super(),_(this,'_online',!0x1),_(this,_0x5692b8(0x3d1),!0x1),_(this,_0x5692b8(0x265),new d[(_0x5692b8(0x2cc))](new Map())),_(this,_0x5692b8(0x1db),this[_0x5692b8(0x265)]['asObservable']()),_(this,_0x5692b8(0x36e),new d[(_0x5692b8(0x2cc))]([])),_(this,_0x5692b8(0x1a0),this[_0x5692b8(0x36e)]['pipe'](d['debounceTime'](tt))),_(this,_0x5692b8(0x3a2),a['debounce'](_0x1e29f6=>{const _0x5a37a0=_0x5692b8,_0x4c4e47={'eventID':m[_0x5a37a0(0x192)][_0x5a37a0(0x172)],'data':{'unitID':this[_0x5a37a0(0x255)],'memberID':this[_0x5a37a0(0x293)][_0x5a37a0(0x3d4)](),'selection':we(_0x1e29f6)}};this[_0x5a37a0(0x293)]['send'](_0x4c4e47,this['unitID']);},st)),(this[_0x5692b8(0x255)]=_0x3934ef,this['_session']=_0x2fdfa2,this[_0x5692b8(0x1eb)]=_0x5d018f,this[_0x5692b8(0x20c)]=_0x1ec258,this[_0x5692b8(0x2e9)]=_0x3d1f40,this[_0x5692b8(0x3b5)]=_0x4b3443,this[_0x5692b8(0x191)]=_0x49c0a2,this['_univerInstanceService']=_0x30a52e,this[_0x5692b8(0x277)]=_0x20aeca);}get[_0x3e6264(0x23a)](){const _0x5d31aa=_0x3e6264;return this[_0x5d31aa(0x265)][_0x5d31aa(0x21c)]();}get[_0x3e6264(0x187)](){const _0x1e4702=_0x3e6264;return this['_roomMembers$'][_0x1e4702(0x21c)]();}[_0x3e6264(0x2b7)](){const _0x505538=_0x3e6264;super['dispose'](),this['_cursorInfo$'][_0x505538(0x360)](new Map()),this[_0x505538(0x265)][_0x505538(0x197)](),this[_0x505538(0x36e)]['next']([]),this['_roomMembers$'][_0x505538(0x197)]();}[_0x3e6264(0x256)](){const _0x47b860=_0x3e6264;this[_0x47b860(0x3d1)]||(this[_0x47b860(0x3d1)]=!0x0,this[_0x47b860(0x293)][_0x47b860(0x2d8)][_0x47b860(0x170)](d['takeUntil'](this['dispose$']))[_0x47b860(0x349)](_0x4c62b7=>{const _0x5a9b88=_0x47b860;_0x4c62b7===u[_0x5a9b88(0x1c3)][_0x5a9b88(0x1d6)]?this[_0x5a9b88(0x2e6)]():this[_0x5a9b88(0x1d3)]();}),this[_0x47b860(0x293)]['event$'][_0x47b860(0x170)](d[_0x47b860(0x1b7)](this[_0x47b860(0x1c2)]))[_0x47b860(0x349)](_0x4f392a=>{const _0x5ce12f=_0x47b860,_0x247bcd=_0x4f392a[_0x5ce12f(0x357)];_0x247bcd===m[_0x5ce12f(0x192)][_0x5ce12f(0x172)]&&this['_onCursorUpdate'](_0x4f392a),_0x247bcd===m[_0x5ce12f(0x192)][_0x5ce12f(0x261)]&&this['_onCursorDelete'](_0x4f392a);}),this[_0x47b860(0x337)](this[_0x47b860(0x277)][_0x47b860(0x374)](_0xcaaffb=>{const _0x681395=_0x47b860,_0xe95ec3=_0xcaaffb[_0x681395(0x2d9)];_0xe95ec3!=null&&this[_0x681395(0x28e)]&&_0xcaaffb['id']===Y[_0x681395(0x330)]['id']&&_0xe95ec3[_0x681395(0x358)]===this['unitID']&&_0xe95ec3[_0x681395(0x33c)]===!0x1&&_0xe95ec3['ranges'][_0x681395(0x26b)]>0x0&&this['_updateLocalCursor'](_0xe95ec3[_0x681395(0x25d)]);})),this[_0x47b860(0x3b5)][_0x47b860(0x376)][_0x47b860(0x170)](d[_0x47b860(0x1b7)](this[_0x47b860(0x1c2)]))[_0x47b860(0x349)](_0x30459d=>{const _0x11a4f9=_0x47b860;if((_0x30459d==null?void 0x0:_0x30459d[_0x11a4f9(0x255)])!==this[_0x11a4f9(0x255)])return;const _0x4b6924={'eventID':m[_0x11a4f9(0x192)]['UPDATE_CURSOR'],'data':_0x30459d};this[_0x11a4f9(0x29e)](_0x4b6924);}),this['disposeWithMe'](this[_0x47b860(0x277)][_0x47b860(0x374)](_0x528bda=>{const _0x6a394c=_0x47b860;if(_0x528bda[_0x6a394c(0x2d9)]==null)return;const _0x5d206e=_0x528bda['params'];if(_0x528bda['id']!==Y[_0x6a394c(0x1a8)]['id']||_0x5d206e[_0x6a394c(0x358)]!==this['unitID'])return;const _0x45c04c={'id':_0x6a394c(0x2e7),'params':_0x5d206e},_0x5de099=this[_0x6a394c(0x23a)];for(const [_0x4493f0,_0x4670f3]of _0x5de099){const _0x581279={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4670f3[_0x6a394c(0x25d)]}},_0x42918d=this['_transformService'][_0x6a394c(0x2af)](_0x45c04c,_0x581279,!0x1);if(m['isTransformMutationFailure'](_0x42918d))throw _0x42918d[_0x6a394c(0x328)];_0x5de099[_0x6a394c(0x2a6)](_0x4493f0,{..._0x4670f3,'ranges':_0x42918d[_0x6a394c(0x203)][_0x6a394c(0x2d9)][_0x6a394c(0x22c)]});}queueMicrotask(()=>{const _0x5d450d=_0x6a394c;this[_0x5d450d(0x265)]['next'](_0x5de099);});})));}[_0x3e6264(0x29e)](_0x360a71){const _0x349237=_0x3e6264;var _0x1b348c,_0x4f916d;const {memberID:_0x23f39e,selection:_0x27c9c7}=_0x360a71[_0x349237(0x27e)],_0x2de169=Ze(_0x27c9c7),_0x5e36a4=(_0x4f916d=(_0x1b348c=this['_memberService'][_0x349237(0x272)](this[_0x349237(0x255)],_0x23f39e))==null?void 0x0:_0x1b348c[_0x349237(0x33f)])!=null?_0x4f916d:_0x349237(0x150),_0x3cac6e={'color':this['_colorAssignService'][_0x349237(0x375)](_0x23f39e),'name':_0x5e36a4,'ranges':_0x2de169},_0x1cfdf1=this[_0x349237(0x23a)];_0x1cfdf1[_0x349237(0x2a6)](_0x23f39e,_0x3cac6e),this[_0x349237(0x265)][_0x349237(0x360)](_0x1cfdf1);}[_0x3e6264(0x1bc)](_0x3a722c){const _0xfa9e16=_0x3e6264,{memberID:_0x55a908}=_0x3a722c['data'],_0x527a11=this['cursorInfo'];_0x527a11[_0xfa9e16(0x1fd)](_0x55a908),this[_0xfa9e16(0x265)][_0xfa9e16(0x360)](_0x527a11);}['_toggleOnline'](){const _0x3cb539=_0x3e6264;var _0x1b28c1;if(this['_online']=!0x0,((_0x1b28c1=this[_0x3cb539(0x2e3)][_0x3cb539(0x195)]())==null?void 0x0:_0x1b28c1[_0x3cb539(0x2ac)]())!==this['unitID'])return;const _0x3293a5=this[_0x3cb539(0x1eb)][_0x3cb539(0x320)](Y[_0x3cb539(0x35a)])[_0x3cb539(0x367)]();Array['isArray'](_0x3293a5)&&_0x3293a5[_0x3cb539(0x26b)]>0x0&&this[_0x3cb539(0x3a2)](_0x3293a5);}[_0x3e6264(0x1d3)](){const _0x247935=_0x3e6264;this[_0x247935(0x28e)]=!0x1;}};Se=et([L(0x2,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),L(0x3,a['Inject'](Ce)),L(0x4,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x1ee)])),L(0x5,a[_0x3e6264(0x1f4)](pe)),L(0x6,m[_0x3e6264(0x278)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x3e6264(0x39f)])],Se);var nt=Object[_0x3e6264(0x2f9)],it=(_0xd4afca,_0x2ec3e3,_0x496a7e,_0x55a745)=>{const _0x3d65ef=_0x3e6264;for(var _0x5500aa=_0x55a745>0x1?void 0x0:_0x55a745?nt(_0x2ec3e3,_0x496a7e):_0x2ec3e3,_0xad94d5=_0xd4afca[_0x3d65ef(0x26b)]-0x1,_0x282d71;_0xad94d5>=0x0;_0xad94d5--)(_0x282d71=_0xd4afca[_0xad94d5])&&(_0x5500aa=_0x282d71(_0x5500aa)||_0x5500aa);return _0x5500aa;},A=(_0x20581a,_0x178b5)=>(_0x267f60,_0x22401a)=>_0x178b5(_0x267f60,_0x22401a,_0x20581a);const rt=0x12c,ot=0x64,at=()=>{let _0x1a33bc=[],_0x330dcf=!0x1;return _0x1c51c1=>{_0x1a33bc['push'](_0x1c51c1),_0x330dcf||(_0x330dcf=!0x0,setTimeout(()=>{const _0x1d7946=_0x5852;_0x1a33bc[_0x1d7946(0x3c8)](_0x5336dd=>_0x5336dd()),_0x1a33bc=[],_0x330dcf=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x2a3dd3,_0x46ab75,_0x23475f,_0x508d13,_0x507ad5,_0x33b84c,_0x10c833,_0xfe4a1e){const _0x428b76=_0x3e6264;super(),_(this,_0x428b76(0x28e),!0x1),_(this,_0x428b76(0x3d1),!0x1),_(this,'_cursorInfo$',new d[(_0x428b76(0x2cc))](new Map())),_(this,_0x428b76(0x1db),this[_0x428b76(0x265)][_0x428b76(0x301)]()),_(this,_0x428b76(0x36e),new d[(_0x428b76(0x2cc))]([])),_(this,_0x428b76(0x1a0),this[_0x428b76(0x36e)]['pipe'](d[_0x428b76(0x32e)](rt))),_(this,_0x428b76(0x3a2),a[_0x428b76(0x2d4)]((_0x4b91a1,_0x199804)=>{const _0x149c66=_0x428b76,_0x57a5b3={'eventID':m['CollaborationEvent'][_0x149c66(0x172)],'data':{'unitID':this[_0x149c66(0x255)],'memberID':this[_0x149c66(0x293)][_0x149c66(0x3d4)](),'selection':Te[_0x149c66(0x26d)](_0x4b91a1,_0x199804[_0x149c66(0x2d2)])}};this['_session'][_0x149c66(0x25e)](_0x57a5b3,this[_0x149c66(0x255)]);},ot)),(this['unitID']=_0x2a3dd3,this[_0x428b76(0x293)]=_0x46ab75,this['_injector']=_0x23475f,this['_colorAssignService']=_0x508d13,this[_0x428b76(0x2e9)]=_0x507ad5,this[_0x428b76(0x2e3)]=_0x33b84c,this['_commandService']=_0x10c833,this[_0x428b76(0x2c0)]=_0xfe4a1e);}get['cursorInfo'](){const _0x50d5de=_0x3e6264;return this[_0x50d5de(0x265)]['getValue']();}get['roomMembers'](){const _0x3a6850=_0x3e6264;return this[_0x3a6850(0x36e)]['getValue']();}['dispose'](){const _0x3575cd=_0x3e6264;super['dispose'](),this[_0x3575cd(0x265)][_0x3575cd(0x360)](new Map()),this[_0x3575cd(0x265)][_0x3575cd(0x197)](),this[_0x3575cd(0x36e)][_0x3575cd(0x360)]([]),this[_0x3575cd(0x36e)][_0x3575cd(0x197)]();}[_0x3e6264(0x256)](){const _0x2ba915=_0x3e6264;this['_init']||(this[_0x2ba915(0x3d1)]=!0x0,this[_0x2ba915(0x293)][_0x2ba915(0x2d8)][_0x2ba915(0x170)](d[_0x2ba915(0x1b7)](this[_0x2ba915(0x1c2)]))[_0x2ba915(0x349)](_0x3fdb9b=>{const _0x8cac89=_0x2ba915;_0x3fdb9b===u[_0x8cac89(0x1c3)][_0x8cac89(0x1d6)]?this[_0x8cac89(0x2e6)]():this[_0x8cac89(0x1d3)]();}),this['_session']['event$'][_0x2ba915(0x170)](d[_0x2ba915(0x1b7)](this['dispose$']))[_0x2ba915(0x349)](_0x59f61a=>{const _0x5c832f=_0x2ba915,_0xd8ef8d=_0x59f61a[_0x5c832f(0x357)];_0xd8ef8d===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x5c832f(0x29e)](_0x59f61a),_0xd8ef8d===m[_0x5c832f(0x192)]['USERS_LEAVE']&&this[_0x5c832f(0x1bc)](_0x59f61a);}),this['_onRefRangeChange'](),this[_0x2ba915(0x337)](this[_0x2ba915(0x277)][_0x2ba915(0x374)](_0xf90e79=>{const _0x33a1b5=_0x2ba915;if(this[_0x33a1b5(0x28e)]&&_0xf90e79['id']===g[_0x33a1b5(0x313)]['id']&&_0xf90e79[_0x33a1b5(0x2d9)][_0x33a1b5(0x358)]===this[_0x33a1b5(0x255)]){const _0x290344=_0xf90e79[_0x33a1b5(0x2d9)];this[_0x33a1b5(0x3a2)](_0x290344[_0x33a1b5(0x16f)],_0x290344[_0x33a1b5(0x143)][0x0]);}})));}[_0x3e6264(0x29e)](_0x2985f6){const _0x5be3af=_0x3e6264;var _0x3769df,_0x56cc55;const {memberID:_0x1270cb,selection:_0x27f14d}=_0x2985f6[_0x5be3af(0x27e)],{sheetName:_0x3776db,range:_0x20f4d6}=Te[_0x5be3af(0x2c3)](_0x27f14d),_0x23ca1a={'name':(_0x56cc55=(_0x3769df=this[_0x5be3af(0x2e9)][_0x5be3af(0x272)](this[_0x5be3af(0x255)],_0x1270cb))==null?void 0x0:_0x3769df[_0x5be3af(0x33f)])!=null?_0x56cc55:'Unknown\x20user','range':this[_0x5be3af(0x2ec)](_0x3776db,_0x20f4d6),'sheetID':_0x3776db,'color':this[_0x5be3af(0x20c)][_0x5be3af(0x375)](_0x1270cb),'selection':_0x27f14d},_0x5c99c2=this[_0x5be3af(0x23a)];_0x5c99c2[_0x5be3af(0x2a6)](_0x1270cb,_0x23ca1a),this[_0x5be3af(0x265)][_0x5be3af(0x360)](_0x5c99c2);}[_0x3e6264(0x1bc)](_0x3183fa){const _0xc3b942=_0x3e6264,{memberID:_0x11fa25}=_0x3183fa[_0xc3b942(0x27e)],_0x27b679=this['cursorInfo'];_0x27b679['delete'](_0x11fa25),this[_0xc3b942(0x265)][_0xc3b942(0x360)](_0x27b679);}[_0x3e6264(0x2ec)](_0x4dfecf,_0x1339cb){const _0x547765=_0x3e6264;var _0x33244b,_0x59fdd5;const _0x25ac26=(_0x59fdd5=(_0x33244b=this['_univerInstanceService']['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x33244b[_0x547765(0x15e)](_0x4dfecf))==null?void 0x0:_0x59fdd5['getMergeData']();return(_0x25ac26==null?void 0x0:_0x25ac26[_0x547765(0x30b)](_0x5f2cdb=>a[_0x547765(0x2ce)][_0x547765(0x3c4)](_0x5f2cdb,_0x1339cb)))||_0x1339cb;}[_0x3e6264(0x31f)](){const _0x234ec2=_0x3e6264,_0x406de2=new a[(_0x234ec2(0x3af))](),_0x19c0c1=at(),_0x387d9e=()=>{const _0x6820c=_0x234ec2;_0x406de2[_0x6820c(0x2b7)]();const _0x18cef9=(_0x3858be,_0x32b8b9,_0x39a388,_0x1ae921)=>{const _0x39d1ac=_0x6820c;let _0x346e7a=[];switch(_0x3858be['id']){case g[_0x39d1ac(0x318)][_0x39d1ac(0x1b2)]:{_0x346e7a=g[_0x39d1ac(0x1ec)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x346e7a=g[_0x39d1ac(0x28f)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x346e7a=g['handleInsertCol'](_0x3858be,_0x1ae921);break;}case g[_0x39d1ac(0x318)][_0x39d1ac(0x284)]:{_0x346e7a=g[_0x39d1ac(0x2da)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x346e7a=g[_0x39d1ac(0x1df)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId'][_0x39d1ac(0x339)]:{_0x346e7a=g['handleInsertRow'](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId'][_0x39d1ac(0x210)]:{_0x346e7a=g[_0x39d1ac(0x1ac)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId'][_0x39d1ac(0x346)]:{_0x346e7a=g[_0x39d1ac(0x319)](_0x3858be,_0x1ae921);break;}case g[_0x39d1ac(0x318)][_0x39d1ac(0x36b)]:{_0x346e7a=g['handleIRemoveRow'](_0x3858be,_0x1ae921);break;}}const _0x273589=g[_0x39d1ac(0x164)](_0x346e7a,_0x1ae921),_0x2f185b=this[_0x39d1ac(0x23a)][_0x39d1ac(0x320)](_0x32b8b9);if(_0x2f185b&&_0x273589){const _0x4a4d5d={..._0x2f185b,'range':_0x273589};this[_0x39d1ac(0x23a)][_0x39d1ac(0x2a6)](_0x32b8b9,_0x4a4d5d),_0x19c0c1(()=>{const _0xcd407e=_0x39d1ac,_0x5171b1=this[_0xcd407e(0x2c0)]['registerRefRange'](_0x273589,_0x575009=>(_0x5171b1['dispose'](),_0x18cef9(_0x575009,_0x32b8b9,_0x39a388,_0x273589)));_0x406de2[_0xcd407e(0x229)](_0x5171b1);});}return{'redos':[],'undos':[]};};this[_0x6820c(0x23a)][_0x6820c(0x3c8)]((_0x421ec9,_0x44fcde)=>{const _0x39850b=_0x6820c,{range:_0x400e9c,sheetID:_0x108560}=_0x421ec9,_0x251541=this[_0x39850b(0x2c0)][_0x39850b(0x2a2)](_0x400e9c,_0x1d38d7=>(_0x251541[_0x39850b(0x2b7)](),_0x18cef9(_0x1d38d7,_0x44fcde,_0x108560,_0x400e9c)));_0x406de2[_0x39850b(0x229)](_0x251541);});};this[_0x234ec2(0x337)](a[_0x234ec2(0x22e)](this[_0x234ec2(0x265)][_0x234ec2(0x349)](()=>{_0x387d9e();})));}[_0x3e6264(0x2e6)](){const _0x1c3a8a=_0x3e6264;var _0x156f07,_0x108d06;if(this[_0x1c3a8a(0x28e)]=!0x0,((_0x156f07=this['_univerInstanceService'][_0x1c3a8a(0x195)]())==null?void 0x0:_0x156f07[_0x1c3a8a(0x2ac)]())!==this[_0x1c3a8a(0x255)])return;const _0x1d2bb5=(_0x108d06=this[_0x1c3a8a(0x1eb)]['get'](g[_0x1c3a8a(0x27f)])[_0x1c3a8a(0x24c)]())==null?void 0x0:_0x108d06[0x0],_0x5b2cbc=this[_0x1c3a8a(0x2e3)][_0x1c3a8a(0x292)](a[_0x1c3a8a(0x359)][_0x1c3a8a(0x1b6)])['getActiveSheet']();_0x1d2bb5&&_0x5b2cbc&&this[_0x1c3a8a(0x3a2)](_0x5b2cbc[_0x1c3a8a(0x290)](),_0x1d2bb5);}[_0x3e6264(0x1d3)](){const _0x280058=_0x3e6264;this[_0x280058(0x28e)]=!0x1;}};Ie=it([A(0x2,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),A(0x3,a[_0x3e6264(0x1f4)](Ce)),A(0x4,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x1ee)])),A(0x5,a[_0x3e6264(0x26a)]),A(0x6,a[_0x3e6264(0x39f)]),A(0x7,a[_0x3e6264(0x1f4)](g[_0x3e6264(0x1c6)]))],Ie);var ct=Object[_0x3e6264(0x2f9)],lt=(_0x2cf040,_0x2acaf2,_0x57f35e,_0x318399)=>{const _0x39063c=_0x3e6264;for(var _0x80b099=_0x318399>0x1?void 0x0:_0x318399?ct(_0x2acaf2,_0x57f35e):_0x2acaf2,_0x24ac54=_0x2cf040[_0x39063c(0x26b)]-0x1,_0x51070b;_0x24ac54>=0x0;_0x24ac54--)(_0x51070b=_0x2cf040[_0x24ac54])&&(_0x80b099=_0x51070b(_0x80b099)||_0x80b099);return _0x80b099;},ie=(_0x1bbd15,_0x2a9f41)=>(_0x11b5b1,_0x4d02d7)=>_0x2a9f41(_0x11b5b1,_0x4d02d7,_0x1bbd15);let x=class extends a['RxDisposable']{constructor(_0x3b0bc1,_0x186667,_0x44a00f){const _0x193419=_0x3e6264;super(),_(this,'_entities',new Map()),_(this,_0x193419(0x3b2),new d[(_0x193419(0x31a))]()),(this[_0x193419(0x2e3)]=_0x3b0bc1,this[_0x193419(0x1eb)]=_0x186667,this['_collabSessionService']=_0x44a00f,this[_0x193419(0x3d1)]());}[_0x3e6264(0x2b7)](){const _0x1490a3=_0x3e6264;super[_0x1490a3(0x2b7)](),this[_0x1490a3(0x3b2)][_0x1490a3(0x197)](),this['_entities']['forEach'](_0x1b9747=>_0x1b9747[_0x1490a3(0x2b7)]());}[_0x3e6264(0x309)](_0x4f847c){const _0x561774=_0x3e6264;return this['_entities'][_0x561774(0x1d0)](_0x4f847c)?this[_0x561774(0x3a3)][_0x561774(0x320)](_0x4f847c)[_0x561774(0x1db)]:this[_0x561774(0x3b2)][_0x561774(0x170)](d['filter'](_0x165a9d=>_0x165a9d['unitID']===_0x4f847c),d[_0x561774(0x317)](_0x251269=>_0x251269[_0x561774(0x1db)]));}[_0x3e6264(0x3d1)](){const _0x250312=_0x3e6264;this[_0x250312(0x2e3)][_0x250312(0x169)](a[_0x250312(0x359)][_0x250312(0x1b6)])['pipe'](d[_0x250312(0x1b7)](this[_0x250312(0x1c2)]))[_0x250312(0x349)](async _0x32a1b4=>{const _0x46ea92=_0x250312,_0x8b451b=_0x32a1b4['getUnitId'](),_0x599e5a=await this[_0x46ea92(0x380)](_0x8b451b);this[_0x46ea92(0x3b2)]['next'](_0x599e5a),this[_0x46ea92(0x3a3)][_0x46ea92(0x2a6)](_0x8b451b,_0x599e5a);}),this[_0x250312(0x2e3)]['getTypeOfUnitAdded$'](a[_0x250312(0x359)]['UNIVER_DOC'])[_0x250312(0x170)](d[_0x250312(0x1b7)](this[_0x250312(0x1c2)]))[_0x250312(0x170)](d[_0x250312(0x246)](_0x4c2244=>!_0x4c2244['getUnitId']()[_0x250312(0x1f2)]('__')))[_0x250312(0x349)](async _0x5dccb6=>{const _0x2d58c9=_0x250312,_0x32ef1d=_0x5dccb6[_0x2d58c9(0x2ac)](),_0xc9f353=await this[_0x2d58c9(0x2f7)](_0x32ef1d);this[_0x2d58c9(0x3b2)][_0x2d58c9(0x360)](_0xc9f353),this['_entities'][_0x2d58c9(0x2a6)](_0x32ef1d,_0xc9f353);}),d[_0x250312(0x1e9)](this[_0x250312(0x2e3)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']),this[_0x250312(0x2e3)][_0x250312(0x199)](a[_0x250312(0x359)][_0x250312(0x1b6)]))['pipe'](d[_0x250312(0x1b7)](this[_0x250312(0x1c2)]))[_0x250312(0x349)](_0x2910d7=>{const _0x51afba=_0x250312,_0x25b17e=_0x2910d7['getUnitId'](),_0x7e655f=this['_entities'][_0x51afba(0x320)](_0x25b17e);_0x7e655f&&(_0x7e655f[_0x51afba(0x2b7)](),this[_0x51afba(0x3a3)]['delete'](_0x25b17e));});}async[_0x3e6264(0x380)](_0x52d23f){const _0x1ebe24=_0x3e6264,_0x3c8eb8=await this['_collabSessionService'][_0x1ebe24(0x247)](_0x52d23f),_0x45da03=this['_injector'][_0x1ebe24(0x154)](Ie,_0x52d23f,_0x3c8eb8);return _0x45da03[_0x1ebe24(0x256)](),_0x45da03;}async['_startDocCollabCursor'](_0x487897){const _0x54d66d=_0x3e6264,_0x533bc2=await this[_0x54d66d(0x302)][_0x54d66d(0x247)](_0x487897),_0x23a29c=this[_0x54d66d(0x1eb)]['createInstance'](Se,_0x487897,_0x533bc2);return _0x23a29c[_0x54d66d(0x256)](),_0x23a29c;}};x=lt([ie(0x0,a[_0x3e6264(0x26a)]),ie(0x1,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),ie(0x2,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x32b)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x4144ad,_0x1bef7c){const _0x84c353=_0x3e6264;let {radius:_0x20435f,width:_0xfc917f,height:_0x4c3a0a}=_0x1bef7c;_0x20435f=_0x20435f!=null?_0x20435f:0x0,_0xfc917f=_0xfc917f!=null?_0xfc917f:0x1e,_0x4c3a0a=_0x4c3a0a!=null?_0x4c3a0a:0x1e;let _0x1bb84c=0x0,_0x1f349c=0x0,_0x235a60=0x0;_0x1bb84c=_0x1f349c=_0x235a60=Math[_0x84c353(0x396)](_0x20435f,_0xfc917f/0x2,_0x4c3a0a/0x2),_0x4144ad[_0x84c353(0x2a4)](),_0x4144ad[_0x84c353(0x2bc)](_0x1bb84c,0x0),_0x4144ad[_0x84c353(0x215)](_0xfc917f-_0x1f349c,0x0),_0x4144ad[_0x84c353(0x325)](_0xfc917f-_0x1f349c,_0x1f349c,_0x1f349c,Math['PI']*0x3/0x2,0x0,!0x1),_0x4144ad[_0x84c353(0x215)](_0xfc917f,_0x4c3a0a-_0x235a60),_0x4144ad[_0x84c353(0x325)](_0xfc917f-_0x235a60,_0x4c3a0a-_0x235a60,_0x235a60,0x0,Math['PI']/0x2,!0x1),_0x4144ad[_0x84c353(0x215)](0x0,_0x4c3a0a),_0x4144ad[_0x84c353(0x215)](0x0,_0x1bb84c),_0x4144ad['arc'](_0x1bb84c,_0x1bb84c,_0x1bb84c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4144ad[_0x84c353(0x2d6)](),_0x1bef7c[_0x84c353(0x36c)]&&(_0x4144ad[_0x84c353(0x354)](),_0x4144ad[_0x84c353(0x304)]=_0x1bef7c[_0x84c353(0x36c)],_0x1bef7c['fillRule']===_0x84c353(0x29a)?_0x4144ad[_0x84c353(0x36c)](_0x84c353(0x29a)):_0x4144ad[_0x84c353(0x36c)](),_0x4144ad[_0x84c353(0x29f)]());}class te extends p[_0x3e6264(0x316)]{constructor(_0x47744c,_0x51540c){const _0x1893c0=_0x3e6264;super(_0x47744c,_0x51540c),_(this,'color'),_(this,_0x1893c0(0x38c)),(this[_0x1893c0(0x2d5)]=_0x51540c==null?void 0x0:_0x51540c[_0x1893c0(0x2d5)],this['text']=_0x51540c==null?void 0x0:_0x51540c[_0x1893c0(0x38c)]);}static['drawWith'](_0xa9bf8f,_0x326194){const _0x3fd57b=_0x3e6264,{text:_0x3d0b97,color:_0x3a4f7c}=_0x326194;_0xa9bf8f[_0x3fd57b(0x354)](),_0xa9bf8f['font']=_0x3fd57b(0x2b3);const _0x2abf68=_0xa9bf8f[_0x3fd57b(0x14b)](_0x3d0b97)[_0x3fd57b(0x3cd)],_0x450edb=Math[_0x3fd57b(0x396)](_0x2abf68+0x2*re,De);ht(_0xa9bf8f,{'height':K,'radius':0x4,'width':_0x450edb,'fill':_0x3a4f7c}),_0xa9bf8f[_0x3fd57b(0x304)]='#FFF';const _0x35b92a=re,_0x2f2f8d=K-_t,_0x92f87b=De-0x2*re;if(_0x2abf68>_0x92f87b){let _0x513f0a='',_0x49a43e=0x0;for(const _0x311f3f of _0x3d0b97){const _0x47177f=_0xa9bf8f[_0x3fd57b(0x14b)](_0x311f3f)['width'];if(_0x49a43e+_0x47177f<=_0x92f87b-_0xa9bf8f[_0x3fd57b(0x14b)](_0x3fd57b(0x205))['width'])_0x513f0a+=_0x311f3f,_0x49a43e+=_0x47177f;else{_0x513f0a+='...';break;}}_0xa9bf8f['fillText'](_0x513f0a,_0x35b92a,_0x2f2f8d);}else _0xa9bf8f['fillText'](_0x3d0b97,_0x35b92a,_0x2f2f8d);_0xa9bf8f[_0x3fd57b(0x29f)]();}[_0x3e6264(0x1f5)](_0xf9f539){const _0x689f74=_0x3e6264;te[_0x689f74(0x2c5)](_0xf9f539,this);}}const oe='collab-text-anchor-',ut=_0x3e6264(0x3d0),dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x3e6264(0x237);class Ue{constructor(_0x59ca74,_0x1f5582,_0x5abf49,_0x5a185f){const _0x15b3df=_0x3e6264;_(this,_0x15b3df(0x345),[]),_(this,_0x15b3df(0x151),null),_(this,_0x15b3df(0x324),null),_(this,_0x15b3df(0x391),null),_(this,'_hideTimer',null),_(this,_0x15b3df(0x1a9),null),(this['_cursor']=_0x59ca74,this['_scene']=_0x1f5582,this[_0x15b3df(0x17d)]=_0x5abf49,this[_0x15b3df(0x177)]=_0x5a185f,this[_0x15b3df(0x1d8)]());}set[_0x3e6264(0x275)](_0x311cae){const _0x7aea7=_0x3e6264;_0x311cae?(this[_0x7aea7(0x391)]&&this[_0x7aea7(0x391)][_0x7aea7(0x165)](),this[_0x7aea7(0x324)]&&this[_0x7aea7(0x324)]['show']()):(this[_0x7aea7(0x391)]&&this['_anchorDot'][_0x7aea7(0x1c8)](),this[_0x7aea7(0x324)]&&this['_textBubble'][_0x7aea7(0x165)]());}[_0x3e6264(0x2b7)](){const _0x170b6a=_0x3e6264;for(const _0xf86585 of this[_0x170b6a(0x345)])_0xf86585['dispose']();this[_0x170b6a(0x324)]&&this[_0x170b6a(0x324)][_0x170b6a(0x2b7)](),this[_0x170b6a(0x391)]&&this[_0x170b6a(0x391)]['dispose'](),this[_0x170b6a(0x151)]&&this[_0x170b6a(0x151)][_0x170b6a(0x2b7)](),this['_eventUnsubscribe']&&this[_0x170b6a(0x1a9)]();}['_render'](){const _0x521a83=_0x3e6264;var _0x54bcdb;const {_docSkeleton:_0x40c15f,_document:_0x59fbb0}=this,{color:_0x7e1a9a,name:_0x228a3d,ranges:_0x47cc83}=this[_0x521a83(0x2df)],_0x351cfd=_0x59fbb0[_0x521a83(0x340)](),{docsLeft:_0x50611f,docsTop:_0x2509f3}=_0x351cfd,_0x1ea602=new b[(_0x521a83(0x19e))](_0x351cfd,_0x40c15f);for(const {startOffset:_0x133fe7,endOffset:_0x53894a,rangeType:_0x3953df,segmentId:_0x254e36,segmentPage:_0x37687c,collapsed:_0x41b996,isActive:_0x2ea029}of _0x47cc83){const _0x3d52bd=_0x40c15f[_0x521a83(0x15a)](_0x133fe7,!0x0,_0x254e36,_0x37687c);let _0x501362=_0x40c15f[_0x521a83(0x15a)](_0x53894a,!0x0,_0x254e36,_0x37687c);if(_0x501362==null&&(_0x501362=_0x40c15f[_0x521a83(0x15a)](_0x53894a-0x1,!0x1,_0x254e36,_0x37687c)),_0x2ea029){const {contentBoxPointGroup:_0x16ce9a}=_0x1ea602['getRangePointData'](_0x501362,_0x501362);if(_0x16ce9a['length']===0x0)continue;this[_0x521a83(0x178)](_0x7e1a9a,_0x16ce9a,_0x50611f,_0x2509f3,_0x228a3d),this[_0x521a83(0x1a9)]=this[_0x521a83(0x252)]();}if(_0x3d52bd&&_0x501362){if(_0x3953df===a[_0x521a83(0x260)][_0x521a83(0x269)]){const _0x43e7b0=new b['NodePositionConvertToRectRange'](_0x351cfd,_0x40c15f),{pointGroup:_0x24eece}=(_0x54bcdb=_0x43e7b0['getRangePointData'](_0x3d52bd,_0x501362))!=null?_0x54bcdb:{};if(_0x24eece==null||_0x24eece[_0x521a83(0x26b)]===0x0)continue;this[_0x521a83(0x356)](_0x7e1a9a,_0x24eece,_0x50611f,_0x2509f3);}else{if(!_0x41b996){const {borderBoxPointGroup:_0x2b92f3}=_0x1ea602['getRangePointData'](_0x3d52bd,_0x501362);if(_0x2b92f3[_0x521a83(0x26b)]===0x0)continue;this[_0x521a83(0x2c1)](_0x7e1a9a,_0x2b92f3,_0x50611f,_0x2509f3);}}}}}[_0x3e6264(0x178)](_0x1b939e,_0x1ec6b4,_0x4833f1,_0x305cbf,_0x312132){const _0x3f32e6=_0x3e6264,_0x51308c=this[_0x3f32e6(0x2f5)](_0x1ec6b4),{left:_0x4c18a4,top:_0x2671e4,height:_0x41b86d}=_0x51308c,_0x4f6f77=this[_0x3f32e6(0x1da)](),_0x4ce368=St/_0x4f6f77,_0x1886d4=new p[(_0x3f32e6(0x162))](oe+a[_0x3f32e6(0x336)][_0x3f32e6(0x3b7)](k),{'left':_0x4c18a4+_0x4833f1-_0x4ce368,'top':_0x2671e4+_0x305cbf,'height':_0x41b86d,'width':ft,'fill':_0x1b939e||p[_0x3f32e6(0x2db)](a[_0x3f32e6(0x32a)][_0x3f32e6(0x2cb)],0x0),'strokeWidth':_0x4ce368,'stroke':It,'evented':!0x0});this[_0x3f32e6(0x151)]=_0x1886d4,this[_0x3f32e6(0x1ca)][_0x3f32e6(0x163)](_0x1886d4,b[_0x3f32e6(0x29b)]);const _0x5531a4=new p['Rect'](oe+a[_0x3f32e6(0x336)][_0x3f32e6(0x3b7)](k),{'left':_0x4c18a4+_0x4833f1-_0x4ce368,'top':_0x2671e4+_0x305cbf-ae/0x2,'height':ae,'width':ae,'fill':_0x1b939e||p[_0x3f32e6(0x2db)](a[_0x3f32e6(0x32a)][_0x3f32e6(0x2cb)],0x0),'strokeWidth':0x0,'stroke':_0x1b939e||p[_0x3f32e6(0x2db)](a[_0x3f32e6(0x32a)][_0x3f32e6(0x2cb)],0x0),'evented':!0x1});this['_anchorDot']=_0x5531a4,this[_0x3f32e6(0x1ca)]['addObject'](_0x5531a4,b[_0x3f32e6(0x29b)]);const _0x16d7a7=new te(oe+a[_0x3f32e6(0x336)][_0x3f32e6(0x3b7)](k),{'left':_0x4c18a4+_0x4833f1-_0x4ce368,'top':_0x2671e4+_0x305cbf-K,'text':_0x312132,'color':_0x1b939e});this[_0x3f32e6(0x324)]=_0x16d7a7,this[_0x3f32e6(0x1ca)][_0x3f32e6(0x163)](_0x16d7a7,b[_0x3f32e6(0x29b)]),this[_0x3f32e6(0x275)]=!0x1;}[_0x3e6264(0x252)](){const _0x261c8a=_0x3e6264,_0x3bebb1=this['_anchor'][_0x261c8a(0x32f)]['subscribeEvent'](()=>{const _0x35b412=_0x261c8a;this[_0x35b412(0x275)]=!0x0;}),_0x4c4ac9=this[_0x261c8a(0x151)][_0x261c8a(0x15b)][_0x261c8a(0x398)](()=>{const _0x429a6d=_0x261c8a;this[_0x429a6d(0x204)]&&clearTimeout(this['_hideTimer']),this[_0x429a6d(0x204)]=setTimeout(()=>{const _0x589452=_0x429a6d;this[_0x589452(0x275)]=!0x1;},0x7d0);});return()=>{const _0x373bbb=_0x261c8a;_0x3bebb1[_0x373bbb(0x394)](),_0x4c4ac9['unsubscribe']();};}[_0x3e6264(0x2c1)](_0x3c1dfa,_0x1a071a,_0x492779,_0x279c2c){const _0x55acb7=_0x3e6264,_0x19c55e=new a[(_0x55acb7(0x381))](_0x3c1dfa)['setAlpha'](0.2)['toRgbString'](),_0x3a70a6=new p[(_0x55acb7(0x1f3))](ut+a[_0x55acb7(0x336)][_0x55acb7(0x3b7)](k),{'pointsGroup':_0x1a071a,'fill':_0x19c55e||p[_0x55acb7(0x2db)](a['COLORS'][_0x55acb7(0x2cb)],0.2),'left':_0x492779,'top':_0x279c2c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x55acb7(0x345)][_0x55acb7(0x228)](_0x3a70a6),this[_0x55acb7(0x1ca)][_0x55acb7(0x163)](_0x3a70a6,b[_0x55acb7(0x29b)]);}[_0x3e6264(0x356)](_0x4143de,_0x1b1106,_0x561649,_0x1051d1){const _0x489ab8=_0x3e6264,_0x44dd7d=new a['ColorKit'](_0x4143de)['setAlpha'](0.2)[_0x489ab8(0x3aa)](),_0x2be151=new p[(_0x489ab8(0x1f3))](dt+a[_0x489ab8(0x336)][_0x489ab8(0x3b7)](k),{'pointsGroup':_0x1b1106,'fill':_0x44dd7d||p[_0x489ab8(0x2db)](a['COLORS'][_0x489ab8(0x2cb)],0.2),'left':_0x561649,'top':_0x1051d1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x489ab8(0x345)][_0x489ab8(0x228)](_0x2be151),this[_0x489ab8(0x1ca)]['addObject'](_0x2be151,b[_0x489ab8(0x29b)]);}[_0x3e6264(0x2f5)](_0x559bc0){const _0x303967=_0x559bc0[0x0],_0x4b4fd5=_0x303967[0x0],_0x1b46e6=_0x303967[0x2],{x:_0x3e3390,y:_0x1a3464}=_0x4b4fd5,{x:_0x4c68a9,y:_0x422d64}=_0x1b46e6;return{'left':_0x3e3390,'top':_0x1a3464,'width':_0x4c68a9-_0x3e3390,'height':_0x422d64-_0x1a3464};}['_getScale'](){const _0x3a9541=_0x3e6264,{scaleX:_0x436ff8,scaleY:_0x454d11}=this[_0x3a9541(0x1ca)][_0x3a9541(0x253)]();return Math[_0x3a9541(0x24f)](_0x436ff8,_0x454d11);}}var vt=Object[_0x3e6264(0x2f9)],gt=(_0x41bf97,_0x7c99e1,_0x49337a,_0x38d0cb)=>{const _0x25080d=_0x3e6264;for(var _0x2e02e8=_0x38d0cb>0x1?void 0x0:_0x38d0cb?vt(_0x7c99e1,_0x49337a):_0x7c99e1,_0x3180dc=_0x41bf97[_0x25080d(0x26b)]-0x1,_0x5f2aee;_0x3180dc>=0x0;_0x3180dc--)(_0x5f2aee=_0x41bf97[_0x3180dc])&&(_0x2e02e8=_0x5f2aee(_0x2e02e8)||_0x2e02e8);return _0x2e02e8;},V=(_0x59bae2,_0x25a35c)=>(_0xd01561,_0x1deb83)=>_0x25a35c(_0xd01561,_0x1deb83,_0x59bae2);let ve=class extends a[_0x3e6264(0x38b)]{constructor(_0x147746,_0xb3c2ca,_0x524d4c,_0x2f4136,_0x1cc510){const _0x5a7511=_0x3e6264;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this['_context']=_0x147746,this[_0x5a7511(0x19d)]=_0xb3c2ca,this[_0x5a7511(0x353)]=_0x524d4c,this[_0x5a7511(0x277)]=_0x2f4136,this[_0x5a7511(0x3b0)]=_0x1cc510,this[_0x5a7511(0x3d1)]());}['_init'](){const _0x1a98a7=_0x3e6264,_0x21fa24=this[_0x1a98a7(0x1c1)]['unitId'],_0x13f106=this[_0x1a98a7(0x19d)];this[_0x1a98a7(0x337)](d[_0x1a98a7(0x2a1)]([this[_0x1a98a7(0x353)][_0x1a98a7(0x309)](_0x21fa24),this[_0x1a98a7(0x3b0)][_0x1a98a7(0x240)]])['pipe']($[_0x1a98a7(0x1e6)](([_0x1892ee,_0x4beb39])=>({'skeleton':_0x13f106[_0x1a98a7(0x190)](),'cursors':[..._0x1892ee[_0x1a98a7(0x181)]()][_0x1a98a7(0x14c)](_0xee1b14=>({..._0xee1b14,'color':_0x4beb39[_0xee1b14['color']]}))})))[_0x1a98a7(0x349)](_0x5687f4=>{const _0x2335a5=_0x1a98a7;if(this[_0x2335a5(0x343)](),_0x5687f4){const {skeleton:_0x4a2fb9,cursors:_0x4b9c24}=_0x5687f4;this[_0x2335a5(0x362)](_0x4a2fb9,_0x4b9c24);}})),this['_initResize'](),this[_0x1a98a7(0x188)]();}[_0x3e6264(0x362)](_0xaa7136,_0x59c525){const _0x537b9f=_0x3e6264,{scene:_0x572ad4,mainComponent:_0xba7f26}=this[_0x537b9f(0x1c1)],_0x28a50b=_0x59c525['map'](_0xb90893=>new Ue(_0xb90893,_0x572ad4,_0xaa7136,_0xba7f26));this[_0x537b9f(0x259)]=_0x28a50b,this[_0x537b9f(0x383)]=_0x59c525;}[_0x3e6264(0x377)](){const _0x3bf32f=_0x3e6264;this[_0x3bf32f(0x343)]();const {scene:_0x37d7b9,mainComponent:_0x5311b2}=this['_context'],_0x2f9140=this[_0x3bf32f(0x19d)][_0x3bf32f(0x190)](),_0x4d636c=this['_cursors'][_0x3bf32f(0x1e6)](_0x318010=>new Ue(_0x318010,_0x37d7b9,_0x2f9140,_0x5311b2));this['_cursorShapes']=_0x4d636c;}[_0x3e6264(0x343)](){const _0x128283=_0x3e6264;this[_0x128283(0x259)][_0x128283(0x3c8)](_0x297563=>_0x297563[_0x128283(0x2b7)]()),this[_0x128283(0x259)]=[];}[_0x3e6264(0x188)](){const _0x217b29=_0x3e6264,_0x3501be=[b[_0x217b29(0x29d)]['id']];this[_0x217b29(0x337)](this[_0x217b29(0x277)][_0x217b29(0x374)](_0x30225f=>{const _0x7c68fe=_0x217b29;_0x3501be[_0x7c68fe(0x333)](_0x30225f['id'])&&_0x30225f[_0x7c68fe(0x2d9)]['unitId']===this[_0x7c68fe(0x1c1)][_0x7c68fe(0x358)]&&this[_0x7c68fe(0x377)]();}));}['_initResize'](){const _0x4cb51d=_0x3e6264;this[_0x4cb51d(0x337)](a[_0x4cb51d(0x321)](this[_0x4cb51d(0x1c1)][_0x4cb51d(0x183)][_0x4cb51d(0x2d0)])['pipe']($[_0x4cb51d(0x246)](_0x485a15=>_0x485a15[_0x4cb51d(0x33a)]===p[_0x4cb51d(0x176)][_0x4cb51d(0x3ce)]),$[_0x4cb51d(0x38d)](0x10))['subscribe'](()=>{const _0x38d48d=_0x4cb51d;this[_0x38d48d(0x377)]();}));}};ve=gt([V(0x1,a[_0x3e6264(0x1f4)](Y[_0x3e6264(0x2a7)])),V(0x2,a[_0x3e6264(0x1f4)](x)),V(0x3,a[_0x3e6264(0x39f)]),V(0x4,a[_0x3e6264(0x1f4)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x3e6264(0x316)]{constructor(_0x166d6d,_0x7b4e81){const _0x380f31=_0x3e6264;super(_0x166d6d,_0x7b4e81),_(this,_0x380f31(0x2ad)),_(this,_0x380f31(0x224),!0x1),_(this,_0x380f31(0x397)),_(this,_0x380f31(0x326),''),_(this,_0x380f31(0x271),_0x380f31(0x257)),_(this,'_backgroundColor'),(_0x7b4e81&&this[_0x380f31(0x2bf)](_0x7b4e81),this['onPointerEnter$'][_0x380f31(0x398)](()=>this[_0x380f31(0x2bf)]({'hovered':!0x0})),this[_0x380f31(0x15b)][_0x380f31(0x398)](()=>this[_0x380f31(0x2bf)]({'hovered':!0x1})));}[_0x3e6264(0x2bf)](_0x29e77f){const _0x13b13f=_0x3e6264;var _0x2edc90,_0x2c2353,_0x239ffd,_0x151f5b,_0x320e92,_0x2b0600;this['_color']=(_0x2edc90=_0x29e77f[_0x13b13f(0x2d5)])!=null?_0x2edc90:this[_0x13b13f(0x2ad)],this['_hovered']=(_0x2c2353=_0x29e77f['hovered'])!=null?_0x2c2353:this[_0x13b13f(0x224)],this[_0x13b13f(0x397)]=(_0x239ffd=_0x29e77f[_0x13b13f(0x2d2)])!=null?_0x239ffd:this['_range'],this[_0x13b13f(0x326)]=(_0x151f5b=_0x29e77f['name'])!=null?_0x151f5b:this[_0x13b13f(0x326)],this[_0x13b13f(0x271)]=(_0x320e92=_0x29e77f[_0x13b13f(0x1a4)])!=null?_0x320e92:this[_0x13b13f(0x271)],this[_0x13b13f(0x297)]=(_0x2b0600=_0x29e77f[_0x13b13f(0x168)])!=null?_0x2b0600:this[_0x13b13f(0x297)],this['transformByState']({'width':_0x29e77f[_0x13b13f(0x3cd)],'height':_0x29e77f['height']});}[_0x3e6264(0x3a5)](_0x5128a2){const _0x206994=_0x3e6264,{row:_0x186a1b,column:_0x27b176}=_0x5128a2;if(_0x186a1b>=this['_range'][_0x206994(0x280)]&&_0x186a1b<=this[_0x206994(0x397)][_0x206994(0x34d)]&&_0x27b176>=this[_0x206994(0x397)][_0x206994(0x390)]&&_0x27b176<=this[_0x206994(0x397)][_0x206994(0x273)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x206994(0x2bf)]({'hovered':!0x1});}['triggerDblclick'](_0x4e849d){return!0x1;}[_0x3e6264(0x1f5)](_0x1d2034){const _0x45932f=_0x3e6264;p[_0x45932f(0x162)][_0x45932f(0x2c5)](_0x1d2034,{'width':this[_0x45932f(0x3cd)],'height':this['height'],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x45932f(0x297)]}),this[_0x45932f(0x224)]&&(_0x1d2034[_0x45932f(0x354)](),_0x1d2034[_0x45932f(0x214)](0x1,0x0,0x0,0x1,this[_0x45932f(0x3cd)],this[_0x45932f(0x271)]==='bottom'?0x0:-0x14),te[_0x45932f(0x2c5)](_0x1d2034,{'text':this['_name'],'color':this['_color']}),_0x1d2034[_0x45932f(0x29f)]());}}var pt=Object[_0x3e6264(0x2f9)],bt=(_0x4e4993,_0x1f920c,_0x1fd700,_0x1041f0)=>{const _0x23161a=_0x3e6264;for(var _0x1977f7=_0x1041f0>0x1?void 0x0:_0x1041f0?pt(_0x1f920c,_0x1fd700):_0x1f920c,_0x2679fe=_0x4e4993[_0x23161a(0x26b)]-0x1,_0x2d6601;_0x2679fe>=0x0;_0x2679fe--)(_0x2d6601=_0x4e4993[_0x2679fe])&&(_0x1977f7=_0x2d6601(_0x1977f7)||_0x1977f7);return _0x1977f7;},ce=(_0x2e484a,_0x1f8f35)=>(_0x2cb8a8,_0x1b7fe4)=>_0x1f8f35(_0x2cb8a8,_0x1b7fe4,_0x2e484a);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x51f590,_0x602068,_0x50a04f,_0x26c579){const _0x518ecf=_0x3e6264;super(),_(this,_0x518ecf(0x383),new Set()),_(this,_0x518ecf(0x152),null),(this[_0x518ecf(0x1c1)]=_0x51f590,this[_0x518ecf(0x3a0)]=_0x602068,this[_0x518ecf(0x353)]=_0x50a04f,this[_0x518ecf(0x3b0)]=_0x26c579,this['_init']());}[_0x3e6264(0x3d1)](){const _0x11910b=_0x3e6264;this[_0x11910b(0x3a0)][_0x11910b(0x3b9)]['pipe']($[_0x11910b(0x1b7)](this[_0x11910b(0x1c2)]),$[_0x11910b(0x317)](_0x212fe3=>{const _0x27a9d8=_0x11910b;if(_0x212fe3){const _0x2f1ca5=_0x212fe3[_0x27a9d8(0x207)];return d[_0x27a9d8(0x2a1)](this[_0x27a9d8(0x353)][_0x27a9d8(0x309)](this[_0x27a9d8(0x1c1)][_0x27a9d8(0x358)]),this['_themeService'][_0x27a9d8(0x240)])['pipe']($[_0x27a9d8(0x1e6)](([_0xf6062e,_0x4f7246])=>{const _0x16f70b=new Map();return _0xf6062e['forEach']((_0x423ace,_0x24d983)=>{const _0x13ec5b=_0x5852;if(_0x423ace[_0x13ec5b(0x3c2)]===_0x2f1ca5){const _0x27f832={..._0x423ace};_0x27f832[_0x13ec5b(0x2d5)]=_0x4f7246[_0x423ace[_0x13ec5b(0x2d5)]],_0x16f70b['set'](_0x24d983,_0x27f832);}}),{'skeleton':_0x212fe3,'cursors':_0x16f70b};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x137f0b,cursors:_0x26ce0d})=>{const _0x1b868c=_0x11910b;this[_0x1b868c(0x343)](),_0x137f0b&&this['_updateCollabCursors'](_0x137f0b,_0x26ce0d);}),this[_0x11910b(0x3a0)][_0x11910b(0x3b9)][_0x11910b(0x349)](_0xa01341=>{const _0x4ccbcf=_0x11910b;if(_0xa01341==null)return;const {skeleton:_0x5a9dcd}=_0xa01341,{scene:_0x9d78b2}=this['_context'];_0x9d78b2[_0x4ccbcf(0x17c)][_0x4ccbcf(0x398)](a[_0x4ccbcf(0x2d4)](_0xd82e04=>{const _0x549efa=_0x4ccbcf;var _0x834faf,_0x54f5d2;const {offsetX:_0x1a5e6d,offsetY:_0x5af8ab}=_0xd82e04,{x:_0x80cd28,y:_0x43002c}=_0x9d78b2[_0x549efa(0x27d)](p['Vector2']['FromArray']([_0x1a5e6d,_0x5af8ab])),{scaleX:_0x538a98,scaleY:_0x2c0a54}=_0x9d78b2[_0x549efa(0x253)](),_0x3a2aa6=_0x9d78b2[_0x549efa(0x1d4)](p[_0x549efa(0x2fc)][_0x549efa(0x1fb)]),_0x268b8d=_0x9d78b2[_0x549efa(0x144)](p[_0x549efa(0x2f3)]['FromArray']([_0x80cd28,_0x43002c]),_0x3a2aa6),_0x332065=_0x5a9dcd[_0x549efa(0x1d2)](_0x1a5e6d,_0x5af8ab,_0x538a98,_0x2c0a54,_0x268b8d);((_0x834faf=this['_lastPointer'])==null?void 0x0:_0x834faf[_0x549efa(0x2cf)])===_0x332065[_0x549efa(0x2cf)]&&((_0x54f5d2=this[_0x549efa(0x152)])==null?void 0x0:_0x54f5d2[_0x549efa(0x334)])===_0x332065[_0x549efa(0x334)]||this[_0x549efa(0x383)][_0x549efa(0x3c8)](_0x97180=>{const _0x521e20=_0x549efa;_0x97180[_0x521e20(0x3a5)](_0x332065);});},0x64));});}[_0x3e6264(0x362)](_0x17d820,_0x26a899){const _0x16ade6=_0x3e6264;var _0x302991;const _0x27b4d8=(_0x302991=this[_0x16ade6(0x3a0)]['getCurrent']())==null?void 0x0:_0x302991['skeleton'];if(!_0x27b4d8)return;const _0xc7685a=this[_0x16ade6(0x31e)]();if(!_0xc7685a)return;this[_0x16ade6(0x383)][_0x16ade6(0x3c8)](_0x5ad6a8=>{const _0x2a41d8=_0x16ade6;_0x5ad6a8[_0x2a41d8(0x2c4)]();});const {scene:_0x4ea533}=_0xc7685a,_0xdfaa5c=Tt(Array[_0x16ade6(0x182)](_0x26a899[_0x16ade6(0x181)]()))[_0x16ade6(0x1e6)](_0xb44509=>{const _0x166a5a=_0x16ade6,{color:_0x2048da,range:_0x3a3637,name:_0x234d34,selection:_0x7c702d,sheetID:_0x9a732a}=_0xb44509,{startColumn:_0x4dbb66,startRow:_0x3d4ce8,endColumn:_0x2b5682,endRow:_0x2a3e60}=_0x3a3637,_0x52663f=G[_0x166a5a(0x16e)](_0x3d4ce8,_0x4dbb66,_0x4ea533,_0x27b4d8),_0x43def9=G[_0x166a5a(0x16e)](_0x2a3e60,_0x2b5682,_0x4ea533,_0x27b4d8),{columnHeaderHeightAndMarginTop:_0x5309eb}=_0x27b4d8,{startX:_0x2ac114,startY:_0x484df3}=_0x52663f,{endX:_0x49635a,endY:_0xa8f705}=_0x43def9,_0x5d71d7=_0x49635a-_0x2ac114,_0x84c40f=_0xa8f705-_0x484df3,_0x4e110c={'labelPosition':_0x484df3-_0x5309eb>=K?_0x166a5a(0x257):'bottom','sheetID':_0x9a732a,'range':_0x3a3637,'color':_0x2048da,'name':_0x234d34,'selection':_0x7c702d,'left':_0x2ac114,'top':_0x484df3,'width':_0x5d71d7,'height':_0x84c40f,'evented':!0x1,'zIndex':Et};return new Ae(_0x234d34,_0x4e110c);});_0x4ea533['addObjects'](_0xdfaa5c,mt),this['_cursors']=new Set(_0xdfaa5c);}[_0x3e6264(0x343)](){const _0x30a582=_0x3e6264;var _0x735227;(_0x735227=this[_0x30a582(0x383)])==null||_0x735227[_0x30a582(0x3c8)](_0x4b56b8=>_0x4b56b8[_0x30a582(0x2b7)]());}['_getSheetObject'](){const _0x4869bc=_0x3e6264;return G[_0x4869bc(0x395)](this[_0x4869bc(0x1c1)][_0x4869bc(0x27b)],this[_0x4869bc(0x1c1)]);}};ge=bt([ce(0x1,a['Inject'](G[_0x3e6264(0x239)])),ce(0x2,a['Inject'](x)),ce(0x3,a['Inject'](a[_0x3e6264(0x268)]))],ge);function Tt(_0x3475a9){const _0x3012e9=_0x3e6264,_0xdef90f=new Map();return _0x3475a9['forEach'](_0x307fae=>{const _0x4c8f6d=_0x5852;if(_0xdef90f['has'](_0x307fae[_0x4c8f6d(0x1f9)])){const _0x4459b1=_0xdef90f['get'](_0x307fae[_0x4c8f6d(0x1f9)]);_0x4459b1[_0x4c8f6d(0x33f)]+=',\x20'+_0x307fae[_0x4c8f6d(0x33f)];}else _0xdef90f['set'](_0x307fae[_0x4c8f6d(0x1f9)],_0x307fae);}),Array[_0x3012e9(0x182)](_0xdef90f['values']());}var E=function(){const _0x286ac7=_0x3e6264;return E=Object[_0x286ac7(0x238)]||function(_0x8131aa){const _0x1c3184=_0x286ac7;for(var _0x1ccc84,_0x38b0be=0x1,_0x1e5dd0=arguments[_0x1c3184(0x26b)];_0x38b0be<_0x1e5dd0;_0x38b0be++){_0x1ccc84=arguments[_0x38b0be];for(var _0x3d09d2 in _0x1ccc84)Object[_0x1c3184(0x3be)][_0x1c3184(0x1a1)][_0x1c3184(0x250)](_0x1ccc84,_0x3d09d2)&&(_0x8131aa[_0x3d09d2]=_0x1ccc84[_0x3d09d2]);}return _0x8131aa;},E[_0x286ac7(0x1cc)](this,arguments);},Ot=function(_0x10625a,_0xb3bc4f){const _0x267a74=_0x3e6264;var _0x108cd1={};for(var _0x46315a in _0x10625a)Object[_0x267a74(0x3be)][_0x267a74(0x1a1)][_0x267a74(0x250)](_0x10625a,_0x46315a)&&_0xb3bc4f[_0x267a74(0x1bb)](_0x46315a)<0x0&&(_0x108cd1[_0x46315a]=_0x10625a[_0x46315a]);if(_0x10625a!=null&&typeof Object['getOwnPropertySymbols']==_0x267a74(0x25b)){for(var _0x251068=0x0,_0x46315a=Object[_0x267a74(0x384)](_0x10625a);_0x251068<_0x46315a[_0x267a74(0x26b)];_0x251068++)_0xb3bc4f[_0x267a74(0x1bb)](_0x46315a[_0x251068])<0x0&&Object[_0x267a74(0x3be)][_0x267a74(0x1c5)][_0x267a74(0x250)](_0x10625a,_0x46315a[_0x251068])&&(_0x108cd1[_0x46315a[_0x251068]]=_0x10625a[_0x46315a[_0x251068]]);}return _0x108cd1;},be=M['forwardRef'](function(_0x1069af,_0x5ecb87){const _0x414c38=_0x3e6264;var _0x2f1e81=_0x1069af['icon'],_0x388132=_0x1069af['id'],_0x2a5dc0=_0x1069af['className'],_0x2ed230=_0x1069af[_0x414c38(0x39c)],_0x4148ec=Ot(_0x1069af,[_0x414c38(0x2c8),'id',_0x414c38(0x156),_0x414c38(0x39c)]),_0x378d94=_0x414c38(0x173)['concat'](_0x388132,'\x20')['concat'](_0x2a5dc0||'')[_0x414c38(0x2d1)](),_0x1dae8d=M['useRef']('_'[_0x414c38(0x3cb)](Ut()));return ye(_0x2f1e81,''[_0x414c38(0x3cb)](_0x388132),{'defIds':_0x2f1e81[_0x414c38(0x1e5)],'idSuffix':_0x1dae8d[_0x414c38(0x231)]},E({'ref':_0x5ecb87,'className':_0x378d94},_0x4148ec),_0x2ed230);});function ye(_0xfc4812,_0x28af74,_0x1f38bc,_0x57532f,_0x4dc1e5){const _0x57680f=_0x3e6264;return M['createElement'](_0xfc4812[_0x57680f(0x171)],E(E({'key':_0x28af74},Rt(_0xfc4812,_0x1f38bc,_0x4dc1e5)),_0x57532f),(Dt(_0xfc4812,_0x1f38bc)[_0x57680f(0x29c)]||[])[_0x57680f(0x1e6)](function(_0x3e0296,_0x2255ae){const _0x56f98a=_0x57680f;return ye(_0x3e0296,''[_0x56f98a(0x3cb)](_0x28af74,'-')['concat'](_0xfc4812[_0x56f98a(0x171)],'-')[_0x56f98a(0x3cb)](_0x2255ae),_0x1f38bc,void 0x0,_0x4dc1e5);}));}function Rt(_0x2a2603,_0x5da12b,_0x3dc522){const _0x2a5f11=_0x3e6264;var _0x47459e=E({},_0x2a2603[_0x2a5f11(0x1a7)]);_0x3dc522!=null&&_0x3dc522[_0x2a5f11(0x2aa)]&&_0x47459e['fill']===_0x2a5f11(0x2aa)&&(_0x47459e[_0x2a5f11(0x36c)]=_0x3dc522[_0x2a5f11(0x2aa)]),_0x2a2603[_0x2a5f11(0x171)]===_0x2a5f11(0x32d)&&_0x47459e['id']&&(_0x47459e['id']=_0x47459e['id']+_0x5da12b[_0x2a5f11(0x347)]),Object[_0x2a5f11(0x2fa)](_0x47459e)['forEach'](function(_0x3b576b){const _0x4a3dc3=_0x2a5f11;var _0x357e65=_0x3b576b[0x0],_0x4d5ef4=_0x3b576b[0x1];_0x357e65==='mask'&&typeof _0x4d5ef4==_0x4a3dc3(0x3b8)&&(_0x47459e[_0x357e65]=_0x4d5ef4[_0x4a3dc3(0x2eb)](/url\(#(.*)\)/,_0x4a3dc3(0x34e)[_0x4a3dc3(0x3cb)](_0x5da12b[_0x4a3dc3(0x347)],')')));});var _0x42f039=_0x5da12b[_0x2a5f11(0x1e5)];return!_0x42f039||_0x42f039[_0x2a5f11(0x26b)]===0x0||(_0x2a2603[_0x2a5f11(0x171)]===_0x2a5f11(0x372)&&_0x47459e['xlink:href']&&(_0x47459e[_0x2a5f11(0x35d)]=_0x47459e[_0x2a5f11(0x35d)]+_0x5da12b[_0x2a5f11(0x347)]),Object[_0x2a5f11(0x2fa)](_0x47459e)[_0x2a5f11(0x3c8)](function(_0x17f2b2){const _0x12dcb6=_0x2a5f11;var _0x4f06d5=_0x17f2b2[0x0],_0x2f6346=_0x17f2b2[0x1];typeof _0x2f6346==_0x12dcb6(0x3b8)&&(_0x47459e[_0x4f06d5]=_0x2f6346[_0x12dcb6(0x2eb)](/url\(#(.*)\)/,'url(#$1'[_0x12dcb6(0x3cb)](_0x5da12b[_0x12dcb6(0x347)],')')));})),_0x47459e;}function Dt(_0x2f7b4d,_0x167efa){const _0x4e10b4=_0x3e6264;var _0x195ce2,_0x503ff0=_0x167efa[_0x4e10b4(0x1e5)];return!_0x503ff0||_0x503ff0['length']===0x0?_0x2f7b4d:_0x2f7b4d[_0x4e10b4(0x171)]===_0x4e10b4(0x35c)&&(!((_0x195ce2=_0x2f7b4d['children'])===null||_0x195ce2===void 0x0)&&_0x195ce2[_0x4e10b4(0x26b)])?E(E({},_0x2f7b4d),{'children':_0x2f7b4d['children'][_0x4e10b4(0x1e6)](function(_0x326381){const _0x40e9f9=_0x4e10b4;return typeof _0x326381['attrs']['id']==_0x40e9f9(0x3b8)&&_0x503ff0&&_0x503ff0[_0x40e9f9(0x1bb)](_0x326381[_0x40e9f9(0x1a7)]['id'])>-0x1?E(E({},_0x326381),{'attrs':E(E({},_0x326381[_0x40e9f9(0x1a7)]),{'id':_0x326381[_0x40e9f9(0x1a7)]['id']+_0x167efa[_0x40e9f9(0x347)]})}):_0x326381;})}):_0x2f7b4d;}function Ut(){const _0x1be801=_0x3e6264;return Math[_0x1be801(0x1b5)]()[_0x1be801(0x31d)](0x24)['substring'](0x2,0x8);}be[_0x3e6264(0x373)]=_0x3e6264(0x368);var Nt={'tag':_0x3e6264(0x184),'attrs':{'fill':_0x3e6264(0x382),'viewBox':_0x3e6264(0x1ae),'width':'1em','height':_0x3e6264(0x248)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e6264(0x22a)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'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','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3e6264(0x35c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3e6264(0x174)},'children':[{'tag':'path','attrs':{'fill':_0x3e6264(0x1f7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M[_0x3e6264(0x2be)](function(_0x322cbf,_0x53b950){return M['createElement'](be,Object['assign']({},_0x322cbf,{'id':'off-line-single','ref':_0x53b950,'icon':Nt}));});$e[_0x3e6264(0x373)]=_0x3e6264(0x285);var Mt={'tag':_0x3e6264(0x184),'attrs':{'fill':_0x3e6264(0x382),'viewBox':_0x3e6264(0x1a2),'width':_0x3e6264(0x248),'height':_0x3e6264(0x248)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x3e6264(0x145),'d':_0x3e6264(0x24b),'strokeLinecap':_0x3e6264(0x38a),'strokeLinejoin':_0x3e6264(0x38a),'strokeWidth':1.2}}]},{'tag':_0x3e6264(0x35c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3e6264(0x3b4)},'children':[{'tag':_0x3e6264(0x2bd),'attrs':{'fill':'#fff','d':_0x3e6264(0x36d),'transform':_0x3e6264(0x1bd)}}]}]}],'defIds':[_0x3e6264(0x3b4)]},xe=M['forwardRef'](function(_0x344f39,_0x59f8be){const _0x28bb19=_0x3e6264;return M[_0x28bb19(0x2cd)](be,Object[_0x28bb19(0x238)]({},_0x344f39,{'id':_0x28bb19(0x3a7),'ref':_0x59f8be,'icon':Mt}));});xe[_0x3e6264(0x373)]=_0x3e6264(0x3c6);const Lt=_0x3e6264(0x1af),Pt=_0x3e6264(0x1a5),wt=_0x3e6264(0x385),At=_0x3e6264(0x18d),yt=_0x3e6264(0x249),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x877694){const _0x5ac23c=_0x3e6264;switch(_0x877694){case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x26c)]:return _0x5ac23c(0x153);case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x1c0)]:return'collabStatus.conflict';case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x1b4)]:return _0x5ac23c(0x35f);case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x36a)]:return _0x5ac23c(0x323);case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x200)]:case u[_0x5ac23c(0x1b9)]['AWAITING_WITH_PENDING']:return _0x5ac23c(0x2b4);case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x208)]:case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x1fe)]:return'collabStatus.synced';}}function je(_0x3a413e){const _0xf65259=_0x3e6264,{status$:_0x4c785c}=_0x3a413e,_0x2b3fb0=O[_0xf65259(0x3ba)](_0x4c785c,u[_0xf65259(0x1b9)][_0xf65259(0x36a)]),_0x142223=O[_0xf65259(0x1dc)](a[_0xf65259(0x213)]),_0x46e57c=O[_0xf65259(0x1dc)](u[_0xf65259(0x32b)]),_0x85d8dd=_0x2b3fb0!==u[_0xf65259(0x1b9)][_0xf65259(0x26c)],_0x18ab23=_0x142223['t']($t(_0x2b3fb0)),_0x228e3d=T[_0xf65259(0x270)](H['onlineStatus'],{[H['online']]:_0x85d8dd,[H[_0xf65259(0x234)]]:!_0x85d8dd}),_0x2e1ad7=_0x85d8dd?P[_0xf65259(0x266)](xe,{}):P[_0xf65259(0x266)]($e,{}),_0x2a633d=M['useCallback'](()=>{_0x85d8dd||_0x46e57c['reconnect']();},[_0x85d8dd,_0x46e57c]);function _0x5cefdc(){const _0x43958d=_0xf65259;return P[_0x43958d(0x3ca)]('div',{'className':T[_0x43958d(0x270)](_0x228e3d,_0x43958d(0x30a)),'onClick':_0x2a633d,'children':[P['jsx'](_0x43958d(0x2fd),{'className':H['onlineStatusIcon'],'children':_0x2e1ad7}),P[_0x43958d(0x266)](_0x43958d(0x2fd),{'className':H[_0x43958d(0x2b9)],'children':_0x18ab23})]});}return _0x85d8dd?_0x5cefdc():P[_0xf65259(0x266)](T[_0xf65259(0x220)],{'title':_0x142223['t'](_0xf65259(0x2dd)),'children':_0x5cefdc()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x495fcc,_0x40bdb0,_0xb59e55,_0x56f529)=>{const _0x3bea87=_0x3e6264;for(var _0x12e9c5=_0x56f529>0x1?void 0x0:_0x56f529?xt(_0x40bdb0,_0xb59e55):_0x40bdb0,_0x1ed2c0=_0x495fcc[_0x3bea87(0x26b)]-0x1,_0x24a792;_0x1ed2c0>=0x0;_0x1ed2c0--)(_0x24a792=_0x495fcc[_0x1ed2c0])&&(_0x12e9c5=_0x24a792(_0x12e9c5)||_0x12e9c5);return _0x12e9c5;},X=(_0x53fd00,_0x5e911b)=>(_0x23da89,_0x2029c9)=>_0x5e911b(_0x23da89,_0x2029c9,_0x53fd00);exports[_0x3e6264(0x251)]=class extends a[_0x3e6264(0x2e5)]{constructor(_0x16a9d1,_0x2e64d2,_0x543eee,_0x4ade16){const _0x45aa54=_0x3e6264;super(),_(this,'_status$',new d[(_0x45aa54(0x2cc))](u[_0x45aa54(0x1b9)][_0x45aa54(0x36a)])),(this[_0x45aa54(0x2e3)]=_0x16a9d1,this[_0x45aa54(0x1eb)]=_0x2e64d2,this[_0x45aa54(0x327)]=_0x543eee,this[_0x45aa54(0x37f)]=_0x4ade16,this[_0x45aa54(0x264)](),this[_0x45aa54(0x341)]());}[_0x3e6264(0x341)](){const _0x123d10=_0x3e6264;this[_0x123d10(0x337)](this[_0x123d10(0x2e3)][_0x123d10(0x1bf)][_0x123d10(0x170)](d[_0x123d10(0x317)](()=>{const _0x1ff36c=_0x123d10,_0x27e526=this['_univerInstanceService'][_0x1ff36c(0x195)]();return _0x27e526?this['_collaborationController'][_0x1ff36c(0x21d)](_0x27e526[_0x1ff36c(0x2ac)]()):d['of'](null);}),d[_0x123d10(0x317)](_0x312074=>_0x312074?_0x312074[_0x123d10(0x30c)]:d['of'](u[_0x123d10(0x1b9)][_0x123d10(0x36a)])))[_0x123d10(0x349)](_0x4b0cef=>{const _0x5ca387=_0x123d10;this[_0x5ca387(0x3cf)][_0x5ca387(0x360)](_0x4b0cef);}));}['_initStatusComponent'](){const _0x100c4d=_0x3e6264;this[_0x100c4d(0x337)](this[_0x100c4d(0x37f)]['registerComponent'](O[_0x100c4d(0x33d)][_0x100c4d(0x202)],()=>O[_0x100c4d(0x2e4)](Bt({'status$':this[_0x100c4d(0x3cf)][_0x100c4d(0x301)]()}),this[_0x100c4d(0x1eb)])));}},exports[_0x3e6264(0x251)]=jt([X(0x0,a[_0x3e6264(0x26a)]),X(0x1,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),X(0x2,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x294)])),X(0x3,O[_0x3e6264(0x225)])],exports[_0x3e6264(0x251)]);function Bt(_0x4287c1){const {status$:_0x20d937}=_0x4287c1;return function(){const _0x3ebb71=_0x5852;return P[_0x3ebb71(0x266)](je,{'status$':_0x20d937});};}var kt=Object[_0x3e6264(0x2f9)],Ht=(_0x5a465a,_0x1778e9,_0x6fe1f6,_0x29cfe4)=>{const _0x511089=_0x3e6264;for(var _0x3006e0=_0x29cfe4>0x1?void 0x0:_0x29cfe4?kt(_0x1778e9,_0x6fe1f6):_0x1778e9,_0x112c40=_0x5a465a[_0x511089(0x26b)]-0x1,_0x32a099;_0x112c40>=0x0;_0x112c40--)(_0x32a099=_0x5a465a[_0x112c40])&&(_0x3006e0=_0x32a099(_0x3006e0)||_0x3006e0);return _0x3006e0;},y=(_0x2e06de,_0x446872)=>(_0x39e9d8,_0x3ca46c)=>_0x446872(_0x39e9d8,_0x3ca46c,_0x2e06de);let z=class extends a[_0x3e6264(0x2e5)]{constructor(_0x32a2c4,_0xb1c10b,_0x10b156,_0x17ea4a,_0x5584d3,_0x3dc14b){const _0x332d6d=_0x3e6264;super(),this[_0x332d6d(0x287)]=_0x32a2c4,this[_0x332d6d(0x3c0)]=_0xb1c10b,this[_0x332d6d(0x236)]=_0x10b156,this['_messageService']=_0x17ea4a,this['_notificationService']=_0x5584d3,this[_0x332d6d(0x14e)]=_0x3dc14b,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x194aac=_0x3e6264;this['disposeWithMe'](this[_0x194aac(0x287)][_0x194aac(0x1cf)](()=>{const _0x399d1e=_0x194aac;if(this[_0x399d1e(0x3c0)]['saveTaskMap']['size'])return this[_0x399d1e(0x14e)]['t'](_0x399d1e(0x16b));}));}['_initEvent'](){const _0x79f3f1=_0x3e6264;this[_0x79f3f1(0x337)](this['_collaborationUIEventService'][_0x79f3f1(0x306)][_0x79f3f1(0x349)](_0x325668=>{const _0x4755b9=_0x79f3f1;_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x2e8)]&&this['_messageService'][_0x4755b9(0x1c8)]({'type':T[_0x4755b9(0x2e2)][_0x4755b9(0x283)],'content':this[_0x4755b9(0x14e)]['t'](_0x4755b9(0x279))}),_0x325668['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x4755b9(0x38e)][_0x4755b9(0x1c8)]({'type':T[_0x4755b9(0x2e2)][_0x4755b9(0x283)],'content':this[_0x4755b9(0x14e)]['t'](_0x4755b9(0x196))}),_0x325668['id']===u['CollaborationUIEventId'][_0x4755b9(0x1ea)]&&this[_0x4755b9(0x19a)]['show']({'title':this['_localeService']['t']('permission.title'),'content':this[_0x4755b9(0x14e)]['t'](_0x4755b9(0x24a)),'type':'error','duration':0x0}),_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x1c0)]&&this[_0x4755b9(0x38e)][_0x4755b9(0x1c8)]({'type':T['MessageType'][_0x4755b9(0x2e0)],'content':this[_0x4755b9(0x14e)]['t']('collaboration.closeRoom')+'('+_0x325668[_0x4755b9(0x27e)]+')'}),_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x26e)]&&this['_messageService'][_0x4755b9(0x1c8)]({'type':T['MessageType'][_0x4755b9(0x283)],'content':this['_localeService']['t'](_0x325668[_0x4755b9(0x27e)]||'')}),_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x2fe)]&&this['_messageService']['show']({'type':T[_0x4755b9(0x2e2)][_0x4755b9(0x283)],'content':this[_0x4755b9(0x14e)]['t']('session.will-retry')}),_0x325668['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x4755b9(0x38e)][_0x4755b9(0x1c8)]({'type':T[_0x4755b9(0x2e2)]['Error'],'content':this[_0x4755b9(0x14e)]['t']('session.connection-failed')}),_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x352)]&&this['_messageService'][_0x4755b9(0x1c8)]({'type':T['MessageType'][_0x4755b9(0x2e0)],'content':this[_0x4755b9(0x14e)]['t'](_0x4755b9(0x2f2))});}));}};z=Ht([y(0x0,O[_0x3e6264(0x2ae)]),y(0x1,u[_0x3e6264(0x1b0)]),y(0x2,a['Inject'](u[_0x3e6264(0x1fa)])),y(0x3,O['IMessageService']),y(0x4,O[_0x3e6264(0x1e4)]),y(0x5,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x213)]))],z);const Ft=_0x3e6264(0x217),Ne={},Ee=a[_0x3e6264(0x159)](_0x3e6264(0x30f));var Wt=Object[_0x3e6264(0x2f9)],Yt=(_0x205e57,_0x3ff717,_0x753230,_0xd23bad)=>{const _0x1f01bf=_0x3e6264;for(var _0x2f2ba9=_0xd23bad>0x1?void 0x0:_0xd23bad?Wt(_0x3ff717,_0x753230):_0x3ff717,_0x164287=_0x205e57[_0x1f01bf(0x26b)]-0x1,_0x47c4b1;_0x164287>=0x0;_0x164287--)(_0x47c4b1=_0x205e57[_0x164287])&&(_0x2f2ba9=_0x47c4b1(_0x2f2ba9)||_0x2f2ba9);return _0x2f2ba9;},F=(_0x2727fb,_0x32bd02)=>(_0x522e07,_0x3d7866)=>_0x32bd02(_0x522e07,_0x3d7866,_0x2727fb);exports['CollaborationDataLoaderController']=class extends a[_0x3e6264(0x38b)]{constructor(_0x61f6e9,_0x4aa1ae,_0x2bace6,_0x4ed085,_0x5ee3c9){const _0x58dbf0=_0x3e6264;super(),this[_0x58dbf0(0x3a4)]=_0x61f6e9,this[_0x58dbf0(0x25f)]=_0x4aa1ae,this[_0x58dbf0(0x277)]=_0x2bace6,this[_0x58dbf0(0x19c)]=_0x4ed085,_0x5ee3c9?_0x5ee3c9==null||_0x5ee3c9['whenReady']()[_0x58dbf0(0x2b1)](()=>this[_0x58dbf0(0x3d1)]()):(this['_logService']['debug'](_0x58dbf0(0x3c3),_0x58dbf0(0x3c1)),this[_0x58dbf0(0x3d1)]());}async[_0x3e6264(0x3d1)](){const _0x5ac751=_0x3e6264,_0x1cb0ec=this[_0x5ac751(0x3a4)][_0x5ac751(0x147)](_0x5ac751(0x27b)),_0x54323d=this[_0x5ac751(0x3a4)][_0x5ac751(0x147)](_0x5ac751(0x33a)),_0x28b643=this['_urlService'][_0x5ac751(0x147)]('subunit');if(!_0x1cb0ec||!_0x54323d){this[_0x5ac751(0x25f)][_0x5ac751(0x18e)](_0x5ac751(0x3c3),_0x5ac751(0x241));return;}const _0x464495=await this[_0x5ac751(0x19c)][_0x5ac751(0x2b6)](_0x1cb0ec,Number(_0x54323d),_0x28b643);_0x464495&&_0x464495 instanceof a[_0x5ac751(0x21e)]&&this[_0x5ac751(0x379)](_0x464495);}async[_0x3e6264(0x379)](_0x22e6dd){const _0x1bbf06=_0x3e6264;await this[_0x1bbf06(0x331)](_0x22e6dd),_0x22e6dd[_0x1bbf06(0x1fc)][_0x1bbf06(0x170)](d[_0x1bbf06(0x1b7)](this[_0x1bbf06(0x1c2)]))['subscribe'](_0x1ce903=>{const _0x4ad965=_0x1bbf06;_0x1ce903&&this[_0x4ad965(0x2dc)](_0x1ce903);}),this[_0x1bbf06(0x3a4)]['urlChange$'][_0x1bbf06(0x170)](d[_0x1bbf06(0x1b7)](this[_0x1bbf06(0x1c2)]))[_0x1bbf06(0x349)](()=>this[_0x1bbf06(0x331)](_0x22e6dd));}[_0x3e6264(0x2dc)](_0x3a1141,_0x5e1f58=!0x1){const _0x2f62cc=_0x3e6264,_0x27f7f4=this[_0x2f62cc(0x3a4)]['getParam'](_0x2f62cc(0x157));_0x3a1141['getSheetId']()!==_0x27f7f4&&this['_urlService'][_0x2f62cc(0x218)](_0x2f62cc(0x157),_0x3a1141[_0x2f62cc(0x290)](),_0x5e1f58);}async[_0x3e6264(0x331)](_0x47b199){const _0x11439a=_0x3e6264;var _0x6770b;const _0x4edc20=this[_0x11439a(0x3a4)][_0x11439a(0x147)](_0x11439a(0x157));if(!_0x4edc20||!_0x47b199[_0x11439a(0x15e)](_0x4edc20)){const _0x3c1a97=_0x47b199['getUnhiddenWorksheets']()[0x0],_0x59c3ed=_0x47b199[_0x11439a(0x15e)](_0x3c1a97);if(!_0x59c3ed)return;this[_0x11439a(0x2dc)](_0x59c3ed,!0x0),await this[_0x11439a(0x277)]['executeCommand'](g[_0x11439a(0x315)]['id'],{'unitId':_0x47b199[_0x11439a(0x2ac)](),'subUnitId':_0x3c1a97});return;}((_0x6770b=_0x47b199[_0x11439a(0x286)]())==null?void 0x0:_0x6770b[_0x11439a(0x290)]())!==_0x4edc20&&await this[_0x11439a(0x277)][_0x11439a(0x23d)](g[_0x11439a(0x315)]['id'],{'unitId':_0x47b199[_0x11439a(0x2ac)](),'subUnitId':_0x4edc20});}},exports[_0x3e6264(0x23e)]=Yt([F(0x0,Ee),F(0x1,a[_0x3e6264(0x388)]),F(0x2,a[_0x3e6264(0x39f)]),F(0x3,a[_0x3e6264(0x1f4)](u['DataLoaderService'])),F(0x4,a[_0x3e6264(0x1f8)](Ke[_0x3e6264(0x244)]))],exports[_0x3e6264(0x23e)]);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x2db6c0,_0x1bd2de,_0x525783,_0x142c18)=>{const _0xf96c49=_0x3e6264;for(var _0x574710=_0x142c18>0x1?void 0x0:_0x142c18?Vt(_0x1bd2de,_0x525783):_0x1bd2de,_0x2c2ac3=_0x2db6c0[_0xf96c49(0x26b)]-0x1,_0x3a2cbe;_0x2c2ac3>=0x0;_0x2c2ac3--)(_0x3a2cbe=_0x2db6c0[_0x2c2ac3])&&(_0x574710=_0x3a2cbe(_0x574710)||_0x574710);return _0x574710;},le=(_0x10def4,_0x478735)=>(_0x5c7df3,_0x2228f5)=>_0x478735(_0x5c7df3,_0x2228f5,_0x10def4);let J=class{constructor(_0x40ed4c,_0xc0b608,_0x41f156){const _0xf5de3c=_0x3e6264;this['_injector']=_0x40ed4c,this['_transformService']=_0xc0b608,this[_0xf5de3c(0x348)]=_0x41f156;}[_0x3e6264(0x34b)](_0x48568f){const _0x271a27=_0x3e6264;this[_0x271a27(0x2b2)](_0x48568f),this[_0x271a27(0x193)](_0x48568f);}[_0x3e6264(0x28c)](_0x120504){const _0x2582f4=_0x3e6264,{unitID:_0x44e05c}=_0x120504,_0x5c851a=this[_0x2582f4(0x348)][_0x2582f4(0x1f1)](_0x44e05c)[_0x2582f4(0x2a3)](b['DocIMEInputManagerService']),{redoCache:_0x386eb3}=_0x5c851a['getUndoRedoMutationParamsCache']();if(_0x386eb3[_0x2582f4(0x26b)]===0x0)return _0x120504;let _0x4d0741=a['Tools'][_0x2582f4(0x19b)](_0x120504[_0x2582f4(0x233)][0x0]);for(let _0x20690a=0x0;_0x20690a<_0x386eb3[_0x2582f4(0x26b)];_0x20690a++){const _0x4f8786={'id':_0x2582f4(0x2e7),'params':{..._0x386eb3[_0x20690a]}},_0x323e0d=this['_transformService'][_0x2582f4(0x2af)](_0x4d0741,_0x4f8786,!0x1);if(m[_0x2582f4(0x186)](_0x323e0d))throw _0x323e0d[_0x2582f4(0x328)];_0x4d0741=_0x323e0d[_0x2582f4(0x311)];}return{...a['Tools'][_0x2582f4(0x19b)](_0x120504),'mutations':[_0x4d0741]};}[_0x3e6264(0x2b2)](_0x1c048a){const _0x28bca3=_0x3e6264,{unitID:_0x5a6280}=_0x1c048a,_0x2af8e0=this[_0x28bca3(0x348)][_0x28bca3(0x1f1)](_0x5a6280)[_0x28bca3(0x2a3)](b['DocIMEInputManagerService']),{undoCache:_0x29daa6,redoCache:_0x22363b}=_0x2af8e0[_0x28bca3(0x355)]();if(_0x29daa6[_0x28bca3(0x26b)]===0x0||_0x22363b[_0x28bca3(0x26b)]===0x0)return;const _0x4b229f=[],_0xb8e995=[];let _0x48c528=a[_0x28bca3(0x336)]['deepClone'](_0x1c048a[_0x28bca3(0x233)][0x0]),_0x159ffa=a[_0x28bca3(0x336)][_0x28bca3(0x19b)](_0x1c048a[_0x28bca3(0x233)][0x0]);for(let _0x3ce90a=_0x29daa6[_0x28bca3(0x26b)]-0x1;_0x3ce90a>=0x0;_0x3ce90a--){const _0x332d18={'id':_0x28bca3(0x2e7),'params':{..._0x29daa6[_0x3ce90a]}},_0x39cc82={'id':_0x28bca3(0x2e7),'params':{..._0x22363b[_0x3ce90a]}},_0x320a99=this['_transformService'][_0x28bca3(0x2af)](_0x48c528,_0x332d18,!0x1),_0x98dbef=this[_0x28bca3(0x191)][_0x28bca3(0x2af)](_0x159ffa,_0x39cc82,!0x1);if(m[_0x28bca3(0x186)](_0x320a99))throw _0x320a99[_0x28bca3(0x328)];if(m['isTransformMutationFailure'](_0x98dbef))throw _0x98dbef[_0x28bca3(0x328)];_0x4b229f['unshift'](_0x320a99['m2Prime'][_0x28bca3(0x2d9)]),_0xb8e995[_0x28bca3(0x160)](_0x98dbef[_0x28bca3(0x203)][_0x28bca3(0x2d9)]),_0x48c528=_0x320a99[_0x28bca3(0x311)],_0x159ffa=_0x98dbef[_0x28bca3(0x311)];}_0x2af8e0['setUndoRedoMutationParamsCache']({'undoCache':_0x4b229f,'redoCache':_0xb8e995});}[_0x3e6264(0x193)](_0x38df3f){const _0x2933b8=_0x3e6264,{unitID:_0x50b74c}=_0x38df3f,_0x15848a=this[_0x2933b8(0x348)][_0x2933b8(0x1f1)](_0x50b74c)[_0x2933b8(0x2a3)](b['DocIMEInputManagerService']),_0x437539=_0x15848a['getActiveRange']();if(_0x437539==null)return;const _0x4077ab=[{'id':_0x2933b8(0x2e7),'params':{'unitId':_0x38df3f[_0x2933b8(0x255)],'actions':null,'textRanges':[_0x437539]}}],_0x286302=this['_transformService']['transformMutationsWithChangeset'](_0x38df3f,_0x4077ab);if(!m[_0x2933b8(0x1aa)](_0x286302))throw _0x286302[_0x2933b8(0x328)];const _0x42bee0=_0x286302[_0x2933b8(0x203)][0x0][_0x2933b8(0x2d9)][_0x2933b8(0x22c)];Array[_0x2933b8(0x307)](_0x42bee0)&&_0x42bee0[_0x2933b8(0x26b)]&&_0x15848a[_0x2933b8(0x2d3)](_0x42bee0[0x0]);}};J=Xt([le(0x0,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),le(0x1,m[_0x3e6264(0x278)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x11b153,_0x370fdf,_0x5a8106,_0x348b62)=>{const _0xeadaa4=_0x3e6264;for(var _0x1c854f=_0x348b62>0x1?void 0x0:_0x348b62?Gt(_0x370fdf,_0x5a8106):_0x370fdf,_0x22345f=_0x11b153[_0xeadaa4(0x26b)]-0x1,_0x1e4bd9;_0x22345f>=0x0;_0x22345f--)(_0x1e4bd9=_0x11b153[_0x22345f])&&(_0x1c854f=_0x1e4bd9(_0x1c854f)||_0x1c854f);return _0x1c854f;},_e=(_0x50d7f7,_0x18f32e)=>(_0x5c1815,_0x23c942)=>_0x18f32e(_0x5c1815,_0x23c942,_0x50d7f7);let Z=class{constructor(_0x5add12,_0x479545,_0x4854bf){const _0x59c9f0=_0x3e6264;this[_0x59c9f0(0x1eb)]=_0x5add12,this[_0x59c9f0(0x191)]=_0x479545,this['_docStateChangeManagerService']=_0x4854bf;}[_0x3e6264(0x167)](_0x1034fe){const _0x57c6ab=_0x3e6264;this[_0x57c6ab(0x222)](_0x1034fe);}[_0x3e6264(0x28c)](_0x200851){const _0x4d3ab2=_0x3e6264,{unitID:_0x3f112c}=_0x200851,{collaboration:_0x178845}=this[_0x4d3ab2(0x19f)][_0x4d3ab2(0x28b)](_0x3f112c);if(_0x178845[_0x4d3ab2(0x26b)]===0x0)return _0x200851;let _0x13b3e0=a[_0x4d3ab2(0x336)][_0x4d3ab2(0x19b)](_0x200851['mutations'][0x0]);for(let _0x32b126=0x0;_0x32b126<_0x178845[_0x4d3ab2(0x26b)];_0x32b126++){const _0x526254={'id':_0x4d3ab2(0x2e7),'params':{'unitId':_0x178845[_0x32b126]['unitId'],..._0x178845[_0x32b126][_0x4d3ab2(0x20b)]}},_0x3b6eb9=this[_0x4d3ab2(0x191)][_0x4d3ab2(0x2af)](_0x13b3e0,_0x526254,!0x1);if(m[_0x4d3ab2(0x186)](_0x3b6eb9))throw _0x3b6eb9[_0x4d3ab2(0x328)];_0x13b3e0=_0x3b6eb9[_0x4d3ab2(0x311)];}return{...a[_0x4d3ab2(0x336)][_0x4d3ab2(0x19b)](_0x200851),'mutations':[_0x13b3e0]};}[_0x3e6264(0x222)](_0x368b18){const _0x18ccc8=_0x3e6264,{unitID:_0x5090e0}=_0x368b18,{history:_0x2804e0,collaboration:_0x2db443}=this[_0x18ccc8(0x19f)][_0x18ccc8(0x28b)](_0x5090e0);if(_0x2804e0[_0x18ccc8(0x26b)]===0x0&&_0x2db443[_0x18ccc8(0x26b)]===0x0)return;const _0x48062a=[],_0x100da7=[];let _0x529a73=a[_0x18ccc8(0x336)][_0x18ccc8(0x19b)](_0x368b18[_0x18ccc8(0x233)][0x0]),_0x3407a0=a[_0x18ccc8(0x336)]['deepClone'](_0x368b18[_0x18ccc8(0x233)][0x0]);for(let _0x3c3ecb=_0x2804e0[_0x18ccc8(0x26b)]-0x1;_0x3c3ecb>=0x0;_0x3c3ecb--){const _0x42299d={'id':_0x18ccc8(0x2e7),'params':{'unitId':_0x2804e0[_0x3c3ecb]['unitId'],..._0x2804e0[_0x3c3ecb][_0x18ccc8(0x3ad)]}},_0x179648={'id':_0x18ccc8(0x2e7),'params':{'unitId':_0x2804e0[_0x3c3ecb][_0x18ccc8(0x358)],..._0x2804e0[_0x3c3ecb][_0x18ccc8(0x20b)]}},_0x1b2e8f=this['_transformService']['transformMutation'](_0x529a73,_0x42299d,!0x1),_0x52e6df=this[_0x18ccc8(0x191)]['transformMutation'](_0x3407a0,_0x179648,!0x1);if(m['isTransformMutationFailure'](_0x1b2e8f))throw _0x1b2e8f[_0x18ccc8(0x328)];if(m[_0x18ccc8(0x186)](_0x52e6df))throw _0x52e6df[_0x18ccc8(0x328)];_0x48062a[_0x18ccc8(0x160)]({..._0x2804e0[_0x3c3ecb],'undoState':_0x1b2e8f[_0x18ccc8(0x203)][_0x18ccc8(0x2d9)],'redoState':_0x52e6df['m2Prime']['params']}),_0x529a73=_0x1b2e8f['m1Prime'],_0x3407a0=_0x52e6df[_0x18ccc8(0x311)];}_0x529a73=a['Tools'][_0x18ccc8(0x19b)](_0x368b18['mutations'][0x0]),_0x3407a0=a[_0x18ccc8(0x336)]['deepClone'](_0x368b18[_0x18ccc8(0x233)][0x0]);for(let _0x5ebf59=_0x2db443[_0x18ccc8(0x26b)]-0x1;_0x5ebf59>=0x0;_0x5ebf59--){const _0x5886c2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2db443[_0x5ebf59]['unitId'],..._0x2db443[_0x5ebf59][_0x18ccc8(0x3ad)]}},_0x3fb768={'id':_0x18ccc8(0x2e7),'params':{'unitId':_0x2db443[_0x5ebf59]['unitId'],..._0x2db443[_0x5ebf59]['redoState']}},_0x4f633c=this[_0x18ccc8(0x191)][_0x18ccc8(0x2af)](_0x529a73,_0x5886c2,!0x1),_0x4312ec=this[_0x18ccc8(0x191)][_0x18ccc8(0x2af)](_0x3407a0,_0x3fb768,!0x1);if(m[_0x18ccc8(0x186)](_0x4f633c))throw _0x4f633c[_0x18ccc8(0x328)];if(m[_0x18ccc8(0x186)](_0x4312ec))throw _0x4312ec[_0x18ccc8(0x328)];_0x100da7[_0x18ccc8(0x160)]({..._0x2db443[_0x5ebf59],'undoState':_0x4f633c[_0x18ccc8(0x203)]['params'],'redoState':_0x4312ec[_0x18ccc8(0x203)][_0x18ccc8(0x2d9)]}),_0x529a73=_0x4f633c[_0x18ccc8(0x311)],_0x3407a0=_0x4312ec[_0x18ccc8(0x311)];}this[_0x18ccc8(0x19f)]['setStateCache'](_0x5090e0,{'history':_0x48062a,'collaboration':_0x100da7});}};Z=qt([_e(0x0,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),_e(0x1,m[_0x3e6264(0x278)]),_e(0x2,a[_0x3e6264(0x1f4)](b[_0x3e6264(0x219)]))],Z);var Kt=Object[_0x3e6264(0x2f9)],zt=(_0x10770d,_0x1d9eef,_0x5a7181,_0x1740ec)=>{const _0x2357e7=_0x3e6264;for(var _0x51cb7f=_0x1740ec>0x1?void 0x0:_0x1740ec?Kt(_0x1d9eef,_0x5a7181):_0x1d9eef,_0xf5c8bd=_0x10770d[_0x2357e7(0x26b)]-0x1,_0x1b7b38;_0xf5c8bd>=0x0;_0xf5c8bd--)(_0x1b7b38=_0x10770d[_0xf5c8bd])&&(_0x51cb7f=_0x1b7b38(_0x51cb7f)||_0x51cb7f);return _0x51cb7f;},Me=(_0x37d615,_0x2c7099)=>(_0x1625f4,_0x184d07)=>_0x2c7099(_0x1625f4,_0x184d07,_0x37d615);let Q=class{constructor(_0x3ec647,_0x1ff47a){const _0x14ed63=_0x3e6264;this['_injector']=_0x3ec647,this[_0x14ed63(0x191)]=_0x1ff47a;}['transformSelections'](_0x124b48){const _0x4337bf=_0x3e6264;var _0x451f3f;const _0x50b657=this[_0x4337bf(0x1eb)][_0x4337bf(0x320)](Y[_0x4337bf(0x35a)]),_0x24d799=(_0x451f3f=_0x50b657['getDocRanges']())!=null?_0x451f3f:[];if(_0x24d799['length']===0x0)return;const _0x433d61=_0x124b48['unitID'],_0x1def5b=[{'id':_0x4337bf(0x2e7),'params':{'unitId':_0x433d61,'actions':null,'textRanges':_0x24d799}}],_0x3f8f66=this['_transformService'][_0x4337bf(0x34f)](_0x124b48,_0x1def5b);if(!m[_0x4337bf(0x1aa)](_0x3f8f66))throw _0x3f8f66['error'];const _0x6af180=_0x3f8f66[_0x4337bf(0x203)][0x0]['params'][_0x4337bf(0x22c)];Array[_0x4337bf(0x307)](_0x6af180)&&_0x6af180['length']&&_0x50b657[_0x4337bf(0x288)](_0x6af180,{'unitId':_0x433d61,'subUnitId':_0x433d61},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0x3e6264(0x37d)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x3e6264(0x2f9)],Zt=(_0xa8b3c4,_0x3c830b,_0x3a08fc,_0xde4076)=>{const _0x422dcc=_0x3e6264;for(var _0x21562c=_0xde4076>0x1?void 0x0:_0xde4076?Jt(_0x3c830b,_0x3a08fc):_0x3c830b,_0x3f7ebf=_0xa8b3c4[_0x422dcc(0x26b)]-0x1,_0x2b047f;_0x3f7ebf>=0x0;_0x3f7ebf--)(_0x2b047f=_0xa8b3c4[_0x3f7ebf])&&(_0x21562c=_0x2b047f(_0x21562c)||_0x21562c);return _0x21562c;},N=(_0xaee51b,_0x3fab59)=>(_0x72639b,_0xd9d21c)=>_0x3fab59(_0x72639b,_0xd9d21c,_0xaee51b);let ee=class extends a[_0x3e6264(0x2e5)]{constructor(_0x57cff7,_0x380578,_0x4f7ef4,_0x105e41,_0x5e9efe,_0x2ab377,_0x5389b2,_0x399e13){const _0x2b7675=_0x3e6264;super(),_(this,'_status$',new d[(_0x2b7675(0x2cc))](u['CollaborationStatus'][_0x2b7675(0x36a)])),(this[_0x2b7675(0x19f)]=_0x57cff7,this[_0x2b7675(0x327)]=_0x380578,this[_0x2b7675(0x387)]=_0x4f7ef4,this[_0x2b7675(0x3b3)]=_0x105e41,this[_0x2b7675(0x232)]=_0x5e9efe,this['_docSyncEditingCollabCursorService']=_0x2ab377,this[_0x2b7675(0x38e)]=_0x5389b2,this[_0x2b7675(0x14e)]=_0x399e13,this[_0x2b7675(0x27a)]());}['_initEntityListener'](){const _0x2fd00b=_0x3e6264;this['disposeWithMe'](this[_0x2fd00b(0x327)][_0x2fd00b(0x37a)][_0x2fd00b(0x349)](_0x358305=>{const _0x3daad8=_0x2fd00b,_0x77bd27=this[_0x3daad8(0x19f)]['docStateChange$'][_0x3daad8(0x349)](_0x3ed49a=>{const _0x42a1d2=_0x3daad8;if(_0x3ed49a==null)return;const {unitId:_0x49971f,redoState:_0x4e81fe,commandId:_0x12dd9b}=_0x3ed49a;if(_0x49971f!==_0x358305[_0x42a1d2(0x255)])return;const _0x92aac1={'id':_0x12dd9b,'type':a[_0x42a1d2(0x33b)][_0x42a1d2(0x1d1)],'params':{'unitId':_0x49971f,'actions':_0x4e81fe['actions'],'textRanges':null}};_0x358305[_0x42a1d2(0x366)](_0x92aac1);});if(_0x358305['disposeWithMe'](_0x77bd27),_0x358305 instanceof u[_0x3daad8(0x303)]){const _0x557568={'onTransformIME':_0xc5206d=>this['_docTransformIMECacheService'][_0x3daad8(0x34b)](_0xc5206d),'onTransformState':_0x245e79=>this[_0x3daad8(0x3b3)][_0x3daad8(0x167)](_0x245e79),'onTransformSelections':_0x352305=>this[_0x3daad8(0x232)][_0x3daad8(0x2c7)](_0x352305),'onSyncEditingCollabCursor':_0x31f180=>this[_0x3daad8(0x198)]['syncEditingCollabCursor'](_0x31f180),'onTransformRemoteChangesetByIMECache':_0x47fb42=>this['_docTransformIMECacheService'][_0x3daad8(0x28c)](_0x47fb42),'onTransformRemoteChangesetByStateCache':_0x36cecd=>this[_0x3daad8(0x3b3)]['transformRemoteChangeset'](_0x36cecd)};_0x358305[_0x3daad8(0x17e)](_0x557568);}}));}};ee=Zt([N(0x0,a[_0x3e6264(0x1f4)](b[_0x3e6264(0x219)])),N(0x1,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x294)])),N(0x2,a[_0x3e6264(0x1f4)](J)),N(0x3,a[_0x3e6264(0x1f4)](Z)),N(0x4,a[_0x3e6264(0x1f4)](Q)),N(0x5,a['Inject'](pe)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x3e6264(0x213)]))],ee);var Qt=Object[_0x3e6264(0x2f9)],es=(_0x5a0566,_0x31795c,_0x60ee7,_0x52053b)=>{const _0x384b7c=_0x3e6264;for(var _0x3b0b68=_0x52053b>0x1?void 0x0:_0x52053b?Qt(_0x31795c,_0x60ee7):_0x31795c,_0x128284=_0x5a0566[_0x384b7c(0x26b)]-0x1,_0x1a168e;_0x128284>=0x0;_0x128284--)(_0x1a168e=_0x5a0566[_0x128284])&&(_0x3b0b68=_0x1a168e(_0x3b0b68)||_0x3b0b68);return _0x3b0b68;},he=(_0x839ebe,_0x2e910c)=>(_0x5d9446,_0x4d19e4)=>_0x2e910c(_0x5d9446,_0x4d19e4,_0x839ebe);let me=class extends a[_0x3e6264(0x2e5)]{constructor(_0xd595f4,_0x210b28,_0x141837){const _0x4bb41e=_0x3e6264;super(),_(this,_0x4bb41e(0x3bf),new Map()),_(this,_0x4bb41e(0x1d5),new Map()),_(this,_0x4bb41e(0x39a),!0x1),(this['_configService']=_0xd595f4,this[_0x4bb41e(0x3a1)]=_0x210b28,this[_0x4bb41e(0x1de)]=_0x141837);}[_0x3e6264(0x226)](){const _0x43c674=_0x3e6264;this[_0x43c674(0x39a)]=!0x0;}['enableLocalCache'](){const _0x397649=_0x3e6264;this[_0x397649(0x39a)]=!0x1;}get['saveTaskMap'](){const _0x1fce27=_0x3e6264;return this[_0x1fce27(0x1d5)];}[_0x3e6264(0x2b7)](){const _0x3a6b4a=_0x3e6264;this['exhaustSavingTask']()[_0x3a6b4a(0x2b1)](()=>super[_0x3a6b4a(0x2b7)]());}async[_0x3e6264(0x2c9)](_0x9e91e1){const _0x20d189=_0x3e6264;return this[_0x20d189(0x39a)]?null:this[_0x20d189(0x3a1)][_0x20d189(0x3c9)](u[_0x20d189(0x329)](_0x9e91e1));}async[_0x3e6264(0x299)](_0x120fc3,_0x3319bf){const _0x42b8cc=_0x3e6264;return!!this[_0x42b8cc(0x3a1)][_0x42b8cc(0x262)](_0x120fc3,_0x3319bf);}[_0x3e6264(0x1ab)](_0x103175,_0x4267c7,_0x116235,_0x468a7e){const _0x71520a=_0x3e6264,_0x3bfca2=this[_0x71520a(0x1de)][_0x71520a(0x189)](_0x103175);this[_0x71520a(0x3bf)]['set'](_0x103175,{'unitID':_0x103175,'type':_0x4267c7,'awaitingChangeset':_0x116235,'mutations':_0x468a7e,'rev':_0x3bfca2}),this['_saveTaskMap'][_0x71520a(0x1d0)](_0x103175)||this[_0x71520a(0x211)](_0x103175);}['_scheduleSaving'](_0x5141a0){const _0x373f6a=_0x3e6264,_0x996e72=this[_0x373f6a(0x351)]();_0x996e72===0x0?this['_saveCache'](_0x5141a0):this[_0x373f6a(0x1d5)]['set'](_0x5141a0,setTimeout(()=>this[_0x373f6a(0x1e1)](_0x5141a0),_0x996e72));}['_getSaveTimeout'](){const _0x2b0ef4=_0x3e6264;var _0x49e3b2;return(_0x49e3b2=this['_configService'][_0x2b0ef4(0x1cb)](u[_0x2b0ef4(0x15c)]))!=null?_0x49e3b2:u[_0x2b0ef4(0x2b0)];}['_saveCache'](_0x2a7133){const _0x1bfef6=_0x3e6264,_0x2fb550=this[_0x1bfef6(0x1d5)][_0x1bfef6(0x320)](_0x2a7133);return _0x2fb550!==void 0x0&&window[_0x1bfef6(0x3bc)](_0x2fb550),this[_0x1bfef6(0x3a1)][_0x1bfef6(0x262)](u[_0x1bfef6(0x329)](_0x2a7133),this['_cachedData'][_0x1bfef6(0x320)](_0x2a7133))[_0x1bfef6(0x2b1)](()=>this[_0x1bfef6(0x1d5)][_0x1bfef6(0x1fd)](_0x2a7133));}async[_0x3e6264(0x258)](){const _0x2bc692=_0x3e6264,_0x518762=[];this[_0x2bc692(0x1d5)][_0x2bc692(0x3c8)]((_0xe5124,_0x4068f8)=>{const _0x326c52=_0x2bc692;window[_0x326c52(0x3bc)](_0xe5124),_0x518762[_0x326c52(0x228)](this[_0x326c52(0x1e1)](_0x4068f8)[_0x326c52(0x2b1)](()=>{const _0xd14990=_0x326c52;this['_saveTaskMap'][_0xd14990(0x1fd)](_0x4068f8);}));}),await Promise['all'](_0x518762);}};me=es([he(0x0,a[_0x3e6264(0x2f6)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x3e6264(0x1f4)](m[_0x3e6264(0x36f)]))],me);class Be extends a[_0x3e6264(0x38b)]{constructor(){const _0x1c7e03=_0x3e6264;super(),_(this,'urlChange$'),this[_0x1c7e03(0x399)]=d[_0x1c7e03(0x2e1)](window,'popstate')[_0x1c7e03(0x170)](d[_0x1c7e03(0x1b7)](this[_0x1c7e03(0x1c2)]),d[_0x1c7e03(0x242)](0x1),d['mapTo'](void 0x0));}['setParam'](_0x2152e6,_0x181af6,_0x12e1a5=!0x1){const _0x1e417a=_0x3e6264,_0x516e25=new URL(window[_0x1e417a(0x1e2)][_0x1e417a(0x30d)]);_0x516e25['searchParams']['set'](_0x2152e6,_0x181af6),_0x12e1a5?window[_0x1e417a(0x344)][_0x1e417a(0x3c7)]('','',_0x516e25[_0x1e417a(0x31d)]()):window['history'][_0x1e417a(0x20f)]('','',_0x516e25[_0x1e417a(0x31d)]());}[_0x3e6264(0x1b1)](_0x1c45ca,_0x181c77=!0x1){const _0x135475=_0x3e6264,_0x294a5d=new URL(window[_0x135475(0x1e2)]['href']);_0x294a5d[_0x135475(0x175)][_0x135475(0x1fd)](_0x1c45ca),_0x181c77?window[_0x135475(0x344)][_0x135475(0x3c7)]('','',_0x294a5d['toString']()):window[_0x135475(0x344)]['pushState']('','',_0x294a5d[_0x135475(0x31d)]());}[_0x3e6264(0x147)](_0x25a3c8){const _0x36c4bf=_0x3e6264;var _0x2f320e;return(_0x2f320e=new URL(window[_0x36c4bf(0x1e2)][_0x36c4bf(0x30d)])[_0x36c4bf(0x175)][_0x36c4bf(0x320)](_0x25a3c8))!=null?_0x2f320e:void 0x0;}}var ts=Object[_0x3e6264(0x1e0)],ss=Object[_0x3e6264(0x2f9)],ns=(_0x490ffe,_0x56d066,_0x3f4dce)=>_0x56d066 in _0x490ffe?ts(_0x490ffe,_0x56d066,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f4dce}):_0x490ffe[_0x56d066]=_0x3f4dce,is=(_0x3a6376,_0x4a3728,_0x29c6b4,_0x8d720b)=>{for(var _0x59d152=_0x8d720b>0x1?void 0x0:_0x8d720b?ss(_0x4a3728,_0x29c6b4):_0x4a3728,_0x1abda6=_0x3a6376['length']-0x1,_0x6fa324;_0x1abda6>=0x0;_0x1abda6--)(_0x6fa324=_0x3a6376[_0x1abda6])&&(_0x59d152=_0x6fa324(_0x59d152)||_0x59d152);return _0x59d152;},ue=(_0x2af7a8,_0x45c197)=>(_0x18b01c,_0x5a6698)=>_0x45c197(_0x18b01c,_0x5a6698,_0x2af7a8),rs=(_0x4753a4,_0x53ca2e,_0x53fe06)=>ns(_0x4753a4,_0x53ca2e+'',_0x53fe06);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x3e6264(0x289)]=class extends a['Plugin']{constructor(_0x49115c=Ne,_0x170e05,_0x234d5b,_0x934ec2){const _0x3da77b=_0x3e6264;super(),this[_0x3da77b(0x281)]=_0x49115c,this['_renderManagerService']=_0x170e05,this[_0x3da77b(0x1eb)]=_0x234d5b,this[_0x3da77b(0x18a)]=_0x934ec2;const {..._0x57d4d9}=a['merge']({},Ne,this[_0x3da77b(0x281)]);this[_0x3da77b(0x18a)][_0x3da77b(0x216)](Ft,_0x57d4d9);}[_0x3e6264(0x1c4)](){const _0x4b1b88=_0x3e6264;this[_0x4b1b88(0x3b6)](),this[_0x4b1b88(0x212)]();}[_0x3e6264(0x155)](){const _0x26e487=_0x3e6264;this[_0x26e487(0x2c2)]();}[_0x3e6264(0x3b6)](){const _0x2d94d4=_0x3e6264;var _0x5aafac;const _0x2fc5e9=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x2d94d4(0x16c)],{'useClass':q['WebSocketService']}],[u[_0x2d94d4(0x1b0)],{'useClass':me}],[exports[_0x2d94d4(0x251)]],[ee],[z],[x],[fe],[exports[_0x2d94d4(0x23e)]]];a[_0x2d94d4(0x2f1)](this[_0x2d94d4(0x1eb)],a[_0x2d94d4(0x17b)](_0x2fc5e9,(_0x5aafac=this['_config'])==null?void 0x0:_0x5aafac[_0x2d94d4(0x3bd)]));}['_registerRenderDependencies'](){const _0x26e5ff=_0x3e6264;this[_0x26e5ff(0x337)](this[_0x26e5ff(0x348)][_0x26e5ff(0x21b)](a['UniverInstanceType'][_0x26e5ff(0x20e)],[ve])),this['disposeWithMe'](this[_0x26e5ff(0x348)]['registerRenderModule'](a[_0x26e5ff(0x359)]['UNIVER_SHEET'],[ge]));}[_0x3e6264(0x212)](){const _0x266cc2=_0x3e6264;a[_0x266cc2(0x23f)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x266cc2(0x23e)]]]);}},rs(exports[_0x3e6264(0x289)],_0x3e6264(0x386),os),exports[_0x3e6264(0x289)]=is([a[_0x3e6264(0x295)](u[_0x3e6264(0x2f0)]),ue(0x1,p['IRenderManagerService']),ue(0x2,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),ue(0x3,a[_0x3e6264(0x2f6)])],exports['UniverCollaborationClientUIPlugin']);var as=Object['getOwnPropertyDescriptor'],cs=(_0x3080ba,_0x18d9e4,_0x451e9b,_0x33366d)=>{const _0x4ab6a9=_0x3e6264;for(var _0x4b2286=_0x33366d>0x1?void 0x0:_0x33366d?as(_0x18d9e4,_0x451e9b):_0x18d9e4,_0xb98091=_0x3080ba[_0x4ab6a9(0x26b)]-0x1,_0x4f0e3c;_0xb98091>=0x0;_0xb98091--)(_0x4f0e3c=_0x3080ba[_0xb98091])&&(_0x4b2286=_0x4f0e3c(_0x4b2286)||_0x4b2286);return _0x4b2286;},W=(_0x4f5509,_0x19d3fd)=>(_0x108f39,_0x885608)=>_0x19d3fd(_0x108f39,_0x885608,_0x4f5509);exports[_0x3e6264(0x1ce)]=class extends u[_0x3e6264(0x298)]{constructor(_0x196e60,_0xb1545c,_0x20e9d4,_0x23f741,_0x432fad){super(_0x196e60,_0xb1545c,_0x20e9d4,_0x23f741,_0x432fad);}async['createSocket'](_0xdc1c11){const _0x2a3b43=_0x3e6264,_0x2bb211=await this[_0x2a3b43(0x2ee)](),_0x2c81a3=this[_0x2a3b43(0x16d)](_0xdc1c11,_0x2bb211);return this[_0x2a3b43(0x37b)](_0x2c81a3);}[_0x3e6264(0x16d)](_0x33a18a,_0x399d5a){const _0x5b37fb=_0x3e6264,_0x168224=typeof window>'u'?new URL(_0x33a18a):new URL(_0x33a18a,window[_0x5b37fb(0x1e2)][_0x5b37fb(0x2fb)]);_0x168224['searchParams'][_0x5b37fb(0x2a6)](_0x5b37fb(0x370),_0x399d5a);const _0x55edf0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5b37fb(0x1e2)][_0x5b37fb(0x37c)]);return _0x55edf0[_0x5b37fb(0x320)]('runId')&&_0x168224[_0x5b37fb(0x175)]['set'](_0x5b37fb(0x15d),_0x55edf0['get'](_0x5b37fb(0x15d))),_0x168224[_0x5b37fb(0x31d)]();}async['_getSessionTicket'](){const _0x1622d3=_0x3e6264;var _0x1bea11,_0xa56cd5,_0x153e87;const _0x4b7713=this[_0x1622d3(0x18a)]['getConfig'](u[_0x1622d3(0x28d)]),_0xcaf9b3=(_0x1bea11=_0x4b7713==null?void 0x0:_0x4b7713[_0x1622d3(0x14a)])!=null?_0x1bea11:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x153e87=(_0xa56cd5=(await this[_0x1622d3(0x3b1)]['get'](_0xcaf9b3,{'headers':{'Content-Type':_0x1622d3(0x201)}}))[_0x1622d3(0x149)])==null?void 0x0:_0xa56cd5[_0x1622d3(0x24d)])!=null?_0x153e87:'';}},exports[_0x3e6264(0x1ce)]=cs([W(0x0,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),W(0x1,a[_0x3e6264(0x1f4)](q[_0x3e6264(0x34c)])),W(0x2,a[_0x3e6264(0x2f6)]),W(0x3,a[_0x3e6264(0x388)]),W(0x4,m[_0x3e6264(0x1ef)])],exports[_0x3e6264(0x1ce)]);const Le=0x7530,Pe=_0x3e6264(0x3a6);function _0x4b4f(){const _0x2485e6=['INVALID_INVITE_CODE','Tools','disposeWithMe','Module','InsertRowCommandId','type','CommandType','isEditing','BuiltInUIPart','Failed','name','getOffsetConfig','_initStatusListener','_handleJoinEvent','_removeCollabCursors','history','_shapes','RemoveColCommandId','idSuffix','_renderManagerService','subscribe','78095mtZAFI','transformIMECache','HTTPService','endRow','url(#$1','transformMutationsWithChangeset','IImageIoService','_getSaveTimeout','SUBMIT_CHANGESET_TIMEOUT','_collabCursorController','save','getUndoRedoMutationParamsCache','_drawRectRange','eventID','unitId','UniverInstanceType','DocSelectionManagerService','YUUMI_URL_COL_OUT_OF_RANGE','defs','xlink:href','9QAlVVa','collabStatus.fetchMiss','next','jiqing500','_updateCollabCursors','@univerjs/sheets','APPLY_NON_SEQUENTIAL_REVISION','_scheduleHeartbeat','onLocalMutation','getDocRanges','UniverIcon','@univerjs/docs-ui','NOT_COLLAB','RemoveRowCommandId','fill','M0\x200H16V16H0z','_roomMembers$','RevisionService','sessionTicket','_instanceService','use','displayName','onCommandExecuted','assignAColorForMemberID','collabCursorState$','_refreshCollabCursors','SheetCollabCursorShape','_setupSubUnitSync','entityInit$','_doCreateSocket','search','Injector','toStringTag','_uiPartsService','_startSheetCollabCursor','ColorKit','none','_cursors','getOwnPropertySymbols','univer-online-status','pluginName','_docTransformIMECacheService','ILogService','APPLY_REJECT','round','RxDisposable','text','throttleTime','_messageService','2783583wTYzxu','startColumn','_anchorDot','WebURLService','MOBILE_HAS_BEEN_BOUND','unsubscribe','getSheetObject','min','_range','subscribeEvent','urlChange$','_disabled','getUnitStatus$','extend','_unitStatus','_send','ICommandService','_sheetSkeletonManagerService','_localStorageService','_updateLocalCursor','_entities','_urlService','onMouseMove','ACTIVE_UNIT_EVENT_CHANNEL','on-line-single','NO_OTHER_CLIENTS_EDITING','gold400','toRgbString','2YwkHOz','APPLY_DUPLICATED','undoState','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','DisposableCollection','_themeService','_httpService','_entityInit$','_docTransformStateCacheService','on-line-single_clip0_910_349','_syncEditingCollabCursorService','_registerDependencies','generateRandomId','string','currentSkeleton$','useObservable','purple300','clearTimeout','override','prototype','_cachedData','_localCacheService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','sheetID','[CollaborationDataLoaderController]','contains','EMAIL_HAS_BEEN_BOUND','OnLineSingle','replaceState','forEach','getItem','jsxs','concat','clearInterval','width','resize','_status$','collab-text-range-','_init','UNAUTHENTICATED','WECHAT_HAS_BEEN_BOUND','getMemberID','selections','getVpScrollXYInfoByPosToVp','currentColor','some','getParam','runOnServer','body','wsSessionTicketUrl','measureText','flatMap','YUUMI_UNABLE_LOAD_URL','_localeService','1231273KSXlHi','Unknown\x20user','_anchor','_lastPointer','collabStatus.offline','createInstance','onRendered','className','subunit','distinctUntilChanged','createIdentifier','findNodePositionByCharIndex','onPointerLeave$','LOCAL_CACHE_INTERVAL_KEY','runId','getSheetBySheetId','ENSURE_SNAPSHOT_EXECUTION','unshift','_removeClearOtherTimer','Rect','addObject','runRefRangeMutations','hide','imageSourceType','transformStateCache','backgroundColor','getTypeOfUnitAdded$','2234342FissSA','collaboration-client.offline-data-not-saved','ISocketService','_createSocketURL','getCoordByCell','subUnitId','pipe','tag','UPDATE_CURSOR','univerjs-icon\x20univerjs-icon-','off-line-single_clip0_910_343','searchParams','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_document','_drawAnchor','LOGIN_FAILED','LICENSE_DISTRO_REJECTED','mergeOverrideWithDependencies','onPointerMove$','_docSkeleton','addHandlerCallback','size','@univerjs/network','values','from','engine','svg','APPLY_PERMISSION_DENIED','isTransformMutationFailure','roomMembers','_initCommandExecutedListener','getCurrentRevOfUnit','_configService','NOT_FOUND','PY_RUNTIME_SCRIPT_ERROR','univer-online','debug','parse','getSkeleton','_transformService','CollaborationEvent','_transformPreviousActiveRange','OTHER_CLIENTS_EDITING','getFocusedUnit','collaboration.closeRoom','complete','_docSyncEditingCollabCursorService','getTypeOfUnitDisposed$','_notificationService','deepClone','_dataLoaderService','_docSkeletonManagerService','NodePositionConvertToCursor','_docStateChangeManagerService','roomMembers$','hasOwnProperty','0\x200\x2017\x2016','INVALID_ARGUMENT','labelPosition','univer-online-status-title','36FBxDqH','attrs','RichTextEditingMutation','_eventUnsubscribe','isTransformMutationsWithChangesetSuccess','updateOfflineData','handleMoveRange','SNAPSHOT_HAS_BEEN_REMOVED','0\x200\x2016\x2016','univer-online-status-icon','ILocalCacheService','removeParam','DeleteRangeMoveLeftCommandId','@univerjs/sheets-ui','FETCH_MISS','random','UNIVER_SHEET','takeUntil','3949016TiTZtO','CollaborationStatus','INTERNAL_ERROR','indexOf','_onCursorDelete','translate(.97)','UNDEFINED','focused$','CONFLICT','_context','dispose$','SessionStatus','onStarting','propertyIsEnumerable','RefRangeService','split','show','RemoteUniscriptService','_scene','getConfig','apply','ALREADY_EXISTS','BrowserCollaborationSocketService','registerBeforeClose','has','MUTATION','getCellPositionByOffset','_toggleOffline','getViewport','_saveTaskMap','ONLINE','_selfUnitIDs','_render','12bwvTiV','_getScale','cursorInfo$','useDependency','INVITE_CODE_HAS_BEEN_UES','_revisionService','handleInsertRangeMoveRight','defineProperty','_saveCache','location','_clearOtherTimers','INotificationService','defIds','map','_scheduleClearOtherTimer','4788931kfOiFW','merge','PERMISSION_DENIED','_injector','handleDeleteRangeMoveLeft','CollaborationStatusDisplay','MemberService','ISnapshotServerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getRenderById','startsWith','RegularPolygon','Inject','_draw','@univerjs/engine-render','#fff','Optional','selection','CollaborationUIEventService','VIEW_MAIN','activeSheet$','delete','PENDING','_collabCursorState$','AWAITING','application/json','HEADER_MENU','m2Prime','_hideTimer','...','UnitStatus','sheetId','SYNCED','addEventListener','480400euXECa','redoState','_colorAssignService','red300','UNIVER_DOC','pushState','MoveRangeCommandId','_scheduleSaving','_initDependencies','LocaleService','transform','lineTo','setConfig','collaboration-client-ui.config','setParam','DocStateChangeManagerService','CONNECTOR_DATA_TOO_LARGE','registerRenderModule','getValue','getCollabEntity$','Workbook','rxjs','Tooltip','IDocClipboardService','_transformHistoryAndStateStack','INVITE_CODE_ALREADY_BOUND','_hovered','IUIPartsService','disableLocalCache','@univerjs/docs','push','add','url(#off-line-single_clip0_910_343)','isActive','textRanges','invokeId','toDisposable','@univerjs/rpc','@univerjs/engine-formula','current','_docTransformSelectionsService','mutations','offline','symbol','_collaborationUIEventService','rgba(255,\x20255,\x20255,\x200.01)','assign','SheetSkeletonManagerService','cursorInfo','source','IURLService','executeCommand','CollaborationDataLoaderController','touchDependencies','currentTheme$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','shareReplay','UNRECOGNIZED','IRemoteInstanceService','storage','filter','requireSession','1em','univer-offline','permission.content','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','getCurrentSelections','ticket','[RemoteUniscriptService]:\x20no\x20focused\x20unit','max','call','DesktopCollaborationStatusDisplayController','_handleHover','getAncestorScale','react/jsx-runtime','unitID','init','top','exhaustSavingTask','_cursorShapes','TEXT','function','setTimeout','ranges','send','_logService','DOC_RANGE_TYPE','USERS_LEAVE','setItem','_unitOnClients','_initStatusComponent','_cursorInfo$','jsx','@univerjs/drawing','ThemeService','RECT','IUniverInstanceService','length','OFFLINE','serializeRangeWithSheet','JOIN_ROOM_FAILED','unload','clsx','_labelPosition','getMember','endColumn','CollaborationUIEventId','_hover','COMPLETION_FINISHED','_commandService','ITransformService','collaboration.single-unit.warning','_initEntityListener','unit','_ensureSubject','getRelativeToViewportCoord','data','SheetsSelectionsService','startRow','_config','INVITE_CODE_REQUIRED','Warning','InsertRangeMoveDownCommandId','OffLineSingle','getActiveSheet','_beforeCloseService','replaceDocRanges','UniverCollaborationClientUIPlugin','TOO_MANY_REQUESTS','getStateCache','transformRemoteChangeset','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_online','handleDeleteRangeMoveUp','getSheetId','stringify','getCurrentUnitForType','_session','CollaborationController','DependentOn','@univerjs/design','_backgroundColor','CollaborationSocketService','saveOfflineData','evenodd','TEXT_RANGE_LAYER_INDEX','children','SetDocZoomRatioOperation','_onCursorUpdate','restore','result','combineLatest','registerRefRange','with','beginPath','_handleHeartbeatEvent','set','DocSkeletonManagerService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_docClipboardService','colorChannel1','SNAPSHOT_INVALID_SNAPSHOT','getUnitId','_color','IBeforeCloseService','transformMutation','LOCAL_CACHE_INTERVAL','then','_transformUndoRedoStack','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','collabStatus.syncing','_handleLeaveEvent','loadUnit','dispose','YUUMI_ASYNCIO_CANCELLED','onlineStatusTitle','syncEditingCollabCursor','@univerjs/core','moveTo','path','forwardRef','setShapeProps','_refRangeService','_drawTextRange','_registerRenderDependencies','deserializeRangeWithSheet','makeDirty','drawWith','_imageIoService','transformSelections','icon','loadOfflineData','@univerjs-pro/collaboration','black','BehaviorSubject','createElement','Rectangle','column','onTransformChange$','trim','range','setActiveRange','debounce','color','closePath','LICENSE_MAX_UNITS_EXCEEDED','sessionStatus$','params','handleInsertRangeMoveDown','getColor','_updateURLWithCurrentState','collab-client.tooltip.reconnect','YUUMI_RATE_OVER_LIMIT','_cursor','Error','fromEvent','MessageType','_univerInstanceService','connectInjector','Disposable','_toggleOnline','doc.mutation.rich-text-editing','OTHER_CLIENT_EDITING','_memberService','_colorIndex','replace','_getMergeRange','YUUMI_NO_CUBOID_FOR_QUESTION','_getSessionTicket','LICENSE_IMPORT_SIZE_EXCEEDED','UniverCollaborationClientPlugin','registerDependencies','session.collaboration-timeout','Vector2','newValue','_getAnchorBounding','IConfigService','_startDocCollabCursor','editingUnit','getOwnPropertyDescriptor','entries','origin','SHEET_VIEWPORT_KEY','div','SOCKET_FAILED_RETRY','@univerjs/ui','disposeUnit','asObservable','_collabSessionService','DocCollaborationEntity','fillStyle','APPLY_REVISION_CONFILICT','event$','isArray','YUUMI_SUBSCRIPTION_NOT_FOUND','getCollabCursors$','univer-flex\x20univer-items-center','find','status$','href','addClipboardHook','uni.network.url-service','_heartbeatTimer','m1Prime','blue400','SetSelectionsOperation','260Oseeyk','SetWorksheetActivateCommand','Shape','switchMap','EffectRefRangId','handleIRemoveCol','Subject','_assignedColors','LICENSE_EXPORT_SIZE_EXCEEDED','toString','_getSheetObject','_onRefRangeChange','get','fromEventSubject','WebBrowserSingleActiveUnitService','collabStatus.notCollab','_textBubble','arc','_name','_collaborationController','error','getLocalCacheKey','COLORS','CollaborationSessionService','_id','mask','debounceTime','onPointerEnter$','SetTextSelectionsOperation','_updateSubUnitFromURLParams','CHANGESET_REVISION_CONFILICT','includes','row'];_0x4b4f=function(){return _0x2485e6;};return _0x4b4f();}class ls extends a[_0x3e6264(0x2e5)]{constructor(){const _0x1da919=_0x3e6264;super(),_(this,'_id',a[_0x1da919(0x3b7)]()),_(this,_0x1da919(0x1d7),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x1da919(0x310),null),_(this,_0x1da919(0x1e3),new Map()),_(this,_0x1da919(0x39d),new Map()),this['_init']();}['dispose'](){const _0x379d03=_0x3e6264;super[_0x379d03(0x2b7)](),this['_clearOtherTimers'][_0x379d03(0x3c8)]((_0x28a411,_0x4005c9)=>this['_removeClearOtherTimer'](_0x4005c9)),this[_0x379d03(0x310)]&&window[_0x379d03(0x3cc)](this[_0x379d03(0x310)]);}[_0x3e6264(0x39b)](_0x10d1ea){const _0x18a386=_0x3e6264;return this[_0x18a386(0x27c)](_0x10d1ea)[_0x18a386(0x170)](d[_0x18a386(0x158)]());}[_0x3e6264(0x2f8)](_0x5e6429){const _0x256b11=_0x3e6264;this[_0x256b11(0x1d7)]['size']===0x0&&this[_0x256b11(0x365)](),this['_selfUnitIDs'][_0x256b11(0x229)](_0x5e6429),this['_send']({'type':0x0,'memberID':this[_0x256b11(0x32c)],'unitIDs':[_0x5e6429],'isForwarded':!0x1});}[_0x3e6264(0x300)](_0x2ea5d1){const _0x195181=_0x3e6264;this[_0x195181(0x1d7)][_0x195181(0x1fd)](_0x2ea5d1),this[_0x195181(0x1d7)][_0x195181(0x17f)]===0x0&&this[_0x195181(0x310)]&&window[_0x195181(0x3cc)](this[_0x195181(0x310)]);}[_0x3e6264(0x3d1)](){const _0x194630=_0x3e6264;this[_0x194630(0x337)](a[_0x194630(0x22e)](d[_0x194630(0x2e1)](window,_0x194630(0x245))[_0x194630(0x349)](_0x56191d=>{const _0x1cbcad=_0x194630;if(_0x56191d['key']!==Pe||!_0x56191d[_0x1cbcad(0x2f4)])return;const _0x3781da=JSON[_0x1cbcad(0x18f)](_0x56191d[_0x1cbcad(0x2f4)]);this['_handleEvent'](_0x3781da);}))),window[_0x194630(0x209)](_0x194630(0x26f),()=>this[_0x194630(0x39e)]({'type':0x1,'memberID':this[_0x194630(0x32c)],'unitIDs':Array[_0x194630(0x182)](this[_0x194630(0x1d7)])}));}['_handleEvent'](_0x520532){const _0x2e3ed8=_0x3e6264;switch(_0x520532[_0x2e3ed8(0x33a)]){case 0x0:this[_0x2e3ed8(0x342)](_0x520532);break;case 0x1:this[_0x2e3ed8(0x2b5)](_0x520532);break;case 0x2:this['_handleHeartbeatEvent'](_0x520532);break;}}[_0x3e6264(0x342)](_0x428653){const _0x1ea932=_0x3e6264,{unitIDs:_0x45363c,memberID:_0x561fca,isForwarded:_0x584bd5}=_0x428653;_0x45363c[_0x1ea932(0x3c8)](_0x39787d=>{const _0x18185c=_0x1ea932;if(!_0x584bd5&&this[_0x18185c(0x263)][_0x18185c(0x1d0)](_0x39787d)&&this[_0x18185c(0x27c)](_0x39787d)[_0x18185c(0x360)](u[_0x18185c(0x206)][_0x18185c(0x194)]),!this[_0x18185c(0x263)][_0x18185c(0x1d0)](_0x39787d)||!this[_0x18185c(0x263)][_0x18185c(0x320)](_0x39787d)['has'](_0x561fca)){const _0x3ff208=this[_0x18185c(0x263)][_0x18185c(0x320)](_0x39787d)||new Set();_0x3ff208[_0x18185c(0x229)](_0x561fca),this[_0x18185c(0x263)][_0x18185c(0x2a6)](_0x39787d,_0x3ff208),this[_0x18185c(0x1e7)](_0x561fca);}}),_0x584bd5||this[_0x1ea932(0x39e)]({'type':0x0,'memberID':this[_0x1ea932(0x32c)],'unitIDs':[...this[_0x1ea932(0x1d7)]],'isForwarded':!0x0});}[_0x3e6264(0x1e7)](_0xe2ec06){const _0x239885=_0x3e6264;this[_0x239885(0x161)](_0xe2ec06);const _0x192892=window[_0x239885(0x25c)](()=>{const _0x2fa36b=_0x239885;this['_unitOnClients'][_0x2fa36b(0x3c8)](_0x4e5a85=>{const _0x15c1ee=_0x2fa36b;_0x4e5a85[_0x15c1ee(0x1fd)](_0xe2ec06);});},Le*0x2);this['_clearOtherTimers'][_0x239885(0x2a6)](_0xe2ec06,_0x192892);}[_0x3e6264(0x161)](_0x2f9aa0){const _0x162386=_0x3e6264;if(this[_0x162386(0x1e3)]['has'](_0x2f9aa0)){const _0x442a36=this[_0x162386(0x1e3)][_0x162386(0x320)](_0x2f9aa0);_0x442a36&&window['clearTimeout'](_0x442a36),this[_0x162386(0x1e3)][_0x162386(0x2a6)](_0x2f9aa0,null);}}[_0x3e6264(0x2b5)](_0x587240){const _0x3fb42b=_0x3e6264,{memberID:_0x18dba1,unitIDs:_0x213340}=_0x587240;_0x213340['forEach'](_0x57309e=>{const _0x2a8c7f=_0x5852;var _0x1ecfee;const _0x2ca1c5=this[_0x2a8c7f(0x263)]['get'](_0x57309e);_0x2ca1c5&&(_0x2ca1c5[_0x2a8c7f(0x1fd)](_0x18dba1),(_0x1ecfee=this[_0x2a8c7f(0x27c)](_0x57309e))==null||_0x1ecfee[_0x2a8c7f(0x360)](_0x2ca1c5[_0x2a8c7f(0x17f)]===0x0?u[_0x2a8c7f(0x206)][_0x2a8c7f(0x3a8)]:u['UnitStatus'][_0x2a8c7f(0x194)]));}),this[_0x3fb42b(0x161)](_0x18dba1);}[_0x3e6264(0x2a5)](_0x24f652){this['_scheduleClearOtherTimer'](_0x24f652['memberID']);}[_0x3e6264(0x39e)](_0x46d165){const _0x79a8ca=_0x3e6264;localStorage[_0x79a8ca(0x262)](Pe,JSON[_0x79a8ca(0x291)](_0x46d165));}[_0x3e6264(0x365)](){const _0x366c68=_0x3e6264;this[_0x366c68(0x310)]=window['setInterval'](()=>{const _0x158f9e=_0x366c68;this[_0x158f9e(0x39e)]({'type':0x2,'memberID':this[_0x158f9e(0x32c)]});},Le);}['_ensureSubject'](_0x5dc99e){const _0x3a4f46=_0x3e6264;return this[_0x3a4f46(0x39d)][_0x3a4f46(0x1d0)](_0x5dc99e)||this[_0x3a4f46(0x39d)][_0x3a4f46(0x2a6)](_0x5dc99e,new d[(_0x3a4f46(0x2cc))](u['UnitStatus'][_0x3a4f46(0x3a8)])),this[_0x3a4f46(0x39d)][_0x3a4f46(0x320)](_0x5dc99e);}}var ke=(_0x48e052=>(_0x48e052[_0x48e052[_0x3e6264(0x1be)]=0x0]='UNDEFINED',_0x48e052[_0x48e052['OK']=0x1]='OK',_0x48e052[_0x48e052[_0x3e6264(0x1ba)]=0x2]=_0x3e6264(0x1ba),_0x48e052[_0x48e052[_0x3e6264(0x1ea)]=0x3]=_0x3e6264(0x1ea),_0x48e052[_0x48e052[_0x3e6264(0x18b)]=0x4]=_0x3e6264(0x18b),_0x48e052[_0x48e052[_0x3e6264(0x3d2)]=0x5]=_0x3e6264(0x3d2),_0x48e052[_0x48e052[_0x3e6264(0x1cd)]=0x6]='ALREADY_EXISTS',_0x48e052[_0x48e052[_0x3e6264(0x1a3)]=0x7]=_0x3e6264(0x1a3),_0x48e052[_0x48e052[_0x3e6264(0x28a)]=0x8]=_0x3e6264(0x28a),_0x48e052[_0x48e052[_0x3e6264(0x276)]=0x9]=_0x3e6264(0x276),_0x48e052[_0x48e052['LOGIN_FAILED']=0xa]=_0x3e6264(0x179),_0x48e052[_0x48e052[_0x3e6264(0x332)]=0x1389]=_0x3e6264(0x332),_0x48e052[_0x48e052[_0x3e6264(0x2ab)]=0x1771]=_0x3e6264(0x2ab),_0x48e052[_0x48e052[_0x3e6264(0x1ad)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x48e052[_0x48e052[_0x3e6264(0x15f)]=0x1773]=_0x3e6264(0x15f),_0x48e052[_0x48e052[_0x3e6264(0x389)]=0x1b59]='APPLY_REJECT',_0x48e052[_0x48e052[_0x3e6264(0x364)]=0x1b5a]=_0x3e6264(0x364),_0x48e052[_0x48e052[_0x3e6264(0x305)]=0x1b5b]=_0x3e6264(0x305),_0x48e052[_0x48e052[_0x3e6264(0x185)]=0x1b5c]=_0x3e6264(0x185),_0x48e052[_0x48e052[_0x3e6264(0x3ac)]=0x1b5d]='APPLY_DUPLICATED',_0x48e052[_0x48e052[_0x3e6264(0x21a)]=0x1f41]=_0x3e6264(0x21a),_0x48e052[_0x48e052[_0x3e6264(0x2d7)]=0x2329]=_0x3e6264(0x2d7),_0x48e052[_0x48e052[_0x3e6264(0x1f0)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x48e052[_0x48e052[_0x3e6264(0x2ef)]=0x232b]=_0x3e6264(0x2ef),_0x48e052[_0x48e052[_0x3e6264(0x31c)]=0x232c]=_0x3e6264(0x31c),_0x48e052[_0x48e052[_0x3e6264(0x17a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x48e052[_0x48e052['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x3e6264(0x14d),_0x48e052[_0x48e052[_0x3e6264(0x35b)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x48e052[_0x48e052[_0x3e6264(0x2de)]=0x2713]=_0x3e6264(0x2de),_0x48e052[_0x48e052[_0x3e6264(0x308)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x48e052[_0x48e052[_0x3e6264(0x2ed)]=0x271a]=_0x3e6264(0x2ed),_0x48e052[_0x48e052[_0x3e6264(0x2b8)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x48e052[_0x48e052[_0x3e6264(0x18c)]=0x2af9]=_0x3e6264(0x18c),_0x48e052[_0x48e052[_0x3e6264(0x1dd)]=0x2ee1]=_0x3e6264(0x1dd),_0x48e052[_0x48e052[_0x3e6264(0x335)]=0x2ee2]='INVALID_INVITE_CODE',_0x48e052[_0x48e052[_0x3e6264(0x282)]=0x2ee3]=_0x3e6264(0x282),_0x48e052[_0x48e052['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x48e052[_0x48e052[_0x3e6264(0x223)]=0x2ee5]=_0x3e6264(0x223),_0x48e052[_0x48e052[_0x3e6264(0x3d3)]=0x32c9]=_0x3e6264(0x3d3),_0x48e052[_0x48e052[_0x3e6264(0x393)]=0x32ca]=_0x3e6264(0x393),_0x48e052[_0x48e052[_0x3e6264(0x3c5)]=0x32cb]=_0x3e6264(0x3c5),_0x48e052[_0x48e052['UNRECOGNIZED']=-0x1]=_0x3e6264(0x243),_0x48e052))(ke||{}),_s=Object[_0x3e6264(0x2f9)],hs=(_0x5694ba,_0x4b4e0c,_0x378803,_0x43596b)=>{const _0x1d1891=_0x3e6264;for(var _0x7791f2=_0x43596b>0x1?void 0x0:_0x43596b?_s(_0x4b4e0c,_0x378803):_0x4b4e0c,_0xc38bde=_0x5694ba[_0x1d1891(0x26b)]-0x1,_0x516197;_0xc38bde>=0x0;_0xc38bde--)(_0x516197=_0x5694ba[_0xc38bde])&&(_0x7791f2=_0x516197(_0x7791f2)||_0x7791f2);return _0x7791f2;},de=(_0x13e525,_0x12ab6e)=>(_0x56990e,_0x5990a6)=>_0x12ab6e(_0x56990e,_0x5990a6,_0x13e525);exports[_0x3e6264(0x1c9)]=class extends a[_0x3e6264(0x2e5)]{constructor(_0x5e3e81,_0x288c4e,_0x5a4c1d){const _0x6a59b1=_0x3e6264;super(),this[_0x6a59b1(0x371)]=_0x5e3e81,this['_httpService']=_0x288c4e,this[_0x6a59b1(0x18a)]=_0x5a4c1d;}async[_0x3e6264(0x148)](_0x317b58,_0x2c1367,_0x36e4e5,..._0x4c8e0a){const _0x1c30f4=_0x3e6264;var _0x3fed8e,_0x568a49,_0xb2c734,_0x5e27fa;const _0x2b012b=this[_0x1c30f4(0x371)][_0x1c30f4(0x195)]();if(!_0x2b012b)throw new Error(_0x1c30f4(0x24e));const _0x2757ee=((_0x3fed8e=this[_0x1c30f4(0x18a)][_0x1c30f4(0x1cb)](u[_0x1c30f4(0x3ae)]))!=null?_0x3fed8e:u[_0x1c30f4(0x2a8)])+'/'+_0x317b58+'/run/'+_0x2c1367,_0x126837=new URL(window[_0x1c30f4(0x1e2)][_0x1c30f4(0x30d)]),_0x5d36c1={'scriptId':_0x317b58,'runId':(_0x568a49=_0x126837[_0x1c30f4(0x175)][_0x1c30f4(0x320)]('runId'))!=null?_0x568a49:'','function':_0x2c1367,'unitId':_0x2b012b[_0x1c30f4(0x2ac)](),'argsOfFunction':JSON['stringify'](_0x4c8e0a),'invokeId':(_0xb2c734=_0x36e4e5[_0x1c30f4(0x22d)])!=null?_0xb2c734:'','executionId':(_0x5e27fa=_0x36e4e5['executionId'])!=null?_0x5e27fa:''};try{const _0x3afd92=await this[_0x1c30f4(0x3b1)]['post'](_0x2757ee,{'body':_0x5d36c1});return _0x3afd92[_0x1c30f4(0x149)][_0x1c30f4(0x328)]&&_0x3afd92[_0x1c30f4(0x149)]['error']['code']!==ke['OK']?_0x1c30f4(0x33e):_0x3afd92[_0x1c30f4(0x149)][_0x1c30f4(0x2a0)];}catch{return _0x1c30f4(0x33e);}}},exports[_0x3e6264(0x1c9)]=hs([de(0x0,a['IUniverInstanceService']),de(0x1,a['Inject'](q[_0x3e6264(0x34c)])),de(0x2,a[_0x3e6264(0x2f6)])],exports['RemoteUniscriptService']),exports[_0x3e6264(0x1ed)]=je,exports[_0x3e6264(0x23c)]=Ee,exports[_0x3e6264(0x378)]=Ae,exports[_0x3e6264(0x322)]=ls,exports[_0x3e6264(0x392)]=Be;
|
|
1
|
+
'use strict';const _0x56af3f=_0x408b;(function(_0x2b3d4b,_0x29afc4){const _0x1ab3d9=_0x408b,_0x408fd0=_0x2b3d4b();while(!![]){try{const _0x4d78aa=parseInt(_0x1ab3d9(0x399))/0x1+parseInt(_0x1ab3d9(0x295))/0x2+-parseInt(_0x1ab3d9(0x1ad))/0x3+-parseInt(_0x1ab3d9(0x2e2))/0x4*(-parseInt(_0x1ab3d9(0x152))/0x5)+-parseInt(_0x1ab3d9(0x1ce))/0x6+parseInt(_0x1ab3d9(0x345))/0x7+-parseInt(_0x1ab3d9(0x147))/0x8;if(_0x4d78aa===_0x29afc4)break;else _0x408fd0['push'](_0x408fd0['shift']());}catch(_0x42f96d){_0x408fd0['push'](_0x408fd0['shift']());}}}(_0xcc01,0x7a276));var Xe=Object[_0x56af3f(0x2ec)],Ge=(_0x212169,_0x2d1051,_0x3bef73)=>_0x2d1051 in _0x212169?Xe(_0x212169,_0x2d1051,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bef73}):_0x212169[_0x2d1051]=_0x3bef73,_=(_0x464d34,_0x416357,_0xd449c)=>Ge(_0x464d34,typeof _0x416357!='symbol'?_0x416357+'':_0x416357,_0xd449c);Object[_0x56af3f(0x2ec)](exports,Symbol['toStringTag'],{'value':_0x56af3f(0x195)});const u=require(_0x56af3f(0x3a1)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),q=require(_0x56af3f(0x370)),b=require('@univerjs/docs-ui'),qe=require(_0x56af3f(0x201)),d=require('rxjs'),Y=require(_0x56af3f(0x18e)),m=require(_0x56af3f(0x179)),Te=require('@univerjs/engine-formula'),g=require(_0x56af3f(0x1da)),$=require(_0x56af3f(0x34c)),G=require(_0x56af3f(0x3c7)),P=require(_0x56af3f(0x3c2)),O=require(_0x56af3f(0x3be)),T=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var ze=Object['getOwnPropertyDescriptor'],Je=(_0x21f210,_0x5ea52f,_0x3b1fcc,_0x2e0061)=>{for(var _0x17acdb=_0x2e0061>0x1?void 0x0:_0x2e0061?ze(_0x5ea52f,_0x3b1fcc):_0x5ea52f,_0x2254b1=_0x21f210['length']-0x1,_0x3e56e2;_0x2254b1>=0x0;_0x2254b1--)(_0x3e56e2=_0x21f210[_0x2254b1])&&(_0x17acdb=_0x3e56e2(_0x17acdb)||_0x17acdb);return _0x17acdb;},Oe=(_0x26031d,_0x142be7)=>(_0x3dc7aa,_0x261f29)=>_0x142be7(_0x3dc7aa,_0x261f29,_0x26031d);let fe=class extends a[_0x56af3f(0x2b9)]{constructor(_0x2fa7c3,_0x1af97b){const _0x25c4ff=_0x56af3f;super(),this[_0x25c4ff(0x36e)]=_0x2fa7c3,this[_0x25c4ff(0x311)]=_0x1af97b,this[_0x25c4ff(0x39b)]();}[_0x56af3f(0x39b)](){const _0x1fe099=_0x56af3f,_0x2c462f=this;this[_0x1fe099(0x2a6)](this[_0x1fe099(0x36e)][_0x1fe099(0x172)]({'onBeforePasteImage':async _0x5c78ea=>{const _0x3d7a0f=_0x1fe099,_0x553daf=await _0x2c462f[_0x3d7a0f(0x311)][_0x3d7a0f(0x1ca)](_0x5c78ea);return _0x553daf?{'source':_0x553daf[_0x3d7a0f(0x34a)],'imageSourceType':_0x553daf[_0x3d7a0f(0x279)]}:null;}}));}};fe=Je([Oe(0x0,b['IDocClipboardService']),Oe(0x1,qe[_0x56af3f(0x243)])],fe);const Re=['purple300',_0x56af3f(0x294),'verdancy600','red300',_0x56af3f(0x2ea),_0x56af3f(0x2f7)];class Ce extends a['Disposable']{constructor(){const _0x5b8f7d=_0x56af3f;super(...arguments),_(this,_0x5b8f7d(0x1fd),new Map()),_(this,_0x5b8f7d(0x35a),0x0);}[_0x56af3f(0x212)](_0xb8f890){const _0x4492a3=_0x56af3f;if(this['_assignedColors'][_0x4492a3(0x140)](_0xb8f890))return this['_assignedColors'][_0x4492a3(0x302)](_0xb8f890);const _0x11f13b=Re[this[_0x4492a3(0x35a)]];return this[_0x4492a3(0x35a)]=(this[_0x4492a3(0x35a)]+0x1)%Re[_0x4492a3(0x36a)],this[_0x4492a3(0x1fd)][_0x4492a3(0x3b5)](_0xb8f890,_0x11f13b),_0x11f13b;}}function we(_0x3f101e){let _0x2039b2='';for(const _0x91a3b1 of _0x3f101e){const {startOffset:_0x5367ef,endOffset:_0x15d93c,isActive:_0x48e658,rangeType:_0x4e6447,segmentId:_0x2ab581,segmentPage:_0xb896f8}=_0x91a3b1;_0x2039b2['length']&&(_0x2039b2+=','),_0x2039b2+=_0x5367ef+':'+_0x15d93c+':'+(_0x48e658?'1':'0')+':'+_0x4e6447+':'+_0x2ab581+':'+_0xb896f8;}return _0x2039b2;}function Ze(_0x19331c){const _0x3392f4=_0x56af3f,_0x3086e5=_0x19331c[_0x3392f4(0x14e)](','),_0x2fae80=[];for(const _0x2ec1af of _0x3086e5){const [_0x328612,_0x3f21ea,_0x1fc4ea,_0x5bab92,_0x4958cd,_0xe1612f]=_0x2ec1af['split'](':');_0x2fae80['push']({'startOffset':Number(_0x328612),'endOffset':Number(_0x3f21ea),'collapsed':_0x328612===_0x3f21ea,'isActive':_0x1fc4ea==='1','rangeType':_0x5bab92===a[_0x3392f4(0x1b9)][_0x3392f4(0x3ae)]?a['DOC_RANGE_TYPE'][_0x3392f4(0x3ae)]:a[_0x3392f4(0x1b9)][_0x3392f4(0x255)],'segmentId':typeof _0x4958cd=='string'?String(_0x4958cd):'','segmentPage':Number(_0xe1612f!=null?_0xe1612f:-0x1)});}return _0x2fae80[_0x3392f4(0x17b)](_0x334276=>_0x334276[_0x3392f4(0x325)])||(_0x2fae80[0x0][_0x3392f4(0x325)]=!0x0),_0x2fae80;}class pe extends a['RxDisposable']{constructor(){const _0x5718bc=_0x56af3f;super(...arguments),_(this,_0x5718bc(0x342),new d[(_0x5718bc(0x3c9))](null)),_(this,_0x5718bc(0x25f),this[_0x5718bc(0x342)][_0x5718bc(0x2fb)]());}[_0x56af3f(0x181)](_0x33c166){const _0x170948=_0x56af3f,{unitID:_0x4a87d9,memberID:_0xecd9e3,textRanges:_0x4b2670}=_0x33c166,_0x2c1169=we(_0x4b2670);if(_0x2c1169==='')return;const _0x3626d8={'unitID':_0x4a87d9,'memberID':_0xecd9e3,'selection':_0x2c1169};this[_0x170948(0x342)][_0x170948(0x30b)](_0x3626d8);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x189a80,_0x2af041,_0x2c23a6,_0x424b91)=>{const _0x3c4a04=_0x56af3f;for(var _0x389c51=_0x424b91>0x1?void 0x0:_0x424b91?Qe(_0x2af041,_0x2c23a6):_0x2af041,_0x58616d=_0x189a80[_0x3c4a04(0x36a)]-0x1,_0x16c168;_0x58616d>=0x0;_0x58616d--)(_0x16c168=_0x189a80[_0x58616d])&&(_0x389c51=_0x16c168(_0x389c51)||_0x389c51);return _0x389c51;},L=(_0x335da1,_0x509572)=>(_0x2cde2a,_0x207c38)=>_0x509572(_0x2cde2a,_0x207c38,_0x335da1);const tt=0x12c,st=0x64;let Se=class extends a[_0x56af3f(0x2b9)]{constructor(_0x124d15,_0x4f7329,_0x46ab2a,_0x21945a,_0x54b840,_0x502b45,_0x72f70f,_0x43cf9f,_0x54343d){const _0x2755f4=_0x56af3f;super(),_(this,_0x2755f4(0x34b),!0x1),_(this,_0x2755f4(0x39b),!0x1),_(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),_(this,_0x2755f4(0x2cc),this[_0x2755f4(0x1ea)][_0x2755f4(0x2fb)]()),_(this,'_roomMembers$',new d[(_0x2755f4(0x3c9))]([])),_(this,_0x2755f4(0x2d5),this[_0x2755f4(0x339)][_0x2755f4(0x215)](d[_0x2755f4(0x367)](tt))),_(this,_0x2755f4(0x369),a[_0x2755f4(0x1ac)](_0x4610d6=>{const _0x307e1e=_0x2755f4,_0x3666db={'eventID':m[_0x307e1e(0x2a1)][_0x307e1e(0x1a3)],'data':{'unitID':this[_0x307e1e(0x1cb)],'memberID':this[_0x307e1e(0x1b4)][_0x307e1e(0x1f5)](),'selection':we(_0x4610d6)}};this[_0x307e1e(0x1b4)]['send'](_0x3666db,this[_0x307e1e(0x1cb)]);},st)),(this[_0x2755f4(0x1cb)]=_0x124d15,this['_session']=_0x4f7329,this['_injector']=_0x46ab2a,this[_0x2755f4(0x24c)]=_0x21945a,this[_0x2755f4(0x203)]=_0x54b840,this[_0x2755f4(0x352)]=_0x502b45,this[_0x2755f4(0x1dd)]=_0x72f70f,this[_0x2755f4(0x214)]=_0x43cf9f,this[_0x2755f4(0x198)]=_0x54343d);}get[_0x56af3f(0x274)](){const _0x30a480=_0x56af3f;return this['_cursorInfo$'][_0x30a480(0x2e7)]();}get[_0x56af3f(0x228)](){const _0x35f303=_0x56af3f;return this['_roomMembers$'][_0x35f303(0x2e7)]();}[_0x56af3f(0x3bd)](){const _0x209646=_0x56af3f;super[_0x209646(0x3bd)](),this[_0x209646(0x1ea)][_0x209646(0x30b)](new Map()),this['_cursorInfo$']['complete'](),this[_0x209646(0x339)][_0x209646(0x30b)]([]),this[_0x209646(0x339)][_0x209646(0x270)]();}[_0x56af3f(0x362)](){const _0x16651f=_0x56af3f;this[_0x16651f(0x39b)]||(this['_init']=!0x0,this[_0x16651f(0x1b4)][_0x16651f(0x37c)][_0x16651f(0x215)](d[_0x16651f(0x273)](this[_0x16651f(0x170)]))[_0x16651f(0x17d)](_0x7a2279=>{const _0x428379=_0x16651f;_0x7a2279===u['SessionStatus'][_0x428379(0x24b)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x16651f(0x1b4)][_0x16651f(0x360)][_0x16651f(0x215)](d[_0x16651f(0x273)](this[_0x16651f(0x170)]))[_0x16651f(0x17d)](_0x313f40=>{const _0x5c5947=_0x16651f,_0x1740fe=_0x313f40[_0x5c5947(0x380)];_0x1740fe===m[_0x5c5947(0x2a1)][_0x5c5947(0x1a3)]&&this[_0x5c5947(0x2ef)](_0x313f40),_0x1740fe===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x5c5947(0x39c)](_0x313f40);}),this[_0x16651f(0x2a6)](this[_0x16651f(0x198)][_0x16651f(0x31c)](_0x4d32d2=>{const _0x27bf72=_0x16651f,_0x4092ed=_0x4d32d2[_0x27bf72(0x1f8)];_0x4092ed!=null&&this[_0x27bf72(0x34b)]&&_0x4d32d2['id']===Y['SetTextSelectionsOperation']['id']&&_0x4092ed[_0x27bf72(0x24a)]===this[_0x27bf72(0x1cb)]&&_0x4092ed[_0x27bf72(0x2af)]===!0x1&&_0x4092ed[_0x27bf72(0x202)]['length']>0x0&&this[_0x27bf72(0x369)](_0x4092ed[_0x27bf72(0x202)]);})),this[_0x16651f(0x352)][_0x16651f(0x25f)]['pipe'](d['takeUntil'](this[_0x16651f(0x170)]))['subscribe'](_0x143bad=>{const _0x4241e0=_0x16651f;if((_0x143bad==null?void 0x0:_0x143bad['unitID'])!==this[_0x4241e0(0x1cb)])return;const _0x3fe262={'eventID':m[_0x4241e0(0x2a1)][_0x4241e0(0x1a3)],'data':_0x143bad};this[_0x4241e0(0x2ef)](_0x3fe262);}),this[_0x16651f(0x2a6)](this['_commandService'][_0x16651f(0x31c)](_0x423844=>{const _0x35058a=_0x16651f;if(_0x423844[_0x35058a(0x1f8)]==null)return;const _0x35f137=_0x423844[_0x35058a(0x1f8)];if(_0x423844['id']!==Y[_0x35058a(0x1ba)]['id']||_0x35f137[_0x35058a(0x24a)]!==this[_0x35058a(0x1cb)])return;const _0x5c125a={'id':'doc.mutation.rich-text-editing','params':_0x35f137},_0x396e35=this[_0x35058a(0x274)];for(const [_0x429b54,_0x2c5964]of _0x396e35){const _0x4a0267={'id':_0x35058a(0x14a),'params':{'unitId':this[_0x35058a(0x1cb)],'actions':null,'textRanges':_0x2c5964[_0x35058a(0x202)]}},_0x475d9e=this['_transformService']['transformMutation'](_0x5c125a,_0x4a0267,!0x1);if(m[_0x35058a(0x2e1)](_0x475d9e))throw _0x475d9e[_0x35058a(0x252)];_0x396e35[_0x35058a(0x3b5)](_0x429b54,{..._0x2c5964,'ranges':_0x475d9e[_0x35058a(0x193)][_0x35058a(0x1f8)][_0x35058a(0x1b7)]});}queueMicrotask(()=>{const _0xc02ff9=_0x35058a;this[_0xc02ff9(0x1ea)][_0xc02ff9(0x30b)](_0x396e35);});})));}['_onCursorUpdate'](_0xa5d880){const _0x3338c5=_0x56af3f;var _0x5d48f5,_0x7a2e0;const {memberID:_0x5d39de,selection:_0x5d0bae}=_0xa5d880[_0x3338c5(0x180)],_0x113ed9=Ze(_0x5d0bae),_0x554277=(_0x7a2e0=(_0x5d48f5=this[_0x3338c5(0x203)][_0x3338c5(0x2b3)](this[_0x3338c5(0x1cb)],_0x5d39de))==null?void 0x0:_0x5d48f5[_0x3338c5(0x39a)])!=null?_0x7a2e0:'Unknown\x20user',_0x51991e={'color':this[_0x3338c5(0x24c)][_0x3338c5(0x212)](_0x5d39de),'name':_0x554277,'ranges':_0x113ed9},_0x19d603=this['cursorInfo'];_0x19d603[_0x3338c5(0x3b5)](_0x5d39de,_0x51991e),this[_0x3338c5(0x1ea)][_0x3338c5(0x30b)](_0x19d603);}[_0x56af3f(0x39c)](_0x2838c3){const _0x4942be=_0x56af3f,{memberID:_0x461e7b}=_0x2838c3[_0x4942be(0x180)],_0x5e3584=this[_0x4942be(0x274)];_0x5e3584['delete'](_0x461e7b),this[_0x4942be(0x1ea)][_0x4942be(0x30b)](_0x5e3584);}[_0x56af3f(0x2f5)](){const _0x209823=_0x56af3f;var _0x4f3e88;if(this['_online']=!0x0,((_0x4f3e88=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4f3e88['getUnitId']())!==this[_0x209823(0x1cb)])return;const _0x2b75d4=this[_0x209823(0x3b1)][_0x209823(0x302)](Y[_0x209823(0x22b)])[_0x209823(0x2dd)]();Array[_0x209823(0x22f)](_0x2b75d4)&&_0x2b75d4[_0x209823(0x36a)]>0x0&&this[_0x209823(0x369)](_0x2b75d4);}[_0x56af3f(0x239)](){const _0x37e234=_0x56af3f;this[_0x37e234(0x34b)]=!0x1;}};Se=et([L(0x2,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),L(0x3,a['Inject'](Ce)),L(0x4,a[_0x56af3f(0x253)](u[_0x56af3f(0x227)])),L(0x5,a[_0x56af3f(0x253)](pe)),L(0x6,m[_0x56af3f(0x275)]),L(0x7,a[_0x56af3f(0x3bb)]),L(0x8,a[_0x56af3f(0x1f7)])],Se);function _0xcc01(){const _0x12f888=['FETCH_MISS','merge','InsertRangeMoveDownCommandId','_hideTimer','OnLineSingle','fillStyle','executeCommand','_collabCursorState$','disposeUnit','TRANSFORM_CHANGE_OBSERVABLE_TYPE','5713736TjUEWD','type','round','xlink:href','_handleJoinEvent','source','_online','rxjs/operators','getSheetObject','1em','values','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','transformByState','_syncEditingCollabCursorService','toDisposable','IMessageService','_saveTaskMap','_eventUnsubscribe','clsx','getVpScrollXYInfoByPosToVp','_initResize','_colorIndex','SNAPSHOT_INVALID_SNAPSHOT','includes','runRefRangeMutations','_transformUndoRedoStack','onlineStatusTitle','event$','onPointerLeave$','init','evenodd','children','YUUMI_SUBSCRIPTION_NOT_FOUND','push','debounceTime','SetWorksheetActivateCommand','_updateLocalCursor','length','transformIMECache','_uiPartsService','registerComponent','_docClipboardService','indexOf','@univerjs/network','RemoveRowCommandId','hasOwnProperty','DataLoaderService','sheetId','_ensureSubject','transformMutationsWithChangeset','function','transformSelections','hovered','setStateCache','random','sessionStatus$','removeParam','OFFLINE','_httpService','eventID','max','startColumn','getActiveSheet','CollaborationStatus','Vector2','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','searchParams','currentColor','_docTransformStateCacheService','editingUnit','_collaborationUIEventService','_getAnchorBounding','range','startRow','connectInjector','_messageService','transformRemoteChangeset','handleDeleteRangeMoveLeft','executionId','#fff','path','_scheduleHeartbeat','measureText','M0\x200H16V16H0z','188335WBJrNP','name','_init','_onCursorDelete','Workbook','getCurrent','getRenderById','m1Prime','@univerjs-pro/collaboration-client','IRenderManagerService','handleMoveRange','_render','getCoordByCell','SUBMIT_CHANGESET_TIMEOUT','_notificationService','OffLineSingle','getSkeleton','onStarting','_name','getLocalCacheKey','LOCAL_CACHE_INTERVAL','TEXT','width','EMAIL_HAS_BEEN_BOUND','_injector','SessionStatus','USER_NOT_INVITED_CODE','getUndoRedoMutationParamsCache','set','Injector','NOT_COLLAB','DeleteRangeMoveUpCommandId','ColorKit','_collabCursorController','IUniverInstanceService','_docSyncEditingCollabCursorService','dispose','@univerjs/ui','_logService','_anchor','NO_OTHER_CLIENTS_EDITING','react/jsx-runtime','_initStatusComponent','_getScale','UNRECOGNIZED','location','@univerjs/sheets-ui','session.collaboration-timeout','BehaviorSubject','backgroundColor','getCollabCursors$','LICENSE_EXPORT_SIZE_EXCEEDED','_heartbeatTimer','_scene','has','ILocalCacheService','translate(.97)','EffectRefRangId','...','offline','_status$','10607240qGZaGf','_updateCollabCursors','sessionTicket','doc.mutation.rich-text-editing','fromEvent','unload','useObservable','split','registerBeforeClose','UnitStatus','_drawTextRange','1730810vJvOoM','fill','skeleton','use','fillRule','_getSessionTicket','Error','actions','LICENSE_MAX_UNITS_EXCEEDED','unit','_disabled','transformStateCache','currentTheme$','UNDEFINED','arc','getItem','getOwnPropertyDescriptor','addEventListener','PY_RUNTIME_SCRIPT_ERROR','handleIRemoveRow','with','invokeId','getCellPositionByOffset','on-line-single_clip0_910_349','LOCAL_CACHE_INTERVAL_KEY','_backgroundColor','collabStatus.notCollab','univer-online-status-title','throttleTime','toString','dispose$','setConfig','addClipboardHook','size','NodePositionConvertToCursor','_transformHistoryAndStateStack','activeSheet$','_localeService','_cachedData','@univerjs-pro/collaboration','PENDING','some','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','subscribe','restore','addObject','data','syncEditingCollabCursor','WebBrowserSingleActiveUnitService','APPLY_DUPLICATED','storage','YUUMI_RATE_OVER_LIMIT','SetDocZoomRatioOperation','_anchorDot','UNIVER_DOC','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initDependencies','updateOfflineData','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_collaborationController','@univerjs/docs','CommandType','replace','map','ticket','m2Prime','WECHAT_HAS_BEEN_BOUND','Module','INotificationService','_hovered','_commandService','CLOSE_ROOM','clipPath','_hover','_removeClearOtherTimer','href','post','[RemoteUniscriptService]:\x20no\x20focused\x20unit','attrs','black','then','UPDATE_CURSOR','_getMergeRange','icon','univerjs-icon\x20univerjs-icon-','_entities','_unitOnClients','univer-online-status-icon','collaboration.single-unit.warning','handleDeleteRangeMoveUp','debounce','456711jUdDSe','TOO_MANY_REQUESTS','_transformPreviousActiveRange','JOIN_ROOM_FAILED','LocaleService','APPLY_REVISION_CONFILICT','setAlpha','_session','history','AWAITING_WITH_PENDING','textRanges','debug','DOC_RANGE_TYPE','RichTextEditingMutation','generateRandomId','off-line-single_clip0_910_343','add','urlChange$','fillText','engine','_startSheetCollabCursor','mapTo','current','_docSkeleton','LICENSE_IMPORT_SIZE_EXCEEDED','_saveCache','_cursorShapes','hide','exhaustSavingTask','saveImage','unitID','_scheduleSaving','_docStateChangeManagerService','3304428plIyIr','useRef','DEFAULT_WS_SESSION_TICKET_URL','forwardRef','memberID','DocCollaborationEntity','IUIPartsService','handleInsertCol','_handleHeartbeatEvent','DependentOn','AWAITING','entries','@univerjs/sheets','getOwnPropertySymbols','url(#$1','_transformService','parse','_registerDependencies','saveOfflineData','className','SOCKET_FAILED_RETRY','createInstance','_drawRectRange','replaceDocRanges','MessageType','_handleEvent','ENSURE_SNAPSHOT_EXECUTION','transformMutation','_cursorInfo$','getUniverSheetInstance','_entityInit$','search','saveTaskMap','_themeService','_updateURLWithCurrentState','getMergeData','setInterval','newValue','permission.content','getMemberID','DeleteRangeMoveLeftCommandId','ICommandService','params','svg','LICENSE_DISTRO_REJECTED','_refreshCollabCursors','assign','_assignedColors','getCurrentSelections','_shapes','online','@univerjs/drawing','ranges','_memberService','SheetsSelectionsService','startsWith','status$','DocStateChangeManagerService','switchMap','LOGIN_FAILED','_configService','CONFLICT','font','IBeforeCloseService','DesktopCollaborationStatusDisplayController','collab-rect-range-','drawWith','_docTransformIMECacheService','assignAColorForMemberID','CollaborationUIEventService','_univerInstanceService','pipe','_renderManagerService','CollaborationUIEventId','onlineStatusIcon','INVALID_ARGUMENT','getViewport','mutations','isTransformMutationsWithChangesetSuccess','useCallback','_startDocCollabCursor','Subject','Rectangle','findNodePositionByCharIndex','div','getCurrentUnitForType','replaceState','serializeRangeWithSheet','runOnServer','MemberService','roomMembers','labelPosition','getSheetId','DocSelectionManagerService','getParam','none','RemoveColCommandId','isArray','BuiltInUIPart','CollaborationSessionService','_range','IURLService','selection','WebSocketService','collab-text-range-','wsSessionTicketUrl','ACTIVE_UNIT_EVENT_CHANNEL','_toggleOffline','SNAPSHOT_HAS_BEEN_REMOVED','RegularPolygon','_removeCollabCursors','handleInsertRangeMoveRight','setTimeout','requireSession','getStateCache','call','code','IImageIoService','collaboration-client-ui.config','_getSaveTimeout','UniverInstanceType','selections','getAncestorScale','VIEW_MAIN','unitId','ONLINE','_colorAssignService','registerDependencies','defs','show','Shape','stringify','error','Inject','INVITE_CODE_HAS_BEEN_UES','RECT','Rect','_scheduleClearOtherTimer','COLORS','_lastPointer','Plugin','setUndoRedoMutationParamsCache','0\x200\x2017\x2016','0\x200\x2016\x2016','triggerDblclick','collabCursorState$','flatMap','column','uni.network.url-service','collab-client.tooltip.reconnect','subunit','[CollaborationDataLoaderController]','send','_clearOtherTimers','handleInsertRow','_localCacheService','getColor','jsx','enableLocalCache','session.connection-failed','trim','RevisionService','complete','_unitStatus','unsubscribe','takeUntil','cursorInfo','ITransformService','registerRefRange','loadUnit','subscribeEvent','imageSourceType','combineLatest','Disposable','closePath','onLocalMutation','INVALID_INVITE_CODE','INVITE_CODE_ALREADY_BOUND','subUnitId','runId','_initCommandExecutedListener','UniverCollaborationClientPlugin','addHandlerCallback','DocIMEInputManagerService','color','_setupBeforeClosingHandler','CHANGESET_REVISION_CONFILICT','_doCreateSocket','onPointerMove$','MoveRangeCommandId','createSocket','SheetCollabCursorShape','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ILocalStorageService','mask','top','prototype','_send','jiqing500','1664630zPPmks','collabStatus.syncing','_selfUnitIDs','clearTimeout','colorChannel1','handleInsertRangeMoveDown','NodePositionConvertToRectRange','apply','APPLY_REJECT','clearInterval','useDependency','_cursor','CollaborationEvent','_urlService','moveTo','getUnhiddenWorksheets','body','disposeWithMe','getRelativeToViewportCoord','session.will-retry','_id','getFocusedUnit','_initStatusListener','resize','onMouseMove','_revisionService','isEditing','_draw','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','loadOfflineData','getMember','_localStorageService','_collabSessionService','YUUMI_URL_COL_OUT_OF_RANGE','undoState','row','RxDisposable','ThemeService','InsertRangeMoveRightCommandId','ISnapshotServerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','pushState','_setupSubUnitSync','defIds','CollaborationStatusDisplay','_context','filter','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','text','unshift','IConfigService','on-line-single','BrowserCollaborationSocketService','propertyIsEnumerable','getTypeOfUnitDisposed$','cursorInfo$','_handleLeaveEvent','HTTPService','_refRangeService','CollaborationSocketService','COMPLETION_FINISHED','UNAUTHENTICATED','focused$','contains','roomMembers$','_initEvent','Tools','delete','_registerRenderDependencies','Warning','_sheetSkeletonManagerService','lineTo','getDocRanges','INTERNAL_ERROR','deepClone','univer-flex\x20univer-items-center','isTransformMutationFailure','8tbWydz','getSheetBySheetId','setShapeProps','_handleHover','setItem','getValue','setParam','TEXT_RANGE_LAYER_INDEX','blue400','forEach','defineProperty','Unknown\x20user','key','_onCursorUpdate','_updateSubUnitFromURLParams','concat','ILogService','IRemoteInstanceService','_initEntityListener','_toggleOnline','HEADER_MENU','gold400','createIdentifier','CollaborationController','getConfig','asObservable','collab-text-anchor-','getUnitId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_createSocketURL','getUnitStatus$','shareReplay','get','WebURLService','INVITE_CODE_REQUIRED','addObjects','redoState','UniverIcon','SheetSkeletonManagerService','bottom','CollaborationDataLoaderController','next','Failed','touchDependencies','_textBubble','_docTransformSelectionsService','NOT_FOUND','_imageIoService','displayName','transform','application/json','CONNECTOR_DATA_TOO_LARGE','_instanceService','onPointerEnter$','_onRefRangeChange','collaboration.closeRoom','extend','onTransformChange$','onCommandExecuted','currentSkeleton$','beginPath','idSuffix','tag','_labelPosition','string','from','toRgbString','isActive','handleIRemoveCol','_color','PERMISSION_DENIED','_cursors','collabStatus.fetchMiss','UNIVER_SHEET','YUUMI_NO_CUBOID_FOR_QUESTION','save','docStateChange$','MOBILE_HAS_BEEN_BOUND','_dataLoaderService','APPLY_NON_SEQUENTIAL_REVISION','getTypeOfUnitAdded$','entityInit$','SetSelectionsOperation','getRangePointData','RemoteUniscriptService','ALREADY_EXISTS','_beforeCloseService','_roomMembers$','createElement'];_0xcc01=function(){return _0x12f888;};return _0xcc01();}var nt=Object[_0x56af3f(0x162)],it=(_0x2bf849,_0x24ea6,_0x453aaf,_0x1472fd)=>{const _0x27d030=_0x56af3f;for(var _0x5ed4a4=_0x1472fd>0x1?void 0x0:_0x1472fd?nt(_0x24ea6,_0x453aaf):_0x24ea6,_0x45a764=_0x2bf849[_0x27d030(0x36a)]-0x1,_0x46d258;_0x45a764>=0x0;_0x45a764--)(_0x46d258=_0x2bf849[_0x45a764])&&(_0x5ed4a4=_0x46d258(_0x5ed4a4)||_0x5ed4a4);return _0x5ed4a4;},A=(_0xdccbf1,_0x3d662e)=>(_0x25599e,_0x29f3d3)=>_0x3d662e(_0x25599e,_0x29f3d3,_0xdccbf1);const rt=0x12c,ot=0x64,at=()=>{let _0x457e18=[],_0x34a90b=!0x1;return _0xb96c4b=>{const _0x15d338=_0x408b;_0x457e18[_0x15d338(0x366)](_0xb96c4b),_0x34a90b||(_0x34a90b=!0x0,setTimeout(()=>{const _0x383e63=_0x15d338;_0x457e18[_0x383e63(0x2eb)](_0x2a0c58=>_0x2a0c58()),_0x457e18=[],_0x34a90b=!0x1;}));};};let Ie=class extends a[_0x56af3f(0x2b9)]{constructor(_0x5b32db,_0x240964,_0x54016a,_0x30a1b1,_0x4286de,_0x4633ec,_0x4484b0,_0x1424d4){const _0x470290=_0x56af3f;super(),_(this,_0x470290(0x34b),!0x1),_(this,_0x470290(0x39b),!0x1),_(this,_0x470290(0x1ea),new d['BehaviorSubject'](new Map())),_(this,_0x470290(0x2cc),this[_0x470290(0x1ea)][_0x470290(0x2fb)]()),_(this,_0x470290(0x339),new d[(_0x470290(0x3c9))]([])),_(this,_0x470290(0x2d5),this[_0x470290(0x339)][_0x470290(0x215)](d[_0x470290(0x367)](rt))),_(this,_0x470290(0x369),a[_0x470290(0x1ac)]((_0x41c25e,_0x2938)=>{const _0x3e6441=_0x470290,_0x38db15={'eventID':m[_0x3e6441(0x2a1)][_0x3e6441(0x1a3)],'data':{'unitID':this['unitID'],'memberID':this[_0x3e6441(0x1b4)][_0x3e6441(0x1f5)](),'selection':Te[_0x3e6441(0x225)](_0x41c25e,_0x2938[_0x3e6441(0x38d)])}};this[_0x3e6441(0x1b4)][_0x3e6441(0x266)](_0x38db15,this[_0x3e6441(0x1cb)]);},ot)),(this[_0x470290(0x1cb)]=_0x5b32db,this[_0x470290(0x1b4)]=_0x240964,this['_injector']=_0x54016a,this[_0x470290(0x24c)]=_0x30a1b1,this['_memberService']=_0x4286de,this['_univerInstanceService']=_0x4633ec,this[_0x470290(0x198)]=_0x4484b0,this[_0x470290(0x2cf)]=_0x1424d4);}get['cursorInfo'](){const _0x20d4d3=_0x56af3f;return this[_0x20d4d3(0x1ea)]['getValue']();}get[_0x56af3f(0x228)](){const _0x1f4f7e=_0x56af3f;return this['_roomMembers$'][_0x1f4f7e(0x2e7)]();}[_0x56af3f(0x3bd)](){const _0x2cff89=_0x56af3f;super[_0x2cff89(0x3bd)](),this[_0x2cff89(0x1ea)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x2cff89(0x339)][_0x2cff89(0x30b)]([]),this[_0x2cff89(0x339)][_0x2cff89(0x270)]();}[_0x56af3f(0x362)](){const _0x440249=_0x56af3f;this[_0x440249(0x39b)]||(this[_0x440249(0x39b)]=!0x0,this[_0x440249(0x1b4)][_0x440249(0x37c)]['pipe'](d[_0x440249(0x273)](this[_0x440249(0x170)]))['subscribe'](_0x528db6=>{const _0x1cb61b=_0x440249;_0x528db6===u[_0x1cb61b(0x3b2)][_0x1cb61b(0x24b)]?this[_0x1cb61b(0x2f5)]():this[_0x1cb61b(0x239)]();}),this['_session'][_0x440249(0x360)][_0x440249(0x215)](d[_0x440249(0x273)](this[_0x440249(0x170)]))[_0x440249(0x17d)](_0x354dd6=>{const _0x466d7f=_0x440249,_0x83f697=_0x354dd6[_0x466d7f(0x380)];_0x83f697===m['CollaborationEvent'][_0x466d7f(0x1a3)]&&this['_onCursorUpdate'](_0x354dd6),_0x83f697===m[_0x466d7f(0x2a1)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x354dd6);}),this['_onRefRangeChange'](),this[_0x440249(0x2a6)](this[_0x440249(0x198)][_0x440249(0x31c)](_0x5dd05c=>{const _0x559113=_0x440249;if(this[_0x559113(0x34b)]&&_0x5dd05c['id']===g[_0x559113(0x334)]['id']&&_0x5dd05c['params'][_0x559113(0x24a)]===this[_0x559113(0x1cb)]){const _0x51b593=_0x5dd05c[_0x559113(0x1f8)];this[_0x559113(0x369)](_0x51b593[_0x559113(0x280)],_0x51b593[_0x559113(0x247)][0x0]);}})));}[_0x56af3f(0x2ef)](_0x3c54de){const _0x28ec2d=_0x56af3f;var _0x1bab36,_0x22991c;const {memberID:_0x295cf8,selection:_0x569103}=_0x3c54de[_0x28ec2d(0x180)],{sheetName:_0x2d2752,range:_0x52e115}=Te['deserializeRangeWithSheet'](_0x569103),_0x5148c6={'name':(_0x22991c=(_0x1bab36=this['_memberService']['getMember'](this['unitID'],_0x295cf8))==null?void 0x0:_0x1bab36[_0x28ec2d(0x39a)])!=null?_0x22991c:_0x28ec2d(0x2ed),'range':this[_0x28ec2d(0x1a4)](_0x2d2752,_0x52e115),'sheetID':_0x2d2752,'color':this[_0x28ec2d(0x24c)][_0x28ec2d(0x212)](_0x295cf8),'selection':_0x569103},_0x2f28cc=this[_0x28ec2d(0x274)];_0x2f28cc['set'](_0x295cf8,_0x5148c6),this[_0x28ec2d(0x1ea)]['next'](_0x2f28cc);}['_onCursorDelete'](_0x468ac8){const _0x2e2507=_0x56af3f,{memberID:_0x221fff}=_0x468ac8['data'],_0x5aa2ce=this[_0x2e2507(0x274)];_0x5aa2ce[_0x2e2507(0x2d8)](_0x221fff),this[_0x2e2507(0x1ea)]['next'](_0x5aa2ce);}['_getMergeRange'](_0x10f135,_0x2d9caa){const _0x3f912b=_0x56af3f;var _0x1b093b,_0x9b43e3;const _0x3f9294=(_0x9b43e3=(_0x1b093b=this[_0x3f912b(0x214)][_0x3f912b(0x1eb)](this['unitID']))==null?void 0x0:_0x1b093b['getSheetBySheetId'](_0x10f135))==null?void 0x0:_0x9b43e3[_0x3f912b(0x1f1)]();return(_0x3f9294==null?void 0x0:_0x3f9294['find'](_0x5ba997=>a[_0x3f912b(0x220)][_0x3f912b(0x2d4)](_0x5ba997,_0x2d9caa)))||_0x2d9caa;}[_0x56af3f(0x318)](){const _0x33012f=_0x56af3f,_0x4423a5=new a['DisposableCollection'](),_0x3876fc=at(),_0xf262e6=()=>{const _0x4d4ac6=_0x408b;_0x4423a5[_0x4d4ac6(0x3bd)]();const _0x3f01a7=(_0x1547a5,_0x54485a,_0x534cc1,_0x27f675)=>{const _0x234770=_0x4d4ac6;let _0x16c35f=[];switch(_0x1547a5['id']){case g['EffectRefRangId'][_0x234770(0x1f6)]:{_0x16c35f=g[_0x234770(0x392)](_0x1547a5,_0x27f675);break;}case g['EffectRefRangId'][_0x234770(0x3b8)]:{_0x16c35f=g[_0x234770(0x1ab)](_0x1547a5,_0x27f675);break;}case g[_0x234770(0x143)]['InsertColCommandId']:{_0x16c35f=g[_0x234770(0x1d5)](_0x1547a5,_0x27f675);break;}case g['EffectRefRangId'][_0x234770(0x33d)]:{_0x16c35f=g[_0x234770(0x29a)](_0x1547a5,_0x27f675);break;}case g[_0x234770(0x143)][_0x234770(0x2bb)]:{_0x16c35f=g[_0x234770(0x23d)](_0x1547a5,_0x27f675);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x16c35f=g[_0x234770(0x268)](_0x1547a5,_0x27f675);break;}case g[_0x234770(0x143)][_0x234770(0x28b)]:{_0x16c35f=g[_0x234770(0x3a3)](_0x1547a5,_0x27f675);break;}case g[_0x234770(0x143)][_0x234770(0x22e)]:{_0x16c35f=g[_0x234770(0x326)](_0x1547a5,_0x27f675);break;}case g['EffectRefRangId'][_0x234770(0x371)]:{_0x16c35f=g[_0x234770(0x165)](_0x1547a5,_0x27f675);break;}}const _0xda37ac=g[_0x234770(0x35d)](_0x16c35f,_0x27f675),_0x265369=this['cursorInfo'][_0x234770(0x302)](_0x54485a);if(_0x265369&&_0xda37ac){const _0x1d3cec={..._0x265369,'range':_0xda37ac};this[_0x234770(0x274)]['set'](_0x54485a,_0x1d3cec),_0x3876fc(()=>{const _0x1169bf=_0x234770,_0x36bcbe=this[_0x1169bf(0x2cf)][_0x1169bf(0x276)](_0xda37ac,_0x162bf6=>(_0x36bcbe['dispose'](),_0x3f01a7(_0x162bf6,_0x54485a,_0x534cc1,_0xda37ac)));_0x4423a5[_0x1169bf(0x1bd)](_0x36bcbe);});}return{'redos':[],'undos':[]};};this[_0x4d4ac6(0x274)][_0x4d4ac6(0x2eb)]((_0x4cef7a,_0x12cc5f)=>{const _0x479a34=_0x4d4ac6,{range:_0x10a59e,sheetID:_0x5282a5}=_0x4cef7a,_0x218212=this[_0x479a34(0x2cf)][_0x479a34(0x276)](_0x10a59e,_0x3b063a=>(_0x218212[_0x479a34(0x3bd)](),_0x3f01a7(_0x3b063a,_0x12cc5f,_0x5282a5,_0x10a59e)));_0x4423a5['add'](_0x218212);});};this[_0x33012f(0x2a6)](a[_0x33012f(0x353)](this[_0x33012f(0x1ea)][_0x33012f(0x17d)](()=>{_0xf262e6();})));}[_0x56af3f(0x2f5)](){const _0xddd1f6=_0x56af3f;var _0x45fc46,_0xbd480e;if(this[_0xddd1f6(0x34b)]=!0x0,((_0x45fc46=this[_0xddd1f6(0x214)][_0xddd1f6(0x2aa)]())==null?void 0x0:_0x45fc46[_0xddd1f6(0x2fd)]())!==this['unitID'])return;const _0x446852=(_0xbd480e=this[_0xddd1f6(0x3b1)][_0xddd1f6(0x302)](g[_0xddd1f6(0x204)])[_0xddd1f6(0x1fe)]())==null?void 0x0:_0xbd480e[0x0],_0x5dd8d4=this[_0xddd1f6(0x214)][_0xddd1f6(0x223)](a[_0xddd1f6(0x246)][_0xddd1f6(0x32b)])[_0xddd1f6(0x383)]();_0x446852&&_0x5dd8d4&&this[_0xddd1f6(0x369)](_0x5dd8d4[_0xddd1f6(0x22a)](),_0x446852);}[_0x56af3f(0x239)](){const _0x1a95f4=_0x56af3f;this[_0x1a95f4(0x34b)]=!0x1;}};Ie=it([A(0x2,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),A(0x3,a[_0x56af3f(0x253)](Ce)),A(0x4,a[_0x56af3f(0x253)](u[_0x56af3f(0x227)])),A(0x5,a[_0x56af3f(0x3bb)]),A(0x6,a[_0x56af3f(0x1f7)]),A(0x7,a[_0x56af3f(0x253)](g['RefRangeService']))],Ie);var ct=Object[_0x56af3f(0x162)],lt=(_0x2152b9,_0x1abcab,_0x57589a,_0x589962)=>{const _0x30c04f=_0x56af3f;for(var _0x660b62=_0x589962>0x1?void 0x0:_0x589962?ct(_0x1abcab,_0x57589a):_0x1abcab,_0x431aaf=_0x2152b9[_0x30c04f(0x36a)]-0x1,_0xcb5f11;_0x431aaf>=0x0;_0x431aaf--)(_0xcb5f11=_0x2152b9[_0x431aaf])&&(_0x660b62=_0xcb5f11(_0x660b62)||_0x660b62);return _0x660b62;},ie=(_0x54261a,_0x56d4e0)=>(_0x5a62b2,_0x116e80)=>_0x56d4e0(_0x5a62b2,_0x116e80,_0x54261a);let x=class extends a[_0x56af3f(0x2b9)]{constructor(_0x13a35c,_0x19dec5,_0x4b8ce8){const _0x51ab9f=_0x56af3f;super(),_(this,_0x51ab9f(0x1a7),new Map()),_(this,_0x51ab9f(0x1ec),new d[(_0x51ab9f(0x21f))]()),(this[_0x51ab9f(0x214)]=_0x13a35c,this[_0x51ab9f(0x3b1)]=_0x19dec5,this[_0x51ab9f(0x2b5)]=_0x4b8ce8,this[_0x51ab9f(0x39b)]());}[_0x56af3f(0x3bd)](){const _0x54284a=_0x56af3f;super[_0x54284a(0x3bd)](),this[_0x54284a(0x1ec)][_0x54284a(0x270)](),this['_entities'][_0x54284a(0x2eb)](_0x19a9aa=>_0x19a9aa[_0x54284a(0x3bd)]());}[_0x56af3f(0x3cb)](_0x113ee4){const _0x321bb6=_0x56af3f;return this['_entities'][_0x321bb6(0x140)](_0x113ee4)?this['_entities'][_0x321bb6(0x302)](_0x113ee4)['cursorInfo$']:this['_entityInit$'][_0x321bb6(0x215)](d[_0x321bb6(0x2c3)](_0x3ea74b=>_0x3ea74b[_0x321bb6(0x1cb)]===_0x113ee4),d['switchMap'](_0x183670=>_0x183670[_0x321bb6(0x2cc)]));}[_0x56af3f(0x39b)](){const _0x256a1c=_0x56af3f;this[_0x256a1c(0x214)]['getTypeOfUnitAdded$'](a[_0x256a1c(0x246)][_0x256a1c(0x32b)])[_0x256a1c(0x215)](d[_0x256a1c(0x273)](this[_0x256a1c(0x170)]))[_0x256a1c(0x17d)](async _0x4e1b60=>{const _0x539f31=_0x256a1c,_0x33993c=_0x4e1b60['getUnitId'](),_0x34637e=await this[_0x539f31(0x1c1)](_0x33993c);this[_0x539f31(0x1ec)]['next'](_0x34637e),this[_0x539f31(0x1a7)][_0x539f31(0x3b5)](_0x33993c,_0x34637e);}),this[_0x256a1c(0x214)][_0x256a1c(0x332)](a['UniverInstanceType'][_0x256a1c(0x188)])[_0x256a1c(0x215)](d[_0x256a1c(0x273)](this['dispose$']))[_0x256a1c(0x215)](d['filter'](_0x53225e=>!_0x53225e[_0x256a1c(0x2fd)]()[_0x256a1c(0x205)]('__')))[_0x256a1c(0x17d)](async _0x1d7bd0=>{const _0x5528ad=_0x256a1c,_0x47a6d8=_0x1d7bd0[_0x5528ad(0x2fd)](),_0x3c33d9=await this[_0x5528ad(0x21e)](_0x47a6d8);this[_0x5528ad(0x1ec)][_0x5528ad(0x30b)](_0x3c33d9),this[_0x5528ad(0x1a7)]['set'](_0x47a6d8,_0x3c33d9);}),d[_0x256a1c(0x33c)](this[_0x256a1c(0x214)][_0x256a1c(0x2cb)](a[_0x256a1c(0x246)][_0x256a1c(0x188)]),this['_univerInstanceService'][_0x256a1c(0x2cb)](a[_0x256a1c(0x246)]['UNIVER_SHEET']))['pipe'](d[_0x256a1c(0x273)](this[_0x256a1c(0x170)]))[_0x256a1c(0x17d)](_0x2dd50f=>{const _0x52c706=_0x256a1c,_0x33f1ce=_0x2dd50f[_0x52c706(0x2fd)](),_0x23455b=this[_0x52c706(0x1a7)][_0x52c706(0x302)](_0x33f1ce);_0x23455b&&(_0x23455b[_0x52c706(0x3bd)](),this[_0x52c706(0x1a7)][_0x52c706(0x2d8)](_0x33f1ce));});}async['_startSheetCollabCursor'](_0x178f33){const _0x36172a=_0x56af3f,_0x343ffd=await this['_collabSessionService'][_0x36172a(0x23f)](_0x178f33),_0x1ae101=this[_0x36172a(0x3b1)][_0x36172a(0x1e3)](Ie,_0x178f33,_0x343ffd);return _0x1ae101[_0x36172a(0x362)](),_0x1ae101;}async['_startDocCollabCursor'](_0x44e1f2){const _0x35d91f=_0x56af3f,_0x38f524=await this[_0x35d91f(0x2b5)][_0x35d91f(0x23f)](_0x44e1f2),_0x175d23=this['_injector']['createInstance'](Se,_0x44e1f2,_0x38f524);return _0x175d23[_0x35d91f(0x362)](),_0x175d23;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a['Inject'](a[_0x56af3f(0x3b6)])),ie(0x2,a[_0x56af3f(0x253)](u[_0x56af3f(0x231)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x3c37d8,_0x2f10c3){const _0x4afb1f=_0x56af3f;let {radius:_0x1e4beb,width:_0x3a38e6,height:_0x32d758}=_0x2f10c3;_0x1e4beb=_0x1e4beb!=null?_0x1e4beb:0x0,_0x3a38e6=_0x3a38e6!=null?_0x3a38e6:0x1e,_0x32d758=_0x32d758!=null?_0x32d758:0x1e;let _0x46d600=0x0,_0x59c1ad=0x0,_0x4040a0=0x0;_0x46d600=_0x59c1ad=_0x4040a0=Math['min'](_0x1e4beb,_0x3a38e6/0x2,_0x32d758/0x2),_0x3c37d8[_0x4afb1f(0x31e)](),_0x3c37d8[_0x4afb1f(0x2a3)](_0x46d600,0x0),_0x3c37d8['lineTo'](_0x3a38e6-_0x59c1ad,0x0),_0x3c37d8[_0x4afb1f(0x160)](_0x3a38e6-_0x59c1ad,_0x59c1ad,_0x59c1ad,Math['PI']*0x3/0x2,0x0,!0x1),_0x3c37d8[_0x4afb1f(0x2dc)](_0x3a38e6,_0x32d758-_0x4040a0),_0x3c37d8[_0x4afb1f(0x160)](_0x3a38e6-_0x4040a0,_0x32d758-_0x4040a0,_0x4040a0,0x0,Math['PI']/0x2,!0x1),_0x3c37d8[_0x4afb1f(0x2dc)](0x0,_0x32d758),_0x3c37d8[_0x4afb1f(0x2dc)](0x0,_0x46d600),_0x3c37d8['arc'](_0x46d600,_0x46d600,_0x46d600,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3c37d8[_0x4afb1f(0x27c)](),_0x2f10c3[_0x4afb1f(0x153)]&&(_0x3c37d8[_0x4afb1f(0x32d)](),_0x3c37d8[_0x4afb1f(0x340)]=_0x2f10c3[_0x4afb1f(0x153)],_0x2f10c3[_0x4afb1f(0x156)]===_0x4afb1f(0x363)?_0x3c37d8[_0x4afb1f(0x153)]('evenodd'):_0x3c37d8[_0x4afb1f(0x153)](),_0x3c37d8[_0x4afb1f(0x17e)]());}class te extends p['Shape']{constructor(_0x1c8323,_0x20937c){const _0x54838e=_0x56af3f;super(_0x1c8323,_0x20937c),_(this,_0x54838e(0x286)),_(this,_0x54838e(0x2c5)),(this[_0x54838e(0x286)]=_0x20937c==null?void 0x0:_0x20937c[_0x54838e(0x286)],this[_0x54838e(0x2c5)]=_0x20937c==null?void 0x0:_0x20937c['text']);}static['drawWith'](_0x11e60a,_0x8e94bb){const _0x512d22=_0x56af3f,{text:_0xa13c5a,color:_0x7c8151}=_0x8e94bb;_0x11e60a[_0x512d22(0x32d)](),_0x11e60a[_0x512d22(0x20c)]=_0x512d22(0x2b1);const _0x7d19=_0x11e60a['measureText'](_0xa13c5a)['width'],_0x107813=Math['min'](_0x7d19+0x2*re,De);ht(_0x11e60a,{'height':K,'radius':0x4,'width':_0x107813,'fill':_0x7c8151}),_0x11e60a[_0x512d22(0x340)]='#FFF';const _0x2d07cb=re,_0x336dc0=K-_t,_0x187e06=De-0x2*re;if(_0x7d19>_0x187e06){let _0x31ce59='',_0x4b5ba4=0x0;for(const _0x52d6bc of _0xa13c5a){const _0x38e198=_0x11e60a[_0x512d22(0x397)](_0x52d6bc)[_0x512d22(0x3af)];if(_0x4b5ba4+_0x38e198<=_0x187e06-_0x11e60a['measureText'](_0x512d22(0x144))[_0x512d22(0x3af)])_0x31ce59+=_0x52d6bc,_0x4b5ba4+=_0x38e198;else{_0x31ce59+=_0x512d22(0x144);break;}}_0x11e60a['fillText'](_0x31ce59,_0x2d07cb,_0x336dc0);}else _0x11e60a[_0x512d22(0x1bf)](_0xa13c5a,_0x2d07cb,_0x336dc0);_0x11e60a[_0x512d22(0x17e)]();}[_0x56af3f(0x2b0)](_0x30d044){te['drawWith'](_0x30d044,this);}}const oe=_0x56af3f(0x2fc),ut=_0x56af3f(0x236),dt=_0x56af3f(0x20f),k=0x6,ft=1.5,ae=0x4,St=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x3b93c9,_0x337ac7,_0x5d7585,_0x28eba9){const _0x4322e6=_0x56af3f;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x4322e6(0x187),null),_(this,_0x4322e6(0x33e),null),_(this,'_eventUnsubscribe',null),(this[_0x4322e6(0x2a0)]=_0x3b93c9,this[_0x4322e6(0x3ce)]=_0x337ac7,this[_0x4322e6(0x1c4)]=_0x5d7585,this['_document']=_0x28eba9,this[_0x4322e6(0x3a4)]());}set[_0x56af3f(0x19b)](_0x32d389){const _0x4c8746=_0x56af3f;_0x32d389?(this[_0x4c8746(0x187)]&&this['_anchorDot'][_0x4c8746(0x1c8)](),this[_0x4c8746(0x30e)]&&this[_0x4c8746(0x30e)][_0x4c8746(0x24f)]()):(this[_0x4c8746(0x187)]&&this[_0x4c8746(0x187)][_0x4c8746(0x24f)](),this['_textBubble']&&this[_0x4c8746(0x30e)][_0x4c8746(0x1c8)]());}[_0x56af3f(0x3bd)](){const _0x236e22=_0x56af3f;for(const _0x447ba1 of this[_0x236e22(0x1ff)])_0x447ba1['dispose']();this['_textBubble']&&this[_0x236e22(0x30e)]['dispose'](),this[_0x236e22(0x187)]&&this[_0x236e22(0x187)][_0x236e22(0x3bd)](),this[_0x236e22(0x3c0)]&&this[_0x236e22(0x3c0)][_0x236e22(0x3bd)](),this[_0x236e22(0x356)]&&this[_0x236e22(0x356)]();}[_0x56af3f(0x3a4)](){const _0x53a72b=_0x56af3f;var _0x576a71;const {_docSkeleton:_0x99560,_document:_0x55e7e6}=this,{color:_0x224ea6,name:_0x5ba2ee,ranges:_0x5bd2ec}=this['_cursor'],_0x35b365=_0x55e7e6['getOffsetConfig'](),{docsLeft:_0x169976,docsTop:_0x12b0c1}=_0x35b365,_0x1eeed8=new b[(_0x53a72b(0x174))](_0x35b365,_0x99560);for(const {startOffset:_0x311ccc,endOffset:_0xde039e,rangeType:_0x3aed5c,segmentId:_0x437763,segmentPage:_0x3896e1,collapsed:_0x5b8ab4,isActive:_0x47e111}of _0x5bd2ec){const _0x18ab58=_0x99560['findNodePositionByCharIndex'](_0x311ccc,!0x0,_0x437763,_0x3896e1);let _0x36fb45=_0x99560[_0x53a72b(0x221)](_0xde039e,!0x0,_0x437763,_0x3896e1);if(_0x36fb45==null&&(_0x36fb45=_0x99560[_0x53a72b(0x221)](_0xde039e-0x1,!0x1,_0x437763,_0x3896e1)),_0x47e111){const {contentBoxPointGroup:_0x22bec0}=_0x1eeed8['getRangePointData'](_0x36fb45,_0x36fb45);if(_0x22bec0['length']===0x0)continue;this['_drawAnchor'](_0x224ea6,_0x22bec0,_0x169976,_0x12b0c1,_0x5ba2ee),this[_0x53a72b(0x356)]=this['_handleHover']();}if(_0x18ab58&&_0x36fb45){if(_0x3aed5c===a[_0x53a72b(0x1b9)][_0x53a72b(0x255)]){const _0x4d5b39=new b[(_0x53a72b(0x29b))](_0x35b365,_0x99560),{pointGroup:_0x533be8}=(_0x576a71=_0x4d5b39[_0x53a72b(0x335)](_0x18ab58,_0x36fb45))!=null?_0x576a71:{};if(_0x533be8==null||_0x533be8[_0x53a72b(0x36a)]===0x0)continue;this['_drawRectRange'](_0x224ea6,_0x533be8,_0x169976,_0x12b0c1);}else{if(!_0x5b8ab4){const {borderBoxPointGroup:_0x4cc427}=_0x1eeed8[_0x53a72b(0x335)](_0x18ab58,_0x36fb45);if(_0x4cc427[_0x53a72b(0x36a)]===0x0)continue;this[_0x53a72b(0x151)](_0x224ea6,_0x4cc427,_0x169976,_0x12b0c1);}}}}}['_drawAnchor'](_0x56ffce,_0x324e5b,_0x3504ce,_0x307093,_0x48967e){const _0x11a151=_0x56af3f,_0x1aa98a=this[_0x11a151(0x38c)](_0x324e5b),{left:_0x115517,top:_0x4f3e0d,height:_0x30395b}=_0x1aa98a,_0x2c09ce=this[_0x11a151(0x3c4)](),_0x56a3c3=St/_0x2c09ce,_0x4f8251=new p[(_0x11a151(0x256))](oe+a['Tools'][_0x11a151(0x1bb)](k),{'left':_0x115517+_0x3504ce-_0x56a3c3,'top':_0x4f3e0d+_0x307093,'height':_0x30395b,'width':ft,'fill':_0x56ffce||p[_0x11a151(0x26a)](a['COLORS'][_0x11a151(0x1a1)],0x0),'strokeWidth':_0x56a3c3,'stroke':It,'evented':!0x0});this['_anchor']=_0x4f8251,this[_0x11a151(0x3ce)]['addObject'](_0x4f8251,b[_0x11a151(0x2e9)]);const _0x2f4e87=new p[(_0x11a151(0x256))](oe+a[_0x11a151(0x2d7)][_0x11a151(0x1bb)](k),{'left':_0x115517+_0x3504ce-_0x56a3c3,'top':_0x4f3e0d+_0x307093-ae/0x2,'height':ae,'width':ae,'fill':_0x56ffce||p[_0x11a151(0x26a)](a[_0x11a151(0x258)][_0x11a151(0x1a1)],0x0),'strokeWidth':0x0,'stroke':_0x56ffce||p[_0x11a151(0x26a)](a[_0x11a151(0x258)]['black'],0x0),'evented':!0x1});this[_0x11a151(0x187)]=_0x2f4e87,this[_0x11a151(0x3ce)][_0x11a151(0x17f)](_0x2f4e87,b[_0x11a151(0x2e9)]);const _0x58fa9b=new te(oe+a[_0x11a151(0x2d7)]['generateRandomId'](k),{'left':_0x115517+_0x3504ce-_0x56a3c3,'top':_0x4f3e0d+_0x307093-K,'text':_0x48967e,'color':_0x56ffce});this['_textBubble']=_0x58fa9b,this[_0x11a151(0x3ce)]['addObject'](_0x58fa9b,b[_0x11a151(0x2e9)]),this[_0x11a151(0x19b)]=!0x1;}[_0x56af3f(0x2e5)](){const _0x3b26e4=_0x56af3f,_0x4126f0=this[_0x3b26e4(0x3c0)][_0x3b26e4(0x317)][_0x3b26e4(0x278)](()=>{const _0x14fa4d=_0x3b26e4;this[_0x14fa4d(0x19b)]=!0x0;}),_0x448180=this[_0x3b26e4(0x3c0)][_0x3b26e4(0x361)]['subscribeEvent'](()=>{const _0x179a04=_0x3b26e4;this[_0x179a04(0x33e)]&&clearTimeout(this[_0x179a04(0x33e)]),this[_0x179a04(0x33e)]=setTimeout(()=>{const _0x3e2326=_0x179a04;this[_0x3e2326(0x19b)]=!0x1;},0x7d0);});return()=>{const _0x49f72a=_0x3b26e4;_0x4126f0['unsubscribe'](),_0x448180[_0x49f72a(0x272)]();};}['_drawTextRange'](_0x46c3ec,_0x2cd8c0,_0x55224b,_0x59afd1){const _0x3ef419=_0x56af3f,_0x11a457=new a['ColorKit'](_0x46c3ec)[_0x3ef419(0x1b3)](0.2)[_0x3ef419(0x324)](),_0xf70de4=new p['RegularPolygon'](ut+a[_0x3ef419(0x2d7)][_0x3ef419(0x1bb)](k),{'pointsGroup':_0x2cd8c0,'fill':_0x11a457||p[_0x3ef419(0x26a)](a[_0x3ef419(0x258)][_0x3ef419(0x1a1)],0.2),'left':_0x55224b,'top':_0x59afd1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3ef419(0x1ff)][_0x3ef419(0x366)](_0xf70de4),this[_0x3ef419(0x3ce)]['addObject'](_0xf70de4,b['TEXT_RANGE_LAYER_INDEX']);}[_0x56af3f(0x1e4)](_0x3b1677,_0x16b692,_0x2a01a6,_0x25e17e){const _0x4dad91=_0x56af3f,_0xd7a177=new a[(_0x4dad91(0x3b9))](_0x3b1677)[_0x4dad91(0x1b3)](0.2)[_0x4dad91(0x324)](),_0x12ba76=new p[(_0x4dad91(0x23b))](dt+a[_0x4dad91(0x2d7)][_0x4dad91(0x1bb)](k),{'pointsGroup':_0x16b692,'fill':_0xd7a177||p[_0x4dad91(0x26a)](a[_0x4dad91(0x258)][_0x4dad91(0x1a1)],0.2),'left':_0x2a01a6,'top':_0x25e17e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4dad91(0x1ff)][_0x4dad91(0x366)](_0x12ba76),this['_scene'][_0x4dad91(0x17f)](_0x12ba76,b[_0x4dad91(0x2e9)]);}[_0x56af3f(0x38c)](_0x235307){const _0x9413ad=_0x235307[0x0],_0xe4f206=_0x9413ad[0x0],_0x32c5d4=_0x9413ad[0x2],{x:_0x18dc22,y:_0x1df9b3}=_0xe4f206,{x:_0x1f1c7b,y:_0x216305}=_0x32c5d4;return{'left':_0x18dc22,'top':_0x1df9b3,'width':_0x1f1c7b-_0x18dc22,'height':_0x216305-_0x1df9b3};}['_getScale'](){const _0x20438a=_0x56af3f,{scaleX:_0x2ce7c5,scaleY:_0x4b54e3}=this[_0x20438a(0x3ce)]['getAncestorScale']();return Math[_0x20438a(0x381)](_0x2ce7c5,_0x4b54e3);}}var vt=Object[_0x56af3f(0x162)],gt=(_0x43fbd0,_0x4cefbd,_0x56f5f9,_0x588cb6)=>{const _0x5549b1=_0x56af3f;for(var _0x5f585a=_0x588cb6>0x1?void 0x0:_0x588cb6?vt(_0x4cefbd,_0x56f5f9):_0x4cefbd,_0x3af053=_0x43fbd0[_0x5549b1(0x36a)]-0x1,_0x4a4ea3;_0x3af053>=0x0;_0x3af053--)(_0x4a4ea3=_0x43fbd0[_0x3af053])&&(_0x5f585a=_0x4a4ea3(_0x5f585a)||_0x5f585a);return _0x5f585a;},V=(_0x546687,_0x273953)=>(_0x133f31,_0x5549c4)=>_0x273953(_0x133f31,_0x5549c4,_0x546687);let ve=class extends a['RxDisposable']{constructor(_0x21d700,_0x5e7b0f,_0xe7413f,_0xd522ae,_0xc0169f){const _0x35ca22=_0x56af3f;super(),_(this,_0x35ca22(0x1c7),[]),_(this,'_cursors',[]),(this[_0x35ca22(0x2c2)]=_0x21d700,this['_docSkeletonManagerService']=_0x5e7b0f,this['_collabCursorController']=_0xe7413f,this[_0x35ca22(0x198)]=_0xd522ae,this[_0x35ca22(0x1ef)]=_0xc0169f,this[_0x35ca22(0x39b)]());}['_init'](){const _0x2d7f01=_0x56af3f,_0x446a63=this[_0x2d7f01(0x2c2)][_0x2d7f01(0x24a)],_0x69b131=this['_docSkeletonManagerService'];this[_0x2d7f01(0x2a6)](d['combineLatest']([this['_collabCursorController'][_0x2d7f01(0x3cb)](_0x446a63),this[_0x2d7f01(0x1ef)][_0x2d7f01(0x15e)]])[_0x2d7f01(0x215)]($['map'](([_0x1a37dc,_0x556066])=>({'skeleton':_0x69b131[_0x2d7f01(0x3a9)](),'cursors':[..._0x1a37dc[_0x2d7f01(0x34f)]()][_0x2d7f01(0x260)](_0x2ec63c=>({..._0x2ec63c,'color':_0x556066[_0x2ec63c[_0x2d7f01(0x286)]]}))})))['subscribe'](_0x47b8a6=>{const _0x3eb6bf=_0x2d7f01;if(this[_0x3eb6bf(0x23c)](),_0x47b8a6){const {skeleton:_0x538aac,cursors:_0x3b7869}=_0x47b8a6;this[_0x3eb6bf(0x148)](_0x538aac,_0x3b7869);}})),this[_0x2d7f01(0x359)](),this[_0x2d7f01(0x282)]();}[_0x56af3f(0x148)](_0x41332c,_0x52ee47){const _0x2e947f=_0x56af3f,{scene:_0x178cde,mainComponent:_0x43464a}=this[_0x2e947f(0x2c2)],_0x179db4=_0x52ee47['map'](_0x51a153=>new Ue(_0x51a153,_0x178cde,_0x41332c,_0x43464a));this['_cursorShapes']=_0x179db4,this[_0x2e947f(0x329)]=_0x52ee47;}[_0x56af3f(0x1fb)](){const _0x50a483=_0x56af3f;this['_removeCollabCursors']();const {scene:_0xc9a095,mainComponent:_0x212519}=this[_0x50a483(0x2c2)],_0xc0e33e=this['_docSkeletonManagerService'][_0x50a483(0x3a9)](),_0x3b1f9b=this[_0x50a483(0x329)][_0x50a483(0x191)](_0x4aa31c=>new Ue(_0x4aa31c,_0xc9a095,_0xc0e33e,_0x212519));this[_0x50a483(0x1c7)]=_0x3b1f9b;}[_0x56af3f(0x23c)](){const _0x14c443=_0x56af3f;this[_0x14c443(0x1c7)][_0x14c443(0x2eb)](_0x190d46=>_0x190d46[_0x14c443(0x3bd)]()),this[_0x14c443(0x1c7)]=[];}[_0x56af3f(0x282)](){const _0x505de8=_0x56af3f,_0x26b0be=[b[_0x505de8(0x186)]['id']];this[_0x505de8(0x2a6)](this[_0x505de8(0x198)]['onCommandExecuted'](_0x4d5db8=>{const _0x544fde=_0x505de8;_0x26b0be[_0x544fde(0x35c)](_0x4d5db8['id'])&&_0x4d5db8[_0x544fde(0x1f8)][_0x544fde(0x24a)]===this[_0x544fde(0x2c2)][_0x544fde(0x24a)]&&this[_0x544fde(0x1fb)]();}));}[_0x56af3f(0x359)](){const _0x5754f3=_0x56af3f;this[_0x5754f3(0x2a6)](a['fromEventSubject'](this['_context'][_0x5754f3(0x1c0)][_0x5754f3(0x31b)])[_0x5754f3(0x215)]($[_0x5754f3(0x2c3)](_0x14dde1=>_0x14dde1[_0x5754f3(0x346)]===p[_0x5754f3(0x344)][_0x5754f3(0x2ac)]),$[_0x5754f3(0x16e)](0x10))[_0x5754f3(0x17d)](()=>{const _0x51e0d2=_0x5754f3;this[_0x51e0d2(0x1fb)]();}));}};ve=gt([V(0x1,a[_0x56af3f(0x253)](Y['DocSkeletonManagerService'])),V(0x2,a[_0x56af3f(0x253)](x)),V(0x3,a['ICommandService']),V(0x4,a[_0x56af3f(0x253)](a[_0x56af3f(0x2ba)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x56af3f(0x250)]{constructor(_0x1c16fd,_0x1f5ce2){const _0x91d550=_0x56af3f;super(_0x1c16fd,_0x1f5ce2),_(this,_0x91d550(0x327)),_(this,_0x91d550(0x197),!0x1),_(this,_0x91d550(0x232)),_(this,_0x91d550(0x3ab),''),_(this,'_labelPosition',_0x91d550(0x291)),_(this,_0x91d550(0x16b)),(_0x1f5ce2&&this[_0x91d550(0x2e4)](_0x1f5ce2),this[_0x91d550(0x317)]['subscribeEvent'](()=>this[_0x91d550(0x2e4)]({'hovered':!0x0})),this[_0x91d550(0x361)]['subscribeEvent'](()=>this[_0x91d550(0x2e4)]({'hovered':!0x1})));}[_0x56af3f(0x2e4)](_0x33562a){const _0x123f0e=_0x56af3f;var _0x8f793e,_0x587a7e,_0x30fd82,_0x174e82,_0x383a8c,_0x5bf27c;this[_0x123f0e(0x327)]=(_0x8f793e=_0x33562a[_0x123f0e(0x286)])!=null?_0x8f793e:this[_0x123f0e(0x327)],this['_hovered']=(_0x587a7e=_0x33562a[_0x123f0e(0x379)])!=null?_0x587a7e:this[_0x123f0e(0x197)],this[_0x123f0e(0x232)]=(_0x30fd82=_0x33562a[_0x123f0e(0x38d)])!=null?_0x30fd82:this[_0x123f0e(0x232)],this[_0x123f0e(0x3ab)]=(_0x174e82=_0x33562a[_0x123f0e(0x39a)])!=null?_0x174e82:this[_0x123f0e(0x3ab)],this[_0x123f0e(0x321)]=(_0x383a8c=_0x33562a[_0x123f0e(0x229)])!=null?_0x383a8c:this['_labelPosition'],this['_backgroundColor']=(_0x5bf27c=_0x33562a[_0x123f0e(0x3ca)])!=null?_0x5bf27c:this[_0x123f0e(0x16b)],this[_0x123f0e(0x351)]({'width':_0x33562a[_0x123f0e(0x3af)],'height':_0x33562a['height']});}['onMouseMove'](_0x5a33d0){const _0x425896=_0x56af3f,{row:_0x1f95fd,column:_0x1d8eac}=_0x5a33d0;if(_0x1f95fd>=this[_0x425896(0x232)][_0x425896(0x38e)]&&_0x1f95fd<=this['_range']['endRow']&&_0x1d8eac>=this['_range'][_0x425896(0x382)]&&_0x1d8eac<=this[_0x425896(0x232)]['endColumn']){this[_0x425896(0x2e4)]({'hovered':!0x0});return;}this[_0x425896(0x2e4)]({'hovered':!0x1});}[_0x56af3f(0x25e)](_0x483d79){return!0x1;}[_0x56af3f(0x2b0)](_0x3e99cd){const _0x53b56d=_0x56af3f;p[_0x53b56d(0x256)][_0x53b56d(0x210)](_0x3e99cd,{'width':this[_0x53b56d(0x3af)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x53b56d(0x327)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x3e99cd[_0x53b56d(0x32d)](),_0x3e99cd[_0x53b56d(0x313)](0x1,0x0,0x0,0x1,this['width'],this[_0x53b56d(0x321)]===_0x53b56d(0x309)?0x0:-0x14),te[_0x53b56d(0x210)](_0x3e99cd,{'text':this['_name'],'color':this['_color']}),_0x3e99cd[_0x53b56d(0x17e)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x134ba5,_0x3ab161,_0x5e6eed,_0x4b683c)=>{const _0x30ed8e=_0x56af3f;for(var _0x5a32a1=_0x4b683c>0x1?void 0x0:_0x4b683c?pt(_0x3ab161,_0x5e6eed):_0x3ab161,_0xe8c440=_0x134ba5[_0x30ed8e(0x36a)]-0x1,_0x54f5f2;_0xe8c440>=0x0;_0xe8c440--)(_0x54f5f2=_0x134ba5[_0xe8c440])&&(_0x5a32a1=_0x54f5f2(_0x5a32a1)||_0x5a32a1);return _0x5a32a1;},ce=(_0x39f19b,_0x17c165)=>(_0x33cc8c,_0x8d875e)=>_0x17c165(_0x33cc8c,_0x8d875e,_0x39f19b);const Et=0x1389;let ge=class extends a[_0x56af3f(0x2b9)]{constructor(_0x1f19f1,_0xfc7506,_0xd34145,_0xfae13d){const _0x295066=_0x56af3f;super(),_(this,_0x295066(0x329),new Set()),_(this,_0x295066(0x259),null),(this[_0x295066(0x2c2)]=_0x1f19f1,this[_0x295066(0x2db)]=_0xfc7506,this['_collabCursorController']=_0xd34145,this[_0x295066(0x1ef)]=_0xfae13d,this['_init']());}['_init'](){const _0x9e5502=_0x56af3f;this[_0x9e5502(0x2db)][_0x9e5502(0x31d)][_0x9e5502(0x215)]($[_0x9e5502(0x273)](this['dispose$']),$[_0x9e5502(0x208)](_0x1abf23=>{const _0x457b7d=_0x9e5502;if(_0x1abf23){const _0x2255c8=_0x1abf23[_0x457b7d(0x374)];return d[_0x457b7d(0x27a)](this[_0x457b7d(0x3ba)][_0x457b7d(0x3cb)](this['_context'][_0x457b7d(0x24a)]),this[_0x457b7d(0x1ef)][_0x457b7d(0x15e)])[_0x457b7d(0x215)]($[_0x457b7d(0x191)](([_0x1bb839,_0xf5d698])=>{const _0x1e79ee=_0x457b7d,_0x26b23e=new Map();return _0x1bb839[_0x1e79ee(0x2eb)]((_0x214314,_0x391188)=>{const _0x27dcdf=_0x1e79ee;if(_0x214314['sheetID']===_0x2255c8){const _0x443891={..._0x214314};_0x443891[_0x27dcdf(0x286)]=_0xf5d698[_0x214314[_0x27dcdf(0x286)]],_0x26b23e['set'](_0x391188,_0x443891);}}),{'skeleton':_0x1abf23,'cursors':_0x26b23e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x269b58,cursors:_0x2be49e})=>{const _0x5c67bf=_0x9e5502;this[_0x5c67bf(0x23c)](),_0x269b58&&this[_0x5c67bf(0x148)](_0x269b58,_0x2be49e);}),this['_sheetSkeletonManagerService'][_0x9e5502(0x31d)][_0x9e5502(0x17d)](_0x25191c=>{const _0x2ead63=_0x9e5502;if(_0x25191c==null)return;const {skeleton:_0x1246f6}=_0x25191c,{scene:_0x4fea5e}=this['_context'];_0x4fea5e[_0x2ead63(0x28a)][_0x2ead63(0x278)](a[_0x2ead63(0x1ac)](_0x6c557=>{const _0x42e80c=_0x2ead63;var _0x3ba276,_0x41fcd5;const {offsetX:_0x193e28,offsetY:_0x523a9f}=_0x6c557,{x:_0x1d4808,y:_0x57a7a1}=_0x4fea5e[_0x42e80c(0x2a7)](p[_0x42e80c(0x385)]['FromArray']([_0x193e28,_0x523a9f])),{scaleX:_0x23f8c4,scaleY:_0x1d2f65}=_0x4fea5e[_0x42e80c(0x248)](),_0x582418=_0x4fea5e[_0x42e80c(0x21a)](p['SHEET_VIEWPORT_KEY'][_0x42e80c(0x249)]),_0x2c3cc9=_0x4fea5e[_0x42e80c(0x358)](p[_0x42e80c(0x385)]['FromArray']([_0x1d4808,_0x57a7a1]),_0x582418),_0x2422ef=_0x1246f6[_0x42e80c(0x168)](_0x193e28,_0x523a9f,_0x23f8c4,_0x1d2f65,_0x2c3cc9);((_0x3ba276=this[_0x42e80c(0x259)])==null?void 0x0:_0x3ba276[_0x42e80c(0x261)])===_0x2422ef['column']&&((_0x41fcd5=this[_0x42e80c(0x259)])==null?void 0x0:_0x41fcd5[_0x42e80c(0x2b8)])===_0x2422ef[_0x42e80c(0x2b8)]||this['_cursors'][_0x42e80c(0x2eb)](_0x5cea90=>{const _0x4af26e=_0x42e80c;_0x5cea90[_0x4af26e(0x2ad)](_0x2422ef);});},0x64));});}['_updateCollabCursors'](_0x5cb952,_0x3df03e){const _0x1cafdb=_0x56af3f;var _0x19c079;const _0x4c1a23=(_0x19c079=this[_0x1cafdb(0x2db)][_0x1cafdb(0x39e)]())==null?void 0x0:_0x19c079[_0x1cafdb(0x154)];if(!_0x4c1a23)return;const _0x38891d=this['_getSheetObject']();if(!_0x38891d)return;this['_cursors'][_0x1cafdb(0x2eb)](_0x44dd83=>{_0x44dd83['makeDirty']();});const {scene:_0x4a0585}=_0x38891d,_0x3a168a=Tt(Array[_0x1cafdb(0x323)](_0x3df03e[_0x1cafdb(0x34f)]()))[_0x1cafdb(0x191)](_0x2c5df8=>{const _0x5edc7b=_0x1cafdb,{color:_0x143b31,range:_0x96693a,name:_0x15434c,selection:_0x23f192,sheetID:_0x450f91}=_0x2c5df8,{startColumn:_0x3ef9dc,startRow:_0x44a03a,endColumn:_0x3effe4,endRow:_0x511425}=_0x96693a,_0x39610b=G[_0x5edc7b(0x3a5)](_0x44a03a,_0x3ef9dc,_0x4a0585,_0x4c1a23),_0x17e6ae=G['getCoordByCell'](_0x511425,_0x3effe4,_0x4a0585,_0x4c1a23),{columnHeaderHeightAndMarginTop:_0x584cfb}=_0x4c1a23,{startX:_0x33e4fc,startY:_0x22cfc1}=_0x39610b,{endX:_0x47be8e,endY:_0x29d75a}=_0x17e6ae,_0x14d945=_0x47be8e-_0x33e4fc,_0x1290d2=_0x29d75a-_0x22cfc1,_0x240b6d={'labelPosition':_0x22cfc1-_0x584cfb>=K?_0x5edc7b(0x291):_0x5edc7b(0x309),'sheetID':_0x450f91,'range':_0x96693a,'color':_0x143b31,'name':_0x15434c,'selection':_0x23f192,'left':_0x33e4fc,'top':_0x22cfc1,'width':_0x14d945,'height':_0x1290d2,'evented':!0x1,'zIndex':Et};return new Ae(_0x15434c,_0x240b6d);});_0x4a0585[_0x1cafdb(0x305)](_0x3a168a,mt),this[_0x1cafdb(0x329)]=new Set(_0x3a168a);}['_removeCollabCursors'](){const _0x45a8a4=_0x56af3f;var _0x1e427b;(_0x1e427b=this[_0x45a8a4(0x329)])==null||_0x1e427b['forEach'](_0x117843=>_0x117843['dispose']());}['_getSheetObject'](){const _0x5a183a=_0x56af3f;return G[_0x5a183a(0x34d)](this[_0x5a183a(0x2c2)][_0x5a183a(0x15b)],this[_0x5a183a(0x2c2)]);}};ge=bt([ce(0x1,a[_0x56af3f(0x253)](G[_0x56af3f(0x308)])),ce(0x2,a[_0x56af3f(0x253)](x)),ce(0x3,a[_0x56af3f(0x253)](a[_0x56af3f(0x2ba)]))],ge);function Tt(_0x2b56b1){const _0x2fd844=_0x56af3f,_0x3d2633=new Map();return _0x2b56b1[_0x2fd844(0x2eb)](_0x4d5de2=>{const _0xa7535a=_0x2fd844;if(_0x3d2633[_0xa7535a(0x140)](_0x4d5de2[_0xa7535a(0x234)])){const _0x1f6d92=_0x3d2633[_0xa7535a(0x302)](_0x4d5de2[_0xa7535a(0x234)]);_0x1f6d92['name']+=',\x20'+_0x4d5de2[_0xa7535a(0x39a)];}else _0x3d2633[_0xa7535a(0x3b5)](_0x4d5de2[_0xa7535a(0x234)],_0x4d5de2);}),Array[_0x2fd844(0x323)](_0x3d2633['values']());}var E=function(){const _0x489bbc=_0x56af3f;return E=Object[_0x489bbc(0x1fc)]||function(_0x336192){const _0xff2b9a=_0x489bbc;for(var _0x407b7c,_0x3aed0e=0x1,_0x24d2f9=arguments[_0xff2b9a(0x36a)];_0x3aed0e<_0x24d2f9;_0x3aed0e++){_0x407b7c=arguments[_0x3aed0e];for(var _0x3d4455 in _0x407b7c)Object[_0xff2b9a(0x292)][_0xff2b9a(0x372)][_0xff2b9a(0x241)](_0x407b7c,_0x3d4455)&&(_0x336192[_0x3d4455]=_0x407b7c[_0x3d4455]);}return _0x336192;},E[_0x489bbc(0x29c)](this,arguments);},Ot=function(_0x558d86,_0x39d3a1){const _0x51377f=_0x56af3f;var _0x521b61={};for(var _0x58fa3f in _0x558d86)Object['prototype'][_0x51377f(0x372)]['call'](_0x558d86,_0x58fa3f)&&_0x39d3a1[_0x51377f(0x36f)](_0x58fa3f)<0x0&&(_0x521b61[_0x58fa3f]=_0x558d86[_0x58fa3f]);if(_0x558d86!=null&&typeof Object[_0x51377f(0x1db)]==_0x51377f(0x377)){for(var _0x503ef9=0x0,_0x58fa3f=Object[_0x51377f(0x1db)](_0x558d86);_0x503ef9<_0x58fa3f['length'];_0x503ef9++)_0x39d3a1[_0x51377f(0x36f)](_0x58fa3f[_0x503ef9])<0x0&&Object[_0x51377f(0x292)][_0x51377f(0x2ca)]['call'](_0x558d86,_0x58fa3f[_0x503ef9])&&(_0x521b61[_0x58fa3f[_0x503ef9]]=_0x558d86[_0x58fa3f[_0x503ef9]]);}return _0x521b61;},be=M['forwardRef'](function(_0x59440b,_0x3554e6){const _0x37c186=_0x56af3f;var _0x14b23f=_0x59440b[_0x37c186(0x1a5)],_0x23bd1a=_0x59440b['id'],_0x21c293=_0x59440b[_0x37c186(0x1e1)],_0x2da046=_0x59440b[_0x37c186(0x31a)],_0x1b2154=Ot(_0x59440b,[_0x37c186(0x1a5),'id','className',_0x37c186(0x31a)]),_0x4de9e1=_0x37c186(0x1a6)[_0x37c186(0x2f1)](_0x23bd1a,'\x20')[_0x37c186(0x2f1)](_0x21c293||'')[_0x37c186(0x26e)](),_0x41b578=M[_0x37c186(0x1cf)]('_'['concat'](Ut()));return ye(_0x14b23f,''['concat'](_0x23bd1a),{'defIds':_0x14b23f['defIds'],'idSuffix':_0x41b578[_0x37c186(0x1c3)]},E({'ref':_0x3554e6,'className':_0x4de9e1},_0x1b2154),_0x2da046);});function ye(_0x5d375e,_0x2e0cf1,_0xe55435,_0x59e73f,_0x5b9161){const _0x71cfb7=_0x56af3f;return M[_0x71cfb7(0x33a)](_0x5d375e[_0x71cfb7(0x320)],E(E({'key':_0x2e0cf1},Rt(_0x5d375e,_0xe55435,_0x5b9161)),_0x59e73f),(Dt(_0x5d375e,_0xe55435)['children']||[])['map'](function(_0x5b2be7,_0x51440c){const _0x38488c=_0x71cfb7;return ye(_0x5b2be7,''['concat'](_0x2e0cf1,'-')[_0x38488c(0x2f1)](_0x5d375e[_0x38488c(0x320)],'-')[_0x38488c(0x2f1)](_0x51440c),_0xe55435,void 0x0,_0x5b9161);}));}function Rt(_0x34d65d,_0x2f7868,_0x4ecd75){const _0x524e1=_0x56af3f;var _0x50a727=E({},_0x34d65d[_0x524e1(0x1a0)]);_0x4ecd75!=null&&_0x4ecd75[_0x524e1(0x299)]&&_0x50a727[_0x524e1(0x153)]===_0x524e1(0x299)&&(_0x50a727[_0x524e1(0x153)]=_0x4ecd75[_0x524e1(0x299)]),_0x34d65d[_0x524e1(0x320)]==='mask'&&_0x50a727['id']&&(_0x50a727['id']=_0x50a727['id']+_0x2f7868[_0x524e1(0x31f)]),Object[_0x524e1(0x1d9)](_0x50a727)[_0x524e1(0x2eb)](function(_0x1d8499){const _0x4a43f1=_0x524e1;var _0x518433=_0x1d8499[0x0],_0x18c0f6=_0x1d8499[0x1];_0x518433===_0x4a43f1(0x290)&&typeof _0x18c0f6=='string'&&(_0x50a727[_0x518433]=_0x18c0f6[_0x4a43f1(0x190)](/url\(#(.*)\)/,_0x4a43f1(0x1dc)[_0x4a43f1(0x2f1)](_0x2f7868[_0x4a43f1(0x31f)],')')));});var _0x5a3251=_0x2f7868[_0x524e1(0x2c0)];return!_0x5a3251||_0x5a3251[_0x524e1(0x36a)]===0x0||(_0x34d65d[_0x524e1(0x320)]===_0x524e1(0x155)&&_0x50a727[_0x524e1(0x348)]&&(_0x50a727[_0x524e1(0x348)]=_0x50a727[_0x524e1(0x348)]+_0x2f7868[_0x524e1(0x31f)]),Object[_0x524e1(0x1d9)](_0x50a727)[_0x524e1(0x2eb)](function(_0x5ba0d3){const _0x5eecc4=_0x524e1;var _0x4fd044=_0x5ba0d3[0x0],_0x30b9c6=_0x5ba0d3[0x1];typeof _0x30b9c6==_0x5eecc4(0x322)&&(_0x50a727[_0x4fd044]=_0x30b9c6[_0x5eecc4(0x190)](/url\(#(.*)\)/,_0x5eecc4(0x1dc)[_0x5eecc4(0x2f1)](_0x2f7868['idSuffix'],')')));})),_0x50a727;}function Dt(_0x48a0c7,_0x36b2fd){const _0x151956=_0x56af3f;var _0x3db146,_0x544e2d=_0x36b2fd[_0x151956(0x2c0)];return!_0x544e2d||_0x544e2d[_0x151956(0x36a)]===0x0?_0x48a0c7:_0x48a0c7[_0x151956(0x320)]==='defs'&&(!((_0x3db146=_0x48a0c7[_0x151956(0x364)])===null||_0x3db146===void 0x0)&&_0x3db146[_0x151956(0x36a)])?E(E({},_0x48a0c7),{'children':_0x48a0c7[_0x151956(0x364)][_0x151956(0x191)](function(_0x4af775){const _0x1fef50=_0x151956;return typeof _0x4af775[_0x1fef50(0x1a0)]['id']=='string'&&_0x544e2d&&_0x544e2d[_0x1fef50(0x36f)](_0x4af775[_0x1fef50(0x1a0)]['id'])>-0x1?E(E({},_0x4af775),{'attrs':E(E({},_0x4af775['attrs']),{'id':_0x4af775['attrs']['id']+_0x36b2fd['idSuffix']})}):_0x4af775;})}):_0x48a0c7;}function Ut(){const _0x26158e=_0x56af3f;return Math[_0x26158e(0x37b)]()[_0x26158e(0x16f)](0x24)['substring'](0x2,0x8);}be[_0x56af3f(0x312)]=_0x56af3f(0x307);var Nt={'tag':_0x56af3f(0x1f9),'attrs':{'fill':_0x56af3f(0x22d),'viewBox':_0x56af3f(0x25d),'width':_0x56af3f(0x34e),'height':_0x56af3f(0x34e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x56af3f(0x395),'attrs':{'stroke':_0x56af3f(0x388),'d':_0x56af3f(0x17c),'strokeLinecap':_0x56af3f(0x347),'strokeLinejoin':_0x56af3f(0x347),'strokeWidth':1.2}}]},{'tag':_0x56af3f(0x24e),'attrs':{},'children':[{'tag':_0x56af3f(0x19a),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x56af3f(0x395),'attrs':{'fill':_0x56af3f(0x394),'d':_0x56af3f(0x398)}}]}]}],'defIds':[_0x56af3f(0x1bc)]},$e=M['forwardRef'](function(_0x4afedf,_0x2efe5a){const _0x2fa8e3=_0x56af3f;return M[_0x2fa8e3(0x33a)](be,Object[_0x2fa8e3(0x1fc)]({},_0x4afedf,{'id':'off-line-single','ref':_0x2efe5a,'icon':Nt}));});$e['displayName']=_0x56af3f(0x3a8);var Mt={'tag':_0x56af3f(0x1f9),'attrs':{'fill':'none','viewBox':_0x56af3f(0x25c),'width':_0x56af3f(0x34e),'height':_0x56af3f(0x34e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x56af3f(0x395),'attrs':{'stroke':'currentColor','d':_0x56af3f(0x386),'strokeLinecap':_0x56af3f(0x347),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x56af3f(0x24e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x56af3f(0x169)},'children':[{'tag':_0x56af3f(0x395),'attrs':{'fill':_0x56af3f(0x394),'d':_0x56af3f(0x398),'transform':_0x56af3f(0x142)}}]}]}],'defIds':[_0x56af3f(0x169)]},xe=M[_0x56af3f(0x1d1)](function(_0x4b10cf,_0x100ba0){const _0x216648=_0x56af3f;return M[_0x216648(0x33a)](be,Object[_0x216648(0x1fc)]({},_0x4b10cf,{'id':_0x216648(0x2c8),'ref':_0x100ba0,'icon':Mt}));});xe['displayName']=_0x56af3f(0x33f);const Lt=_0x56af3f(0x1a9),Pt=_0x56af3f(0x16d),wt='univer-online-status',At='univer-online',yt='univer-offline',H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x22de25){const _0x29adaa=_0x56af3f;switch(_0x22de25){case u['CollaborationStatus']['OFFLINE']:return'collabStatus.offline';case u[_0x29adaa(0x384)]['CONFLICT']:return'collabStatus.conflict';case u[_0x29adaa(0x384)][_0x29adaa(0x33b)]:return _0x29adaa(0x32a);case u[_0x29adaa(0x384)]['NOT_COLLAB']:return _0x29adaa(0x16c);case u[_0x29adaa(0x384)][_0x29adaa(0x1d8)]:case u['CollaborationStatus'][_0x29adaa(0x1b6)]:return _0x29adaa(0x296);case u['CollaborationStatus']['SYNCED']:case u[_0x29adaa(0x384)][_0x29adaa(0x17a)]:return'collabStatus.synced';}}function je(_0x1a0465){const _0x2e5bc7=_0x56af3f,{status$:_0x158400}=_0x1a0465,_0x10b0b4=O[_0x2e5bc7(0x14d)](_0x158400,u[_0x2e5bc7(0x384)][_0x2e5bc7(0x3b7)]),_0x205e67=O[_0x2e5bc7(0x29f)](a[_0x2e5bc7(0x1b1)]),_0x2186e4=O['useDependency'](u[_0x2e5bc7(0x231)]),_0x46eaf9=_0x10b0b4!==u['CollaborationStatus'][_0x2e5bc7(0x37e)],_0x4dfbe2=_0x205e67['t']($t(_0x10b0b4)),_0x211c48=T['clsx'](H['onlineStatus'],{[H[_0x2e5bc7(0x200)]]:_0x46eaf9,[H[_0x2e5bc7(0x145)]]:!_0x46eaf9}),_0x4b97d5=_0x46eaf9?P[_0x2e5bc7(0x26b)](xe,{}):P['jsx']($e,{}),_0xf53c0=M[_0x2e5bc7(0x21d)](()=>{_0x46eaf9||_0x2186e4['reconnect']();},[_0x46eaf9,_0x2186e4]);function _0x18814a(){const _0x22c61b=_0x2e5bc7;return P['jsxs']('div',{'className':T[_0x22c61b(0x357)](_0x211c48,_0x22c61b(0x2e0)),'onClick':_0xf53c0,'children':[P['jsx']('div',{'className':H[_0x22c61b(0x218)],'children':_0x4b97d5}),P[_0x22c61b(0x26b)](_0x22c61b(0x222),{'className':H[_0x22c61b(0x35f)],'children':_0x4dfbe2})]});}return _0x46eaf9?_0x18814a():P['jsx'](T['Tooltip'],{'title':_0x205e67['t'](_0x2e5bc7(0x263)),'children':_0x18814a()});}var xt=Object[_0x56af3f(0x162)],jt=(_0x47b78a,_0x326253,_0x43f3b8,_0x4c77a0)=>{for(var _0x5ae8f1=_0x4c77a0>0x1?void 0x0:_0x4c77a0?xt(_0x326253,_0x43f3b8):_0x326253,_0x155901=_0x47b78a['length']-0x1,_0x1872ff;_0x155901>=0x0;_0x155901--)(_0x1872ff=_0x47b78a[_0x155901])&&(_0x5ae8f1=_0x1872ff(_0x5ae8f1)||_0x5ae8f1);return _0x5ae8f1;},X=(_0x349bed,_0x2957f1)=>(_0x5138da,_0x1b9ec4)=>_0x2957f1(_0x5138da,_0x1b9ec4,_0x349bed);exports[_0x56af3f(0x20e)]=class extends a[_0x56af3f(0x27b)]{constructor(_0x2b175b,_0x471e12,_0x2e8283,_0x457ee8){const _0x2cc5f9=_0x56af3f;super(),_(this,_0x2cc5f9(0x146),new d[(_0x2cc5f9(0x3c9))](u[_0x2cc5f9(0x384)]['NOT_COLLAB'])),(this[_0x2cc5f9(0x214)]=_0x2b175b,this['_injector']=_0x471e12,this[_0x2cc5f9(0x18d)]=_0x2e8283,this[_0x2cc5f9(0x36c)]=_0x457ee8,this['_initStatusComponent'](),this[_0x2cc5f9(0x2ab)]());}[_0x56af3f(0x2ab)](){const _0x102151=_0x56af3f;this[_0x102151(0x2a6)](this['_univerInstanceService'][_0x102151(0x2d3)][_0x102151(0x215)](d[_0x102151(0x208)](()=>{const _0x3decb4=_0x102151,_0xa015da=this[_0x3decb4(0x214)]['getFocusedUnit']();return _0xa015da?this['_collaborationController']['getCollabEntity$'](_0xa015da[_0x3decb4(0x2fd)]()):d['of'](null);}),d[_0x102151(0x208)](_0x5b7931=>_0x5b7931?_0x5b7931[_0x102151(0x206)]:d['of'](u[_0x102151(0x384)][_0x102151(0x3b7)])))[_0x102151(0x17d)](_0x4badf7=>{const _0x32497b=_0x102151;this[_0x32497b(0x146)][_0x32497b(0x30b)](_0x4badf7);}));}[_0x56af3f(0x3c3)](){const _0x208442=_0x56af3f;this[_0x208442(0x2a6)](this[_0x208442(0x36c)][_0x208442(0x36d)](O[_0x208442(0x230)][_0x208442(0x2f6)],()=>O[_0x208442(0x38f)](Bt({'status$':this[_0x208442(0x146)][_0x208442(0x2fb)]()}),this[_0x208442(0x3b1)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x56af3f(0x3bb)]),X(0x1,a['Inject'](a[_0x56af3f(0x3b6)])),X(0x2,a[_0x56af3f(0x253)](u[_0x56af3f(0x2f9)])),X(0x3,O[_0x56af3f(0x1d4)])],exports['DesktopCollaborationStatusDisplayController']);function _0x408b(_0x54b3ac,_0x1904f9){const _0xcc01b5=_0xcc01();return _0x408b=function(_0x408b31,_0x1628a4){_0x408b31=_0x408b31-0x140;let _0x544c00=_0xcc01b5[_0x408b31];return _0x544c00;},_0x408b(_0x54b3ac,_0x1904f9);}function Bt(_0x513eea){const {status$:_0x519607}=_0x513eea;return function(){const _0x42ef7c=_0x408b;return P[_0x42ef7c(0x26b)](je,{'status$':_0x519607});};}var kt=Object[_0x56af3f(0x162)],Ht=(_0x2eae85,_0x31fdaa,_0x18a3bd,_0x5541c9)=>{const _0x392763=_0x56af3f;for(var _0x559eb9=_0x5541c9>0x1?void 0x0:_0x5541c9?kt(_0x31fdaa,_0x18a3bd):_0x31fdaa,_0x5824e7=_0x2eae85[_0x392763(0x36a)]-0x1,_0x9f492d;_0x5824e7>=0x0;_0x5824e7--)(_0x9f492d=_0x2eae85[_0x5824e7])&&(_0x559eb9=_0x9f492d(_0x559eb9)||_0x559eb9);return _0x559eb9;},y=(_0x2bf6d6,_0x50dc75)=>(_0xf20761,_0x42c28e)=>_0x50dc75(_0xf20761,_0x42c28e,_0x2bf6d6);let z=class extends a[_0x56af3f(0x27b)]{constructor(_0x517c9a,_0x5ac7bc,_0x3e8189,_0x24b33c,_0x2bd9df,_0x461c58){const _0x1e34f4=_0x56af3f;super(),this[_0x1e34f4(0x338)]=_0x517c9a,this[_0x1e34f4(0x269)]=_0x5ac7bc,this[_0x1e34f4(0x38b)]=_0x3e8189,this[_0x1e34f4(0x390)]=_0x24b33c,this[_0x1e34f4(0x3a7)]=_0x2bd9df,this[_0x1e34f4(0x177)]=_0x461c58,this[_0x1e34f4(0x287)](),this[_0x1e34f4(0x2d6)]();}[_0x56af3f(0x287)](){const _0x4cfcf4=_0x56af3f;this[_0x4cfcf4(0x2a6)](this[_0x4cfcf4(0x338)][_0x4cfcf4(0x14f)](()=>{const _0x23ce5c=_0x4cfcf4;if(this[_0x23ce5c(0x269)][_0x23ce5c(0x1ee)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x56af3f(0x2d6)](){const _0xb67c9e=_0x56af3f;this['disposeWithMe'](this[_0xb67c9e(0x38b)][_0xb67c9e(0x360)][_0xb67c9e(0x17d)](_0x317b0f=>{const _0x34826f=_0xb67c9e;_0x317b0f['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x34826f(0x390)][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)]['Warning'],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x1aa))}),_0x317b0f['id']===u['CollaborationUIEventId'][_0x34826f(0x199)]&&this['_messageService'][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x2da)],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x319))}),_0x317b0f['id']===u[_0x34826f(0x217)][_0x34826f(0x328)]&&this[_0x34826f(0x3a7)][_0x34826f(0x24f)]({'title':this[_0x34826f(0x177)]['t']('permission.title'),'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x1f4)),'type':_0x34826f(0x252),'duration':0x0}),_0x317b0f['id']===u[_0x34826f(0x217)][_0x34826f(0x20b)]&&this['_messageService'][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x158)],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x319))+'('+_0x317b0f[_0x34826f(0x180)]+')'}),_0x317b0f['id']===u['CollaborationUIEventId'][_0x34826f(0x1b0)]&&this[_0x34826f(0x390)]['show']({'type':T[_0x34826f(0x1e6)][_0x34826f(0x2da)],'content':this[_0x34826f(0x177)]['t'](_0x317b0f['data']||'')}),_0x317b0f['id']===u[_0x34826f(0x217)][_0x34826f(0x1e2)]&&this['_messageService'][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x2da)],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x2a8))}),_0x317b0f['id']===u[_0x34826f(0x217)]['SOCKET_FAILED']&&this[_0x34826f(0x390)][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x158)],'content':this[_0x34826f(0x177)]['t'](_0x34826f(0x26d))}),_0x317b0f['id']===u[_0x34826f(0x217)][_0x34826f(0x3a6)]&&this[_0x34826f(0x390)][_0x34826f(0x24f)]({'type':T[_0x34826f(0x1e6)][_0x34826f(0x158)],'content':this['_localeService']['t'](_0x34826f(0x3c8))});}));}};z=Ht([y(0x0,O[_0x56af3f(0x20d)]),y(0x1,u[_0x56af3f(0x141)]),y(0x2,a[_0x56af3f(0x253)](u[_0x56af3f(0x213)])),y(0x3,O['IMessageService']),y(0x4,O[_0x56af3f(0x196)]),y(0x5,a['Inject'](a[_0x56af3f(0x1b1)]))],z);const Ft=_0x56af3f(0x244),Ne={},Ee=a[_0x56af3f(0x2f8)](_0x56af3f(0x262));var Wt=Object[_0x56af3f(0x162)],Yt=(_0x4e2db9,_0x379251,_0x2df1ac,_0x3f85d4)=>{const _0x2c193e=_0x56af3f;for(var _0x3d490d=_0x3f85d4>0x1?void 0x0:_0x3f85d4?Wt(_0x379251,_0x2df1ac):_0x379251,_0x8567ad=_0x4e2db9[_0x2c193e(0x36a)]-0x1,_0x3e65ba;_0x8567ad>=0x0;_0x8567ad--)(_0x3e65ba=_0x4e2db9[_0x8567ad])&&(_0x3d490d=_0x3e65ba(_0x3d490d)||_0x3d490d);return _0x3d490d;},F=(_0x2b9f31,_0x578886)=>(_0x43046c,_0x1e6ee3)=>_0x578886(_0x43046c,_0x1e6ee3,_0x2b9f31);exports[_0x56af3f(0x30a)]=class extends a[_0x56af3f(0x2b9)]{constructor(_0x56b06d,_0x226a12,_0x38024c,_0x938b81,_0x18b2fc){const _0x273bce=_0x56af3f;super(),this['_urlService']=_0x56b06d,this['_logService']=_0x226a12,this[_0x273bce(0x198)]=_0x38024c,this[_0x273bce(0x330)]=_0x938b81,_0x18b2fc?_0x18b2fc==null||_0x18b2fc['whenReady']()['then'](()=>this[_0x273bce(0x39b)]()):(this[_0x273bce(0x3bf)][_0x273bce(0x1b8)](_0x273bce(0x265),_0x273bce(0x2bd)),this[_0x273bce(0x39b)]());}async[_0x56af3f(0x39b)](){const _0x5905a3=_0x56af3f,_0x42a4d6=this[_0x5905a3(0x2a2)]['getParam'](_0x5905a3(0x15b)),_0x58b88a=this['_urlService'][_0x5905a3(0x22c)]('type'),_0x1ef0a5=this[_0x5905a3(0x2a2)][_0x5905a3(0x22c)](_0x5905a3(0x264));if(!_0x42a4d6||!_0x58b88a){this['_logService'][_0x5905a3(0x1b8)](_0x5905a3(0x265),_0x5905a3(0x189));return;}const _0x8f0bbb=await this[_0x5905a3(0x330)][_0x5905a3(0x277)](_0x42a4d6,Number(_0x58b88a),_0x1ef0a5);_0x8f0bbb&&_0x8f0bbb instanceof a[_0x5905a3(0x39d)]&&this[_0x5905a3(0x2bf)](_0x8f0bbb);}async[_0x56af3f(0x2bf)](_0x55df62){const _0x20a145=_0x56af3f;await this[_0x20a145(0x2f0)](_0x55df62),_0x55df62[_0x20a145(0x176)][_0x20a145(0x215)](d[_0x20a145(0x273)](this[_0x20a145(0x170)]))['subscribe'](_0x5733be=>{const _0x1ddd54=_0x20a145;_0x5733be&&this[_0x1ddd54(0x1f0)](_0x5733be);}),this[_0x20a145(0x2a2)][_0x20a145(0x1be)][_0x20a145(0x215)](d[_0x20a145(0x273)](this[_0x20a145(0x170)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x55df62));}[_0x56af3f(0x1f0)](_0x9d729,_0xcbbfc0=!0x1){const _0x18103e=_0x56af3f,_0x2a2e98=this['_urlService'][_0x18103e(0x22c)](_0x18103e(0x264));_0x9d729[_0x18103e(0x22a)]()!==_0x2a2e98&&this['_urlService'][_0x18103e(0x2e8)]('subunit',_0x9d729[_0x18103e(0x22a)](),_0xcbbfc0);}async['_updateSubUnitFromURLParams'](_0x54fe8a){const _0x43ae10=_0x56af3f;var _0x2b055e;const _0x166846=this[_0x43ae10(0x2a2)][_0x43ae10(0x22c)](_0x43ae10(0x264));if(!_0x166846||!_0x54fe8a[_0x43ae10(0x2e3)](_0x166846)){const _0x5c7b08=_0x54fe8a[_0x43ae10(0x2a4)]()[0x0],_0x352c7b=_0x54fe8a[_0x43ae10(0x2e3)](_0x5c7b08);if(!_0x352c7b)return;this[_0x43ae10(0x1f0)](_0x352c7b,!0x0),await this[_0x43ae10(0x198)][_0x43ae10(0x341)](g[_0x43ae10(0x368)]['id'],{'unitId':_0x54fe8a[_0x43ae10(0x2fd)](),'subUnitId':_0x5c7b08});return;}((_0x2b055e=_0x54fe8a[_0x43ae10(0x383)]())==null?void 0x0:_0x2b055e[_0x43ae10(0x22a)]())!==_0x166846&&await this[_0x43ae10(0x198)][_0x43ae10(0x341)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x54fe8a[_0x43ae10(0x2fd)](),'subUnitId':_0x166846});}},exports[_0x56af3f(0x30a)]=Yt([F(0x0,Ee),F(0x1,a[_0x56af3f(0x2f2)]),F(0x2,a[_0x56af3f(0x1f7)]),F(0x3,a[_0x56af3f(0x253)](u[_0x56af3f(0x373)])),F(0x4,a['Optional'](Ke[_0x56af3f(0x2f3)]))],exports[_0x56af3f(0x30a)]);var Vt=Object[_0x56af3f(0x162)],Xt=(_0x19b947,_0x320d1d,_0x3c1ca7,_0x453eff)=>{for(var _0x63c309=_0x453eff>0x1?void 0x0:_0x453eff?Vt(_0x320d1d,_0x3c1ca7):_0x320d1d,_0x15cb14=_0x19b947['length']-0x1,_0x1e40e4;_0x15cb14>=0x0;_0x15cb14--)(_0x1e40e4=_0x19b947[_0x15cb14])&&(_0x63c309=_0x1e40e4(_0x63c309)||_0x63c309);return _0x63c309;},le=(_0x5f2732,_0x1c5dd1)=>(_0x756fd4,_0x1543b8)=>_0x1c5dd1(_0x756fd4,_0x1543b8,_0x5f2732);let J=class{constructor(_0x379f87,_0x325469,_0x55a907){const _0x13409b=_0x56af3f;this['_injector']=_0x379f87,this['_transformService']=_0x325469,this[_0x13409b(0x216)]=_0x55a907;}[_0x56af3f(0x36b)](_0x4b2265){const _0x1733e7=_0x56af3f;this[_0x1733e7(0x35e)](_0x4b2265),this['_transformPreviousActiveRange'](_0x4b2265);}[_0x56af3f(0x391)](_0x39292a){const _0x12dbda=_0x56af3f,{unitID:_0x12e80e}=_0x39292a,_0x3c1d8e=this['_renderManagerService']['getRenderById'](_0x12e80e)[_0x12dbda(0x166)](b[_0x12dbda(0x285)]),{redoCache:_0x528133}=_0x3c1d8e[_0x12dbda(0x3b4)]();if(_0x528133[_0x12dbda(0x36a)]===0x0)return _0x39292a;let _0x57696e=a[_0x12dbda(0x2d7)][_0x12dbda(0x2df)](_0x39292a[_0x12dbda(0x21b)][0x0]);for(let _0x784f08=0x0;_0x784f08<_0x528133['length'];_0x784f08++){const _0x1e5adb={'id':'doc.mutation.rich-text-editing','params':{..._0x528133[_0x784f08]}},_0x2cc470=this['_transformService'][_0x12dbda(0x1e9)](_0x57696e,_0x1e5adb,!0x1);if(m[_0x12dbda(0x2e1)](_0x2cc470))throw _0x2cc470[_0x12dbda(0x252)];_0x57696e=_0x2cc470[_0x12dbda(0x3a0)];}return{...a[_0x12dbda(0x2d7)]['deepClone'](_0x39292a),'mutations':[_0x57696e]};}[_0x56af3f(0x35e)](_0x5ebacb){const _0x15e99e=_0x56af3f,{unitID:_0x4fac7d}=_0x5ebacb,_0x2da153=this[_0x15e99e(0x216)][_0x15e99e(0x39f)](_0x4fac7d)['with'](b['DocIMEInputManagerService']),{undoCache:_0x208465,redoCache:_0x5b11ad}=_0x2da153['getUndoRedoMutationParamsCache']();if(_0x208465[_0x15e99e(0x36a)]===0x0||_0x5b11ad[_0x15e99e(0x36a)]===0x0)return;const _0xa9c20d=[],_0x16c060=[];let _0x4ce89a=a[_0x15e99e(0x2d7)][_0x15e99e(0x2df)](_0x5ebacb[_0x15e99e(0x21b)][0x0]),_0x37550c=a['Tools'][_0x15e99e(0x2df)](_0x5ebacb[_0x15e99e(0x21b)][0x0]);for(let _0x3414e8=_0x208465['length']-0x1;_0x3414e8>=0x0;_0x3414e8--){const _0x42b772={'id':_0x15e99e(0x14a),'params':{..._0x208465[_0x3414e8]}},_0x110191={'id':'doc.mutation.rich-text-editing','params':{..._0x5b11ad[_0x3414e8]}},_0xb68748=this[_0x15e99e(0x1dd)]['transformMutation'](_0x4ce89a,_0x42b772,!0x1),_0x1bf56e=this[_0x15e99e(0x1dd)]['transformMutation'](_0x37550c,_0x110191,!0x1);if(m[_0x15e99e(0x2e1)](_0xb68748))throw _0xb68748['error'];if(m[_0x15e99e(0x2e1)](_0x1bf56e))throw _0x1bf56e[_0x15e99e(0x252)];_0xa9c20d[_0x15e99e(0x2c6)](_0xb68748[_0x15e99e(0x193)]['params']),_0x16c060['unshift'](_0x1bf56e[_0x15e99e(0x193)][_0x15e99e(0x1f8)]),_0x4ce89a=_0xb68748[_0x15e99e(0x3a0)],_0x37550c=_0x1bf56e[_0x15e99e(0x3a0)];}_0x2da153[_0x15e99e(0x25b)]({'undoCache':_0xa9c20d,'redoCache':_0x16c060});}[_0x56af3f(0x1af)](_0x504f24){const _0x2c634b=_0x56af3f,{unitID:_0x2a059a}=_0x504f24,_0x1c81b2=this[_0x2c634b(0x216)][_0x2c634b(0x39f)](_0x2a059a)[_0x2c634b(0x166)](b[_0x2c634b(0x285)]),_0x573181=_0x1c81b2['getActiveRange']();if(_0x573181==null)return;const _0x3c51b2=[{'id':_0x2c634b(0x14a),'params':{'unitId':_0x504f24[_0x2c634b(0x1cb)],'actions':null,'textRanges':[_0x573181]}}],_0x2076ad=this[_0x2c634b(0x1dd)][_0x2c634b(0x376)](_0x504f24,_0x3c51b2);if(!m[_0x2c634b(0x21c)](_0x2076ad))throw _0x2076ad[_0x2c634b(0x252)];const _0x62c81d=_0x2076ad[_0x2c634b(0x193)][0x0]['params']['textRanges'];Array[_0x2c634b(0x22f)](_0x62c81d)&&_0x62c81d[_0x2c634b(0x36a)]&&_0x1c81b2['setActiveRange'](_0x62c81d[0x0]);}};J=Xt([le(0x0,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),le(0x1,m[_0x56af3f(0x275)]),le(0x2,p[_0x56af3f(0x3a2)])],J);var Gt=Object[_0x56af3f(0x162)],qt=(_0x18475c,_0x30be89,_0x486256,_0x16ad4c)=>{const _0x9451d2=_0x56af3f;for(var _0x15078e=_0x16ad4c>0x1?void 0x0:_0x16ad4c?Gt(_0x30be89,_0x486256):_0x30be89,_0x3757fa=_0x18475c[_0x9451d2(0x36a)]-0x1,_0x1d1d94;_0x3757fa>=0x0;_0x3757fa--)(_0x1d1d94=_0x18475c[_0x3757fa])&&(_0x15078e=_0x1d1d94(_0x15078e)||_0x15078e);return _0x15078e;},_e=(_0xa23e2f,_0x2a8f75)=>(_0x27964d,_0x6a96b2)=>_0x2a8f75(_0x27964d,_0x6a96b2,_0xa23e2f);let Z=class{constructor(_0x463cb9,_0xde4c94,_0x44746d){const _0x36b31f=_0x56af3f;this[_0x36b31f(0x3b1)]=_0x463cb9,this[_0x36b31f(0x1dd)]=_0xde4c94,this[_0x36b31f(0x1cd)]=_0x44746d;}[_0x56af3f(0x15d)](_0x3282a3){this['_transformHistoryAndStateStack'](_0x3282a3);}[_0x56af3f(0x391)](_0x4ac2b6){const _0x585920=_0x56af3f,{unitID:_0x20da16}=_0x4ac2b6,{collaboration:_0x2bbdb3}=this[_0x585920(0x1cd)][_0x585920(0x240)](_0x20da16);if(_0x2bbdb3[_0x585920(0x36a)]===0x0)return _0x4ac2b6;let _0x276646=a[_0x585920(0x2d7)][_0x585920(0x2df)](_0x4ac2b6[_0x585920(0x21b)][0x0]);for(let _0x61749c=0x0;_0x61749c<_0x2bbdb3[_0x585920(0x36a)];_0x61749c++){const _0x2fe50e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2bbdb3[_0x61749c]['unitId'],..._0x2bbdb3[_0x61749c]['redoState']}},_0x29779d=this['_transformService'][_0x585920(0x1e9)](_0x276646,_0x2fe50e,!0x1);if(m[_0x585920(0x2e1)](_0x29779d))throw _0x29779d[_0x585920(0x252)];_0x276646=_0x29779d[_0x585920(0x3a0)];}return{...a['Tools'][_0x585920(0x2df)](_0x4ac2b6),'mutations':[_0x276646]};}[_0x56af3f(0x175)](_0x50af5f){const _0x1aa663=_0x56af3f,{unitID:_0x10676}=_0x50af5f,{history:_0x2666c8,collaboration:_0x438f7e}=this['_docStateChangeManagerService']['getStateCache'](_0x10676);if(_0x2666c8['length']===0x0&&_0x438f7e[_0x1aa663(0x36a)]===0x0)return;const _0x349403=[],_0xc1b21e=[];let _0x43fca1=a[_0x1aa663(0x2d7)][_0x1aa663(0x2df)](_0x50af5f[_0x1aa663(0x21b)][0x0]),_0x55042d=a['Tools'][_0x1aa663(0x2df)](_0x50af5f[_0x1aa663(0x21b)][0x0]);for(let _0x545ce5=_0x2666c8[_0x1aa663(0x36a)]-0x1;_0x545ce5>=0x0;_0x545ce5--){const _0x222834={'id':_0x1aa663(0x14a),'params':{'unitId':_0x2666c8[_0x545ce5][_0x1aa663(0x24a)],..._0x2666c8[_0x545ce5][_0x1aa663(0x2b7)]}},_0xfbf0ca={'id':_0x1aa663(0x14a),'params':{'unitId':_0x2666c8[_0x545ce5][_0x1aa663(0x24a)],..._0x2666c8[_0x545ce5][_0x1aa663(0x306)]}},_0xa6b0b7=this['_transformService']['transformMutation'](_0x43fca1,_0x222834,!0x1),_0x5427a9=this['_transformService'][_0x1aa663(0x1e9)](_0x55042d,_0xfbf0ca,!0x1);if(m[_0x1aa663(0x2e1)](_0xa6b0b7))throw _0xa6b0b7['error'];if(m[_0x1aa663(0x2e1)](_0x5427a9))throw _0x5427a9[_0x1aa663(0x252)];_0x349403[_0x1aa663(0x2c6)]({..._0x2666c8[_0x545ce5],'undoState':_0xa6b0b7['m2Prime'][_0x1aa663(0x1f8)],'redoState':_0x5427a9[_0x1aa663(0x193)][_0x1aa663(0x1f8)]}),_0x43fca1=_0xa6b0b7[_0x1aa663(0x3a0)],_0x55042d=_0x5427a9['m1Prime'];}_0x43fca1=a[_0x1aa663(0x2d7)][_0x1aa663(0x2df)](_0x50af5f[_0x1aa663(0x21b)][0x0]),_0x55042d=a[_0x1aa663(0x2d7)][_0x1aa663(0x2df)](_0x50af5f['mutations'][0x0]);for(let _0x278794=_0x438f7e[_0x1aa663(0x36a)]-0x1;_0x278794>=0x0;_0x278794--){const _0x18a928={'id':_0x1aa663(0x14a),'params':{'unitId':_0x438f7e[_0x278794][_0x1aa663(0x24a)],..._0x438f7e[_0x278794][_0x1aa663(0x2b7)]}},_0x59776c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x438f7e[_0x278794][_0x1aa663(0x24a)],..._0x438f7e[_0x278794][_0x1aa663(0x306)]}},_0x1d2312=this[_0x1aa663(0x1dd)][_0x1aa663(0x1e9)](_0x43fca1,_0x18a928,!0x1),_0x59cbf0=this['_transformService'][_0x1aa663(0x1e9)](_0x55042d,_0x59776c,!0x1);if(m[_0x1aa663(0x2e1)](_0x1d2312))throw _0x1d2312[_0x1aa663(0x252)];if(m[_0x1aa663(0x2e1)](_0x59cbf0))throw _0x59cbf0[_0x1aa663(0x252)];_0xc1b21e['unshift']({..._0x438f7e[_0x278794],'undoState':_0x1d2312[_0x1aa663(0x193)][_0x1aa663(0x1f8)],'redoState':_0x59cbf0[_0x1aa663(0x193)][_0x1aa663(0x1f8)]}),_0x43fca1=_0x1d2312['m1Prime'],_0x55042d=_0x59cbf0['m1Prime'];}this['_docStateChangeManagerService'][_0x1aa663(0x37a)](_0x10676,{'history':_0x349403,'collaboration':_0xc1b21e});}};Z=qt([_e(0x0,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),_e(0x1,m['ITransformService']),_e(0x2,a[_0x56af3f(0x253)](b[_0x56af3f(0x207)]))],Z);var Kt=Object[_0x56af3f(0x162)],zt=(_0x191ad9,_0x5d4e00,_0x5dc90a,_0xfa128e)=>{for(var _0x2d8a4d=_0xfa128e>0x1?void 0x0:_0xfa128e?Kt(_0x5d4e00,_0x5dc90a):_0x5d4e00,_0x1261b1=_0x191ad9['length']-0x1,_0x2c72bc;_0x1261b1>=0x0;_0x1261b1--)(_0x2c72bc=_0x191ad9[_0x1261b1])&&(_0x2d8a4d=_0x2c72bc(_0x2d8a4d)||_0x2d8a4d);return _0x2d8a4d;},Me=(_0xb5cbf5,_0x35334c)=>(_0x15c4d3,_0xf40209)=>_0x35334c(_0x15c4d3,_0xf40209,_0xb5cbf5);let Q=class{constructor(_0x25ddcd,_0x238987){const _0x43f905=_0x56af3f;this[_0x43f905(0x3b1)]=_0x25ddcd,this[_0x43f905(0x1dd)]=_0x238987;}[_0x56af3f(0x378)](_0x4b419f){const _0x2bcadd=_0x56af3f;var _0x5ef6bb;const _0x3d117b=this[_0x2bcadd(0x3b1)]['get'](Y[_0x2bcadd(0x22b)]),_0x409191=(_0x5ef6bb=_0x3d117b[_0x2bcadd(0x2dd)]())!=null?_0x5ef6bb:[];if(_0x409191[_0x2bcadd(0x36a)]===0x0)return;const _0x23e26f=_0x4b419f[_0x2bcadd(0x1cb)],_0x4d2fe2=[{'id':_0x2bcadd(0x14a),'params':{'unitId':_0x23e26f,'actions':null,'textRanges':_0x409191}}],_0x2bbcac=this['_transformService'][_0x2bcadd(0x376)](_0x4b419f,_0x4d2fe2);if(!m[_0x2bcadd(0x21c)](_0x2bbcac))throw _0x2bbcac[_0x2bcadd(0x252)];const _0x22ac1e=_0x2bbcac['m2Prime'][0x0][_0x2bcadd(0x1f8)][_0x2bcadd(0x1b7)];Array['isArray'](_0x22ac1e)&&_0x22ac1e[_0x2bcadd(0x36a)]&&_0x3d117b[_0x2bcadd(0x1e5)](_0x22ac1e,{'unitId':_0x23e26f,'subUnitId':_0x23e26f},!0x1);}};Q=zt([Me(0x0,a[_0x56af3f(0x253)](a['Injector'])),Me(0x1,m[_0x56af3f(0x275)])],Q);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0xab4d82,_0x10854f,_0x2d5e21,_0x1e472b)=>{const _0x2307a0=_0x56af3f;for(var _0x1d853a=_0x1e472b>0x1?void 0x0:_0x1e472b?Jt(_0x10854f,_0x2d5e21):_0x10854f,_0x1b577c=_0xab4d82[_0x2307a0(0x36a)]-0x1,_0xe5d8b;_0x1b577c>=0x0;_0x1b577c--)(_0xe5d8b=_0xab4d82[_0x1b577c])&&(_0x1d853a=_0xe5d8b(_0x1d853a)||_0x1d853a);return _0x1d853a;},N=(_0x175818,_0x179d3c)=>(_0x955a91,_0x13c02e)=>_0x179d3c(_0x955a91,_0x13c02e,_0x175818);let ee=class extends a[_0x56af3f(0x27b)]{constructor(_0x2a87bb,_0x1ae52f,_0x1943ed,_0x6cc8a7,_0x3ba219,_0x3a8676,_0x37030b,_0x52b131){const _0xe7d42d=_0x56af3f;super(),_(this,'_status$',new d[(_0xe7d42d(0x3c9))](u[_0xe7d42d(0x384)][_0xe7d42d(0x3b7)])),(this['_docStateChangeManagerService']=_0x2a87bb,this[_0xe7d42d(0x18d)]=_0x1ae52f,this['_docTransformIMECacheService']=_0x1943ed,this[_0xe7d42d(0x389)]=_0x6cc8a7,this[_0xe7d42d(0x30f)]=_0x3ba219,this[_0xe7d42d(0x3bc)]=_0x3a8676,this[_0xe7d42d(0x390)]=_0x37030b,this[_0xe7d42d(0x177)]=_0x52b131,this[_0xe7d42d(0x2f4)]());}['_initEntityListener'](){const _0x2579e7=_0x56af3f;this[_0x2579e7(0x2a6)](this[_0x2579e7(0x18d)][_0x2579e7(0x333)][_0x2579e7(0x17d)](_0x5271a5=>{const _0x498ba1=_0x2579e7,_0x3b28d5=this[_0x498ba1(0x1cd)][_0x498ba1(0x32e)][_0x498ba1(0x17d)](_0x5d543a=>{const _0x2bb118=_0x498ba1;if(_0x5d543a==null)return;const {unitId:_0x427055,redoState:_0x159114,commandId:_0x4b6c50}=_0x5d543a;if(_0x427055!==_0x5271a5[_0x2bb118(0x1cb)])return;const _0x910005={'id':_0x4b6c50,'type':a[_0x2bb118(0x18f)]['MUTATION'],'params':{'unitId':_0x427055,'actions':_0x159114[_0x2bb118(0x159)],'textRanges':null}};_0x5271a5[_0x2bb118(0x27d)](_0x910005);});if(_0x5271a5[_0x498ba1(0x2a6)](_0x3b28d5),_0x5271a5 instanceof u[_0x498ba1(0x1d3)]){const _0x1c2326={'onTransformIME':_0x8cef6=>this['_docTransformIMECacheService']['transformIMECache'](_0x8cef6),'onTransformState':_0xca802f=>this['_docTransformStateCacheService'][_0x498ba1(0x15d)](_0xca802f),'onTransformSelections':_0x35b3fa=>this[_0x498ba1(0x30f)][_0x498ba1(0x378)](_0x35b3fa),'onSyncEditingCollabCursor':_0x576b91=>this[_0x498ba1(0x3bc)][_0x498ba1(0x181)](_0x576b91),'onTransformRemoteChangesetByIMECache':_0x46825d=>this[_0x498ba1(0x211)][_0x498ba1(0x391)](_0x46825d),'onTransformRemoteChangesetByStateCache':_0x2bf479=>this[_0x498ba1(0x389)][_0x498ba1(0x391)](_0x2bf479)};_0x5271a5[_0x498ba1(0x284)](_0x1c2326);}}));}};ee=Zt([N(0x0,a[_0x56af3f(0x253)](b['DocStateChangeManagerService'])),N(0x1,a[_0x56af3f(0x253)](u['CollaborationController'])),N(0x2,a[_0x56af3f(0x253)](J)),N(0x3,a[_0x56af3f(0x253)](Z)),N(0x4,a[_0x56af3f(0x253)](Q)),N(0x5,a[_0x56af3f(0x253)](pe)),N(0x6,O[_0x56af3f(0x354)]),N(0x7,a[_0x56af3f(0x253)](a[_0x56af3f(0x1b1)]))],ee);var Qt=Object[_0x56af3f(0x162)],es=(_0x4a6505,_0x5d6a53,_0x376a2c,_0x1a1f56)=>{const _0x765e6d=_0x56af3f;for(var _0x421ddc=_0x1a1f56>0x1?void 0x0:_0x1a1f56?Qt(_0x5d6a53,_0x376a2c):_0x5d6a53,_0x1af678=_0x4a6505[_0x765e6d(0x36a)]-0x1,_0x5ebb49;_0x1af678>=0x0;_0x1af678--)(_0x5ebb49=_0x4a6505[_0x1af678])&&(_0x421ddc=_0x5ebb49(_0x421ddc)||_0x421ddc);return _0x421ddc;},he=(_0x33da24,_0x4534df)=>(_0x32d480,_0x5d5417)=>_0x4534df(_0x32d480,_0x5d5417,_0x33da24);let me=class extends a[_0x56af3f(0x27b)]{constructor(_0x2121d6,_0x56d3b9,_0x4289f5){const _0x3de96d=_0x56af3f;super(),_(this,_0x3de96d(0x178),new Map()),_(this,_0x3de96d(0x355),new Map()),_(this,_0x3de96d(0x15c),!0x1),(this[_0x3de96d(0x20a)]=_0x2121d6,this[_0x3de96d(0x2b4)]=_0x56d3b9,this[_0x3de96d(0x2ae)]=_0x4289f5);}['disableLocalCache'](){const _0x480058=_0x56af3f;this[_0x480058(0x15c)]=!0x0;}[_0x56af3f(0x26c)](){const _0x596d88=_0x56af3f;this[_0x596d88(0x15c)]=!0x1;}get[_0x56af3f(0x1ee)](){return this['_saveTaskMap'];}[_0x56af3f(0x3bd)](){const _0x46b80b=_0x56af3f;this[_0x46b80b(0x1c9)]()[_0x46b80b(0x1a2)](()=>super[_0x46b80b(0x3bd)]());}async[_0x56af3f(0x2b2)](_0x24e6b1){const _0x1dbdad=_0x56af3f;return this['_disabled']?null:this[_0x1dbdad(0x2b4)][_0x1dbdad(0x161)](u[_0x1dbdad(0x3ac)](_0x24e6b1));}async[_0x56af3f(0x1e0)](_0x335797,_0x2ff745){const _0x321a2b=_0x56af3f;return!!this[_0x321a2b(0x2b4)][_0x321a2b(0x2e6)](_0x335797,_0x2ff745);}[_0x56af3f(0x18b)](_0x76f155,_0x37bf75,_0x29380c,_0x5ea086){const _0x34e939=_0x56af3f,_0x65d2cf=this[_0x34e939(0x2ae)]['getCurrentRevOfUnit'](_0x76f155);this[_0x34e939(0x178)][_0x34e939(0x3b5)](_0x76f155,{'unitID':_0x76f155,'type':_0x37bf75,'awaitingChangeset':_0x29380c,'mutations':_0x5ea086,'rev':_0x65d2cf}),this[_0x34e939(0x355)]['has'](_0x76f155)||this[_0x34e939(0x1cc)](_0x76f155);}[_0x56af3f(0x1cc)](_0x2e3f18){const _0x50a61a=_0x56af3f,_0x554385=this['_getSaveTimeout']();_0x554385===0x0?this['_saveCache'](_0x2e3f18):this[_0x50a61a(0x355)][_0x50a61a(0x3b5)](_0x2e3f18,setTimeout(()=>this[_0x50a61a(0x1c6)](_0x2e3f18),_0x554385));}[_0x56af3f(0x245)](){const _0x247ddd=_0x56af3f;var _0x18db6e;return(_0x18db6e=this[_0x247ddd(0x20a)]['getConfig'](u[_0x247ddd(0x16a)]))!=null?_0x18db6e:u[_0x247ddd(0x3ad)];}[_0x56af3f(0x1c6)](_0x21a077){const _0x475059=_0x56af3f,_0xc85a21=this[_0x475059(0x355)][_0x475059(0x302)](_0x21a077);return _0xc85a21!==void 0x0&&window[_0x475059(0x298)](_0xc85a21),this['_localStorageService'][_0x475059(0x2e6)](u[_0x475059(0x3ac)](_0x21a077),this[_0x475059(0x178)][_0x475059(0x302)](_0x21a077))[_0x475059(0x1a2)](()=>this[_0x475059(0x355)]['delete'](_0x21a077));}async[_0x56af3f(0x1c9)](){const _0x3c86f0=_0x56af3f,_0x233e91=[];this['_saveTaskMap'][_0x3c86f0(0x2eb)]((_0x330688,_0xd159f6)=>{const _0x3ca99a=_0x3c86f0;window[_0x3ca99a(0x298)](_0x330688),_0x233e91[_0x3ca99a(0x366)](this['_saveCache'](_0xd159f6)[_0x3ca99a(0x1a2)](()=>{const _0x389d42=_0x3ca99a;this[_0x389d42(0x355)][_0x389d42(0x2d8)](_0xd159f6);}));}),await Promise['all'](_0x233e91);}};me=es([he(0x0,a[_0x56af3f(0x2c7)]),he(0x1,a[_0x56af3f(0x28f)]),he(0x2,a[_0x56af3f(0x253)](m[_0x56af3f(0x26f)]))],me);class Be extends a[_0x56af3f(0x2b9)]{constructor(){const _0x10d1f2=_0x56af3f;super(),_(this,_0x10d1f2(0x1be)),this[_0x10d1f2(0x1be)]=d[_0x10d1f2(0x14b)](window,'popstate')[_0x10d1f2(0x215)](d['takeUntil'](this[_0x10d1f2(0x170)]),d[_0x10d1f2(0x301)](0x1),d[_0x10d1f2(0x1c2)](void 0x0));}['setParam'](_0x37a727,_0x36af75,_0x1b58bf=!0x1){const _0x1e4320=_0x56af3f,_0x439fa9=new URL(window['location'][_0x1e4320(0x19d)]);_0x439fa9['searchParams'][_0x1e4320(0x3b5)](_0x37a727,_0x36af75),_0x1b58bf?window[_0x1e4320(0x1b5)][_0x1e4320(0x224)]('','',_0x439fa9['toString']()):window['history']['pushState']('','',_0x439fa9[_0x1e4320(0x16f)]());}[_0x56af3f(0x37d)](_0x27d255,_0x3edef9=!0x1){const _0x3586ef=_0x56af3f,_0x1dc8b9=new URL(window['location'][_0x3586ef(0x19d)]);_0x1dc8b9['searchParams'][_0x3586ef(0x2d8)](_0x27d255),_0x3edef9?window[_0x3586ef(0x1b5)][_0x3586ef(0x224)]('','',_0x1dc8b9[_0x3586ef(0x16f)]()):window[_0x3586ef(0x1b5)][_0x3586ef(0x2be)]('','',_0x1dc8b9[_0x3586ef(0x16f)]());}[_0x56af3f(0x22c)](_0x3c3455){const _0x584b1e=_0x56af3f;var _0x25c2f6;return(_0x25c2f6=new URL(window[_0x584b1e(0x3c6)][_0x584b1e(0x19d)])[_0x584b1e(0x387)][_0x584b1e(0x302)](_0x3c3455))!=null?_0x25c2f6:void 0x0;}}var ts=Object[_0x56af3f(0x2ec)],ss=Object[_0x56af3f(0x162)],ns=(_0xb223cc,_0x5eccc8,_0x5ac49e)=>_0x5eccc8 in _0xb223cc?ts(_0xb223cc,_0x5eccc8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ac49e}):_0xb223cc[_0x5eccc8]=_0x5ac49e,is=(_0x4f0b63,_0xd17ef8,_0x515dae,_0x237fee)=>{const _0x11eee9=_0x56af3f;for(var _0x3aac5c=_0x237fee>0x1?void 0x0:_0x237fee?ss(_0xd17ef8,_0x515dae):_0xd17ef8,_0xf59a7d=_0x4f0b63[_0x11eee9(0x36a)]-0x1,_0x368dd0;_0xf59a7d>=0x0;_0xf59a7d--)(_0x368dd0=_0x4f0b63[_0xf59a7d])&&(_0x3aac5c=_0x368dd0(_0x3aac5c)||_0x3aac5c);return _0x3aac5c;},ue=(_0x5be1af,_0x95f28)=>(_0x4c9e87,_0x280dae)=>_0x95f28(_0x4c9e87,_0x280dae,_0x5be1af),rs=(_0x4167f8,_0x3c0d40,_0x3c5fe7)=>ns(_0x4167f8,_0x3c0d40+'',_0x3c5fe7);const os=_0x56af3f(0x2c4);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x56af3f(0x25a)]{constructor(_0x447f1d=Ne,_0x1d46d3,_0x14d689,_0x39c40e){const _0x56d84e=_0x56af3f;super(),this['_config']=_0x447f1d,this[_0x56d84e(0x216)]=_0x1d46d3,this['_injector']=_0x14d689,this[_0x56d84e(0x20a)]=_0x39c40e;const {..._0x2bbe18}=a[_0x56d84e(0x33c)]({},Ne,this['_config']);this[_0x56d84e(0x20a)][_0x56d84e(0x171)](Ft,_0x2bbe18);}[_0x56af3f(0x3aa)](){const _0x57bc07=_0x56af3f;this[_0x57bc07(0x1df)](),this[_0x57bc07(0x18a)]();}['onRendered'](){const _0x2ac93e=_0x56af3f;this[_0x2ac93e(0x2d9)]();}[_0x56af3f(0x1df)](){const _0x1cb0f9=_0x56af3f;var _0x4a3d03;const _0x2d55f7=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q[_0x1cb0f9(0x235)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x1cb0f9(0x20e)]],[ee],[z],[x],[fe],[exports[_0x1cb0f9(0x30a)]]];a[_0x1cb0f9(0x24d)](this[_0x1cb0f9(0x3b1)],a['mergeOverrideWithDependencies'](_0x2d55f7,(_0x4a3d03=this['_config'])==null?void 0x0:_0x4a3d03['override']));}[_0x56af3f(0x2d9)](){const _0x3205ee=_0x56af3f;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x3205ee(0x246)][_0x3205ee(0x188)],[ve])),this[_0x3205ee(0x2a6)](this[_0x3205ee(0x216)]['registerRenderModule'](a['UniverInstanceType'][_0x3205ee(0x32b)],[ge]));}[_0x56af3f(0x18a)](){const _0x2c6f97=_0x56af3f;a[_0x2c6f97(0x30d)](this[_0x2c6f97(0x3b1)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x2c6f97(0x30a)]]]);}},rs(exports['UniverCollaborationClientUIPlugin'],'pluginName',os),exports['UniverCollaborationClientUIPlugin']=is([a[_0x56af3f(0x1d7)](u[_0x56af3f(0x283)]),ue(0x1,p[_0x56af3f(0x3a2)]),ue(0x2,a[_0x56af3f(0x253)](a['Injector'])),ue(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x56af3f(0x162)],cs=(_0x331658,_0x549365,_0x3572dc,_0x1c696b)=>{const _0x514778=_0x56af3f;for(var _0x21246d=_0x1c696b>0x1?void 0x0:_0x1c696b?as(_0x549365,_0x3572dc):_0x549365,_0x19e905=_0x331658[_0x514778(0x36a)]-0x1,_0x1f2671;_0x19e905>=0x0;_0x19e905--)(_0x1f2671=_0x331658[_0x19e905])&&(_0x21246d=_0x1f2671(_0x21246d)||_0x21246d);return _0x21246d;},W=(_0x386c9f,_0x8d2f96)=>(_0xf8a6c,_0x882ab2)=>_0x8d2f96(_0xf8a6c,_0x882ab2,_0x386c9f);exports[_0x56af3f(0x2c9)]=class extends u[_0x56af3f(0x2d0)]{constructor(_0x3aa7fa,_0x315394,_0xc0623a,_0x365a4c,_0x13e11c){super(_0x3aa7fa,_0x315394,_0xc0623a,_0x365a4c,_0x13e11c);}async[_0x56af3f(0x28c)](_0x2b950a){const _0x57d971=_0x56af3f,_0x1e3e9f=await this[_0x57d971(0x157)](),_0x2c29dd=this[_0x57d971(0x2ff)](_0x2b950a,_0x1e3e9f);return this[_0x57d971(0x289)](_0x2c29dd);}[_0x56af3f(0x2ff)](_0x43ca6b,_0xf108db){const _0x4e75f7=_0x56af3f,_0x1b5edb=typeof window>'u'?new URL(_0x43ca6b):new URL(_0x43ca6b,window[_0x4e75f7(0x3c6)]['origin']);_0x1b5edb[_0x4e75f7(0x387)][_0x4e75f7(0x3b5)](_0x4e75f7(0x149),_0xf108db);const _0x549be3=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4e75f7(0x3c6)][_0x4e75f7(0x1ed)]);return _0x549be3[_0x4e75f7(0x302)]('runId')&&_0x1b5edb[_0x4e75f7(0x387)][_0x4e75f7(0x3b5)](_0x4e75f7(0x281),_0x549be3[_0x4e75f7(0x302)](_0x4e75f7(0x281))),_0x1b5edb[_0x4e75f7(0x16f)]();}async[_0x56af3f(0x157)](){const _0x56c525=_0x56af3f;var _0x52b0b7,_0x32d9ad,_0x42697b;const _0x5842fc=this[_0x56c525(0x20a)]['getConfig'](u[_0x56c525(0x18c)]),_0x2acc44=(_0x52b0b7=_0x5842fc==null?void 0x0:_0x5842fc[_0x56c525(0x237)])!=null?_0x52b0b7:u[_0x56c525(0x1d0)];return(_0x42697b=(_0x32d9ad=(await this[_0x56c525(0x37f)][_0x56c525(0x302)](_0x2acc44,{'headers':{'Content-Type':_0x56c525(0x314)}}))[_0x56c525(0x2a5)])==null?void 0x0:_0x32d9ad[_0x56c525(0x192)])!=null?_0x42697b:'';}},exports['BrowserCollaborationSocketService']=cs([W(0x0,a[_0x56af3f(0x253)](a[_0x56af3f(0x3b6)])),W(0x1,a[_0x56af3f(0x253)](q['HTTPService'])),W(0x2,a['IConfigService']),W(0x3,a['ILogService']),W(0x4,m[_0x56af3f(0x2bc)])],exports['BrowserCollaborationSocketService']);const Le=0x7530,Pe=_0x56af3f(0x238);class ls extends a[_0x56af3f(0x27b)]{constructor(){const _0x500a66=_0x56af3f;super(),_(this,_0x500a66(0x2a9),a['generateRandomId']()),_(this,_0x500a66(0x297),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x500a66(0x3cd),null),_(this,_0x500a66(0x267),new Map()),_(this,_0x500a66(0x271),new Map()),this[_0x500a66(0x39b)]();}['dispose'](){const _0xf2c50=_0x56af3f;super[_0xf2c50(0x3bd)](),this[_0xf2c50(0x267)]['forEach']((_0x130eb3,_0x58b31c)=>this[_0xf2c50(0x19c)](_0x58b31c)),this[_0xf2c50(0x3cd)]&&window['clearInterval'](this[_0xf2c50(0x3cd)]);}[_0x56af3f(0x300)](_0xfffb40){const _0x1882d4=_0x56af3f;return this[_0x1882d4(0x375)](_0xfffb40)['pipe'](d['distinctUntilChanged']());}[_0x56af3f(0x38a)](_0x2524e2){const _0x422403=_0x56af3f;this[_0x422403(0x297)][_0x422403(0x173)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x2524e2),this[_0x422403(0x293)]({'type':0x0,'memberID':this[_0x422403(0x2a9)],'unitIDs':[_0x2524e2],'isForwarded':!0x1});}[_0x56af3f(0x343)](_0x6d44a7){const _0xbfe216=_0x56af3f;this[_0xbfe216(0x297)][_0xbfe216(0x2d8)](_0x6d44a7),this['_selfUnitIDs'][_0xbfe216(0x173)]===0x0&&this[_0xbfe216(0x3cd)]&&window[_0xbfe216(0x29e)](this[_0xbfe216(0x3cd)]);}[_0x56af3f(0x39b)](){const _0x43daff=_0x56af3f;this[_0x43daff(0x2a6)](a[_0x43daff(0x353)](d[_0x43daff(0x14b)](window,_0x43daff(0x184))['subscribe'](_0x3e27a9=>{const _0x564185=_0x43daff;if(_0x3e27a9[_0x564185(0x2ee)]!==Pe||!_0x3e27a9[_0x564185(0x1f3)])return;const _0x483c17=JSON[_0x564185(0x1de)](_0x3e27a9[_0x564185(0x1f3)]);this[_0x564185(0x1e7)](_0x483c17);}))),window[_0x43daff(0x163)](_0x43daff(0x14c),()=>this[_0x43daff(0x293)]({'type':0x1,'memberID':this[_0x43daff(0x2a9)],'unitIDs':Array[_0x43daff(0x323)](this[_0x43daff(0x297)])}));}[_0x56af3f(0x1e7)](_0x5dd752){const _0x3d41d3=_0x56af3f;switch(_0x5dd752[_0x3d41d3(0x346)]){case 0x0:this[_0x3d41d3(0x349)](_0x5dd752);break;case 0x1:this[_0x3d41d3(0x2cd)](_0x5dd752);break;case 0x2:this[_0x3d41d3(0x1d6)](_0x5dd752);break;}}[_0x56af3f(0x349)](_0x3fbd55){const _0x45925b=_0x56af3f,{unitIDs:_0x4660ef,memberID:_0x58b798,isForwarded:_0x1938fb}=_0x3fbd55;_0x4660ef['forEach'](_0x3e959e=>{const _0x2d1f76=_0x408b;if(!_0x1938fb&&this[_0x2d1f76(0x1a8)][_0x2d1f76(0x140)](_0x3e959e)&&this[_0x2d1f76(0x375)](_0x3e959e)['next'](u[_0x2d1f76(0x150)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x3e959e)||!this[_0x2d1f76(0x1a8)][_0x2d1f76(0x302)](_0x3e959e)['has'](_0x58b798)){const _0x2990c0=this[_0x2d1f76(0x1a8)][_0x2d1f76(0x302)](_0x3e959e)||new Set();_0x2990c0['add'](_0x58b798),this['_unitOnClients'][_0x2d1f76(0x3b5)](_0x3e959e,_0x2990c0),this[_0x2d1f76(0x257)](_0x58b798);}}),_0x1938fb||this[_0x45925b(0x293)]({'type':0x0,'memberID':this[_0x45925b(0x2a9)],'unitIDs':[...this[_0x45925b(0x297)]],'isForwarded':!0x0});}[_0x56af3f(0x257)](_0x5a670c){const _0x330679=_0x56af3f;this['_removeClearOtherTimer'](_0x5a670c);const _0x20a797=window[_0x330679(0x23e)](()=>{const _0x45cdbb=_0x330679;this[_0x45cdbb(0x1a8)][_0x45cdbb(0x2eb)](_0x2f654d=>{_0x2f654d['delete'](_0x5a670c);});},Le*0x2);this['_clearOtherTimers']['set'](_0x5a670c,_0x20a797);}[_0x56af3f(0x19c)](_0x59bd7e){const _0x414f9e=_0x56af3f;if(this['_clearOtherTimers'][_0x414f9e(0x140)](_0x59bd7e)){const _0x48b055=this['_clearOtherTimers']['get'](_0x59bd7e);_0x48b055&&window[_0x414f9e(0x298)](_0x48b055),this[_0x414f9e(0x267)][_0x414f9e(0x3b5)](_0x59bd7e,null);}}[_0x56af3f(0x2cd)](_0x412508){const _0x2580f7=_0x56af3f,{memberID:_0x58f564,unitIDs:_0x4953bb}=_0x412508;_0x4953bb[_0x2580f7(0x2eb)](_0x47fd2b=>{const _0x1cbe0c=_0x2580f7;var _0x5efd71;const _0x1758fd=this['_unitOnClients'][_0x1cbe0c(0x302)](_0x47fd2b);_0x1758fd&&(_0x1758fd[_0x1cbe0c(0x2d8)](_0x58f564),(_0x5efd71=this[_0x1cbe0c(0x375)](_0x47fd2b))==null||_0x5efd71['next'](_0x1758fd['size']===0x0?u[_0x1cbe0c(0x150)][_0x1cbe0c(0x3c1)]:u[_0x1cbe0c(0x150)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x58f564);}[_0x56af3f(0x1d6)](_0x2d4012){const _0xa72e5d=_0x56af3f;this['_scheduleClearOtherTimer'](_0x2d4012[_0xa72e5d(0x1d2)]);}['_send'](_0x2b1b20){const _0x125863=_0x56af3f;localStorage[_0x125863(0x2e6)](Pe,JSON[_0x125863(0x251)](_0x2b1b20));}[_0x56af3f(0x396)](){const _0x337fe4=_0x56af3f;this[_0x337fe4(0x3cd)]=window[_0x337fe4(0x1f2)](()=>{const _0x5ce7e5=_0x337fe4;this[_0x5ce7e5(0x293)]({'type':0x2,'memberID':this[_0x5ce7e5(0x2a9)]});},Le);}[_0x56af3f(0x375)](_0x534ca1){const _0x289d7d=_0x56af3f;return this[_0x289d7d(0x271)]['has'](_0x534ca1)||this[_0x289d7d(0x271)][_0x289d7d(0x3b5)](_0x534ca1,new d[(_0x289d7d(0x3c9))](u['UnitStatus'][_0x289d7d(0x3c1)])),this[_0x289d7d(0x271)][_0x289d7d(0x302)](_0x534ca1);}}var ke=(_0x33d841=>(_0x33d841[_0x33d841[_0x56af3f(0x15f)]=0x0]=_0x56af3f(0x15f),_0x33d841[_0x33d841['OK']=0x1]='OK',_0x33d841[_0x33d841[_0x56af3f(0x2de)]=0x2]=_0x56af3f(0x2de),_0x33d841[_0x33d841[_0x56af3f(0x328)]=0x3]=_0x56af3f(0x328),_0x33d841[_0x33d841[_0x56af3f(0x310)]=0x4]=_0x56af3f(0x310),_0x33d841[_0x33d841[_0x56af3f(0x2d2)]=0x5]=_0x56af3f(0x2d2),_0x33d841[_0x33d841['ALREADY_EXISTS']=0x6]=_0x56af3f(0x337),_0x33d841[_0x33d841[_0x56af3f(0x219)]=0x7]='INVALID_ARGUMENT',_0x33d841[_0x33d841[_0x56af3f(0x1ae)]=0x8]='TOO_MANY_REQUESTS',_0x33d841[_0x33d841[_0x56af3f(0x2d1)]=0x9]='COMPLETION_FINISHED',_0x33d841[_0x33d841['LOGIN_FAILED']=0xa]=_0x56af3f(0x209),_0x33d841[_0x33d841[_0x56af3f(0x288)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x33d841[_0x33d841[_0x56af3f(0x35b)]=0x1771]=_0x56af3f(0x35b),_0x33d841[_0x33d841[_0x56af3f(0x23a)]=0x1772]=_0x56af3f(0x23a),_0x33d841[_0x33d841['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x56af3f(0x1e8),_0x33d841[_0x33d841['APPLY_REJECT']=0x1b59]=_0x56af3f(0x29d),_0x33d841[_0x33d841[_0x56af3f(0x331)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x33d841[_0x33d841[_0x56af3f(0x1b2)]=0x1b5b]=_0x56af3f(0x1b2),_0x33d841[_0x33d841['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x33d841[_0x33d841[_0x56af3f(0x183)]=0x1b5d]=_0x56af3f(0x183),_0x33d841[_0x33d841['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x56af3f(0x315),_0x33d841[_0x33d841[_0x56af3f(0x15a)]=0x2329]=_0x56af3f(0x15a),_0x33d841[_0x33d841[_0x56af3f(0x2fe)]=0x232a]=_0x56af3f(0x2fe),_0x33d841[_0x33d841['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x56af3f(0x1c5),_0x33d841[_0x33d841[_0x56af3f(0x3cc)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x33d841[_0x33d841[_0x56af3f(0x1fa)]=0x232d]=_0x56af3f(0x1fa),_0x33d841[_0x33d841['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x33d841[_0x33d841[_0x56af3f(0x2b6)]=0x2712]=_0x56af3f(0x2b6),_0x33d841[_0x33d841[_0x56af3f(0x185)]=0x2713]=_0x56af3f(0x185),_0x33d841[_0x33d841[_0x56af3f(0x365)]=0x2714]=_0x56af3f(0x365),_0x33d841[_0x33d841[_0x56af3f(0x32c)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x33d841[_0x33d841['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x33d841[_0x33d841[_0x56af3f(0x164)]=0x2af9]=_0x56af3f(0x164),_0x33d841[_0x33d841['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x56af3f(0x254),_0x33d841[_0x33d841['INVALID_INVITE_CODE']=0x2ee2]=_0x56af3f(0x27e),_0x33d841[_0x33d841[_0x56af3f(0x304)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x33d841[_0x33d841[_0x56af3f(0x3b3)]=0x2ee4]=_0x56af3f(0x3b3),_0x33d841[_0x33d841['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x56af3f(0x27f),_0x33d841[_0x33d841['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x56af3f(0x194),_0x33d841[_0x33d841[_0x56af3f(0x32f)]=0x32ca]=_0x56af3f(0x32f),_0x33d841[_0x33d841[_0x56af3f(0x3b0)]=0x32cb]=_0x56af3f(0x3b0),_0x33d841[_0x33d841[_0x56af3f(0x3c5)]=-0x1]=_0x56af3f(0x3c5),_0x33d841))(ke||{}),_s=Object[_0x56af3f(0x162)],hs=(_0x137fbf,_0x4f25c4,_0x3b5e7c,_0x434625)=>{for(var _0xbd9bc7=_0x434625>0x1?void 0x0:_0x434625?_s(_0x4f25c4,_0x3b5e7c):_0x4f25c4,_0x20073c=_0x137fbf['length']-0x1,_0x59efc9;_0x20073c>=0x0;_0x20073c--)(_0x59efc9=_0x137fbf[_0x20073c])&&(_0xbd9bc7=_0x59efc9(_0xbd9bc7)||_0xbd9bc7);return _0xbd9bc7;},de=(_0x3e333b,_0x329d40)=>(_0x34cf76,_0x25d136)=>_0x329d40(_0x34cf76,_0x25d136,_0x3e333b);exports[_0x56af3f(0x336)]=class extends a[_0x56af3f(0x27b)]{constructor(_0x5beabe,_0x3ab70c,_0x32e545){const _0x201a7d=_0x56af3f;super(),this[_0x201a7d(0x316)]=_0x5beabe,this[_0x201a7d(0x37f)]=_0x3ab70c,this[_0x201a7d(0x20a)]=_0x32e545;}async[_0x56af3f(0x226)](_0x451b32,_0x2dac78,_0x76c863,..._0x1ec495){const _0x5a4c9b=_0x56af3f;var _0x775940,_0x344abb,_0x1c6ac1,_0x45d6d3;const _0x3b7a1a=this[_0x5a4c9b(0x316)]['getFocusedUnit']();if(!_0x3b7a1a)throw new Error(_0x5a4c9b(0x19f));const _0xb60692=((_0x775940=this['_configService'][_0x5a4c9b(0x2fa)](u[_0x5a4c9b(0x350)]))!=null?_0x775940:u[_0x5a4c9b(0x28e)])+'/'+_0x451b32+'/run/'+_0x2dac78,_0x5c3a38=new URL(window[_0x5a4c9b(0x3c6)][_0x5a4c9b(0x19d)]),_0x354d75={'scriptId':_0x451b32,'runId':(_0x344abb=_0x5c3a38[_0x5a4c9b(0x387)]['get'](_0x5a4c9b(0x281)))!=null?_0x344abb:'','function':_0x2dac78,'unitId':_0x3b7a1a[_0x5a4c9b(0x2fd)](),'argsOfFunction':JSON[_0x5a4c9b(0x251)](_0x1ec495),'invokeId':(_0x1c6ac1=_0x76c863[_0x5a4c9b(0x167)])!=null?_0x1c6ac1:'','executionId':(_0x45d6d3=_0x76c863[_0x5a4c9b(0x393)])!=null?_0x45d6d3:''};try{const _0x5a27ba=await this[_0x5a4c9b(0x37f)][_0x5a4c9b(0x19e)](_0xb60692,{'body':_0x354d75});return _0x5a27ba[_0x5a4c9b(0x2a5)]['error']&&_0x5a27ba['body'][_0x5a4c9b(0x252)][_0x5a4c9b(0x242)]!==ke['OK']?_0x5a4c9b(0x30c):_0x5a27ba[_0x5a4c9b(0x2a5)]['result'];}catch{return _0x5a4c9b(0x30c);}}},exports[_0x56af3f(0x336)]=hs([de(0x0,a[_0x56af3f(0x3bb)]),de(0x1,a[_0x56af3f(0x253)](q[_0x56af3f(0x2ce)])),de(0x2,a[_0x56af3f(0x2c7)])],exports['RemoteUniscriptService']),exports[_0x56af3f(0x2c1)]=je,exports[_0x56af3f(0x233)]=Ee,exports[_0x56af3f(0x28d)]=Ae,exports[_0x56af3f(0x182)]=ls,exports[_0x56af3f(0x303)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x168af1=_0x24f9;(function(_0x581f01,_0x25354d){const _0x3cba64=_0x24f9,_0x29bc97=_0x581f01();while(!![]){try{const _0x36e9e6=-parseInt(_0x3cba64(0x17f))/0x1+parseInt(_0x3cba64(0x189))/0x2+parseInt(_0x3cba64(0x18c))/0x3+parseInt(_0x3cba64(0x188))/0x4*(parseInt(_0x3cba64(0x17b))/0x5)+-parseInt(_0x3cba64(0x187))/0x6+parseInt(_0x3cba64(0x17c))/0x7+-parseInt(_0x3cba64(0x18f))/0x8;if(_0x36e9e6===_0x25354d)break;else _0x29bc97['push'](_0x29bc97['shift']());}catch(_0x376027){_0x29bc97['push'](_0x29bc97['shift']());}}}(_0x3982,0x6b0e9));function _0x24f9(_0x20732f,_0x2316f4){const _0x39821d=_0x3982();return _0x24f9=function(_0x24f98d,_0x3d927c){_0x24f98d=_0x24f98d-0x17b;let _0x15987b=_0x39821d[_0x24f98d];return _0x15987b;},_0x24f9(_0x20732f,_0x2316f4);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x168af1(0x17d),'conflict':_0x168af1(0x18a),'notCollab':_0x168af1(0x180),'synced':_0x168af1(0x18b),'syncing':_0x168af1(0x18e),'offline':_0x168af1(0x186)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x168af1(0x181),'room-full':_0x168af1(0x184),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x168af1(0x183),'content':_0x168af1(0x182)},'permission':{'title':'Authentication\x20Error','content':_0x168af1(0x18d)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x168af1(0x185)}};function _0x3982(){const _0x29f220=['548148MXdSaf','Local\x20file','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','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.','Collaboration\x20Conflict','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','3224334KtkWcY','744YIinjK','225216hKheeV','Edit\x20conflicts','Synced','2486934ROaDTK','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing...','8538976pUjQNO','21930NfsLvg','5838224tZxika','Syncing\x20server\x20data...','exports'];_0x3982=function(){return _0x29f220;};return _0x3982();}module[_0x168af1(0x17e)]=e;
|