@univerjs-pro/collaboration-client-ui 0.10.10-nightly.202510170942 → 0.10.10-nightly.202510180256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x112f11=_0x29e7;(function(_0x3e21a1,_0x1c569a){const _0x29b1fd=_0x29e7,_0x5ccba5=_0x3e21a1();while(!![]){try{const _0xeba00a=parseInt(_0x29b1fd(0x219))/0x1*(parseInt(_0x29b1fd(0x20a))/0x2)+-parseInt(_0x29b1fd(0x137))/0x3*(-parseInt(_0x29b1fd(0x3a2))/0x4)+-parseInt(_0x29b1fd(0x230))/0x5*(-parseInt(_0x29b1fd(0x1a3))/0x6)+-parseInt(_0x29b1fd(0x106))/0x7*(-parseInt(_0x29b1fd(0x102))/0x8)+-parseInt(_0x29b1fd(0x359))/0x9+parseInt(_0x29b1fd(0x3ae))/0xa+parseInt(_0x29b1fd(0x2a3))/0xb*(-parseInt(_0x29b1fd(0x356))/0xc);if(_0xeba00a===_0x1c569a)break;else _0x5ccba5['push'](_0x5ccba5['shift']());}catch(_0xbb5d50){_0x5ccba5['push'](_0x5ccba5['shift']());}}}(_0x1d23,0x5333e));var Ge=Object[_0x112f11(0x39a)],Xe=(_0x3c98b0,_0x839fa9,_0x23f189)=>_0x839fa9 in _0x3c98b0?Ge(_0x3c98b0,_0x839fa9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23f189}):_0x3c98b0[_0x839fa9]=_0x23f189,_=(_0x2ead2d,_0x33c441,_0x3142b2)=>Xe(_0x2ead2d,typeof _0x33c441!=_0x112f11(0x12c)?_0x33c441+'':_0x33c441,_0x3142b2);Object[_0x112f11(0x39a)](exports,Symbol['toStringTag'],{'value':'Module'});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){const _0x4a8ed1=_0x112f11;return O=Object[_0x4a8ed1(0x25d)]||function(_0x27087b){const _0xc1834=_0x4a8ed1;for(var _0x521b14,_0x4371d3=0x1,_0x1ccff1=arguments[_0xc1834(0x132)];_0x4371d3<_0x1ccff1;_0x4371d3++){_0x521b14=arguments[_0x4371d3];for(var _0x21c108 in _0x521b14)Object['prototype'][_0xc1834(0x37d)]['call'](_0x521b14,_0x21c108)&&(_0x27087b[_0x21c108]=_0x521b14[_0x21c108]);}return _0x27087b;},O[_0x4a8ed1(0x2d4)](this,arguments);},ze=function(_0x8dd33d,_0xa8f390){const _0x38613f=_0x112f11;var _0x48c602={};for(var _0x11d018 in _0x8dd33d)Object[_0x38613f(0x36b)][_0x38613f(0x37d)][_0x38613f(0x2aa)](_0x8dd33d,_0x11d018)&&_0xa8f390[_0x38613f(0x174)](_0x11d018)<0x0&&(_0x48c602[_0x11d018]=_0x8dd33d[_0x11d018]);if(_0x8dd33d!=null&&typeof Object[_0x38613f(0x350)]==_0x38613f(0x333)){for(var _0x2a71a6=0x0,_0x11d018=Object[_0x38613f(0x350)](_0x8dd33d);_0x2a71a6<_0x11d018['length'];_0x2a71a6++)_0xa8f390[_0x38613f(0x174)](_0x11d018[_0x2a71a6])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x8dd33d,_0x11d018[_0x2a71a6])&&(_0x48c602[_0x11d018[_0x2a71a6]]=_0x8dd33d[_0x11d018[_0x2a71a6]]);}return _0x48c602;},pe=L[_0x112f11(0x338)](function(_0x5e2670,_0x4eef74){const _0x2ae66b=_0x112f11;var _0x4b2bb7=_0x5e2670[_0x2ae66b(0x161)],_0x5d0e10=_0x5e2670['id'],_0x1cc86d=_0x5e2670[_0x2ae66b(0x118)],_0x6115cf=_0x5e2670[_0x2ae66b(0x242)],_0x59eaed=ze(_0x5e2670,[_0x2ae66b(0x161),'id',_0x2ae66b(0x118),'extend']),_0xa6c516=_0x2ae66b(0x2f9)[_0x2ae66b(0x345)](_0x5d0e10,'\x20')[_0x2ae66b(0x345)](_0x1cc86d||'')[_0x2ae66b(0x184)](),_0x841bfb=L[_0x2ae66b(0x337)]('_'[_0x2ae66b(0x345)](Qe()));return ye(_0x4b2bb7,''['concat'](_0x5d0e10),{'defIds':_0x4b2bb7[_0x2ae66b(0x227)],'idSuffix':_0x841bfb['current']},O({'ref':_0x4eef74,'className':_0xa6c516},_0x59eaed),_0x6115cf);});function ye(_0x3205fe,_0x290d91,_0x13a560,_0x53fc4d,_0x5d99d4){const _0x570a00=_0x112f11;return L[_0x570a00(0x2ae)](_0x3205fe[_0x570a00(0x114)],O(O({'key':_0x290d91},Je(_0x3205fe,_0x13a560,_0x5d99d4)),_0x53fc4d),(Ze(_0x3205fe,_0x13a560)['children']||[])[_0x570a00(0x2a9)](function(_0x3ea9f0,_0x25910b){const _0x38bf2c=_0x570a00;return ye(_0x3ea9f0,''[_0x38bf2c(0x345)](_0x290d91,'-')[_0x38bf2c(0x345)](_0x3205fe['tag'],'-')[_0x38bf2c(0x345)](_0x25910b),_0x13a560,void 0x0,_0x5d99d4);}));}function Je(_0x2a0b24,_0x152ab4,_0x34baef){const _0x5e31b2=_0x112f11;var _0x2b3881=O({},_0x2a0b24[_0x5e31b2(0x2ac)]);_0x34baef!=null&&_0x34baef[_0x5e31b2(0x203)]&&_0x2b3881[_0x5e31b2(0x352)]===_0x5e31b2(0x203)&&(_0x2b3881[_0x5e31b2(0x352)]=_0x34baef[_0x5e31b2(0x203)]),_0x2a0b24[_0x5e31b2(0x114)]==='mask'&&_0x2b3881['id']&&(_0x2b3881['id']=_0x2b3881['id']+_0x152ab4[_0x5e31b2(0x1ee)]),Object['entries'](_0x2b3881)['forEach'](function(_0x281c25){const _0x2fb981=_0x5e31b2;var _0x40ca29=_0x281c25[0x0],_0x12e381=_0x281c25[0x1];_0x40ca29===_0x2fb981(0x1ea)&&typeof _0x12e381=='string'&&(_0x2b3881[_0x40ca29]=_0x12e381[_0x2fb981(0x11b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x152ab4['idSuffix'],')')));});var _0x1a07d5=_0x152ab4[_0x5e31b2(0x227)];return!_0x1a07d5||_0x1a07d5['length']===0x0||(_0x2a0b24[_0x5e31b2(0x114)]===_0x5e31b2(0x1b0)&&_0x2b3881[_0x5e31b2(0x116)]&&(_0x2b3881[_0x5e31b2(0x116)]=_0x2b3881[_0x5e31b2(0x116)]+_0x152ab4[_0x5e31b2(0x1ee)]),Object[_0x5e31b2(0x121)](_0x2b3881)['forEach'](function(_0x4cbba6){const _0x1440c8=_0x5e31b2;var _0xa03b3a=_0x4cbba6[0x0],_0x30d5dd=_0x4cbba6[0x1];typeof _0x30d5dd==_0x1440c8(0x1c0)&&(_0x2b3881[_0xa03b3a]=_0x30d5dd[_0x1440c8(0x11b)](/url\(#(.*)\)/,_0x1440c8(0x14d)['concat'](_0x152ab4[_0x1440c8(0x1ee)],')')));})),_0x2b3881;}function Ze(_0x583b19,_0x46f241){const _0x32c67c=_0x112f11;var _0xa4665,_0x5aec23=_0x46f241['defIds'];return!_0x5aec23||_0x5aec23['length']===0x0?_0x583b19:_0x583b19[_0x32c67c(0x114)]===_0x32c67c(0x12f)&&(!((_0xa4665=_0x583b19[_0x32c67c(0x362)])===null||_0xa4665===void 0x0)&&_0xa4665['length'])?O(O({},_0x583b19),{'children':_0x583b19[_0x32c67c(0x362)][_0x32c67c(0x2a9)](function(_0x543930){const _0x265804=_0x32c67c;return typeof _0x543930['attrs']['id']==_0x265804(0x1c0)&&_0x5aec23&&_0x5aec23['includes'](_0x543930[_0x265804(0x2ac)]['id'])?O(O({},_0x543930),{'attrs':O(O({},_0x543930[_0x265804(0x2ac)]),{'id':_0x543930['attrs']['id']+_0x46f241[_0x265804(0x1ee)]})}):_0x543930;})}):_0x583b19;}function Qe(){const _0x533ebc=_0x112f11;return Math[_0x533ebc(0x1e7)]()[_0x533ebc(0x1c8)](0x24)['substring'](0x2,0x8);}pe[_0x112f11(0x210)]='UniverIcon';var et={'tag':'svg','attrs':{'xmlns':_0x112f11(0x2fb),'fill':_0x112f11(0x113),'viewBox':_0x112f11(0x2d7),'width':_0x112f11(0x314),'height':_0x112f11(0x314)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x112f11(0x383),'attrs':{'stroke':_0x112f11(0x179),'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':_0x112f11(0x1b5),'strokeLinejoin':_0x112f11(0x1b5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x112f11(0x23c)},'children':[{'tag':_0x112f11(0x383),'attrs':{'fill':_0x112f11(0x3af),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=L[_0x112f11(0x338)](function(_0x50513c,_0x4465fa){const _0x122bab=_0x112f11;return L[_0x122bab(0x2ae)](pe,Object['assign']({},_0x50513c,{'id':_0x122bab(0x105),'ref':_0x4465fa,'icon':et}));});xe[_0x112f11(0x210)]=_0x112f11(0x32e);var tt={'tag':_0x112f11(0x181),'attrs':{'xmlns':_0x112f11(0x2fb),'fill':_0x112f11(0x113),'viewBox':_0x112f11(0x39f),'width':_0x112f11(0x314),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x112f11(0x383),'attrs':{'stroke':_0x112f11(0x179),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x112f11(0x1b5),'strokeLinejoin':_0x112f11(0x1b5),'strokeWidth':1.2}}]},{'tag':_0x112f11(0x12f),'attrs':{},'children':[{'tag':_0x112f11(0x269),'attrs':{'id':_0x112f11(0x1a5)},'children':[{'tag':_0x112f11(0x383),'attrs':{'fill':_0x112f11(0x3af),'d':_0x112f11(0x28e),'transform':_0x112f11(0x387)}}]}]}],'defIds':[_0x112f11(0x1a5)]},$e=L[_0x112f11(0x338)](function(_0x2dc88b,_0x14fb1a){const _0x5d3037=_0x112f11;return L['createElement'](pe,Object[_0x5d3037(0x25d)]({},_0x2dc88b,{'id':_0x5d3037(0x165),'ref':_0x14fb1a,'icon':tt}));});$e[_0x112f11(0x210)]='OnLineIcon';function st(_0x5b86f4){const _0x5ea49c=_0x112f11;switch(_0x5b86f4){case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x330)]:return _0x5ea49c(0x13b);case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x34c)]:return _0x5ea49c(0x1b2);case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x271)]:return'collabStatus.fetchMiss';case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x1d6)]:return _0x5ea49c(0x2e4);case u[_0x5ea49c(0x2f7)]['AWAITING']:case u[_0x5ea49c(0x2f7)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u['CollaborationStatus'][_0x5ea49c(0x19d)]:case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x1d7)]:return _0x5ea49c(0x250);}}function it(_0x22327a){const _0x50d7bb=_0x112f11,{status$:_0x304413}=_0x22327a,_0x24d2d7=R['useObservable'](_0x304413,u['CollaborationStatus']['NOT_COLLAB']),_0x28d48b=R[_0x50d7bb(0x19e)](a['LocaleService']),_0x10e68f=R[_0x50d7bb(0x19e)](u[_0x50d7bb(0x12b)]),_0x530093=_0x24d2d7!==u[_0x50d7bb(0x2f7)][_0x50d7bb(0x330)],_0x2fde4f=_0x28d48b['t'](st(_0x24d2d7)),_0x2829db=_0x530093?P[_0x50d7bb(0x21f)]($e,{}):P[_0x50d7bb(0x21f)](xe,{}),_0x4775ec=L[_0x50d7bb(0x38a)](()=>{const _0x3433bb=_0x50d7bb;_0x530093||_0x10e68f[_0x3433bb(0x276)]();},[_0x530093,_0x10e68f]);function _0x17eaeb(){const _0xa21a7e=_0x50d7bb;return P[_0xa21a7e(0x18d)](_0xa21a7e(0x217),{'className':_0xa21a7e(0x37e),'onClick':_0x4775ec,'children':[P[_0xa21a7e(0x21f)](_0xa21a7e(0x217),{'className':T[_0xa21a7e(0x2e6)](_0xa21a7e(0x34f),{'univer-text-green-500':_0x530093,'univer-text-red-500':!_0x530093}),'children':_0x2829db}),P[_0xa21a7e(0x21f)](_0xa21a7e(0x217),{'className':_0xa21a7e(0x147),'children':_0x2fde4f})]});}return _0x530093?_0x17eaeb():P[_0x50d7bb(0x21f)](T[_0x50d7bb(0x1c1)],{'title':_0x28d48b['t'](_0x50d7bb(0x33f)),'children':_0x17eaeb()});}var nt=Object[_0x112f11(0x265)],rt=(_0x2189c1,_0x404eec,_0x1de77f,_0x2c7fa3)=>{const _0x2cf0ce=_0x112f11;for(var _0x3a347d=_0x2c7fa3>0x1?void 0x0:_0x2c7fa3?nt(_0x404eec,_0x1de77f):_0x404eec,_0x4f3970=_0x2189c1[_0x2cf0ce(0x132)]-0x1,_0x2afd6c;_0x4f3970>=0x0;_0x4f3970--)(_0x2afd6c=_0x2189c1[_0x4f3970])&&(_0x3a347d=_0x2afd6c(_0x3a347d)||_0x3a347d);return _0x3a347d;},q=(_0x1a4793,_0x3a2524)=>(_0x11cbef,_0x1a6e48)=>_0x3a2524(_0x11cbef,_0x1a6e48,_0x1a4793);exports[_0x112f11(0x33a)]=class extends a['Disposable']{constructor(_0x503be0,_0x471189,_0x215d67,_0x3d5834){const _0x18c350=_0x112f11;super(),_(this,_0x18c350(0x2db),new I[(_0x18c350(0x1dd))](u[_0x18c350(0x2f7)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x503be0,this[_0x18c350(0x399)]=_0x471189,this[_0x18c350(0x131)]=_0x215d67,this[_0x18c350(0x149)]=_0x3d5834,this[_0x18c350(0x247)](),this[_0x18c350(0x23f)]());}[_0x112f11(0x23f)](){const _0x4faa50=_0x112f11;this[_0x4faa50(0x2dc)](this[_0x4faa50(0x368)][_0x4faa50(0xf5)][_0x4faa50(0x15e)](I[_0x4faa50(0x1ce)](()=>{const _0x109a52=_0x4faa50,_0x327d13=this[_0x109a52(0x368)]['getFocusedUnit']();return _0x327d13?this[_0x109a52(0x131)][_0x109a52(0x27b)](_0x327d13['getUnitId']()):I['of'](null);}),I[_0x4faa50(0x1ce)](_0xf1b880=>_0xf1b880?_0xf1b880[_0x4faa50(0xfc)]:I['of'](u[_0x4faa50(0x2f7)][_0x4faa50(0x1d6)])))['subscribe'](_0x528cd0=>{const _0x5282c2=_0x4faa50;this[_0x5282c2(0x2db)][_0x5282c2(0x159)](_0x528cd0);}));}[_0x112f11(0x247)](){const _0x4ad369=_0x112f11;this[_0x4ad369(0x2dc)](this[_0x4ad369(0x149)][_0x4ad369(0x231)](R[_0x4ad369(0x35c)][_0x4ad369(0x156)],()=>R[_0x4ad369(0x263)](ot({'status$':this['_status$'][_0x4ad369(0x38e)]()}),this['_injector'])));}},exports[_0x112f11(0x33a)]=rt([q(0x0,a[_0x112f11(0x2cf)]),q(0x1,a['Inject'](a[_0x112f11(0x32f)])),q(0x2,a[_0x112f11(0x277)](u[_0x112f11(0x2d6)])),q(0x3,R['IUIPartsService'])],exports[_0x112f11(0x33a)]);function ot(_0x27f1a8){const {status$:_0x53ea63}=_0x27f1a8;return function(){const _0xc081e6=_0x29e7;return P[_0xc081e6(0x21f)](it,{'status$':_0x53ea63});};}const Te=a[_0x112f11(0x295)](_0x112f11(0x285));var at=Object[_0x112f11(0x265)],ct=(_0x17ae67,_0x4a2e07,_0x369c96,_0x11df7f)=>{const _0x1e34dd=_0x112f11;for(var _0x510190=_0x11df7f>0x1?void 0x0:_0x11df7f?at(_0x4a2e07,_0x369c96):_0x4a2e07,_0x8ce58d=_0x17ae67[_0x1e34dd(0x132)]-0x1,_0x3b274b;_0x8ce58d>=0x0;_0x8ce58d--)(_0x3b274b=_0x17ae67[_0x8ce58d])&&(_0x510190=_0x3b274b(_0x510190)||_0x510190);return _0x510190;},Y=(_0x1ddf92,_0xe2f8e2)=>(_0x3eaaf0,_0x48ab7f)=>_0xe2f8e2(_0x3eaaf0,_0x48ab7f,_0x1ddf92);exports[_0x112f11(0x374)]=class extends a[_0x112f11(0x2a7)]{constructor(_0x6ac9d9,_0x36daa4,_0x2d7077,_0x41579d,_0x3a6083){const _0x2ca784=_0x112f11;super(),this[_0x2ca784(0x2f2)]=_0x6ac9d9,this[_0x2ca784(0x3ad)]=_0x36daa4,this[_0x2ca784(0x124)]=_0x2d7077,this['_dataLoaderService']=_0x41579d,_0x3a6083?_0x3a6083==null||_0x3a6083['whenReady']()['then'](()=>this[_0x2ca784(0x31e)]()):(this[_0x2ca784(0x3ad)]['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2ca784(0x31e)]());}async['_init'](){const _0x7a5915=_0x112f11,_0x53dbf5=this[_0x7a5915(0x2f2)]['getParam'](_0x7a5915(0x38c)),_0x1f6bbe=this[_0x7a5915(0x2f2)][_0x7a5915(0x1ab)](_0x7a5915(0x342)),_0x7a0dae=this[_0x7a5915(0x2f2)][_0x7a5915(0x1ab)](_0x7a5915(0x275));if(!_0x53dbf5||!_0x1f6bbe){this[_0x7a5915(0x3ad)][_0x7a5915(0x23d)](_0x7a5915(0x1f9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x28671a=await this['_dataLoaderService'][_0x7a5915(0x2b4)](_0x53dbf5,Number(_0x1f6bbe),_0x7a0dae);_0x28671a&&_0x28671a instanceof a['Workbook']&&this[_0x7a5915(0x30c)](_0x28671a);}async[_0x112f11(0x30c)](_0x48cdde){const _0x10ce43=_0x112f11;await this[_0x10ce43(0x19a)](_0x48cdde),_0x48cdde[_0x10ce43(0x223)][_0x10ce43(0x15e)](I[_0x10ce43(0x2a6)](this[_0x10ce43(0x33b)]))[_0x10ce43(0x1a4)](_0x4f9f5b=>{_0x4f9f5b&&this['_updateURLWithCurrentState'](_0x4f9f5b);}),this[_0x10ce43(0x2f2)][_0x10ce43(0x1ba)][_0x10ce43(0x15e)](I['takeUntil'](this[_0x10ce43(0x33b)]))[_0x10ce43(0x1a4)](()=>this['_updateSubUnitFromURLParams'](_0x48cdde));}[_0x112f11(0x143)](_0x5a6433,_0x16cdb0=!0x1){const _0x492270=_0x112f11,_0x3a0733=this[_0x492270(0x2f2)][_0x492270(0x1ab)](_0x492270(0x275));_0x5a6433[_0x492270(0x3a5)]()!==_0x3a0733&&this[_0x492270(0x2f2)][_0x492270(0x108)](_0x492270(0x275),_0x5a6433[_0x492270(0x3a5)](),_0x16cdb0);}async[_0x112f11(0x19a)](_0x5b7e63){const _0x13b13e=_0x112f11;var _0x5cf6d6;const _0x32b094=this[_0x13b13e(0x2f2)][_0x13b13e(0x1ab)](_0x13b13e(0x275));if(!_0x32b094||!_0x5b7e63[_0x13b13e(0x1db)](_0x32b094)){const _0x478aa0=_0x5b7e63[_0x13b13e(0x385)]()[0x0],_0xa74068=_0x5b7e63['getSheetBySheetId'](_0x478aa0);if(!_0xa74068)return;this[_0x13b13e(0x143)](_0xa74068,!0x0),await this['_commandService'][_0x13b13e(0x257)](v[_0x13b13e(0x127)]['id'],{'unitId':_0x5b7e63[_0x13b13e(0x1d3)](),'subUnitId':_0x478aa0});return;}((_0x5cf6d6=_0x5b7e63[_0x13b13e(0xfb)]())==null?void 0x0:_0x5cf6d6[_0x13b13e(0x3a5)]())!==_0x32b094&&await this[_0x13b13e(0x124)][_0x13b13e(0x257)](v[_0x13b13e(0x127)]['id'],{'unitId':_0x5b7e63[_0x13b13e(0x1d3)](),'subUnitId':_0x32b094});}},exports[_0x112f11(0x374)]=ct([Y(0x0,Te),Y(0x1,a[_0x112f11(0x12d)]),Y(0x2,a[_0x112f11(0x16e)]),Y(0x3,a['Inject'](u[_0x112f11(0x1cd)])),Y(0x4,a[_0x112f11(0x10b)](Ke['IRemoteInstanceService']))],exports[_0x112f11(0x374)]);var lt=Object[_0x112f11(0x265)],_t=(_0x32f594,_0x3ea944,_0x309acc,_0x1debf9)=>{const _0xbbc329=_0x112f11;for(var _0x1d454f=_0x1debf9>0x1?void 0x0:_0x1debf9?lt(_0x3ea944,_0x309acc):_0x3ea944,_0x46f57c=_0x32f594[_0xbbc329(0x132)]-0x1,_0x432cb2;_0x46f57c>=0x0;_0x46f57c--)(_0x432cb2=_0x32f594[_0x46f57c])&&(_0x1d454f=_0x432cb2(_0x1d454f)||_0x1d454f);return _0x1d454f;},be=(_0x4e8dff,_0x153949)=>(_0x2225b1,_0x29b9e5)=>_0x153949(_0x2225b1,_0x29b9e5,_0x4e8dff);let fe=class extends a['RxDisposable']{constructor(_0x5e01f8,_0x3b69e7){const _0x5f4cdd=_0x112f11;super(),this[_0x5f4cdd(0x1a6)]=_0x5e01f8,this['_imageIoService']=_0x3b69e7,this['_init']();}['_init'](){const _0x456496=_0x112f11,_0x71edde=this;this[_0x456496(0x2dc)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x573ab9=>{const _0x26a16b=_0x456496,_0x2d87fd=await _0x71edde[_0x26a16b(0x209)][_0x26a16b(0x192)](_0x573ab9);return _0x2d87fd?{'source':_0x2d87fd[_0x26a16b(0x187)],'imageSourceType':_0x2d87fd[_0x26a16b(0xf4)]}:null;}}));}};fe=_t([be(0x0,p[_0x112f11(0x17c)]),be(0x1,qe['IImageIoService'])],fe);const De=[_0x112f11(0x3a9),_0x112f11(0x36d),_0x112f11(0x2af),_0x112f11(0x322),_0x112f11(0x279),_0x112f11(0xfa)];class Oe extends a[_0x112f11(0x18b)]{constructor(){const _0x33ccd7=_0x112f11;super(...arguments),_(this,_0x33ccd7(0x34d),new Map()),_(this,_0x33ccd7(0x20c),0x0);}[_0x112f11(0x364)](_0x56a218){const _0x351e2f=_0x112f11;if(this['_assignedColors']['has'](_0x56a218))return this[_0x351e2f(0x34d)][_0x351e2f(0x243)](_0x56a218);const _0x281e80=De[this[_0x351e2f(0x20c)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%De[_0x351e2f(0x132)],this[_0x351e2f(0x34d)]['set'](_0x56a218,_0x281e80),_0x281e80;}}function Be(_0x43e282){let _0xbfa438='';for(const _0x19f292 of _0x43e282){const {startOffset:_0x3bee4b,endOffset:_0x24e91c,isActive:_0x50a83d,rangeType:_0x1fa9df,segmentId:_0x4a8022,segmentPage:_0x57e485}=_0x19f292;_0xbfa438['length']&&(_0xbfa438+=','),_0xbfa438+=_0x3bee4b+':'+_0x24e91c+':'+(_0x50a83d?'1':'0')+':'+_0x1fa9df+':'+_0x4a8022+':'+_0x57e485;}return _0xbfa438;}function ht(_0x2ed8cd){const _0x2bc499=_0x112f11,_0x5db7b2=_0x2ed8cd['split'](','),_0x3cd6cb=[];for(const _0x41a3a8 of _0x5db7b2){const [_0x3d54a2,_0x2bc8b9,_0x2fb1ad,_0xaadf89,_0x4901ab,_0x11ac5c]=_0x41a3a8[_0x2bc499(0x111)](':');_0x3cd6cb['push']({'startOffset':Number(_0x3d54a2),'endOffset':Number(_0x2bc8b9),'collapsed':_0x3d54a2===_0x2bc8b9,'isActive':_0x2fb1ad==='1','rangeType':_0xaadf89===a[_0x2bc499(0x212)][_0x2bc499(0x11f)]?a['DOC_RANGE_TYPE'][_0x2bc499(0x11f)]:a['DOC_RANGE_TYPE'][_0x2bc499(0x177)],'segmentId':typeof _0x4901ab=='string'?String(_0x4901ab):'','segmentPage':Number(_0x11ac5c!=null?_0x11ac5c:-0x1)});}return _0x3cd6cb['some'](_0x3a8004=>_0x3a8004[_0x2bc499(0x1e9)])||(_0x3cd6cb[0x0][_0x2bc499(0x1e9)]=!0x0),_0x3cd6cb;}class Re extends a[_0x112f11(0x2a7)]{constructor(){const _0x297d35=_0x112f11;super(...arguments),_(this,_0x297d35(0x393),new I['BehaviorSubject'](null)),_(this,_0x297d35(0x1fd),this['_collabCursorState$'][_0x297d35(0x38e)]());}[_0x112f11(0x262)](_0x31c084){const _0x1717fb=_0x112f11,{unitID:_0x313d1a,memberID:_0x1ccd85,textRanges:_0x189d00}=_0x31c084,_0x2055d0=Be(_0x189d00);if(_0x2055d0==='')return;const _0x3eee94={'unitID':_0x313d1a,'memberID':_0x1ccd85,'selection':_0x2055d0};this['_collabCursorState$'][_0x1717fb(0x159)](_0x3eee94);}}var ut=Object[_0x112f11(0x265)],It=(_0x36c822,_0x21f43f,_0x23851c,_0x227f1e)=>{for(var _0x5df7c3=_0x227f1e>0x1?void 0x0:_0x227f1e?ut(_0x21f43f,_0x23851c):_0x21f43f,_0x1d5c16=_0x36c822['length']-0x1,_0x184e77;_0x1d5c16>=0x0;_0x1d5c16--)(_0x184e77=_0x36c822[_0x1d5c16])&&(_0x5df7c3=_0x184e77(_0x5df7c3)||_0x5df7c3);return _0x5df7c3;},M=(_0x2f3e5c,_0x39a7d6)=>(_0x7c9803,_0x3912a9)=>_0x39a7d6(_0x7c9803,_0x3912a9,_0x2f3e5c);const dt=0x12c,St=0x64;let me=class extends a[_0x112f11(0x2a7)]{constructor(_0x4a6422,_0x42fd7b,_0x1a9d90,_0x3f6049,_0x5e06bb,_0x4cc40f,_0x554f23,_0x22b17b,_0x3bf8aa){const _0x1a6499=_0x112f11;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x1a6499(0x34b),new I[(_0x1a6499(0x1dd))](new Map())),_(this,_0x1a6499(0x1cc),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new I[(_0x1a6499(0x1dd))]([])),_(this,'roomMembers$',this[_0x1a6499(0x2d1)][_0x1a6499(0x15e)](I['debounceTime'](dt))),_(this,'_updateLocalCursor',a['debounce'](_0x35930c=>{const _0x98cbfd=_0x1a6499,_0x2c7cca={'eventID':g[_0x98cbfd(0x24e)][_0x98cbfd(0x1f5)],'data':{'unitID':this[_0x98cbfd(0x2ad)],'memberID':this[_0x98cbfd(0x2e7)][_0x98cbfd(0x259)](),'selection':Be(_0x35930c)}};this['_session'][_0x98cbfd(0x339)](_0x2c7cca,this[_0x98cbfd(0x2ad)]);},St)),(this[_0x1a6499(0x2ad)]=_0x4a6422,this['_session']=_0x42fd7b,this[_0x1a6499(0x399)]=_0x1a9d90,this['_colorAssignService']=_0x3f6049,this[_0x1a6499(0x32b)]=_0x5e06bb,this[_0x1a6499(0x13a)]=_0x4cc40f,this[_0x1a6499(0x14e)]=_0x554f23,this[_0x1a6499(0x368)]=_0x22b17b,this[_0x1a6499(0x124)]=_0x3bf8aa);}get[_0x112f11(0x1b7)](){return this['_cursorInfo$']['getValue']();}get[_0x112f11(0x2a4)](){const _0x30413b=_0x112f11;return this[_0x30413b(0x2d1)]['getValue']();}['dispose'](){const _0x3e6439=_0x112f11;super[_0x3e6439(0x2de)](),this[_0x3e6439(0x34b)][_0x3e6439(0x159)](new Map()),this['_cursorInfo$'][_0x3e6439(0x188)](),this[_0x3e6439(0x2d1)]['next']([]),this[_0x3e6439(0x2d1)][_0x3e6439(0x188)]();}[_0x112f11(0x278)](){const _0x472610=_0x112f11;this[_0x472610(0x31e)]||(this[_0x472610(0x31e)]=!0x0,this[_0x472610(0x2e7)][_0x472610(0x296)]['pipe'](I[_0x472610(0x2a6)](this['dispose$']))[_0x472610(0x1a4)](_0x4c749b=>{const _0x597d5b=_0x472610;_0x4c749b===u[_0x597d5b(0x2b6)][_0x597d5b(0x1d9)]?this['_toggleOnline']():this[_0x597d5b(0x1b6)]();}),this[_0x472610(0x2e7)][_0x472610(0x13d)]['pipe'](I[_0x472610(0x2a6)](this[_0x472610(0x33b)]))['subscribe'](_0x33dd7b=>{const _0x4f0ad2=_0x472610,_0x563839=_0x33dd7b[_0x4f0ad2(0x1ae)];_0x563839===g[_0x4f0ad2(0x24e)][_0x4f0ad2(0x1f5)]&&this[_0x4f0ad2(0x232)](_0x33dd7b),_0x563839===g[_0x4f0ad2(0x24e)][_0x4f0ad2(0x1fa)]&&this[_0x4f0ad2(0x2a8)](_0x33dd7b);}),this[_0x472610(0x2dc)](this[_0x472610(0x124)][_0x472610(0x12a)](_0x87c95e=>{const _0x5e4df4=_0x472610,_0x59b4b8=_0x87c95e[_0x5e4df4(0x298)];_0x59b4b8!=null&&this['_online']&&_0x87c95e['id']===V[_0x5e4df4(0x222)]['id']&&_0x59b4b8[_0x5e4df4(0x1bf)]===this[_0x5e4df4(0x2ad)]&&_0x59b4b8[_0x5e4df4(0x1e6)]===!0x1&&_0x59b4b8[_0x5e4df4(0x386)][_0x5e4df4(0x132)]>0x0&&this[_0x5e4df4(0x1ac)](_0x59b4b8[_0x5e4df4(0x386)]);})),this['_syncEditingCollabCursorService'][_0x472610(0x1fd)]['pipe'](I[_0x472610(0x2a6)](this[_0x472610(0x33b)]))[_0x472610(0x1a4)](_0x554bcb=>{const _0x311c39=_0x472610;if((_0x554bcb==null?void 0x0:_0x554bcb['unitID'])!==this[_0x311c39(0x2ad)])return;const _0x5dec0f={'eventID':g[_0x311c39(0x24e)][_0x311c39(0x1f5)],'data':_0x554bcb};this[_0x311c39(0x232)](_0x5dec0f);}),this[_0x472610(0x2dc)](this[_0x472610(0x124)]['onCommandExecuted'](_0x33d029=>{const _0x4f05a4=_0x472610;if(_0x33d029[_0x4f05a4(0x298)]==null)return;const _0x2b5205=_0x33d029['params'];if(_0x33d029['id']!==V[_0x4f05a4(0x395)]['id']||_0x2b5205[_0x4f05a4(0x1bf)]!==this[_0x4f05a4(0x2ad)])return;const _0x67c11d={'id':_0x4f05a4(0x2b0),'params':_0x2b5205},_0x5cfc8e=this['cursorInfo'];for(const [_0x3b6281,_0x1e6005]of _0x5cfc8e){const _0x15e0ab={'id':_0x4f05a4(0x2b0),'params':{'unitId':this[_0x4f05a4(0x2ad)],'actions':null,'textRanges':_0x1e6005['ranges']}},_0x2fec1d=this[_0x4f05a4(0x14e)][_0x4f05a4(0x1f4)](_0x67c11d,_0x15e0ab,!0x1);if(g['isTransformMutationFailure'](_0x2fec1d))throw _0x2fec1d[_0x4f05a4(0x351)];_0x5cfc8e[_0x4f05a4(0x17b)](_0x3b6281,{..._0x1e6005,'ranges':_0x2fec1d[_0x4f05a4(0x15f)]['params'][_0x4f05a4(0x220)]});}queueMicrotask(()=>{const _0x20f222=_0x4f05a4;this[_0x20f222(0x34b)][_0x20f222(0x159)](_0x5cfc8e);});})));}[_0x112f11(0x232)](_0x58bd69){const _0x4662ee=_0x112f11;var _0x134651,_0x585133;const {memberID:_0xd88fcf,selection:_0x135999}=_0x58bd69[_0x4662ee(0x34e)],_0x20bd17=ht(_0x135999),_0x2284aa=(_0x585133=(_0x134651=this['_memberService'][_0x4662ee(0x389)](this['unitID'],_0xd88fcf))==null?void 0x0:_0x134651[_0x4662ee(0x3a3)])!=null?_0x585133:_0x4662ee(0x3a6),_0xfc0962={'color':this[_0x4662ee(0x16c)][_0x4662ee(0x364)](_0xd88fcf),'name':_0x2284aa,'ranges':_0x20bd17},_0x178e50=this[_0x4662ee(0x1b7)];_0x178e50[_0x4662ee(0x17b)](_0xd88fcf,_0xfc0962),this[_0x4662ee(0x34b)][_0x4662ee(0x159)](_0x178e50);}[_0x112f11(0x2a8)](_0x30d557){const _0x453425=_0x112f11,{memberID:_0x55fd65}=_0x30d557[_0x453425(0x34e)],_0x9880ed=this[_0x453425(0x1b7)];_0x9880ed[_0x453425(0x375)](_0x55fd65),this['_cursorInfo$']['next'](_0x9880ed);}[_0x112f11(0x166)](){const _0x19d25e=_0x112f11;var _0x46cc3f;if(this[_0x19d25e(0x1c3)]=!0x0,((_0x46cc3f=this[_0x19d25e(0x368)][_0x19d25e(0x299)]())==null?void 0x0:_0x46cc3f[_0x19d25e(0x1d3)]())!==this[_0x19d25e(0x2ad)])return;const _0x1ad5c1=this['_injector'][_0x19d25e(0x243)](V[_0x19d25e(0x268)])[_0x19d25e(0x329)]();Array['isArray'](_0x1ad5c1)&&_0x1ad5c1[_0x19d25e(0x132)]>0x0&&this[_0x19d25e(0x1ac)](_0x1ad5c1);}['_toggleOffline'](){const _0x4c563a=_0x112f11;this[_0x4c563a(0x1c3)]=!0x1;}};me=It([M(0x2,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),M(0x3,a[_0x112f11(0x277)](Oe)),M(0x4,a[_0x112f11(0x277)](u['MemberService'])),M(0x5,a['Inject'](Re)),M(0x6,g[_0x112f11(0x2c3)]),M(0x7,a[_0x112f11(0x2cf)]),M(0x8,a[_0x112f11(0x16e)])],me);var ft=Object[_0x112f11(0x265)],mt=(_0x53eabc,_0x386036,_0x2e051e,_0x51686c)=>{const _0x5103b6=_0x112f11;for(var _0x306351=_0x51686c>0x1?void 0x0:_0x51686c?ft(_0x386036,_0x2e051e):_0x386036,_0x4dc526=_0x53eabc[_0x5103b6(0x132)]-0x1,_0x46e85c;_0x4dc526>=0x0;_0x4dc526--)(_0x46e85c=_0x53eabc[_0x4dc526])&&(_0x306351=_0x46e85c(_0x306351)||_0x306351);return _0x306351;},y=(_0x302396,_0x1b0ac7)=>(_0x2fc1fd,_0x1898bb)=>_0x1b0ac7(_0x2fc1fd,_0x1898bb,_0x302396);function _0x1d23(){const _0x3571ca=['clsx','_session','toDisposable','FromArray','_startSheetCollabCursor','restore','endColumn','_renderManagerService','Warning','IMessageService','with','enableLocalCache','_urlService','MemberService','_initEvent','parse','searchParams','CollaborationStatus','getLocalCacheKey','univerjs-icon\x20univerjs-icon-','handleIRemoveCol','http://www.w3.org/2000/svg','_saveCache','SUCCESS','code','ENSURE_SNAPSHOT_EXECUTION','Rect','selection','fillStyle','ThemeService','YUUMI_ALL_TABLES_IS_INVALID','PY_RUNTIME_SCRIPT_ERROR','FormulaExecuteStageType','getUniverSheetInstance','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_handleEvent','InsertRangeMoveDownCommandId','_currentUsage','_setupSubUnitSync','mutations','transformMutationsWithChangeset','_textBubble','OTHER_CLIENT_EDITING','setConfig','UNAUTHENTICATED','arc','1em','startRow','disableLocalCache','PERMISSION_DENIED','Rectangle','debounce','USER_IS_ANONYMOUS','_unitOnClients','ENTITLE_CAN_NOT_BUY_LOWER_OTP','WebSocketService','_init','_drawTextRange','getStateCache','_scheduleClearOtherTimer','red.300','_range','SUBMIT_CHANGESET_TIMEOUT','USER_NOT_INVITED_CODE','_initResize','isTransformMutationsWithChangesetSuccess','font','getDocRanges','createInstance','_memberService','totalFormulasToCalculate','replaceDocRanges','OffLineIcon','Injector','OFFLINE','_handleLeaveEvent','body','function','onPointerEnter$','YUUMI_UNABLE_LOAD_URL','_getAnchorBounding','useRef','forwardRef','send','DesktopCollaborationStatusDisplayController','dispose$','_document','DocStateChangeManagerService','DocSkeletonManagerService','collab-client.tooltip.reconnect','getSkeleton','USER_NOT_FOUND','type','getRangePointData','_collabSessionService','concat','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LOGIN_FAILED','IRenderManagerService','_initEntityListener','_getSaveTimeout','_cursorInfo$','CONFLICT','_assignedColors','data','univer-mr-2\x20univer-flex\x20univer-text-xl','getOwnPropertySymbols','error','fill','_instanceService','storage','popstate','12AvsMVp','transformIMECache','_maxFormulaLimit','6047451qTtqqW','_docTransformSelectionsService','addObject','BuiltInUIPart','replaceState','_send','m1Prime','endRow','measureText','children','TOO_MANY_REQUESTS','assignAColorForMemberID','FormulaExecutedStateType','getformulaLimitStatusUrl','/universer-api/license/formula/limit/done','_univerInstanceService','handleInsertRow','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','prototype','text','jiqing.500','REDEMPTION_INVALID_CODE','transform','getMergeData','_selfUnitIDs','_initCommandInterceptor','_createSocketURL','CollaborationDataLoaderController','delete','_beforeCloseService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_saveTaskMap','_scheduleSaving','ColorKit','startsWith','_localStorageService','hasOwnProperty','univer-flex\x20univer-items-center','labelPosition','transformByState','_lastPointer','_cursorShapes','path','_cursor','getUnhiddenWorksheets','ranges','translate(.97)','REDEMPTION_CODE_NOT_STARTED','getMember','useCallback','getActiveRange','unit','formula.calculation.started','asObservable','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_entityInit$','/universer-api/license/formula/limit/status','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_collabCursorState$','moveTo','RichTextEditingMutation','APPLY_NON_SEQUENTIAL_REVISION','generateRandomId','_unitStatus','_injector','defineProperty','_scene','subscribeEvent','newValue','entityInit$','0\x200\x2017\x2016','_shapes','_setFormulaLimitStatus','44768fXXWOy','name','black','getSheetId','Unknown\x20user','application/json','filter','purple.300','SheetSkeletonManagerService','stageInfo','_startCalculationLimit','_logService','2955540CGSxaQ','white','_refRangeService','has','ISnapshotServerService','show','imageSourceType','focused$','getTypeOfUnitAdded$','_transformPreviousActiveRange','_hovered','_transformUndoRedoStack','yellow.400','getActiveSheet','status$','handleInsertRangeMoveDown','flatMap','_disabled','contains','_configService','603752QmZHBi','IConfigService','_pollingInterval','off-line-icon','14ZNWwha','APPLY_REJECT','setParam','getAncestorScale','DocCollaborationEntity','Optional','CollaborationSocketService','now','YUUMI_SUBSCRIPTION_NOT_FOUND','saveOfflineData','WECHAT_HAS_BEEN_BOUND','split','NO_OTHER_CLIENTS_EDITING','none','tag','Failed','xlink:href','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','className','ENTITLE_REPORT_LIMIT_EXCEED','ISocketService','replace','...','currentTheme$','clearTimeout','TEXT','#FFF','entries','AUTHORIZE_CODE_ILLEGAL','_backgroundColor','_commandService','onTransformChange$','SHEET_VIEWPORT_KEY','SetWorksheetActivateCommand','UniverInstanceType','makeDirty','onCommandExecuted','CollaborationSessionService','symbol','ILogService','max','defs','_ensureSubject','_collaborationController','length','transformStateCache','touchDependencies','Vector2','registerDependencies','48lwkbzl','TEXT_RANGE_LAYER_INDEX','debounceTime','_syncEditingCollabCursorService','collabStatus.offline','registerRefRange','event$','INVITE_CODE_REQUIRED','location','SetFormulaCalculationNotificationMutation','drawWith','setTimeout','_updateURLWithCurrentState','key','ticket','getTypeOfUnitDisposed$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','collaboration.closeRoom','_uiPartsService','pluginName','onMouseMove','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','url(#$1','_transformService','YUUMI_ASYNCIO_CANCELLED','NodePositionConvertToRectRange','Success','collab-rect-range-','_docSkeletonManagerService','JOIN_ROOM_FAILED','SetDocZoomRatioOperation','HEADER_MENU','INotificationService','PAYMENT_CHANNEL_NOT_SUPPORT','next','_refreshCollabCursors','executionId','then','SetSelectionsOperation','pipe','m2Prime','_clearOtherTimers','icon','_render','forEach','getColor','on-line-icon','_toggleOnline','fillText','getColorFromTheme','fillRule','RefRangeService','all','_colorAssignService','_docTransformStateCacheService','ICommandService','addEventListener','runId','handleInsertRangeMoveRight','throttleTime','getItem','indexOf','collaboration-client.offline-data-not-saved','UnitStatus','RECT','CHANGESET_REVISION_CONFILICT','currentColor','DEFAULT_WS_SESSION_TICKET_URL','set','IDocClipboardService','UNIVER_DOC','_revisionService','_scheduleHeartbeat','ENTITLE_DUP_SUBSCRIPTION','svg','_labelPosition','WebURLService','trim','parseInt','setItem','source','complete','INVITE_CODE_ALREADY_BOUND','collab-text-anchor-','Disposable','onPointerLeave$','jsxs','height','RemoteUniscriptService','undoState','_config','saveImage','runRefRangeMutations','onStarting','findNodePositionByCharIndex','_getMergeRange','_id','_doCreateSocket','selections','_updateSubUnitFromURLParams','_notificationService','_heartbeatTimer','SYNCED','useDependency','MOBILE_HAS_BEEN_BOUND','_cursors','saveTaskMap','_startDocCollabCursor','2697888WYMZbJ','subscribe','on-line-icon_clip0_910_349','_docClipboardService','_initCommandExecutedListener','APPLY_PERMISSION_DENIED','hide','evenodd','getParam','_updateLocalCursor','MUTATION','eventID','_anchor','use','runOnServer','collabStatus.conflict','UNDEFINED','INVALID_INVITE_CODE','round','_toggleOffline','cursorInfo','getCoordByCell','range','urlChange$','values','redoState','resize','_hasFormulaInDirtyRanges','unitId','string','Tooltip','APPLY_REVISION_CONFILICT','_online','pushState','_name','InsertColCommandId','closePath','toString','_transformHistoryAndStateStack','LOCAL_CACHE_INTERVAL_KEY','_getScale','cursorInfo$','DataLoaderService','switchMap','getRelativeToViewportCoord','getRenderById','disposeUnit','handleInsertCol','getUnitId','setShapeProps','beginPath','NOT_COLLAB','PENDING','shareReplay','ONLINE','BrowserCollaborationSocketService','getSheetBySheetId','isTransformMutationFailure','BehaviorSubject','InsertRowCommandId','createSocket','Subject','width','_collaborationUIEventService','REDEMPTION_CODE_FULLY_REDEEMED','_setupBeforeClosingHandler','invokeId','isEditing','random','RevisionService','isActive','mask','stringify','CONNECTOR_DATA_TOO_LARGE','_handleJoinEvent','idSuffix','_checkAndWaitForCalculationPermission','_sheetSkeletonManagerService','addHandlerCallback','row','shift','transformMutation','UPDATE_CURSOR','UniverCollaborationClientUIPlugin','INVITE_CODE_HAS_BEEN_UES','_updateCollabCursors','[CollaborationDataLoaderController]','USERS_LEAVE','distinctUntilChanged','transformSelections','collabCursorState$','_taskIds','REDEMPTION_USER_NOT_ELIGIBLE','history','bottom','getCellMatrix','colorChannel1','href','YUUMI_CONNECTOR_URL_NOT_FOUND','_localeService','backgroundColor','ENTITLE_CHAT_LIMIT_EXCEED','_imageIoService','4LWtNOV','getVpScrollXYInfoByPosToVp','_colorIndex','color','setUndoRedoMutationParamsCache','post','displayName','_removeClearOtherTimer','DOC_RANGE_TYPE','_applyCommand','START_CALCULATION','getUndoRedoMutationParamsCache','onLocalMutation','div','LICENSE_IMPORT_SIZE_EXCEEDED','318211kMPNiD','RemoveColCommandId','_docSkeleton','_removeCollabCursors','_initDependencies','EMAIL_VERIFY_CODE_MISMATCH','jsx','textRanges','combineLatest','SetTextSelectionsOperation','activeSheet$','_getFormulaLimitStatus','getUnit','origin','defIds','deepClone','_handleHeartbeatEvent','size','beforeCommandExecuted','COMPLETION_FINISHED','Tools','EMAIL_HAS_BEEN_BOUND','triggerDblclick','5zoIull','registerComponent','_onCursorUpdate','LICENSE_DISTRO_REJECTED','add','_eventUnsubscribe','_anchorDot','DeleteRangeMoveLeftCommandId','CURRENT_STATUS_CANNOT_OPERATE','sheetID','serializeRangeWithSheet','INVALID_ARGUMENT','off-line-icon_clip0_910_343','debug','formula.calculation.unable','_initStatusListener','_getSheetObject','_hover','extend','get','_drawAnchor','Error','collab-text-range-','_initStatusComponent','_messageService','APPLY_DUPLICATED','SNAPSHOT_HAS_BEEN_REMOVED','_checkCalculationAvailable','getValue','LocaleService','CollaborationEvent','removeParam','collabStatus.synced','getCurrentUnitForType','toRgbString','_context','registerRenderModule','LOGIN_TOKEN_PROCESSING_FAILED','deserializeRangeWithSheet','executeCommand','getViewport','getMemberID','engine','REDEMPTION_CODE_INACTIVE','EffectRefRangId','assign','loadOfflineData','search','_docStateChangeManagerService','getCollabCursors$','syncEditingCollabCursor','connectInjector','onRendered','getOwnPropertyDescriptor','_clearPolling','_entities','DocSelectionManagerService','clipPath','getConfig','CollaborationUIEventService','ILocalCacheService','_localCacheService','fromEvent','UNRECOGNIZED','_color','FETCH_MISS','DisposableCollection','unsubscribe','column','subunit','reconnect','Inject','init','blue.400','YUUMI_NO_CUBOID_FOR_QUESTION','getCollabEntity$','_cachedData','Shape','currentSkeleton$','/run/','DependentOn','limitInfo','OTHER_CLIENTS_EDITING','_docTransformIMECacheService','permission.content','uni.network.url-service','from','save','/universer-api/license/formula/limit/start','YUUMI_AI_RUN_FAILED','_draw','unshift','handleDeleteRangeMoveUp','ERROR_AGAIN','M0\x200H16V16H0z','getUnitStatus$','clearInterval','releaseFormulaLimitUrl','_getSessionTicket','REDEMPTION_CODE_HAS_BEEN_CREATED','CommandType','createIdentifier','sessionStatus$','_themeService','params','getFocusedUnit','collaboration-client-ui.config','mergeOverrideWithDependencies','getCellPositionByOffset','_handleHover','_releaseCalculationLimit','collaboration.single-unit.warning','TRANSFORM_CHANGE_OBSERVABLE_TYPE','requireSession','_showGuardMessage','7687867rfOSyg','roomMembers','setAlpha','takeUntil','RxDisposable','_onCursorDelete','map','call','INTERNAL_ERROR','attrs','unitID','createElement','green.600','doc.mutation.rich-text-editing','_httpService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ALREADY_EXISTS','loadUnit','CollaborationUIEventId','SessionStatus','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CanceledError','NOT_FOUND','SOCKET_FAILED_RETRY','SNAPSHOT_INVALID_SNAPSHOT','merge','LICENSE_EXPORT_SIZE_EXCEEDED','UNIVER_SHEET','_drawRectRange','_hideTimer','docStateChange$','currentUsage','ITransformService','COLORS','lineTo','_onRefRangeChange','startColumn','RegularPolygon','session.connection-failed','rgba(255,\x20255,\x20255,\x200.01)','DocIMEInputManagerService','HTTPService','push','fromEventSubject','IUniverInstanceService','min','_roomMembers$','find','setActiveRange','apply','transformRemoteChangeset','CollaborationController','0\x200\x2016\x2016','RemoveRowCommandId','ACTIVE_UNIT_EVENT_CHANNEL','_lastResponseTimestamp','_status$','disposeWithMe','handleDeleteRangeMoveLeft','dispose','mapTo','MessageType','addObjects','_collabCursorController','isArray','collabStatus.notCollab','LICENSE_MAX_UNITS_EXCEEDED'];_0x1d23=function(){return _0x3571ca;};return _0x1d23();}const vt=0x12c,gt=0x64,Et=()=>{let _0x40611f=[],_0x343799=!0x1;return _0x4554eb=>{const _0xb06d06=_0x29e7;_0x40611f[_0xb06d06(0x2cd)](_0x4554eb),_0x343799||(_0x343799=!0x0,setTimeout(()=>{const _0x2c87eb=_0xb06d06;_0x40611f[_0x2c87eb(0x163)](_0x2374e6=>_0x2374e6()),_0x40611f=[],_0x343799=!0x1;}));};};let ve=class extends a['RxDisposable']{constructor(_0x56bba1,_0x29f7f3,_0x4c4b14,_0x3d3558,_0x5288e7,_0x4f78fb,_0x496a98,_0x13d8e2){const _0x117d3f=_0x112f11;super(),_(this,_0x117d3f(0x1c3),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x117d3f(0x1dd))](new Map())),_(this,'cursorInfo$',this[_0x117d3f(0x34b)]['asObservable']()),_(this,_0x117d3f(0x2d1),new I[(_0x117d3f(0x1dd))]([])),_(this,'roomMembers$',this[_0x117d3f(0x2d1)]['pipe'](I[_0x117d3f(0x139)](vt))),_(this,_0x117d3f(0x1ac),a[_0x117d3f(0x319)]((_0x42f0d8,_0x13155f)=>{const _0x979ba=_0x117d3f,_0x41d808={'eventID':g[_0x979ba(0x24e)][_0x979ba(0x1f5)],'data':{'unitID':this[_0x979ba(0x2ad)],'memberID':this[_0x979ba(0x2e7)][_0x979ba(0x259)](),'selection':B[_0x979ba(0x23a)](_0x42f0d8,_0x13155f[_0x979ba(0x1b9)])}};this[_0x979ba(0x2e7)][_0x979ba(0x339)](_0x41d808,this[_0x979ba(0x2ad)]);},gt)),(this['unitID']=_0x56bba1,this['_session']=_0x29f7f3,this[_0x117d3f(0x399)]=_0x4c4b14,this[_0x117d3f(0x16c)]=_0x3d3558,this[_0x117d3f(0x32b)]=_0x5288e7,this[_0x117d3f(0x368)]=_0x4f78fb,this['_commandService']=_0x496a98,this[_0x117d3f(0x3b0)]=_0x13d8e2);}get[_0x112f11(0x1b7)](){const _0x4b558b=_0x112f11;return this['_cursorInfo$'][_0x4b558b(0x24c)]();}get[_0x112f11(0x2a4)](){const _0x5a15de=_0x112f11;return this['_roomMembers$'][_0x5a15de(0x24c)]();}[_0x112f11(0x2de)](){const _0x2ae72a=_0x112f11;super['dispose'](),this[_0x2ae72a(0x34b)][_0x2ae72a(0x159)](new Map()),this[_0x2ae72a(0x34b)]['complete'](),this[_0x2ae72a(0x2d1)][_0x2ae72a(0x159)]([]),this[_0x2ae72a(0x2d1)]['complete']();}[_0x112f11(0x278)](){const _0x33b445=_0x112f11;this['_init']||(this['_init']=!0x0,this[_0x33b445(0x2e7)][_0x33b445(0x296)][_0x33b445(0x15e)](I['takeUntil'](this[_0x33b445(0x33b)]))['subscribe'](_0x4f684b=>{const _0x15e96e=_0x33b445;_0x4f684b===u[_0x15e96e(0x2b6)]['ONLINE']?this['_toggleOnline']():this[_0x15e96e(0x1b6)]();}),this[_0x33b445(0x2e7)][_0x33b445(0x13d)][_0x33b445(0x15e)](I[_0x33b445(0x2a6)](this[_0x33b445(0x33b)]))['subscribe'](_0x35eb26=>{const _0x2ca4e9=_0x33b445,_0x19752c=_0x35eb26[_0x2ca4e9(0x1ae)];_0x19752c===g[_0x2ca4e9(0x24e)][_0x2ca4e9(0x1f5)]&&this[_0x2ca4e9(0x232)](_0x35eb26),_0x19752c===g[_0x2ca4e9(0x24e)][_0x2ca4e9(0x1fa)]&&this[_0x2ca4e9(0x2a8)](_0x35eb26);}),this[_0x33b445(0x2c6)](),this[_0x33b445(0x2dc)](this[_0x33b445(0x124)][_0x33b445(0x12a)](_0x3cac70=>{const _0x4a0dfd=_0x33b445;if(this[_0x4a0dfd(0x1c3)]&&_0x3cac70['id']===v[_0x4a0dfd(0x15d)]['id']&&_0x3cac70[_0x4a0dfd(0x298)]['unitId']===this[_0x4a0dfd(0x2ad)]){const _0x35804e=_0x3cac70['params'];this[_0x4a0dfd(0x1ac)](_0x35804e['subUnitId'],_0x35804e[_0x4a0dfd(0x199)][0x0]);}})));}[_0x112f11(0x232)](_0x1fb4e9){const _0x384d33=_0x112f11;var _0x1cfe89,_0x42e324;const {memberID:_0x249daa,selection:_0x25bdf9}=_0x1fb4e9[_0x384d33(0x34e)],{sheetName:_0x4d02c3,range:_0x5bd066}=B[_0x384d33(0x256)](_0x25bdf9),_0xae0e34={'name':(_0x42e324=(_0x1cfe89=this[_0x384d33(0x32b)][_0x384d33(0x389)](this[_0x384d33(0x2ad)],_0x249daa))==null?void 0x0:_0x1cfe89[_0x384d33(0x3a3)])!=null?_0x42e324:'Unknown\x20user','range':this[_0x384d33(0x196)](_0x4d02c3,_0x5bd066),'sheetID':_0x4d02c3,'color':this[_0x384d33(0x16c)][_0x384d33(0x364)](_0x249daa),'selection':_0x25bdf9},_0x1e808d=this[_0x384d33(0x1b7)];_0x1e808d[_0x384d33(0x17b)](_0x249daa,_0xae0e34),this[_0x384d33(0x34b)][_0x384d33(0x159)](_0x1e808d);}[_0x112f11(0x2a8)](_0x4fe60a){const _0x2b5882=_0x112f11,{memberID:_0x553281}=_0x4fe60a[_0x2b5882(0x34e)],_0x38ec43=this[_0x2b5882(0x1b7)];_0x38ec43['delete'](_0x553281),this[_0x2b5882(0x34b)][_0x2b5882(0x159)](_0x38ec43);}[_0x112f11(0x196)](_0x52f819,_0x15e7ff){const _0x57067c=_0x112f11;var _0x153fcb,_0x1f3678;const _0x3c0f44=(_0x1f3678=(_0x153fcb=this[_0x57067c(0x368)][_0x57067c(0x307)](this[_0x57067c(0x2ad)]))==null?void 0x0:_0x153fcb[_0x57067c(0x1db)](_0x52f819))==null?void 0x0:_0x1f3678[_0x57067c(0x370)]();return(_0x3c0f44==null?void 0x0:_0x3c0f44[_0x57067c(0x2d2)](_0x52805e=>a[_0x57067c(0x318)][_0x57067c(0x100)](_0x52805e,_0x15e7ff)))||_0x15e7ff;}[_0x112f11(0x2c6)](){const _0x157cce=_0x112f11,_0x1e96c8=new a[(_0x157cce(0x272))](),_0x2231cf=Et(),_0x573ae2=()=>{const _0x34a5f2=_0x157cce;_0x1e96c8['dispose']();const _0x43fb8d=(_0x4af698,_0x5997b3,_0x4a4904,_0x4b0692)=>{const _0x524aa4=_0x29e7;let _0x61c71d=[];switch(_0x4af698['id']){case v[_0x524aa4(0x25c)][_0x524aa4(0x237)]:{_0x61c71d=v[_0x524aa4(0x2dd)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)]['DeleteRangeMoveUpCommandId']:{_0x61c71d=v[_0x524aa4(0x28c)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x1c6)]:{_0x61c71d=v[_0x524aa4(0x1d2)](_0x4af698,_0x4b0692);break;}case v['EffectRefRangId'][_0x524aa4(0x30a)]:{_0x61c71d=v[_0x524aa4(0xfd)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)]['InsertRangeMoveRightCommandId']:{_0x61c71d=v[_0x524aa4(0x171)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x1de)]:{_0x61c71d=v[_0x524aa4(0x369)](_0x4af698,_0x4b0692);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x61c71d=v['handleMoveRange'](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x21a)]:{_0x61c71d=v[_0x524aa4(0x2fa)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x2d8)]:{_0x61c71d=v['handleIRemoveRow'](_0x4af698,_0x4b0692);break;}}const _0xc656f3=v[_0x524aa4(0x193)](_0x61c71d,_0x4b0692),_0x395d3f=this[_0x524aa4(0x1b7)][_0x524aa4(0x243)](_0x5997b3);if(_0x395d3f&&_0xc656f3){const _0x469d0f={..._0x395d3f,'range':_0xc656f3};this[_0x524aa4(0x1b7)][_0x524aa4(0x17b)](_0x5997b3,_0x469d0f),_0x2231cf(()=>{const _0x4ea002=_0x524aa4,_0x5ccad1=this[_0x4ea002(0x3b0)][_0x4ea002(0x13c)](_0xc656f3,_0x243780=>(_0x5ccad1[_0x4ea002(0x2de)](),_0x43fb8d(_0x243780,_0x5997b3,_0x4a4904,_0xc656f3)));_0x1e96c8[_0x4ea002(0x234)](_0x5ccad1);});}return{'redos':[],'undos':[]};};this[_0x34a5f2(0x1b7)]['forEach']((_0xe86a83,_0x1977d5)=>{const _0x5e0f75=_0x34a5f2,{range:_0x22dad7,sheetID:_0x1b919e}=_0xe86a83,_0x22c41f=this[_0x5e0f75(0x3b0)][_0x5e0f75(0x13c)](_0x22dad7,_0x5c91df=>(_0x22c41f[_0x5e0f75(0x2de)](),_0x43fb8d(_0x5c91df,_0x1977d5,_0x1b919e,_0x22dad7)));_0x1e96c8['add'](_0x22c41f);});};this[_0x157cce(0x2dc)](a[_0x157cce(0x2e8)](this['_cursorInfo$'][_0x157cce(0x1a4)](()=>{_0x573ae2();})));}[_0x112f11(0x166)](){const _0x639d27=_0x112f11;var _0x4ddaa9,_0x25119b;if(this[_0x639d27(0x1c3)]=!0x0,((_0x4ddaa9=this[_0x639d27(0x368)][_0x639d27(0x299)]())==null?void 0x0:_0x4ddaa9[_0x639d27(0x1d3)]())!==this[_0x639d27(0x2ad)])return;const _0x209ac3=(_0x25119b=this[_0x639d27(0x399)]['get'](v['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x25119b[0x0],_0x165a2f=this[_0x639d27(0x368)][_0x639d27(0x251)](a[_0x639d27(0x128)][_0x639d27(0x2be)])[_0x639d27(0xfb)]();_0x209ac3&&_0x165a2f&&this[_0x639d27(0x1ac)](_0x165a2f['getSheetId'](),_0x209ac3);}[_0x112f11(0x1b6)](){const _0x5d914e=_0x112f11;this[_0x5d914e(0x1c3)]=!0x1;}};ve=mt([y(0x2,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),y(0x3,a[_0x112f11(0x277)](Oe)),y(0x4,a['Inject'](u[_0x112f11(0x2f3)])),y(0x5,a[_0x112f11(0x2cf)]),y(0x6,a[_0x112f11(0x16e)]),y(0x7,a[_0x112f11(0x277)](v[_0x112f11(0x16a)]))],ve);var Ct=Object[_0x112f11(0x265)],pt=(_0x175f3f,_0x2fa676,_0x21f239,_0x3be40b)=>{const _0x413063=_0x112f11;for(var _0x25882a=_0x3be40b>0x1?void 0x0:_0x3be40b?Ct(_0x2fa676,_0x21f239):_0x2fa676,_0x494e19=_0x175f3f[_0x413063(0x132)]-0x1,_0x336a99;_0x494e19>=0x0;_0x494e19--)(_0x336a99=_0x175f3f[_0x494e19])&&(_0x25882a=_0x336a99(_0x25882a)||_0x25882a);return _0x25882a;},ae=(_0x962f99,_0x4c5b2e)=>(_0x424277,_0x220ac7)=>_0x4c5b2e(_0x424277,_0x220ac7,_0x962f99);let F=class extends a['RxDisposable']{constructor(_0x1fff10,_0x1a6cae,_0x5a6eb7){const _0x3849b2=_0x112f11;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new I[(_0x3849b2(0x1e0))]()),(this[_0x3849b2(0x368)]=_0x1fff10,this['_injector']=_0x1a6cae,this['_collabSessionService']=_0x5a6eb7,this[_0x3849b2(0x31e)]());}[_0x112f11(0x2de)](){const _0x16e3de=_0x112f11;super[_0x16e3de(0x2de)](),this[_0x16e3de(0x390)]['complete'](),this[_0x16e3de(0x267)][_0x16e3de(0x163)](_0x1ae7c4=>_0x1ae7c4[_0x16e3de(0x2de)]());}['getCollabCursors$'](_0x486195){const _0x3931e1=_0x112f11;return this[_0x3931e1(0x267)]['has'](_0x486195)?this[_0x3931e1(0x267)]['get'](_0x486195)['cursorInfo$']:this[_0x3931e1(0x390)][_0x3931e1(0x15e)](I['filter'](_0x227052=>_0x227052[_0x3931e1(0x2ad)]===_0x486195),I[_0x3931e1(0x1ce)](_0x28d41e=>_0x28d41e['cursorInfo$']));}['_init'](){const _0x2e7a2a=_0x112f11;this['_univerInstanceService'][_0x2e7a2a(0xf6)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2e7a2a(0x15e)](I[_0x2e7a2a(0x2a6)](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x1a4)](async _0x42573f=>{const _0x167ae1=_0x2e7a2a,_0x134e61=_0x42573f[_0x167ae1(0x1d3)](),_0x1a9725=await this[_0x167ae1(0x2ea)](_0x134e61);this[_0x167ae1(0x390)][_0x167ae1(0x159)](_0x1a9725),this[_0x167ae1(0x267)][_0x167ae1(0x17b)](_0x134e61,_0x1a9725);}),this['_univerInstanceService'][_0x2e7a2a(0xf6)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x17d)])['pipe'](I['takeUntil'](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x15e)](I['filter'](_0x2f4154=>!_0x2f4154[_0x2e7a2a(0x1d3)]()[_0x2e7a2a(0x37b)]('__')))[_0x2e7a2a(0x1a4)](async _0x5643ad=>{const _0x18218c=_0x2e7a2a,_0x5ef9ca=_0x5643ad[_0x18218c(0x1d3)](),_0x46586e=await this[_0x18218c(0x1a2)](_0x5ef9ca);this[_0x18218c(0x390)]['next'](_0x46586e),this[_0x18218c(0x267)]['set'](_0x5ef9ca,_0x46586e);}),I[_0x2e7a2a(0x2bc)](this[_0x2e7a2a(0x368)][_0x2e7a2a(0x146)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x17d)]),this[_0x2e7a2a(0x368)][_0x2e7a2a(0x146)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x2be)]))[_0x2e7a2a(0x15e)](I['takeUntil'](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x1a4)](_0x427ab4=>{const _0x78d2a1=_0x2e7a2a,_0x1864fa=_0x427ab4[_0x78d2a1(0x1d3)](),_0x5b74ee=this[_0x78d2a1(0x267)][_0x78d2a1(0x243)](_0x1864fa);_0x5b74ee&&(_0x5b74ee[_0x78d2a1(0x2de)](),this[_0x78d2a1(0x267)][_0x78d2a1(0x375)](_0x1864fa));});}async[_0x112f11(0x2ea)](_0x113e5f){const _0x2f1d1d=_0x112f11,_0x5573a3=await this[_0x2f1d1d(0x344)][_0x2f1d1d(0x2a1)](_0x113e5f),_0x139201=this[_0x2f1d1d(0x399)]['createInstance'](ve,_0x113e5f,_0x5573a3);return _0x139201[_0x2f1d1d(0x278)](),_0x139201;}async[_0x112f11(0x1a2)](_0x5c62f7){const _0x4ebe91=_0x112f11,_0x4d91cc=await this[_0x4ebe91(0x344)][_0x4ebe91(0x2a1)](_0x5c62f7),_0x1cdfe8=this['_injector'][_0x4ebe91(0x32a)](me,_0x5c62f7,_0x4d91cc);return _0x1cdfe8[_0x4ebe91(0x278)](),_0x1cdfe8;}};F=pt([ae(0x0,a['IUniverInstanceService']),ae(0x1,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),ae(0x2,a['Inject'](u[_0x112f11(0x12b)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0xf2a38,_0x235370){const _0x227b16=_0x112f11;let {radius:_0x89473c,width:_0x562799,height:_0x42537c}=_0x235370;_0x89473c=_0x89473c!=null?_0x89473c:0x0,_0x562799=_0x562799!=null?_0x562799:0x1e,_0x42537c=_0x42537c!=null?_0x42537c:0x1e;let _0x13c606=0x0,_0x5b8427=0x0,_0x2dc1c0=0x0;_0x13c606=_0x5b8427=_0x2dc1c0=Math[_0x227b16(0x2d0)](_0x89473c,_0x562799/0x2,_0x42537c/0x2),_0xf2a38[_0x227b16(0x1d5)](),_0xf2a38[_0x227b16(0x394)](_0x13c606,0x0),_0xf2a38[_0x227b16(0x2c5)](_0x562799-_0x5b8427,0x0),_0xf2a38[_0x227b16(0x313)](_0x562799-_0x5b8427,_0x5b8427,_0x5b8427,Math['PI']*0x3/0x2,0x0,!0x1),_0xf2a38[_0x227b16(0x2c5)](_0x562799,_0x42537c-_0x2dc1c0),_0xf2a38[_0x227b16(0x313)](_0x562799-_0x2dc1c0,_0x42537c-_0x2dc1c0,_0x2dc1c0,0x0,Math['PI']/0x2,!0x1),_0xf2a38[_0x227b16(0x2c5)](0x0,_0x42537c),_0xf2a38[_0x227b16(0x2c5)](0x0,_0x13c606),_0xf2a38[_0x227b16(0x313)](_0x13c606,_0x13c606,_0x13c606,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xf2a38[_0x227b16(0x1c7)](),_0x235370[_0x227b16(0x352)]&&(_0xf2a38[_0x227b16(0x287)](),_0xf2a38[_0x227b16(0x302)]=_0x235370[_0x227b16(0x352)],_0x235370[_0x227b16(0x169)]==='evenodd'?_0xf2a38[_0x227b16(0x352)](_0x227b16(0x1aa)):_0xf2a38[_0x227b16(0x352)](),_0xf2a38[_0x227b16(0x2eb)]());}class ne extends C[_0x112f11(0x27d)]{constructor(_0x1bed95,_0x207836){const _0x21a81a=_0x112f11;super(_0x1bed95,_0x207836),_(this,_0x21a81a(0x20d)),_(this,_0x21a81a(0x36c)),(this['color']=_0x207836==null?void 0x0:_0x207836[_0x21a81a(0x20d)],this['text']=_0x207836==null?void 0x0:_0x207836[_0x21a81a(0x36c)]);}static[_0x112f11(0x141)](_0x2ee5a6,_0x2bd442){const _0x2fcf1c=_0x112f11,{text:_0x290abb,color:_0x33d568}=_0x2bd442;_0x2ee5a6[_0x2fcf1c(0x287)](),_0x2ee5a6[_0x2fcf1c(0x328)]=_0x2fcf1c(0x392);const _0x24fce2=_0x2ee5a6['measureText'](_0x290abb)[_0x2fcf1c(0x1e1)],_0x28419c=Math['min'](_0x24fce2+0x2*ce,Ne);Ot(_0x2ee5a6,{'height':K,'radius':0x4,'width':_0x28419c,'fill':_0x33d568}),_0x2ee5a6[_0x2fcf1c(0x302)]=_0x2fcf1c(0x120);const _0x33ca99=ce,_0x598ef6=K-Tt,_0x3f4522=Ne-0x2*ce;if(_0x24fce2>_0x3f4522){let _0x54299c='',_0x3c6cf2=0x0;for(const _0x1a1ef6 of _0x290abb){const _0x2bbbd5=_0x2ee5a6[_0x2fcf1c(0x361)](_0x1a1ef6)[_0x2fcf1c(0x1e1)];if(_0x3c6cf2+_0x2bbbd5<=_0x3f4522-_0x2ee5a6[_0x2fcf1c(0x361)]('...')[_0x2fcf1c(0x1e1)])_0x54299c+=_0x1a1ef6,_0x3c6cf2+=_0x2bbbd5;else{_0x54299c+=_0x2fcf1c(0x11c);break;}}_0x2ee5a6[_0x2fcf1c(0x167)](_0x54299c,_0x33ca99,_0x598ef6);}else _0x2ee5a6['fillText'](_0x290abb,_0x33ca99,_0x598ef6);_0x2ee5a6[_0x2fcf1c(0x2eb)]();}[_0x112f11(0x28a)](_0x303d1b){const _0x2f671d=_0x112f11;ne[_0x2f671d(0x141)](_0x303d1b,this);}}const le=_0x112f11(0x18a),Rt=_0x112f11(0x246),bt=_0x112f11(0x152),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0x112f11(0x2ca);class Ue{constructor(_0x1669d1,_0x2eb17c,_0x5c3153,_0x2b3062){const _0x2471ab=_0x112f11;_(this,_0x2471ab(0x3a0),[]),_(this,_0x2471ab(0x1af),null),_(this,_0x2471ab(0x30f),null),_(this,'_anchorDot',null),_(this,_0x2471ab(0x2c0),null),_(this,_0x2471ab(0x235),null),(this['_cursor']=_0x1669d1,this[_0x2471ab(0x39b)]=_0x2eb17c,this[_0x2471ab(0x21b)]=_0x5c3153,this[_0x2471ab(0x33c)]=_0x2b3062,this['_render']());}set['_hover'](_0x216b5b){const _0x1f4486=_0x112f11;_0x216b5b?(this[_0x1f4486(0x236)]&&this[_0x1f4486(0x236)][_0x1f4486(0x1a9)](),this[_0x1f4486(0x30f)]&&this[_0x1f4486(0x30f)][_0x1f4486(0xf3)]()):(this[_0x1f4486(0x236)]&&this[_0x1f4486(0x236)][_0x1f4486(0xf3)](),this[_0x1f4486(0x30f)]&&this[_0x1f4486(0x30f)]['hide']());}[_0x112f11(0x2de)](){const _0x5bbf32=_0x112f11;for(const _0x272dd7 of this['_shapes'])_0x272dd7[_0x5bbf32(0x2de)]();this['_textBubble']&&this[_0x5bbf32(0x30f)]['dispose'](),this[_0x5bbf32(0x236)]&&this[_0x5bbf32(0x236)]['dispose'](),this[_0x5bbf32(0x1af)]&&this['_anchor'][_0x5bbf32(0x2de)](),this[_0x5bbf32(0x235)]&&this[_0x5bbf32(0x235)]();}[_0x112f11(0x162)](){const _0x270551=_0x112f11;var _0x444738;const {_docSkeleton:_0x219627,_document:_0x652f33}=this,{color:_0x5053ad,name:_0x550b72,ranges:_0x4bb485}=this[_0x270551(0x384)],_0x326991=_0x652f33['getOffsetConfig'](),{docsLeft:_0x5bc1ae,docsTop:_0x1e6e49}=_0x326991,_0x2c6d1a=new p['NodePositionConvertToCursor'](_0x326991,_0x219627);for(const {startOffset:_0x2b65ee,endOffset:_0x584b00,rangeType:_0x8e5ccd,segmentId:_0x53d5bc,segmentPage:_0x69580b,collapsed:_0x2c6071,isActive:_0x2200f0}of _0x4bb485){const _0x27e7c5=_0x219627[_0x270551(0x195)](_0x2b65ee,!0x0,_0x53d5bc,_0x69580b);let _0x3afd0c=_0x219627[_0x270551(0x195)](_0x584b00,!0x0,_0x53d5bc,_0x69580b);if(_0x3afd0c==null&&(_0x3afd0c=_0x219627[_0x270551(0x195)](_0x584b00-0x1,!0x1,_0x53d5bc,_0x69580b)),_0x2200f0){const {contentBoxPointGroup:_0x57d534}=_0x2c6d1a[_0x270551(0x343)](_0x3afd0c,_0x3afd0c);if(_0x57d534[_0x270551(0x132)]===0x0)continue;this[_0x270551(0x244)](_0x5053ad,_0x57d534,_0x5bc1ae,_0x1e6e49,_0x550b72),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x27e7c5&&_0x3afd0c){if(_0x8e5ccd===a['DOC_RANGE_TYPE'][_0x270551(0x177)]){const _0x57be9c=new p[(_0x270551(0x150))](_0x326991,_0x219627),{pointGroup:_0x20e24f}=(_0x444738=_0x57be9c[_0x270551(0x343)](_0x27e7c5,_0x3afd0c))!=null?_0x444738:{};if(_0x20e24f==null||_0x20e24f[_0x270551(0x132)]===0x0)continue;this['_drawRectRange'](_0x5053ad,_0x20e24f,_0x5bc1ae,_0x1e6e49);}else{if(!_0x2c6071){const {borderBoxPointGroup:_0x5ec46b}=_0x2c6d1a[_0x270551(0x343)](_0x27e7c5,_0x3afd0c);if(_0x5ec46b[_0x270551(0x132)]===0x0)continue;this[_0x270551(0x31f)](_0x5053ad,_0x5ec46b,_0x5bc1ae,_0x1e6e49);}}}}}['_drawAnchor'](_0x2b3d14,_0x3c4f2d,_0x346791,_0x1a2b82,_0x463339){const _0x4b04f6=_0x112f11,_0xf41096=this[_0x4b04f6(0x336)](_0x3c4f2d),{left:_0x5e865a,top:_0x3ebaad,height:_0x1fc6b3}=_0xf41096,_0x29cbc9=this['_getScale'](),_0x35d290=Nt/_0x29cbc9,_0x50ee1d=new C[(_0x4b04f6(0x300))](le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82,'height':_0x1fc6b3,'width':Dt,'fill':_0x2b3d14||C[_0x4b04f6(0x164)](a[_0x4b04f6(0x2c4)][_0x4b04f6(0x3a4)],0x0),'strokeWidth':_0x35d290,'stroke':Ut,'evented':!0x0});this[_0x4b04f6(0x1af)]=_0x50ee1d,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0x50ee1d,p[_0x4b04f6(0x138)]);const _0x5285ae=new C[(_0x4b04f6(0x300))](le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82-_e/0x2,'height':_e,'width':_e,'fill':_0x2b3d14||C['getColor'](a[_0x4b04f6(0x2c4)][_0x4b04f6(0x3a4)],0x0),'strokeWidth':0x0,'stroke':_0x2b3d14||C[_0x4b04f6(0x164)](a['COLORS'][_0x4b04f6(0x3a4)],0x0),'evented':!0x1});this[_0x4b04f6(0x236)]=_0x5285ae,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0x5285ae,p[_0x4b04f6(0x138)]);const _0xb90cc9=new ne(le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82-K,'text':_0x463339,'color':_0x2b3d14});this['_textBubble']=_0xb90cc9,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0xb90cc9,p[_0x4b04f6(0x138)]),this[_0x4b04f6(0x241)]=!0x1;}[_0x112f11(0x29d)](){const _0x2b42ed=_0x112f11,_0x48c51e=this[_0x2b42ed(0x1af)][_0x2b42ed(0x334)][_0x2b42ed(0x39c)](()=>{this['_hover']=!0x0;}),_0x393a05=this[_0x2b42ed(0x1af)][_0x2b42ed(0x18c)][_0x2b42ed(0x39c)](()=>{const _0x3c2018=_0x2b42ed;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x3c2018(0x2c0)]=setTimeout(()=>{const _0x61b8b2=_0x3c2018;this[_0x61b8b2(0x241)]=!0x1;},0x7d0);});return()=>{const _0x1282b1=_0x2b42ed;_0x48c51e[_0x1282b1(0x273)](),_0x393a05[_0x1282b1(0x273)]();};}[_0x112f11(0x31f)](_0x1feb9c,_0x3cc776,_0x5c800f,_0x52bff0){const _0x54a99b=_0x112f11,_0x51631d=new a[(_0x54a99b(0x37a))](_0x1feb9c)[_0x54a99b(0x2a5)](0.2)[_0x54a99b(0x252)](),_0x33e84d=new C[(_0x54a99b(0x2c8))](Rt+a[_0x54a99b(0x397)](H),{'pointsGroup':_0x3cc776,'fill':_0x51631d||C['getColor'](a[_0x54a99b(0x2c4)]['black'],0.2),'left':_0x5c800f,'top':_0x52bff0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x54a99b(0x3a0)][_0x54a99b(0x2cd)](_0x33e84d),this[_0x54a99b(0x39b)][_0x54a99b(0x35b)](_0x33e84d,p[_0x54a99b(0x138)]);}[_0x112f11(0x2bf)](_0x5038e1,_0x41e6cb,_0x4b10c1,_0x3096d9){const _0x50f564=_0x112f11,_0x4a0cc1=new a['ColorKit'](_0x5038e1)[_0x50f564(0x2a5)](0.2)[_0x50f564(0x252)](),_0xf15c70=new C['RegularPolygon'](bt+a[_0x50f564(0x397)](H),{'pointsGroup':_0x41e6cb,'fill':_0x4a0cc1||C[_0x50f564(0x164)](a[_0x50f564(0x2c4)][_0x50f564(0x3a4)],0.2),'left':_0x4b10c1,'top':_0x3096d9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x50f564(0x3a0)][_0x50f564(0x2cd)](_0xf15c70),this['_scene'][_0x50f564(0x35b)](_0xf15c70,p[_0x50f564(0x138)]);}[_0x112f11(0x336)](_0x4d6f57){const _0x2ed6e0=_0x4d6f57[0x0],_0x1c41b3=_0x2ed6e0[0x0],_0x56860a=_0x2ed6e0[0x2],{x:_0x1287e1,y:_0x16f985}=_0x1c41b3,{x:_0x48b063,y:_0x8a4ba9}=_0x56860a;return{'left':_0x1287e1,'top':_0x16f985,'width':_0x48b063-_0x1287e1,'height':_0x8a4ba9-_0x16f985};}[_0x112f11(0x1cb)](){const _0x5189bf=_0x112f11,{scaleX:_0x49ed6f,scaleY:_0x3aa864}=this[_0x5189bf(0x39b)][_0x5189bf(0x109)]();return Math[_0x5189bf(0x12e)](_0x49ed6f,_0x3aa864);}}var Lt=Object[_0x112f11(0x265)],Mt=(_0x1750ec,_0x45be3c,_0x321544,_0x50bb1c)=>{const _0x2c2068=_0x112f11;for(var _0x412723=_0x50bb1c>0x1?void 0x0:_0x50bb1c?Lt(_0x45be3c,_0x321544):_0x45be3c,_0xc8712=_0x1750ec[_0x2c2068(0x132)]-0x1,_0x997ded;_0xc8712>=0x0;_0xc8712--)(_0x997ded=_0x1750ec[_0xc8712])&&(_0x412723=_0x997ded(_0x412723)||_0x412723);return _0x412723;},z=(_0x4875dc,_0x272070)=>(_0x45b963,_0xea378a)=>_0x272070(_0x45b963,_0xea378a,_0x4875dc);let ge=class extends a[_0x112f11(0x2a7)]{constructor(_0xf48ac0,_0x295175,_0x183ec0,_0x298a04,_0x4217a6){const _0x2b3ee6=_0x112f11;super(),_(this,_0x2b3ee6(0x382),[]),_(this,_0x2b3ee6(0x1a0),[]),(this[_0x2b3ee6(0x253)]=_0xf48ac0,this[_0x2b3ee6(0x153)]=_0x295175,this[_0x2b3ee6(0x2e2)]=_0x183ec0,this[_0x2b3ee6(0x124)]=_0x298a04,this[_0x2b3ee6(0x297)]=_0x4217a6,this[_0x2b3ee6(0x31e)]());}[_0x112f11(0x31e)](){const _0x20fe1b=_0x112f11,_0x2f320c=this[_0x20fe1b(0x253)][_0x20fe1b(0x1bf)],_0x52b98b=this[_0x20fe1b(0x153)];this[_0x20fe1b(0x2dc)](I[_0x20fe1b(0x221)]([this[_0x20fe1b(0x2e2)]['getCollabCursors$'](_0x2f320c),this[_0x20fe1b(0x297)][_0x20fe1b(0x11d)]])['pipe']($[_0x20fe1b(0x2a9)](([_0x381850,_0x4d3752])=>({'skeleton':_0x52b98b['getSkeleton'](),'cursors':[..._0x381850['values']()][_0x20fe1b(0xfe)](_0x241667=>({..._0x241667,'color':this['_themeService'][_0x20fe1b(0x168)](_0x241667[_0x20fe1b(0x20d)])}))})))[_0x20fe1b(0x1a4)](_0x14f530=>{if(this['_removeCollabCursors'](),_0x14f530){const {skeleton:_0x48cfe5,cursors:_0x33fa38}=_0x14f530;this['_updateCollabCursors'](_0x48cfe5,_0x33fa38);}})),this[_0x20fe1b(0x326)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x4adeb7,_0x1e08a8){const _0x2b18b5=_0x112f11,{scene:_0x364598,mainComponent:_0x2a340d}=this['_context'],_0x693970=_0x1e08a8[_0x2b18b5(0x2a9)](_0x5033b2=>new Ue(_0x5033b2,_0x364598,_0x4adeb7,_0x2a340d));this[_0x2b18b5(0x382)]=_0x693970,this[_0x2b18b5(0x1a0)]=_0x1e08a8;}[_0x112f11(0x15a)](){const _0x7e6c2a=_0x112f11;this[_0x7e6c2a(0x21c)]();const {scene:_0x5a6413,mainComponent:_0x319652}=this[_0x7e6c2a(0x253)],_0xb6cacf=this[_0x7e6c2a(0x153)][_0x7e6c2a(0x340)](),_0x449c99=this[_0x7e6c2a(0x1a0)][_0x7e6c2a(0x2a9)](_0x3c5414=>new Ue(_0x3c5414,_0x5a6413,_0xb6cacf,_0x319652));this['_cursorShapes']=_0x449c99;}[_0x112f11(0x21c)](){const _0x397f8c=_0x112f11;this[_0x397f8c(0x382)][_0x397f8c(0x163)](_0x573c7f=>_0x573c7f[_0x397f8c(0x2de)]()),this[_0x397f8c(0x382)]=[];}[_0x112f11(0x1a7)](){const _0x351d9e=_0x112f11,_0x349955=[p[_0x351d9e(0x155)]['id']];this[_0x351d9e(0x2dc)](this['_commandService'][_0x351d9e(0x12a)](_0x3fb38a=>{const _0x569dae=_0x351d9e;_0x349955['includes'](_0x3fb38a['id'])&&_0x3fb38a[_0x569dae(0x298)][_0x569dae(0x1bf)]===this[_0x569dae(0x253)][_0x569dae(0x1bf)]&&this[_0x569dae(0x15a)]();}));}['_initResize'](){const _0xf9ab81=_0x112f11;this[_0xf9ab81(0x2dc)](a[_0xf9ab81(0x2ce)](this[_0xf9ab81(0x253)][_0xf9ab81(0x25a)][_0xf9ab81(0x125)])[_0xf9ab81(0x15e)]($[_0xf9ab81(0x3a8)](_0x5484bb=>_0x5484bb['type']===C[_0xf9ab81(0x2a0)][_0xf9ab81(0x1bd)]),$[_0xf9ab81(0x172)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ge=Mt([z(0x1,a[_0x112f11(0x277)](V[_0x112f11(0x33e)])),z(0x2,a[_0x112f11(0x277)](F)),z(0x3,a[_0x112f11(0x16e)]),z(0x4,a[_0x112f11(0x277)](a[_0x112f11(0x303)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0x112f11(0x27d)]{constructor(_0x4d7c16,_0x35791d){const _0x162ac2=_0x112f11;super(_0x4d7c16,_0x35791d),_(this,'_color'),_(this,_0x162ac2(0xf8),!0x1),_(this,_0x162ac2(0x323)),_(this,_0x162ac2(0x1c5),''),_(this,_0x162ac2(0x182),'top'),_(this,_0x162ac2(0x123)),(_0x35791d&&this[_0x162ac2(0x1d4)](_0x35791d),this[_0x162ac2(0x334)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x162ac2(0x18c)][_0x162ac2(0x39c)](()=>this[_0x162ac2(0x1d4)]({'hovered':!0x1})));}['setShapeProps'](_0x10bc8b){const _0xd816ed=_0x112f11;var _0x16ac3e,_0x548a85,_0x4cc8a2,_0x32b512,_0x5ae56c,_0xf3fd6d;this[_0xd816ed(0x270)]=(_0x16ac3e=_0x10bc8b[_0xd816ed(0x20d)])!=null?_0x16ac3e:this[_0xd816ed(0x270)],this[_0xd816ed(0xf8)]=(_0x548a85=_0x10bc8b['hovered'])!=null?_0x548a85:this[_0xd816ed(0xf8)],this[_0xd816ed(0x323)]=(_0x4cc8a2=_0x10bc8b[_0xd816ed(0x1b9)])!=null?_0x4cc8a2:this[_0xd816ed(0x323)],this[_0xd816ed(0x1c5)]=(_0x32b512=_0x10bc8b['name'])!=null?_0x32b512:this[_0xd816ed(0x1c5)],this[_0xd816ed(0x182)]=(_0x5ae56c=_0x10bc8b[_0xd816ed(0x37f)])!=null?_0x5ae56c:this[_0xd816ed(0x182)],this[_0xd816ed(0x123)]=(_0xf3fd6d=_0x10bc8b[_0xd816ed(0x207)])!=null?_0xf3fd6d:this[_0xd816ed(0x123)],this[_0xd816ed(0x380)]({'width':_0x10bc8b[_0xd816ed(0x1e1)],'height':_0x10bc8b[_0xd816ed(0x18e)]});}[_0x112f11(0x14b)](_0x469543){const _0x3a227c=_0x112f11,{row:_0x1a00db,column:_0x115391}=_0x469543;if(_0x1a00db>=this[_0x3a227c(0x323)][_0x3a227c(0x315)]&&_0x1a00db<=this[_0x3a227c(0x323)]['endRow']&&_0x115391>=this[_0x3a227c(0x323)][_0x3a227c(0x2c7)]&&_0x115391<=this[_0x3a227c(0x323)]['endColumn']){this[_0x3a227c(0x1d4)]({'hovered':!0x0});return;}this[_0x3a227c(0x1d4)]({'hovered':!0x1});}[_0x112f11(0x22f)](_0x197835){return!0x1;}[_0x112f11(0x28a)](_0x3f2ce9){const _0x507288=_0x112f11;C[_0x507288(0x300)][_0x507288(0x141)](_0x3f2ce9,{'width':this['width'],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x507288(0x270)],'evented':!0x1,'fill':this[_0x507288(0x123)]}),this[_0x507288(0xf8)]&&(_0x3f2ce9[_0x507288(0x287)](),_0x3f2ce9[_0x507288(0x36f)](0x1,0x0,0x0,0x1,this['width'],this[_0x507288(0x182)]==='bottom'?0x0:-K),ne[_0x507288(0x141)](_0x3f2ce9,{'text':this[_0x507288(0x1c5)],'color':this[_0x507288(0x270)]}),_0x3f2ce9[_0x507288(0x2eb)]());}}var wt=Object[_0x112f11(0x265)],yt=(_0x564172,_0x3a6ae2,_0x4c52ba,_0x30e663)=>{const _0x3262cb=_0x112f11;for(var _0x1e3ff4=_0x30e663>0x1?void 0x0:_0x30e663?wt(_0x3a6ae2,_0x4c52ba):_0x3a6ae2,_0x1687af=_0x564172[_0x3262cb(0x132)]-0x1,_0x40cc6e;_0x1687af>=0x0;_0x1687af--)(_0x40cc6e=_0x564172[_0x1687af])&&(_0x1e3ff4=_0x40cc6e(_0x1e3ff4)||_0x1e3ff4);return _0x1e3ff4;},he=(_0x1afc71,_0x407f77)=>(_0x453422,_0x54728c)=>_0x407f77(_0x453422,_0x54728c,_0x1afc71);const xt=0x1389;let Ee=class extends a[_0x112f11(0x2a7)]{constructor(_0x4bef08,_0x3f5baf,_0x4d8489,_0x7468e3){const _0x78563d=_0x112f11;super(),_(this,'_cursors',new Set()),_(this,_0x78563d(0x381),null),(this[_0x78563d(0x253)]=_0x4bef08,this[_0x78563d(0x1f0)]=_0x3f5baf,this[_0x78563d(0x2e2)]=_0x4d8489,this[_0x78563d(0x297)]=_0x7468e3,this[_0x78563d(0x31e)]());}[_0x112f11(0x31e)](){const _0x5944ff=_0x112f11;this['_sheetSkeletonManagerService'][_0x5944ff(0x27e)][_0x5944ff(0x15e)]($[_0x5944ff(0x2a6)](this['dispose$']),$[_0x5944ff(0x1ce)](_0x4207df=>{const _0x47f5f5=_0x5944ff;if(_0x4207df){const _0x146263=_0x4207df['sheetId'];return I[_0x47f5f5(0x221)](this[_0x47f5f5(0x2e2)][_0x47f5f5(0x261)](this[_0x47f5f5(0x253)][_0x47f5f5(0x1bf)]),this[_0x47f5f5(0x297)][_0x47f5f5(0x11d)])['pipe']($[_0x47f5f5(0x2a9)](([_0x5860c8,_0xd6f5e8])=>{const _0x585691=_0x47f5f5,_0x522cad=new Map();return _0x5860c8[_0x585691(0x163)]((_0x476484,_0x32d9be)=>{const _0x5bbb3c=_0x585691;if(_0x476484[_0x5bbb3c(0x239)]===_0x146263){const _0x2034ee={..._0x476484};_0x2034ee['color']=this[_0x5bbb3c(0x297)][_0x5bbb3c(0x168)](_0x476484[_0x5bbb3c(0x20d)]),_0x522cad[_0x5bbb3c(0x17b)](_0x32d9be,_0x2034ee);}}),{'skeleton':_0x4207df,'cursors':_0x522cad};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4ba84d,cursors:_0xb05eb9})=>{const _0x4bc156=_0x5944ff;this[_0x4bc156(0x21c)](),_0x4ba84d&&this[_0x4bc156(0x1f8)](_0x4ba84d,_0xb05eb9);}),this[_0x5944ff(0x1f0)]['currentSkeleton$'][_0x5944ff(0x1a4)](_0xaa4ef3=>{const _0xb6b9fc=_0x5944ff;if(_0xaa4ef3==null)return;const {skeleton:_0x1de9f8}=_0xaa4ef3,{scene:_0x59829}=this[_0xb6b9fc(0x253)];_0x59829['onPointerMove$'][_0xb6b9fc(0x39c)](a[_0xb6b9fc(0x319)](_0x5224e9=>{const _0x4596a2=_0xb6b9fc;var _0x249d0a,_0x5d9f74;const {offsetX:_0x10f323,offsetY:_0xd3cc0}=_0x5224e9,{x:_0x504c86,y:_0x5cf0dd}=_0x59829[_0x4596a2(0x1cf)](C[_0x4596a2(0x135)][_0x4596a2(0x2e9)]([_0x10f323,_0xd3cc0])),{scaleX:_0x46d5c6,scaleY:_0x4056c8}=_0x59829[_0x4596a2(0x109)](),_0x250d5f=_0x59829[_0x4596a2(0x258)](C[_0x4596a2(0x126)]['VIEW_MAIN']),_0x6cdaf4=_0x59829[_0x4596a2(0x20b)](C[_0x4596a2(0x135)][_0x4596a2(0x2e9)]([_0x504c86,_0x5cf0dd]),_0x250d5f),_0x3555c6=_0x1de9f8[_0x4596a2(0x29c)](_0x10f323,_0xd3cc0,_0x46d5c6,_0x4056c8,_0x6cdaf4);((_0x249d0a=this[_0x4596a2(0x381)])==null?void 0x0:_0x249d0a[_0x4596a2(0x274)])===_0x3555c6[_0x4596a2(0x274)]&&((_0x5d9f74=this['_lastPointer'])==null?void 0x0:_0x5d9f74[_0x4596a2(0x1f2)])===_0x3555c6[_0x4596a2(0x1f2)]||this['_cursors'][_0x4596a2(0x163)](_0x405a72=>{const _0x9f3ebf=_0x4596a2;_0x405a72[_0x9f3ebf(0x14b)](_0x3555c6);});},0x64));});}[_0x112f11(0x1f8)](_0x25ce95,_0x1d85e8){const _0x514d5e=_0x112f11;var _0x1aa799;const _0x407c77=(_0x1aa799=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x1aa799['skeleton'];if(!_0x407c77)return;const _0x39cbf8=this[_0x514d5e(0x240)]();if(!_0x39cbf8)return;this[_0x514d5e(0x1a0)]['forEach'](_0x12f921=>{const _0x4b6472=_0x514d5e;_0x12f921[_0x4b6472(0x129)]();});const {scene:_0x4e2fd9}=_0x39cbf8,_0x1042f8=$t(Array['from'](_0x1d85e8[_0x514d5e(0x1bb)]()))[_0x514d5e(0x2a9)](_0x32e519=>{const _0x196241=_0x514d5e,{color:_0x3966b2,range:_0x554e18,name:_0x1e5c50,selection:_0x513c01,sheetID:_0x304429}=_0x32e519,{startColumn:_0x409d90,startRow:_0x592a70,endColumn:_0x1d0585,endRow:_0x2edf25}=_0x554e18,_0x6d64a9=J['getCoordByCell'](_0x592a70,_0x409d90,_0x4e2fd9,_0x407c77),_0x34a45c=J[_0x196241(0x1b8)](_0x2edf25,_0x1d0585,_0x4e2fd9,_0x407c77),{columnHeaderHeightAndMarginTop:_0x56e724}=_0x407c77,{startX:_0x59c67c,startY:_0x30180c}=_0x6d64a9,{endX:_0x5d028e,endY:_0x5ec5db}=_0x34a45c,_0x57753d=_0x5d028e-_0x59c67c,_0x94706f=_0x5ec5db-_0x30180c,_0x147bb1={'labelPosition':_0x30180c-_0x56e724>=K?'top':_0x196241(0x201),'sheetID':_0x304429,'range':_0x554e18,'color':_0x3966b2,'name':_0x1e5c50,'selection':_0x513c01,'left':_0x59c67c,'top':_0x30180c,'width':_0x57753d,'height':_0x94706f,'evented':!0x1,'zIndex':xt};return new Fe(_0x1e5c50,_0x147bb1);});_0x4e2fd9[_0x514d5e(0x2e1)](_0x1042f8,At),this[_0x514d5e(0x1a0)]=new Set(_0x1042f8);}['_removeCollabCursors'](){const _0x29fa58=_0x112f11;var _0x20455d;(_0x20455d=this[_0x29fa58(0x1a0)])==null||_0x20455d['forEach'](_0x479867=>_0x479867[_0x29fa58(0x2de)]());}[_0x112f11(0x240)](){const _0x11120e=_0x112f11;return J['getSheetObject'](this['_context']['unit'],this[_0x11120e(0x253)]);}};Ee=yt([he(0x1,a[_0x112f11(0x277)](J[_0x112f11(0x3aa)])),he(0x2,a[_0x112f11(0x277)](F)),he(0x3,a[_0x112f11(0x277)](a[_0x112f11(0x303)]))],Ee);function $t(_0x12ca83){const _0x357338=_0x112f11,_0x3a18c4=new Map();return _0x12ca83['forEach'](_0x1c0953=>{const _0x1fff7b=_0x29e7;if(_0x3a18c4[_0x1fff7b(0x3b1)](_0x1c0953[_0x1fff7b(0x301)])){const _0x3ff7f9=_0x3a18c4[_0x1fff7b(0x243)](_0x1c0953[_0x1fff7b(0x301)]);_0x3ff7f9[_0x1fff7b(0x3a3)]+=',\x20'+_0x1c0953[_0x1fff7b(0x3a3)];}else _0x3a18c4[_0x1fff7b(0x17b)](_0x1c0953['selection'],_0x1c0953);}),Array[_0x357338(0x286)](_0x3a18c4['values']());}var Bt=Object[_0x112f11(0x265)],Ft=(_0x2b465f,_0x584584,_0x37ea73,_0x127c40)=>{const _0x356a3b=_0x112f11;for(var _0x3aeb2a=_0x127c40>0x1?void 0x0:_0x127c40?Bt(_0x584584,_0x37ea73):_0x584584,_0x196ff0=_0x2b465f[_0x356a3b(0x132)]-0x1,_0x30bbd8;_0x196ff0>=0x0;_0x196ff0--)(_0x30bbd8=_0x2b465f[_0x196ff0])&&(_0x3aeb2a=_0x30bbd8(_0x3aeb2a)||_0x3aeb2a);return _0x3aeb2a;},x=(_0x30f6d8,_0xa34841)=>(_0x4f243f,_0x4f5bf9)=>_0xa34841(_0x4f243f,_0x4f5bf9,_0x30f6d8);let Z=class extends a[_0x112f11(0x18b)]{constructor(_0x1550e9,_0x5dcbb2,_0x596827,_0x518b5b,_0x475a57,_0x422622){const _0x4688a7=_0x112f11;super(),this[_0x4688a7(0x376)]=_0x1550e9,this[_0x4688a7(0x26d)]=_0x5dcbb2,this[_0x4688a7(0x1e2)]=_0x596827,this[_0x4688a7(0x248)]=_0x518b5b,this[_0x4688a7(0x19b)]=_0x475a57,this[_0x4688a7(0x206)]=_0x422622,this[_0x4688a7(0x1e4)](),this[_0x4688a7(0x2f4)]();}['_setupBeforeClosingHandler'](){const _0x8e361f=_0x112f11;this[_0x8e361f(0x2dc)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x42e01b=_0x8e361f;if(this[_0x42e01b(0x26d)]['saveTaskMap']['size'])return this[_0x42e01b(0x206)]['t'](_0x42e01b(0x175));}));}[_0x112f11(0x2f4)](){const _0x5e0364=_0x112f11;this[_0x5e0364(0x2dc)](this['_collaborationUIEventService'][_0x5e0364(0x13d)][_0x5e0364(0x1a4)](_0x41baf8=>{const _0x32ac78=_0x5e0364;_0x41baf8['id']===u['CollaborationUIEventId'][_0x32ac78(0x310)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T['MessageType'][_0x32ac78(0x2ee)],'content':this['_localeService']['t'](_0x32ac78(0x29f))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)]['CLOSE_ROOM']&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)]['Warning'],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x148))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x317)]&&this[_0x32ac78(0x19b)][_0x32ac78(0xf3)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x284)),'type':_0x32ac78(0x351),'duration':0x0}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x34c)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)]['Error'],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x148))+'('+_0x41baf8['data']+')'}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x154)]&&this[_0x32ac78(0x248)]['show']({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x2ee)],'content':this['_localeService']['t'](_0x41baf8[_0x32ac78(0x34e)]||'')}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x2ba)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x2ee)],'content':this['_localeService']['t']('session.will-retry')}),_0x41baf8['id']===u[_0x32ac78(0x2b5)]['SOCKET_FAILED']&&this['_messageService'][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x245)],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x2c9))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x324)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x245)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};Z=Ft([x(0x0,R['IBeforeCloseService']),x(0x1,u[_0x112f11(0x26c)]),x(0x2,a[_0x112f11(0x277)](u[_0x112f11(0x26b)])),x(0x3,R[_0x112f11(0x2ef)]),x(0x4,R[_0x112f11(0x157)]),x(0x5,a['Inject'](a[_0x112f11(0x24d)]))],Z);const kt=_0x112f11(0x29a),Le={};var jt=Object[_0x112f11(0x265)],Yt=(_0x46b632,_0x211ba1,_0x89f82c,_0x17fe31)=>{const _0x4833f1=_0x112f11;for(var _0x4b7ace=_0x17fe31>0x1?void 0x0:_0x17fe31?jt(_0x211ba1,_0x89f82c):_0x211ba1,_0x1c6f52=_0x46b632[_0x4833f1(0x132)]-0x1,_0x50436e;_0x1c6f52>=0x0;_0x1c6f52--)(_0x50436e=_0x46b632[_0x1c6f52])&&(_0x4b7ace=_0x50436e(_0x4b7ace)||_0x4b7ace);return _0x4b7ace;},Me=(_0x2243e2,_0xe4d3b4)=>(_0x2a2def,_0x21909e)=>_0xe4d3b4(_0x2a2def,_0x21909e,_0x2243e2);let Q=class{constructor(_0x5ca376,_0xe2e4c3){const _0x5d2a1d=_0x112f11;this['_transformService']=_0x5ca376,this[_0x5d2a1d(0x2ed)]=_0xe2e4c3;}[_0x112f11(0x357)](_0x44856e){const _0x1f905c=_0x112f11;this[_0x1f905c(0xf9)](_0x44856e),this[_0x1f905c(0xf7)](_0x44856e);}['transformRemoteChangeset'](_0x57781a){const _0x10c35b=_0x112f11,{unitID:_0x40371f}=_0x57781a,_0x48c049=this[_0x10c35b(0x2ed)][_0x10c35b(0x1d0)](_0x40371f)[_0x10c35b(0x2f0)](p[_0x10c35b(0x2cb)]),{redoCache:_0x2e6ba9}=_0x48c049[_0x10c35b(0x215)]();if(_0x2e6ba9['length']===0x0)return _0x57781a;let _0x5e4f74=a[_0x10c35b(0x22d)][_0x10c35b(0x228)](_0x57781a[_0x10c35b(0x30d)][0x0]);for(let _0x16de05=0x0;_0x16de05<_0x2e6ba9[_0x10c35b(0x132)];_0x16de05++){const _0x1316e5={'id':_0x10c35b(0x2b0),'params':{..._0x2e6ba9[_0x16de05]}},_0x38aea8=this['_transformService'][_0x10c35b(0x1f4)](_0x5e4f74,_0x1316e5,!0x1);if(g[_0x10c35b(0x1dc)](_0x38aea8))throw _0x38aea8[_0x10c35b(0x351)];_0x5e4f74=_0x38aea8[_0x10c35b(0x35f)];}return{...a[_0x10c35b(0x22d)][_0x10c35b(0x228)](_0x57781a),'mutations':[_0x5e4f74]};}[_0x112f11(0xf9)](_0x10cecf){const _0x236e09=_0x112f11,{unitID:_0x368484}=_0x10cecf,_0x5340a8=this[_0x236e09(0x2ed)][_0x236e09(0x1d0)](_0x368484)[_0x236e09(0x2f0)](p['DocIMEInputManagerService']),{undoCache:_0x56b045,redoCache:_0x586c57}=_0x5340a8[_0x236e09(0x215)]();if(_0x56b045[_0x236e09(0x132)]===0x0||_0x586c57[_0x236e09(0x132)]===0x0)return;const _0x1a7531=[],_0x9e4622=[];let _0x4a267f=a[_0x236e09(0x22d)]['deepClone'](_0x10cecf[_0x236e09(0x30d)][0x0]),_0x471dca=a[_0x236e09(0x22d)][_0x236e09(0x228)](_0x10cecf[_0x236e09(0x30d)][0x0]);for(let _0xe6f88=_0x56b045[_0x236e09(0x132)]-0x1;_0xe6f88>=0x0;_0xe6f88--){const _0x234eb4={'id':_0x236e09(0x2b0),'params':{..._0x56b045[_0xe6f88]}},_0x18ff25={'id':_0x236e09(0x2b0),'params':{..._0x586c57[_0xe6f88]}},_0x355d6e=this[_0x236e09(0x14e)]['transformMutation'](_0x4a267f,_0x234eb4,!0x1),_0x56c18b=this[_0x236e09(0x14e)][_0x236e09(0x1f4)](_0x471dca,_0x18ff25,!0x1);if(g[_0x236e09(0x1dc)](_0x355d6e))throw _0x355d6e['error'];if(g[_0x236e09(0x1dc)](_0x56c18b))throw _0x56c18b[_0x236e09(0x351)];_0x1a7531[_0x236e09(0x28b)](_0x355d6e[_0x236e09(0x15f)][_0x236e09(0x298)]),_0x9e4622[_0x236e09(0x28b)](_0x56c18b[_0x236e09(0x15f)][_0x236e09(0x298)]),_0x4a267f=_0x355d6e[_0x236e09(0x35f)],_0x471dca=_0x56c18b[_0x236e09(0x35f)];}_0x5340a8[_0x236e09(0x20e)]({'undoCache':_0x1a7531,'redoCache':_0x9e4622});}[_0x112f11(0xf7)](_0x78036d){const _0x2db07b=_0x112f11,{unitID:_0x1a55a6}=_0x78036d,_0x378f6b=this['_renderManagerService'][_0x2db07b(0x1d0)](_0x1a55a6)[_0x2db07b(0x2f0)](p['DocIMEInputManagerService']),_0x336b96=_0x378f6b[_0x2db07b(0x38b)]();if(_0x336b96==null)return;const _0x5aa77f=[{'id':_0x2db07b(0x2b0),'params':{'unitId':_0x78036d[_0x2db07b(0x2ad)],'actions':null,'textRanges':[_0x336b96]}}],_0x147b06=this[_0x2db07b(0x14e)][_0x2db07b(0x30e)](_0x78036d,_0x5aa77f);if(!g['isTransformMutationsWithChangesetSuccess'](_0x147b06))throw _0x147b06[_0x2db07b(0x351)];const _0x3df4f8=_0x147b06[_0x2db07b(0x15f)][0x0]['params'][_0x2db07b(0x220)];Array[_0x2db07b(0x2e3)](_0x3df4f8)&&_0x3df4f8['length']&&_0x378f6b[_0x2db07b(0x2d3)](_0x3df4f8[0x0]);}};Q=Yt([Me(0x0,g[_0x112f11(0x2c3)]),Me(0x1,C['IRenderManagerService'])],Q);var Ht=Object[_0x112f11(0x265)],Wt=(_0x3a8424,_0x5a74dc,_0x5a29ed,_0x10f538)=>{for(var _0x5d1114=_0x10f538>0x1?void 0x0:_0x10f538?Ht(_0x5a74dc,_0x5a29ed):_0x5a74dc,_0x3ea74c=_0x3a8424['length']-0x1,_0x1f8ec9;_0x3ea74c>=0x0;_0x3ea74c--)(_0x1f8ec9=_0x3a8424[_0x3ea74c])&&(_0x5d1114=_0x1f8ec9(_0x5d1114)||_0x5d1114);return _0x5d1114;},ue=(_0x393c51,_0x4b598e)=>(_0x1ebc3a,_0x3f9cc7)=>_0x4b598e(_0x1ebc3a,_0x3f9cc7,_0x393c51);let ee=class{constructor(_0x295194,_0x221cbf,_0x2b4a8d){const _0x47d721=_0x112f11;this['_injector']=_0x295194,this['_transformService']=_0x221cbf,this[_0x47d721(0x260)]=_0x2b4a8d;}[_0x112f11(0x133)](_0x4fe669){const _0x268fcc=_0x112f11;this[_0x268fcc(0x1c9)](_0x4fe669);}[_0x112f11(0x2d5)](_0x51d84c){const _0x2ba9a7=_0x112f11,{unitID:_0x7cd8c}=_0x51d84c,{collaboration:_0x11433d}=this[_0x2ba9a7(0x260)][_0x2ba9a7(0x320)](_0x7cd8c);if(_0x11433d['length']===0x0)return _0x51d84c;let _0x3f354e=a[_0x2ba9a7(0x22d)][_0x2ba9a7(0x228)](_0x51d84c[_0x2ba9a7(0x30d)][0x0]);for(let _0x21b391=0x0;_0x21b391<_0x11433d[_0x2ba9a7(0x132)];_0x21b391++){const _0x36739c={'id':_0x2ba9a7(0x2b0),'params':{'unitId':_0x11433d[_0x21b391]['unitId'],..._0x11433d[_0x21b391][_0x2ba9a7(0x1bc)]}},_0x2e19e9=this[_0x2ba9a7(0x14e)]['transformMutation'](_0x3f354e,_0x36739c,!0x1);if(g[_0x2ba9a7(0x1dc)](_0x2e19e9))throw _0x2e19e9[_0x2ba9a7(0x351)];_0x3f354e=_0x2e19e9[_0x2ba9a7(0x35f)];}return{...a[_0x2ba9a7(0x22d)][_0x2ba9a7(0x228)](_0x51d84c),'mutations':[_0x3f354e]};}['_transformHistoryAndStateStack'](_0x362e3a){const _0x3aab18=_0x112f11,{unitID:_0xf91a5c}=_0x362e3a,{history:_0x15602e,collaboration:_0x2f6538}=this[_0x3aab18(0x260)][_0x3aab18(0x320)](_0xf91a5c);if(_0x15602e[_0x3aab18(0x132)]===0x0&&_0x2f6538[_0x3aab18(0x132)]===0x0)return;const _0xc08c41=[],_0x51dd11=[];let _0x5fa0a3=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a[_0x3aab18(0x30d)][0x0]),_0x169387=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a[_0x3aab18(0x30d)][0x0]);for(let _0x49e69a=_0x15602e['length']-0x1;_0x49e69a>=0x0;_0x49e69a--){const _0x319cf2={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x15602e[_0x49e69a][_0x3aab18(0x1bf)],..._0x15602e[_0x49e69a][_0x3aab18(0x190)]}},_0x590dab={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x15602e[_0x49e69a]['unitId'],..._0x15602e[_0x49e69a][_0x3aab18(0x1bc)]}},_0x46f4a0=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x5fa0a3,_0x319cf2,!0x1),_0x29d9d0=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x169387,_0x590dab,!0x1);if(g[_0x3aab18(0x1dc)](_0x46f4a0))throw _0x46f4a0['error'];if(g['isTransformMutationFailure'](_0x29d9d0))throw _0x29d9d0[_0x3aab18(0x351)];_0xc08c41[_0x3aab18(0x28b)]({..._0x15602e[_0x49e69a],'undoState':_0x46f4a0[_0x3aab18(0x15f)]['params'],'redoState':_0x29d9d0[_0x3aab18(0x15f)][_0x3aab18(0x298)]}),_0x5fa0a3=_0x46f4a0[_0x3aab18(0x35f)],_0x169387=_0x29d9d0[_0x3aab18(0x35f)];}_0x5fa0a3=a['Tools'][_0x3aab18(0x228)](_0x362e3a['mutations'][0x0]),_0x169387=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a['mutations'][0x0]);for(let _0x139b6c=_0x2f6538[_0x3aab18(0x132)]-0x1;_0x139b6c>=0x0;_0x139b6c--){const _0x5051a9={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x2f6538[_0x139b6c][_0x3aab18(0x1bf)],..._0x2f6538[_0x139b6c][_0x3aab18(0x190)]}},_0x27cfa8={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x2f6538[_0x139b6c][_0x3aab18(0x1bf)],..._0x2f6538[_0x139b6c][_0x3aab18(0x1bc)]}},_0xd8c1e9=this['_transformService']['transformMutation'](_0x5fa0a3,_0x5051a9,!0x1),_0x2ebc64=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x169387,_0x27cfa8,!0x1);if(g['isTransformMutationFailure'](_0xd8c1e9))throw _0xd8c1e9[_0x3aab18(0x351)];if(g[_0x3aab18(0x1dc)](_0x2ebc64))throw _0x2ebc64[_0x3aab18(0x351)];_0x51dd11[_0x3aab18(0x28b)]({..._0x2f6538[_0x139b6c],'undoState':_0xd8c1e9[_0x3aab18(0x15f)][_0x3aab18(0x298)],'redoState':_0x2ebc64[_0x3aab18(0x15f)][_0x3aab18(0x298)]}),_0x5fa0a3=_0xd8c1e9['m1Prime'],_0x169387=_0x2ebc64[_0x3aab18(0x35f)];}this[_0x3aab18(0x260)]['setStateCache'](_0xf91a5c,{'history':_0xc08c41,'collaboration':_0x51dd11});}};ee=Wt([ue(0x0,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),ue(0x1,g[_0x112f11(0x2c3)]),ue(0x2,a[_0x112f11(0x277)](p[_0x112f11(0x33d)]))],ee);var Vt=Object[_0x112f11(0x265)],Gt=(_0x42f49f,_0x5dbe74,_0x247990,_0x1ade56)=>{for(var _0x1270dc=_0x1ade56>0x1?void 0x0:_0x1ade56?Vt(_0x5dbe74,_0x247990):_0x5dbe74,_0x26ae08=_0x42f49f['length']-0x1,_0x30a59a;_0x26ae08>=0x0;_0x26ae08--)(_0x30a59a=_0x42f49f[_0x26ae08])&&(_0x1270dc=_0x30a59a(_0x1270dc)||_0x1270dc);return _0x1270dc;},Ae=(_0x2a1309,_0x10a669)=>(_0x455f84,_0x12d731)=>_0x10a669(_0x455f84,_0x12d731,_0x2a1309);let te=class{constructor(_0xb95f0f,_0x28dc7f){const _0x48a862=_0x112f11;this[_0x48a862(0x399)]=_0xb95f0f,this['_transformService']=_0x28dc7f;}[_0x112f11(0x1fc)](_0xcdbf3f){const _0x3dcd51=_0x112f11;var _0x516c47;const _0x169064=this[_0x3dcd51(0x399)]['get'](V[_0x3dcd51(0x268)]),_0x3a16eb=(_0x516c47=_0x169064[_0x3dcd51(0x329)]())!=null?_0x516c47:[];if(_0x3a16eb[_0x3dcd51(0x132)]===0x0)return;const _0x5e06b4=_0xcdbf3f[_0x3dcd51(0x2ad)],_0x4e739a=[{'id':_0x3dcd51(0x2b0),'params':{'unitId':_0x5e06b4,'actions':null,'textRanges':_0x3a16eb}}],_0x360497=this[_0x3dcd51(0x14e)]['transformMutationsWithChangeset'](_0xcdbf3f,_0x4e739a);if(!g[_0x3dcd51(0x327)](_0x360497))throw _0x360497['error'];const _0x37e0cc=_0x360497['m2Prime'][0x0][_0x3dcd51(0x298)][_0x3dcd51(0x220)];Array['isArray'](_0x37e0cc)&&_0x37e0cc[_0x3dcd51(0x132)]&&_0x169064[_0x3dcd51(0x32d)](_0x37e0cc,{'unitId':_0x5e06b4,'subUnitId':_0x5e06b4},!0x1);}};te=Gt([Ae(0x0,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),Ae(0x1,g['ITransformService'])],te);var Xt=Object[_0x112f11(0x265)],Kt=(_0x2cf8b0,_0x1288dc,_0x168cc4,_0x2e04b3)=>{const _0x5d4f27=_0x112f11;for(var _0x45c880=_0x2e04b3>0x1?void 0x0:_0x2e04b3?Xt(_0x1288dc,_0x168cc4):_0x1288dc,_0x3920df=_0x2cf8b0[_0x5d4f27(0x132)]-0x1,_0x4a7329;_0x3920df>=0x0;_0x3920df--)(_0x4a7329=_0x2cf8b0[_0x3920df])&&(_0x45c880=_0x4a7329(_0x45c880)||_0x45c880);return _0x45c880;},U=(_0x4f2724,_0x220e60)=>(_0x562f07,_0x532f8f)=>_0x220e60(_0x562f07,_0x532f8f,_0x4f2724);let se=class extends a[_0x112f11(0x18b)]{constructor(_0x215996,_0x3ab657,_0xa457b8,_0x2cb261,_0x194490,_0x169052,_0x24463e,_0x1a2ad5){const _0x1da069=_0x112f11;super(),_(this,'_status$',new I[(_0x1da069(0x1dd))](u['CollaborationStatus'][_0x1da069(0x1d6)])),(this[_0x1da069(0x260)]=_0x215996,this[_0x1da069(0x131)]=_0x3ab657,this[_0x1da069(0x283)]=_0xa457b8,this[_0x1da069(0x16d)]=_0x2cb261,this[_0x1da069(0x35a)]=_0x194490,this['_docSyncEditingCollabCursorService']=_0x169052,this['_messageService']=_0x24463e,this['_localeService']=_0x1a2ad5,this['_initEntityListener']());}[_0x112f11(0x349)](){const _0x121983=_0x112f11;this[_0x121983(0x2dc)](this[_0x121983(0x131)][_0x121983(0x39e)][_0x121983(0x1a4)](_0x1d9906=>{const _0x2adc9b=_0x121983,_0x58fb78=this[_0x2adc9b(0x260)][_0x2adc9b(0x2c1)]['subscribe'](_0x2c38a9=>{const _0x4feb04=_0x2adc9b;if(_0x2c38a9==null)return;const {unitId:_0x2359e5,redoState:_0x56946b,commandId:_0x5522b4}=_0x2c38a9;if(_0x2359e5!==_0x1d9906[_0x4feb04(0x2ad)])return;const _0x282a34={'id':_0x5522b4,'type':a[_0x4feb04(0x294)][_0x4feb04(0x1ad)],'params':{'unitId':_0x2359e5,'actions':_0x56946b['actions'],'textRanges':null}};_0x1d9906[_0x4feb04(0x216)](_0x282a34);});if(_0x1d9906[_0x2adc9b(0x2dc)](_0x58fb78),_0x1d9906 instanceof u[_0x2adc9b(0x10a)]){const _0x4fc780={'onTransformIME':_0x24089b=>this[_0x2adc9b(0x283)][_0x2adc9b(0x357)](_0x24089b),'onTransformState':_0xd569eb=>this[_0x2adc9b(0x16d)][_0x2adc9b(0x133)](_0xd569eb),'onTransformSelections':_0x9877=>this[_0x2adc9b(0x35a)][_0x2adc9b(0x1fc)](_0x9877),'onSyncEditingCollabCursor':_0x2aa81d=>this['_docSyncEditingCollabCursorService'][_0x2adc9b(0x262)](_0x2aa81d),'onTransformRemoteChangesetByIMECache':_0x4770e8=>this[_0x2adc9b(0x283)]['transformRemoteChangeset'](_0x4770e8),'onTransformRemoteChangesetByStateCache':_0x1faac8=>this['_docTransformStateCacheService'][_0x2adc9b(0x2d5)](_0x1faac8)};_0x1d9906[_0x2adc9b(0x1f1)](_0x4fc780);}}));}};se=Kt([U(0x0,a[_0x112f11(0x277)](p[_0x112f11(0x33d)])),U(0x1,a[_0x112f11(0x277)](u[_0x112f11(0x2d6)])),U(0x2,a[_0x112f11(0x277)](Q)),U(0x3,a[_0x112f11(0x277)](ee)),U(0x4,a[_0x112f11(0x277)](te)),U(0x5,a[_0x112f11(0x277)](Re)),U(0x6,R[_0x112f11(0x2ef)]),U(0x7,a[_0x112f11(0x277)](a[_0x112f11(0x24d)]))],se);var G=(_0x186439=>(_0x186439[_0x186439[_0x112f11(0x1b3)]=0x0]=_0x112f11(0x1b3),_0x186439[_0x186439['OK']=0x1]='OK',_0x186439[_0x186439[_0x112f11(0x2ab)]=0x2]=_0x112f11(0x2ab),_0x186439[_0x186439[_0x112f11(0x317)]=0x3]=_0x112f11(0x317),_0x186439[_0x186439['NOT_FOUND']=0x4]=_0x112f11(0x2b9),_0x186439[_0x186439[_0x112f11(0x312)]=0x5]=_0x112f11(0x312),_0x186439[_0x186439[_0x112f11(0x2b3)]=0x6]=_0x112f11(0x2b3),_0x186439[_0x186439[_0x112f11(0x23b)]=0x7]='INVALID_ARGUMENT',_0x186439[_0x186439['TOO_MANY_REQUESTS']=0x8]=_0x112f11(0x363),_0x186439[_0x186439[_0x112f11(0x22c)]=0x9]='COMPLETION_FINISHED',_0x186439[_0x186439['LOGIN_FAILED']=0xa]=_0x112f11(0x347),_0x186439[_0x186439['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x186439[_0x186439[_0x112f11(0x2b2)]=0xc]=_0x112f11(0x2b2),_0x186439[_0x186439['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x112f11(0x21e),_0x186439[_0x186439[_0x112f11(0x117)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x186439[_0x186439[_0x112f11(0x122)]=0xf]=_0x112f11(0x122),_0x186439[_0x186439[_0x112f11(0x255)]=0x10]=_0x112f11(0x255),_0x186439[_0x186439[_0x112f11(0x238)]=0x64]=_0x112f11(0x238),_0x186439[_0x186439[_0x112f11(0x28d)]=0x65]='ERROR_AGAIN',_0x186439[_0x186439['USER_NOT_FOUND']=0xc9]=_0x112f11(0x341),_0x186439[_0x186439[_0x112f11(0x31a)]=0xca]='USER_IS_ANONYMOUS',_0x186439[_0x186439[_0x112f11(0x178)]=0x1389]=_0x112f11(0x178),_0x186439[_0x186439[_0x112f11(0x2bb)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x186439[_0x186439[_0x112f11(0x24a)]=0x1772]=_0x112f11(0x24a),_0x186439[_0x186439[_0x112f11(0x2ff)]=0x1773]=_0x112f11(0x2ff),_0x186439[_0x186439['APPLY_REJECT']=0x1b59]=_0x112f11(0x107),_0x186439[_0x186439[_0x112f11(0x396)]=0x1b5a]=_0x112f11(0x396),_0x186439[_0x186439[_0x112f11(0x1c2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x186439[_0x186439[_0x112f11(0x1a8)]=0x1b5c]=_0x112f11(0x1a8),_0x186439[_0x186439[_0x112f11(0x249)]=0x1b5d]=_0x112f11(0x249),_0x186439[_0x186439[_0x112f11(0x1ec)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x186439[_0x186439[_0x112f11(0x2e5)]=0x2329]=_0x112f11(0x2e5),_0x186439[_0x186439[_0x112f11(0x14c)]=0x232a]=_0x112f11(0x14c),_0x186439[_0x186439[_0x112f11(0x218)]=0x232b]=_0x112f11(0x218),_0x186439[_0x186439['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x112f11(0x2bd),_0x186439[_0x186439['LICENSE_DISTRO_REJECTED']=0x232d]=_0x112f11(0x233),_0x186439[_0x186439[_0x112f11(0x335)]=0x2711]=_0x112f11(0x335),_0x186439[_0x186439['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x186439[_0x186439['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x186439[_0x186439[_0x112f11(0x10e)]=0x2714]=_0x112f11(0x10e),_0x186439[_0x186439[_0x112f11(0x27a)]=0x271a]=_0x112f11(0x27a),_0x186439[_0x186439[_0x112f11(0x14f)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x186439[_0x186439['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x112f11(0x38f),_0x186439[_0x186439[_0x112f11(0x304)]=0x271d]=_0x112f11(0x304),_0x186439[_0x186439[_0x112f11(0x36a)]=0x271e]=_0x112f11(0x36a),_0x186439[_0x186439[_0x112f11(0x289)]=0x271f]=_0x112f11(0x289),_0x186439[_0x186439[_0x112f11(0x205)]=0x2720]=_0x112f11(0x205),_0x186439[_0x186439['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x112f11(0x305),_0x186439[_0x186439[_0x112f11(0x1f7)]=0x2ee1]=_0x112f11(0x1f7),_0x186439[_0x186439['INVALID_INVITE_CODE']=0x2ee2]=_0x112f11(0x1b4),_0x186439[_0x186439['INVITE_CODE_REQUIRED']=0x2ee3]=_0x112f11(0x13e),_0x186439[_0x186439[_0x112f11(0x325)]=0x2ee4]=_0x112f11(0x325),_0x186439[_0x186439[_0x112f11(0x189)]=0x2ee5]=_0x112f11(0x189),_0x186439[_0x186439[_0x112f11(0x110)]=0x32c9]=_0x112f11(0x110),_0x186439[_0x186439[_0x112f11(0x19f)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x186439[_0x186439[_0x112f11(0x22e)]=0x32cb]=_0x112f11(0x22e),_0x186439[_0x186439[_0x112f11(0x31c)]=0x36b1]=_0x112f11(0x31c),_0x186439[_0x186439[_0x112f11(0x377)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x186439[_0x186439[_0x112f11(0x180)]=0x36b3]=_0x112f11(0x180),_0x186439[_0x186439[_0x112f11(0x158)]=0x36b4]=_0x112f11(0x158),_0x186439[_0x186439[_0x112f11(0x208)]=0x3715]=_0x112f11(0x208),_0x186439[_0x186439[_0x112f11(0x119)]=0x3716]=_0x112f11(0x119),_0x186439[_0x186439['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x186439[_0x186439['REDEMPTION_INVALID_CODE']=0x3a99]=_0x112f11(0x36e),_0x186439[_0x186439[_0x112f11(0x25b)]=0x3a9a]=_0x112f11(0x25b),_0x186439[_0x186439[_0x112f11(0x1e3)]=0x3a9b]=_0x112f11(0x1e3),_0x186439[_0x186439[_0x112f11(0x388)]=0x3a9c]=_0x112f11(0x388),_0x186439[_0x186439[_0x112f11(0x1ff)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x186439[_0x186439[_0x112f11(0x308)]=0x3a9e]=_0x112f11(0x308),_0x186439[_0x186439[_0x112f11(0x293)]=0x3a9f]=_0x112f11(0x293),_0x186439[_0x186439[_0x112f11(0x26f)]=-0x1]=_0x112f11(0x26f),_0x186439))(G||{});function qt(_0x139c7c){const _0x5610d0=_0x112f11;var _0x409ce2,_0xed9212;const _0x4fdadb=(_0x409ce2=_0x139c7c[_0x5610d0(0x3ab)])==null?void 0x0:_0x409ce2['stage'],_0x1b0ba2=((_0xed9212=_0x139c7c[_0x5610d0(0x3ab)])==null?void 0x0:_0xed9212[_0x5610d0(0x32c)])||0x0;return _0x4fdadb===B[_0x5610d0(0x306)][_0x5610d0(0x214)]&&_0x1b0ba2>0x0;}function zt(_0x442fbe){const _0x2535b0=_0x112f11;return _0x442fbe['functionsExecutedState']===B[_0x2535b0(0x365)][_0x2535b0(0x2fd)];}var Jt=Object[_0x112f11(0x265)],Zt=(_0x4fec46,_0x84c0e6,_0x356fb6,_0x4d2df8)=>{const _0x8e63d9=_0x112f11;for(var _0x291d44=_0x4d2df8>0x1?void 0x0:_0x4d2df8?Jt(_0x84c0e6,_0x356fb6):_0x84c0e6,_0x253be0=_0x4fec46[_0x8e63d9(0x132)]-0x1,_0x1e84b6;_0x253be0>=0x0;_0x253be0--)(_0x1e84b6=_0x4fec46[_0x253be0])&&(_0x291d44=_0x1e84b6(_0x291d44)||_0x291d44);return _0x291d44;},A=(_0x135e82,_0x3fe452)=>(_0x32a183,_0x19c03d)=>_0x3fe452(_0x32a183,_0x19c03d,_0x135e82);function _0x29e7(_0x413cbf,_0x1b276d){const _0x1d231a=_0x1d23();return _0x29e7=function(_0x29e743,_0x4c6694){_0x29e743=_0x29e743-0xf2;let _0x420222=_0x1d231a[_0x29e743];return _0x420222;},_0x29e7(_0x413cbf,_0x1b276d);}const Qt=_0x112f11(0x391),es=_0x112f11(0x288),ts=_0x112f11(0x367);let ie=class extends a[_0x112f11(0x18b)]{constructor(_0x3f9bf7,_0x8c4cd0,_0x41c11f,_0x3746b0,_0x18d73f,_0x1bbdd7,_0x1aaf49){const _0x4e1a42=_0x112f11;super(),_(this,_0x4e1a42(0x104),null),_(this,_0x4e1a42(0x358),0x0),_(this,_0x4e1a42(0x30b),0x0),_(this,_0x4e1a42(0x1fe),[]),_(this,_0x4e1a42(0x2da),0x0),(this[_0x4e1a42(0x248)]=_0x3f9bf7,this[_0x4e1a42(0x124)]=_0x8c4cd0,this[_0x4e1a42(0x101)]=_0x41c11f,this[_0x4e1a42(0x2b1)]=_0x3746b0,this['_univerInstanceService']=_0x18d73f,this[_0x4e1a42(0x3ad)]=_0x1bbdd7,this['_localeService']=_0x1aaf49,this[_0x4e1a42(0x372)]());}['_initCommandInterceptor'](){const _0x26786b=_0x112f11;this[_0x26786b(0x2dc)](this['_commandService'][_0x26786b(0x22b)]((_0xceebea,_0x1b1efb)=>{const _0x4ab1e2=_0x26786b;if(_0xceebea['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x31a8e2=_0xceebea[_0x4ab1e2(0x298)];if(!this[_0x4ab1e2(0x1be)](_0x31a8e2['dirtyRanges']))return;if(!this['_checkCalculationAvailable']())throw this[_0x4ab1e2(0x1ef)](_0xceebea,_0x1b1efb),this[_0x4ab1e2(0x2a2)](),new a[(_0x4ab1e2(0x2b8))]();})),this[_0x26786b(0x2dc)](this['_commandService'][_0x26786b(0x12a)]((_0x1d49b8,_0x228be7)=>{const _0x3cd7e6=_0x26786b;if(_0x1d49b8['id']!==B[_0x3cd7e6(0x140)]['id'])return;const _0x1159c2=_0x1d49b8[_0x3cd7e6(0x298)];if(qt(_0x1159c2)){const _0x703cbf=a[_0x3cd7e6(0x397)]();this[_0x3cd7e6(0x1fe)][_0x3cd7e6(0x2cd)](_0x703cbf),this['_startCalculationLimit'](_0x703cbf);}else{if(zt(_0x1159c2)&&this['_taskIds'][_0x3cd7e6(0x132)]>0x0){const _0x18f84c=this[_0x3cd7e6(0x1fe)][_0x3cd7e6(0x1f3)]();this[_0x3cd7e6(0x29e)](_0x18f84c);}}}));}[_0x112f11(0x2de)](){const _0x133112=_0x112f11;super['dispose'](),this[_0x133112(0x266)](),this[_0x133112(0x1fe)]=[],this['_currentUsage']=0x0,this[_0x133112(0x358)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x112f11(0x1ef)](_0x50f648,_0x592203){const _0x12e3d6=_0x112f11;for(let _0x54f8c8=0x0;_0x54f8c8<0x1e;_0x54f8c8++)try{if(await this[_0x12e3d6(0x224)](),this[_0x12e3d6(0x24b)]()){this[_0x12e3d6(0x213)](_0x50f648,_0x592203),this['_messageService'][_0x12e3d6(0xf3)]({'content':this[_0x12e3d6(0x206)]['t'](_0x12e3d6(0x38d)),'type':T[_0x12e3d6(0x2e0)][_0x12e3d6(0x151)]});return;}await new Promise(_0x494222=>{const _0x4a87f5=_0x12e3d6;this[_0x4a87f5(0x104)]=window[_0x4a87f5(0x142)](_0x494222,0x3e8);});}catch(_0x477d95){this[_0x12e3d6(0x3ad)][_0x12e3d6(0x351)](_0x477d95);}this['_messageService'][_0x12e3d6(0xf3)]({'content':this['_localeService']['t'](_0x12e3d6(0x23e)),'type':T['MessageType'][_0x12e3d6(0x245)]});}['_applyCommand'](_0x1c2665,_0x3b285a){const _0x379c58=_0x112f11;try{this[_0x379c58(0x124)][_0x379c58(0x257)](_0x1c2665['id'],_0x1c2665[_0x379c58(0x298)],_0x3b285a);}catch(_0x10bbb5){this[_0x379c58(0x3ad)][_0x379c58(0x351)](_0x10bbb5);}}[_0x112f11(0x3a1)](_0x38fca3,_0x42ca79){const _0x4962cd=_0x112f11;_0x42ca79<this[_0x4962cd(0x2da)]||(this[_0x4962cd(0x2da)]=_0x42ca79,this[_0x4962cd(0x358)]=Number[_0x4962cd(0x185)](_0x38fca3['maxFormulaLimit']),this[_0x4962cd(0x30b)]=Number[_0x4962cd(0x185)](_0x38fca3[_0x4962cd(0x2c2)]));}async[_0x112f11(0x3ac)](_0x3bf8d3){const _0x27771e=_0x112f11;var _0x19f8cb,_0x25fbb8;const _0x3018d6=Date[_0x27771e(0x10d)]();try{const _0x425c84=((_0x19f8cb=this[_0x27771e(0x101)][_0x27771e(0x26a)](u[_0x27771e(0x346)]))==null?void 0x0:_0x19f8cb['startFormulaLimitUrl'])||es,_0x441ce2=(await this[_0x27771e(0x2b1)][_0x27771e(0x20f)](_0x425c84,{'body':JSON['stringify']({'taskId':_0x3bf8d3})}))['body'];if(((_0x25fbb8=_0x441ce2[_0x27771e(0x351)])==null?void 0x0:_0x25fbb8[_0x27771e(0x2fe)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x441ce2[_0x27771e(0x281)],_0x3018d6);}catch(_0x385edd){this['_logService']['error'](_0x385edd);}}async['_getFormulaLimitStatus'](_0x36408f){const _0x4c3b68=_0x112f11;var _0x12fdd3,_0x226d2c;const _0xb49f3=Date['now']();try{const _0x260b59=((_0x12fdd3=this[_0x4c3b68(0x101)][_0x4c3b68(0x26a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x12fdd3[_0x4c3b68(0x366)])||Qt,_0x1ed7c9=_0x36408f?_0x260b59+'?taskId='+encodeURIComponent(_0x36408f):_0x260b59,_0x46ebea=(await this['_httpService'][_0x4c3b68(0x243)](_0x1ed7c9))[_0x4c3b68(0x332)];if(((_0x226d2c=_0x46ebea[_0x4c3b68(0x351)])==null?void 0x0:_0x226d2c[_0x4c3b68(0x2fe)])!==G['OK'])return;this[_0x4c3b68(0x3a1)](_0x46ebea['limitInfo'],_0xb49f3);}catch(_0x15cde8){this[_0x4c3b68(0x3ad)][_0x4c3b68(0x351)](_0x15cde8);}}async[_0x112f11(0x29e)](_0x55692a){const _0x3a0cd1=_0x112f11;var _0x5c17b4,_0x5555df;const _0x5da0f0=Date[_0x3a0cd1(0x10d)]();try{const _0x58f2f8=((_0x5c17b4=this[_0x3a0cd1(0x101)][_0x3a0cd1(0x26a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5c17b4[_0x3a0cd1(0x291)])||ts,_0xcf579=(await this[_0x3a0cd1(0x2b1)][_0x3a0cd1(0x20f)](_0x58f2f8,{'body':JSON[_0x3a0cd1(0x1eb)]({'taskId':_0x55692a})}))[_0x3a0cd1(0x332)];if(((_0x5555df=_0xcf579[_0x3a0cd1(0x351)])==null?void 0x0:_0x5555df[_0x3a0cd1(0x2fe)])!==G['OK'])return;this[_0x3a0cd1(0x3a1)](_0xcf579[_0x3a0cd1(0x281)],_0x5da0f0);}catch(_0x2d29f7){this[_0x3a0cd1(0x3ad)][_0x3a0cd1(0x351)](_0x2d29f7);}}[_0x112f11(0x24b)](){const _0x3dc164=_0x112f11;return this[_0x3dc164(0x358)]===0x0?!0x0:this[_0x3dc164(0x358)]-this[_0x3dc164(0x30b)]>0x0;}['_clearPolling'](){const _0x4f347f=_0x112f11;this[_0x4f347f(0x104)]&&(clearTimeout(this[_0x4f347f(0x104)]),this[_0x4f347f(0x104)]=null);}[_0x112f11(0x2a2)](){const _0xe315c4=_0x112f11;this[_0xe315c4(0x248)][_0xe315c4(0xf3)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T[_0xe315c4(0x2e0)]['Loading']});}[_0x112f11(0x1be)](_0x3255e3){const _0x177212=_0x112f11;for(const _0x9b81fd of _0x3255e3){const {unitId:_0x2fe700,sheetId:_0x1f010b,range:_0x20b13d}=_0x9b81fd,_0x5a1a60=this[_0x177212(0x368)][_0x177212(0x225)](_0x2fe700);if(!_0x5a1a60)continue;const _0x3fd0e3=_0x5a1a60[_0x177212(0x1db)](_0x1f010b);if(!_0x3fd0e3)continue;const _0x24d943=_0x3fd0e3[_0x177212(0x202)]();for(let _0x14f75f=_0x20b13d['startRow'];_0x14f75f<=_0x20b13d[_0x177212(0x360)];_0x14f75f++)for(let _0x3c373d=_0x20b13d[_0x177212(0x2c7)];_0x3c373d<=_0x20b13d[_0x177212(0x2ec)];_0x3c373d++){const _0x4f545b=_0x24d943[_0x177212(0x24c)](_0x14f75f,_0x3c373d);if(_0x4f545b&&(a['isFormulaString'](_0x4f545b['f'])||a['isFormulaId'](_0x4f545b['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a['Inject'](R[_0x112f11(0x2ef)])),A(0x1,a[_0x112f11(0x16e)]),A(0x2,a['IConfigService']),A(0x3,a[_0x112f11(0x277)](X[_0x112f11(0x2cc)])),A(0x4,a['IUniverInstanceService']),A(0x5,a['ILogService']),A(0x6,a['Inject'](a[_0x112f11(0x24d)]))],ie);var ss=Object[_0x112f11(0x265)],is=(_0x1efde1,_0x1b6091,_0x54350c,_0x13a840)=>{const _0x4607ef=_0x112f11;for(var _0x12d35f=_0x13a840>0x1?void 0x0:_0x13a840?ss(_0x1b6091,_0x54350c):_0x1b6091,_0x2544a0=_0x1efde1[_0x4607ef(0x132)]-0x1,_0x500709;_0x2544a0>=0x0;_0x2544a0--)(_0x500709=_0x1efde1[_0x2544a0])&&(_0x12d35f=_0x500709(_0x12d35f)||_0x12d35f);return _0x12d35f;},Ie=(_0x489b9e,_0x171c96)=>(_0xdad764,_0x5048ef)=>_0x171c96(_0xdad764,_0x5048ef,_0x489b9e);let Ce=class extends a['Disposable']{constructor(_0x2ce255,_0x10929d,_0x1dd487){const _0x3651e9=_0x112f11;super(),_(this,_0x3651e9(0x27c),new Map()),_(this,_0x3651e9(0x378),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x2ce255,this[_0x3651e9(0x37c)]=_0x10929d,this[_0x3651e9(0x17e)]=_0x1dd487);}[_0x112f11(0x316)](){const _0x4b44ba=_0x112f11;this[_0x4b44ba(0xff)]=!0x0;}[_0x112f11(0x2f1)](){const _0x19a34e=_0x112f11;this[_0x19a34e(0xff)]=!0x1;}get[_0x112f11(0x1a1)](){return this['_saveTaskMap'];}['dispose'](){const _0x9dfc64=_0x112f11;this['exhaustSavingTask']()[_0x9dfc64(0x15c)](()=>super[_0x9dfc64(0x2de)]());}async[_0x112f11(0x25e)](_0x2c8d38){const _0x8ae4f4=_0x112f11;return this[_0x8ae4f4(0xff)]?null:this[_0x8ae4f4(0x37c)][_0x8ae4f4(0x173)](u[_0x8ae4f4(0x2f8)](_0x2c8d38));}async[_0x112f11(0x10f)](_0x117dbd,_0x552307){const _0x1f5f30=_0x112f11;return!!this[_0x1f5f30(0x37c)][_0x1f5f30(0x186)](_0x117dbd,_0x552307);}['updateOfflineData'](_0x23e58e,_0x59f99b,_0x2b7252,_0x35265a){const _0x2a69a8=_0x112f11,_0x2aff03=this[_0x2a69a8(0x17e)]['getCurrentRevOfUnit'](_0x23e58e);this[_0x2a69a8(0x27c)][_0x2a69a8(0x17b)](_0x23e58e,{'unitID':_0x23e58e,'type':_0x59f99b,'awaitingChangeset':_0x2b7252,'mutations':_0x35265a,'rev':_0x2aff03}),this[_0x2a69a8(0x378)][_0x2a69a8(0x3b1)](_0x23e58e)||this[_0x2a69a8(0x379)](_0x23e58e);}['_scheduleSaving'](_0xd877f0){const _0x413913=_0x112f11,_0x4f5e67=this[_0x413913(0x34a)]();_0x4f5e67===0x0?this[_0x413913(0x2fc)](_0xd877f0):this[_0x413913(0x378)]['set'](_0xd877f0,setTimeout(()=>this[_0x413913(0x2fc)](_0xd877f0),_0x4f5e67));}['_getSaveTimeout'](){const _0x37b343=_0x112f11;var _0x539a48;return(_0x539a48=this[_0x37b343(0x101)]['getConfig'](u[_0x37b343(0x1ca)]))!=null?_0x539a48:u['LOCAL_CACHE_INTERVAL'];}[_0x112f11(0x2fc)](_0x5b64e3){const _0xab88da=_0x112f11,_0x2033a8=this[_0xab88da(0x378)]['get'](_0x5b64e3);return _0x2033a8!==void 0x0&&window['clearTimeout'](_0x2033a8),this[_0xab88da(0x37c)]['setItem'](u[_0xab88da(0x2f8)](_0x5b64e3),this['_cachedData']['get'](_0x5b64e3))[_0xab88da(0x15c)](()=>this[_0xab88da(0x378)][_0xab88da(0x375)](_0x5b64e3));}async['exhaustSavingTask'](){const _0x2673bb=_0x112f11,_0x2dad59=[];this['_saveTaskMap']['forEach']((_0x4bae63,_0x12f09a)=>{const _0x32789e=_0x29e7;window[_0x32789e(0x11e)](_0x4bae63),_0x2dad59[_0x32789e(0x2cd)](this['_saveCache'](_0x12f09a)[_0x32789e(0x15c)](()=>{const _0x44e6da=_0x32789e;this[_0x44e6da(0x378)]['delete'](_0x12f09a);}));}),await Promise[_0x2673bb(0x16b)](_0x2dad59);}};Ce=is([Ie(0x0,a[_0x112f11(0x103)]),Ie(0x1,a['ILocalStorageService']),Ie(0x2,a[_0x112f11(0x277)](g[_0x112f11(0x1e8)]))],Ce);class ke extends a[_0x112f11(0x2a7)]{constructor(){const _0x442ce2=_0x112f11;super(),_(this,_0x442ce2(0x1ba)),this[_0x442ce2(0x1ba)]=I['fromEvent'](window,_0x442ce2(0x355))[_0x442ce2(0x15e)](I[_0x442ce2(0x2a6)](this[_0x442ce2(0x33b)]),I[_0x442ce2(0x1d8)](0x1),I[_0x442ce2(0x2df)](void 0x0));}['setParam'](_0x2012d5,_0xa08d3f,_0x2f10f2=!0x1){const _0x2dceb5=_0x112f11,_0x49dd43=new URL(window[_0x2dceb5(0x13f)][_0x2dceb5(0x204)]);_0x49dd43[_0x2dceb5(0x2f6)][_0x2dceb5(0x17b)](_0x2012d5,_0xa08d3f),_0x2f10f2?window[_0x2dceb5(0x200)][_0x2dceb5(0x35d)]('','',_0x49dd43[_0x2dceb5(0x1c8)]()):window['history'][_0x2dceb5(0x1c4)]('','',_0x49dd43['toString']());}[_0x112f11(0x24f)](_0x142f79,_0x5bd0f3=!0x1){const _0x82156d=_0x112f11,_0x4c0655=new URL(window[_0x82156d(0x13f)]['href']);_0x4c0655[_0x82156d(0x2f6)][_0x82156d(0x375)](_0x142f79),_0x5bd0f3?window[_0x82156d(0x200)][_0x82156d(0x35d)]('','',_0x4c0655[_0x82156d(0x1c8)]()):window[_0x82156d(0x200)][_0x82156d(0x1c4)]('','',_0x4c0655['toString']());}[_0x112f11(0x1ab)](_0x33e3da){const _0x510ab5=_0x112f11;var _0x114db8;return(_0x114db8=new URL(window[_0x510ab5(0x13f)][_0x510ab5(0x204)])[_0x510ab5(0x2f6)]['get'](_0x33e3da))!=null?_0x114db8:void 0x0;}}var ns=Object[_0x112f11(0x39a)],rs=Object[_0x112f11(0x265)],os=(_0x3739bc,_0x990ac3,_0x508a74)=>_0x990ac3 in _0x3739bc?ns(_0x3739bc,_0x990ac3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x508a74}):_0x3739bc[_0x990ac3]=_0x508a74,as=(_0xeb00cf,_0x3a3a33,_0x415332,_0x4d13b1)=>{const _0x4dd8fc=_0x112f11;for(var _0x53cdb9=_0x4d13b1>0x1?void 0x0:_0x4d13b1?rs(_0x3a3a33,_0x415332):_0x3a3a33,_0x172bdc=_0xeb00cf[_0x4dd8fc(0x132)]-0x1,_0x233609;_0x172bdc>=0x0;_0x172bdc--)(_0x233609=_0xeb00cf[_0x172bdc])&&(_0x53cdb9=_0x233609(_0x53cdb9)||_0x53cdb9);return _0x53cdb9;},de=(_0x507d02,_0x3b4ef7)=>(_0x27108a,_0x327c72)=>_0x3b4ef7(_0x27108a,_0x327c72,_0x507d02),cs=(_0x469523,_0x27ae97,_0x21d8b0)=>os(_0x469523,_0x27ae97+'',_0x21d8b0);const ls='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x112f11(0x1f6)]=class extends a['Plugin']{constructor(_0x4b6d52=Le,_0x38bc2d,_0x144045,_0x5b5146){const _0x75fdfa=_0x112f11;super(),this[_0x75fdfa(0x191)]=_0x4b6d52,this[_0x75fdfa(0x2ed)]=_0x38bc2d,this[_0x75fdfa(0x399)]=_0x144045,this[_0x75fdfa(0x101)]=_0x5b5146;const {..._0x5aa050}=a[_0x75fdfa(0x2bc)]({},Le,this[_0x75fdfa(0x191)]);this[_0x75fdfa(0x101)][_0x75fdfa(0x311)](kt,_0x5aa050);}[_0x112f11(0x194)](){const _0x30dc6d=_0x112f11;this['_registerDependencies'](),this[_0x30dc6d(0x21d)]();}[_0x112f11(0x264)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x142390=_0x112f11;var _0x400d92;const _0x28d28d=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x142390(0x11a)],{'useClass':X[_0x142390(0x31d)]}],[u[_0x142390(0x26c)],{'useClass':Ce}],[exports[_0x142390(0x33a)]],[se],[Z],[F],[fe],[exports[_0x142390(0x374)]]];a[_0x142390(0x136)](this[_0x142390(0x399)],a[_0x142390(0x29b)](_0x28d28d,(_0x400d92=this['_config'])==null?void 0x0:_0x400d92['override']));}['_registerRenderDependencies'](){const _0x271da2=_0x112f11;this[_0x271da2(0x2dc)](this[_0x271da2(0x2ed)][_0x271da2(0x254)](a[_0x271da2(0x128)]['UNIVER_DOC'],[ge])),this[_0x271da2(0x2dc)](this[_0x271da2(0x2ed)][_0x271da2(0x254)](a[_0x271da2(0x128)][_0x271da2(0x2be)],[Ee]));}[_0x112f11(0x21d)](){const _0x2ae4a1=_0x112f11;a[_0x2ae4a1(0x134)](this[_0x2ae4a1(0x399)],[[F],[exports[_0x2ae4a1(0x33a)]],[se],[Z],[exports[_0x2ae4a1(0x374)]],[ie]]);}},cs(exports[_0x112f11(0x1f6)],_0x112f11(0x14a),ls),exports[_0x112f11(0x1f6)]=as([a[_0x112f11(0x280)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x112f11(0x348)]),de(0x2,a['Inject'](a[_0x112f11(0x32f)])),de(0x3,a[_0x112f11(0x103)])],exports[_0x112f11(0x1f6)]);var _s=Object[_0x112f11(0x265)],hs=(_0x540212,_0x4f522b,_0x30e9d9,_0x4f89bd)=>{const _0x3b1186=_0x112f11;for(var _0x26e627=_0x4f89bd>0x1?void 0x0:_0x4f89bd?_s(_0x4f522b,_0x30e9d9):_0x4f522b,_0x179b62=_0x540212[_0x3b1186(0x132)]-0x1,_0x385d62;_0x179b62>=0x0;_0x179b62--)(_0x385d62=_0x540212[_0x179b62])&&(_0x26e627=_0x385d62(_0x26e627)||_0x26e627);return _0x26e627;},W=(_0x2c1dc9,_0x3addbd)=>(_0x3cad74,_0x15cba1)=>_0x3addbd(_0x3cad74,_0x15cba1,_0x2c1dc9);exports['BrowserCollaborationSocketService']=class extends u[_0x112f11(0x10c)]{constructor(_0x43fcda,_0x2fcc66,_0x35b874,_0x553313,_0xb9b26c){super(_0x43fcda,_0x2fcc66,_0x35b874,_0x553313,_0xb9b26c);}async[_0x112f11(0x1df)](_0x5d0876){const _0x1dca75=_0x112f11,_0x4612fd=await this[_0x1dca75(0x292)](),_0x17f598=this[_0x1dca75(0x373)](_0x5d0876,_0x4612fd);return this[_0x1dca75(0x198)](_0x17f598);}[_0x112f11(0x373)](_0x8ebbda,_0x12ab0f){const _0x3c6f6b=_0x112f11,_0x39e40e=typeof window>'u'?new URL(_0x8ebbda):new URL(_0x8ebbda,window[_0x3c6f6b(0x13f)][_0x3c6f6b(0x226)]);_0x39e40e[_0x3c6f6b(0x2f6)][_0x3c6f6b(0x17b)]('sessionTicket',_0x12ab0f);const _0x28431f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3c6f6b(0x13f)][_0x3c6f6b(0x25f)]);return _0x28431f[_0x3c6f6b(0x243)](_0x3c6f6b(0x170))&&_0x39e40e['searchParams']['set'](_0x3c6f6b(0x170),_0x28431f[_0x3c6f6b(0x243)](_0x3c6f6b(0x170))),_0x39e40e[_0x3c6f6b(0x1c8)]();}async['_getSessionTicket'](){const _0x22f55f=_0x112f11;var _0x16f736,_0x797d1b,_0x28b8a1;const _0x4de503=this['_configService']['getConfig'](u[_0x22f55f(0x346)]),_0x9fa43e=(_0x16f736=_0x4de503==null?void 0x0:_0x4de503['wsSessionTicketUrl'])!=null?_0x16f736:u[_0x22f55f(0x17a)];return(_0x28b8a1=(_0x797d1b=(await this[_0x22f55f(0x2b1)][_0x22f55f(0x243)](_0x9fa43e,{'headers':{'Content-Type':_0x22f55f(0x3a7)}}))[_0x22f55f(0x332)])==null?void 0x0:_0x797d1b[_0x22f55f(0x145)])!=null?_0x28b8a1:'';}},exports[_0x112f11(0x1da)]=hs([W(0x0,a['Inject'](a[_0x112f11(0x32f)])),W(0x1,a['Inject'](X[_0x112f11(0x2cc)])),W(0x2,a[_0x112f11(0x103)]),W(0x3,a[_0x112f11(0x12d)]),W(0x4,g[_0x112f11(0xf2)])],exports[_0x112f11(0x1da)]);var us=Object[_0x112f11(0x265)],Is=(_0x1b5bf9,_0x115257,_0x4b7546,_0x1a9306)=>{const _0x4ea549=_0x112f11;for(var _0x428f55=_0x1a9306>0x1?void 0x0:_0x1a9306?us(_0x115257,_0x4b7546):_0x115257,_0x490cf1=_0x1b5bf9[_0x4ea549(0x132)]-0x1,_0x257b54;_0x490cf1>=0x0;_0x490cf1--)(_0x257b54=_0x1b5bf9[_0x490cf1])&&(_0x428f55=_0x257b54(_0x428f55)||_0x428f55);return _0x428f55;},Se=(_0x1a0d2b,_0x3916e7)=>(_0x201f3f,_0xccc8fd)=>_0x3916e7(_0x201f3f,_0xccc8fd,_0x1a0d2b);exports[_0x112f11(0x18f)]=class extends a[_0x112f11(0x18b)]{constructor(_0x3d2cae,_0x2c31aa,_0x14ee4a){const _0x1c943b=_0x112f11;super(),this[_0x1c943b(0x353)]=_0x3d2cae,this[_0x1c943b(0x2b1)]=_0x2c31aa,this[_0x1c943b(0x101)]=_0x14ee4a;}async[_0x112f11(0x1b1)](_0x2b9a6c,_0x33e1e4,_0x3b54ec,..._0x5e915b){const _0x38e602=_0x112f11;var _0x4c8678,_0x5391b3,_0x397586,_0x4d0cc8;const _0xc6fbdf=this[_0x38e602(0x353)][_0x38e602(0x299)]();if(!_0xc6fbdf)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2f8bf0=((_0x4c8678=this[_0x38e602(0x101)][_0x38e602(0x26a)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4c8678:u[_0x38e602(0x2b7)])+'/'+_0x2b9a6c+_0x38e602(0x27f)+_0x33e1e4,_0x47aa08=new URL(window[_0x38e602(0x13f)]['href']),_0x4c6ec5={'scriptId':_0x2b9a6c,'runId':(_0x5391b3=_0x47aa08[_0x38e602(0x2f6)][_0x38e602(0x243)](_0x38e602(0x170)))!=null?_0x5391b3:'','function':_0x33e1e4,'unitId':_0xc6fbdf[_0x38e602(0x1d3)](),'argsOfFunction':JSON[_0x38e602(0x1eb)](_0x5e915b),'invokeId':(_0x397586=_0x3b54ec[_0x38e602(0x1e5)])!=null?_0x397586:'','executionId':(_0x4d0cc8=_0x3b54ec[_0x38e602(0x15b)])!=null?_0x4d0cc8:''};try{const _0x2ca1d0=await this['_httpService'][_0x38e602(0x20f)](_0x2f8bf0,{'body':_0x4c6ec5});return _0x2ca1d0[_0x38e602(0x332)][_0x38e602(0x351)]&&_0x2ca1d0[_0x38e602(0x332)][_0x38e602(0x351)][_0x38e602(0x2fe)]!==G['OK']?_0x38e602(0x115):_0x2ca1d0[_0x38e602(0x332)]['result'];}catch{return _0x38e602(0x115);}}},exports['RemoteUniscriptService']=Is([Se(0x0,a[_0x112f11(0x2cf)]),Se(0x1,a[_0x112f11(0x277)](X['HTTPService'])),Se(0x2,a['IConfigService'])],exports[_0x112f11(0x18f)]);const Pe=0x7530,we=_0x112f11(0x2d9);class ds extends a[_0x112f11(0x18b)]{constructor(){const _0x4b2ee5=_0x112f11;super(),_(this,'_id',a[_0x4b2ee5(0x397)]()),_(this,_0x4b2ee5(0x371),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x4b2ee5(0x19c),null),_(this,_0x4b2ee5(0x160),new Map()),_(this,_0x4b2ee5(0x398),new Map()),this[_0x4b2ee5(0x31e)]();}['dispose'](){const _0x42aae6=_0x112f11;super[_0x42aae6(0x2de)](),this[_0x42aae6(0x160)][_0x42aae6(0x163)]((_0x50fc7b,_0x2b0fbd)=>this['_removeClearOtherTimer'](_0x2b0fbd)),this[_0x42aae6(0x19c)]&&window[_0x42aae6(0x290)](this['_heartbeatTimer']);}[_0x112f11(0x28f)](_0x5f0084){const _0x382112=_0x112f11;return this['_ensureSubject'](_0x5f0084)[_0x382112(0x15e)](I[_0x382112(0x1fb)]());}['editingUnit'](_0x1a6c66){const _0x5a9de9=_0x112f11;this[_0x5a9de9(0x371)][_0x5a9de9(0x22a)]===0x0&&this[_0x5a9de9(0x17f)](),this[_0x5a9de9(0x371)][_0x5a9de9(0x234)](_0x1a6c66),this['_send']({'type':0x0,'memberID':this[_0x5a9de9(0x197)],'unitIDs':[_0x1a6c66],'isForwarded':!0x1});}[_0x112f11(0x1d1)](_0x5ad57f){const _0x366f76=_0x112f11;this[_0x366f76(0x371)][_0x366f76(0x375)](_0x5ad57f),this[_0x366f76(0x371)][_0x366f76(0x22a)]===0x0&&this[_0x366f76(0x19c)]&&window[_0x366f76(0x290)](this[_0x366f76(0x19c)]);}[_0x112f11(0x31e)](){const _0x117275=_0x112f11;this[_0x117275(0x2dc)](a['toDisposable'](I[_0x117275(0x26e)](window,_0x117275(0x354))[_0x117275(0x1a4)](_0x5abd6b=>{const _0x165856=_0x117275;if(_0x5abd6b[_0x165856(0x144)]!==we||!_0x5abd6b[_0x165856(0x39d)])return;const _0xbd301d=JSON[_0x165856(0x2f5)](_0x5abd6b['newValue']);this[_0x165856(0x309)](_0xbd301d);}))),window[_0x117275(0x16f)]('unload',()=>this[_0x117275(0x35e)]({'type':0x1,'memberID':this[_0x117275(0x197)],'unitIDs':Array[_0x117275(0x286)](this[_0x117275(0x371)])}));}[_0x112f11(0x309)](_0x2133cd){const _0x4b1f09=_0x112f11;switch(_0x2133cd[_0x4b1f09(0x342)]){case 0x0:this[_0x4b1f09(0x1ed)](_0x2133cd);break;case 0x1:this[_0x4b1f09(0x331)](_0x2133cd);break;case 0x2:this[_0x4b1f09(0x229)](_0x2133cd);break;}}[_0x112f11(0x1ed)](_0x154e0a){const _0xef9169=_0x112f11,{unitIDs:_0x879878,memberID:_0x410d10,isForwarded:_0x5a3c5f}=_0x154e0a;_0x879878[_0xef9169(0x163)](_0x33abf1=>{const _0x2f1762=_0xef9169;if(!_0x5a3c5f&&this['_unitOnClients'][_0x2f1762(0x3b1)](_0x33abf1)&&this[_0x2f1762(0x130)](_0x33abf1)['next'](u['UnitStatus'][_0x2f1762(0x282)]),!this['_unitOnClients'][_0x2f1762(0x3b1)](_0x33abf1)||!this[_0x2f1762(0x31b)][_0x2f1762(0x243)](_0x33abf1)['has'](_0x410d10)){const _0xb9f8aa=this[_0x2f1762(0x31b)]['get'](_0x33abf1)||new Set();_0xb9f8aa[_0x2f1762(0x234)](_0x410d10),this[_0x2f1762(0x31b)][_0x2f1762(0x17b)](_0x33abf1,_0xb9f8aa),this[_0x2f1762(0x321)](_0x410d10);}}),_0x5a3c5f||this['_send']({'type':0x0,'memberID':this[_0xef9169(0x197)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x112f11(0x321)](_0x2b916b){const _0xc85eb3=_0x112f11;this['_removeClearOtherTimer'](_0x2b916b);const _0x37c578=window['setTimeout'](()=>{const _0x52af6c=_0x29e7;this[_0x52af6c(0x31b)][_0x52af6c(0x163)](_0x3dd324=>{const _0x2e3fd5=_0x52af6c;_0x3dd324[_0x2e3fd5(0x375)](_0x2b916b);});},Pe*0x2);this['_clearOtherTimers'][_0xc85eb3(0x17b)](_0x2b916b,_0x37c578);}[_0x112f11(0x211)](_0x795226){const _0x13949f=_0x112f11;if(this[_0x13949f(0x160)][_0x13949f(0x3b1)](_0x795226)){const _0x3f0140=this[_0x13949f(0x160)][_0x13949f(0x243)](_0x795226);_0x3f0140&&window[_0x13949f(0x11e)](_0x3f0140),this[_0x13949f(0x160)][_0x13949f(0x17b)](_0x795226,null);}}[_0x112f11(0x331)](_0x3d8880){const _0x3a285d=_0x112f11,{memberID:_0x3c20e3,unitIDs:_0x274186}=_0x3d8880;_0x274186[_0x3a285d(0x163)](_0x3970e3=>{const _0x493b5a=_0x3a285d;var _0x43f52e;const _0x19c2f5=this[_0x493b5a(0x31b)]['get'](_0x3970e3);_0x19c2f5&&(_0x19c2f5[_0x493b5a(0x375)](_0x3c20e3),(_0x43f52e=this[_0x493b5a(0x130)](_0x3970e3))==null||_0x43f52e[_0x493b5a(0x159)](_0x19c2f5[_0x493b5a(0x22a)]===0x0?u[_0x493b5a(0x176)][_0x493b5a(0x112)]:u[_0x493b5a(0x176)]['OTHER_CLIENTS_EDITING']));}),this[_0x3a285d(0x211)](_0x3c20e3);}[_0x112f11(0x229)](_0x1d238d){const _0x5bbb2f=_0x112f11;this[_0x5bbb2f(0x321)](_0x1d238d['memberID']);}[_0x112f11(0x35e)](_0x458fda){const _0x2803f3=_0x112f11;localStorage[_0x2803f3(0x186)](we,JSON[_0x2803f3(0x1eb)](_0x458fda));}[_0x112f11(0x17f)](){const _0x5459a6=_0x112f11;this[_0x5459a6(0x19c)]=window['setInterval'](()=>{const _0x168531=_0x5459a6;this[_0x168531(0x35e)]({'type':0x2,'memberID':this['_id']});},Pe);}[_0x112f11(0x130)](_0x136b22){const _0x2751e3=_0x112f11;return this[_0x2751e3(0x398)][_0x2751e3(0x3b1)](_0x136b22)||this['_unitStatus'][_0x2751e3(0x17b)](_0x136b22,new I[(_0x2751e3(0x1dd))](u[_0x2751e3(0x176)][_0x2751e3(0x112)])),this[_0x2751e3(0x398)][_0x2751e3(0x243)](_0x136b22);}}exports['IURLService']=Te,exports['SheetCollabCursorShape']=Fe,exports['WebBrowserSingleActiveUnitService']=ds,exports[_0x112f11(0x183)]=ke;
|
|
1
|
+
'use strict';function _0xc081(_0xaa35f4,_0x19dd33){const _0x26031b=_0x2603();return _0xc081=function(_0xc0816,_0x4fe9c4){_0xc0816=_0xc0816-0xab;let _0x3c35b4=_0x26031b[_0xc0816];return _0x3c35b4;},_0xc081(_0xaa35f4,_0x19dd33);}const _0x31dfc7=_0xc081;(function(_0x5beafa,_0x347967){const _0x407b73=_0xc081,_0x33409d=_0x5beafa();while(!![]){try{const _0x2c6de0=-parseInt(_0x407b73(0xf4))/0x1+parseInt(_0x407b73(0x107))/0x2*(-parseInt(_0x407b73(0x175))/0x3)+-parseInt(_0x407b73(0x26c))/0x4+-parseInt(_0x407b73(0x1fa))/0x5*(-parseInt(_0x407b73(0x290))/0x6)+parseInt(_0x407b73(0x230))/0x7*(parseInt(_0x407b73(0x1c2))/0x8)+-parseInt(_0x407b73(0x141))/0x9+-parseInt(_0x407b73(0xf5))/0xa*(-parseInt(_0x407b73(0x316))/0xb);if(_0x2c6de0===_0x347967)break;else _0x33409d['push'](_0x33409d['shift']());}catch(_0x4938c4){_0x33409d['push'](_0x33409d['shift']());}}}(_0x2603,0xb339e));var Ge=Object[_0x31dfc7(0x1b8)],Xe=(_0x32197d,_0x2d7ad2,_0x2c0162)=>_0x2d7ad2 in _0x32197d?Ge(_0x32197d,_0x2d7ad2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c0162}):_0x32197d[_0x2d7ad2]=_0x2c0162,_=(_0x3d0247,_0x5568d1,_0x581e4a)=>Xe(_0x3d0247,typeof _0x5568d1!=_0x31dfc7(0x1cf)?_0x5568d1+'':_0x5568d1,_0x581e4a);Object[_0x31dfc7(0x1b8)](exports,Symbol[_0x31dfc7(0xd6)],{'value':_0x31dfc7(0x263)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){const _0x28fbaa=_0x31dfc7;return O=Object['assign']||function(_0x5011b2){const _0x4d257d=_0xc081;for(var _0x2ff28d,_0x55b487=0x1,_0x39e678=arguments[_0x4d257d(0x2f8)];_0x55b487<_0x39e678;_0x55b487++){_0x2ff28d=arguments[_0x55b487];for(var _0x1a3090 in _0x2ff28d)Object[_0x4d257d(0x192)][_0x4d257d(0x226)]['call'](_0x2ff28d,_0x1a3090)&&(_0x5011b2[_0x1a3090]=_0x2ff28d[_0x1a3090]);}return _0x5011b2;},O[_0x28fbaa(0x289)](this,arguments);},ze=function(_0x12efdf,_0x5b5f14){const _0x32f0c5=_0x31dfc7;var _0x1fe75a={};for(var _0x255e3c in _0x12efdf)Object[_0x32f0c5(0x192)][_0x32f0c5(0x226)][_0x32f0c5(0x109)](_0x12efdf,_0x255e3c)&&_0x5b5f14[_0x32f0c5(0x132)](_0x255e3c)<0x0&&(_0x1fe75a[_0x255e3c]=_0x12efdf[_0x255e3c]);if(_0x12efdf!=null&&typeof Object['getOwnPropertySymbols']==_0x32f0c5(0x265)){for(var _0x4ddaf1=0x0,_0x255e3c=Object[_0x32f0c5(0x13a)](_0x12efdf);_0x4ddaf1<_0x255e3c[_0x32f0c5(0x2f8)];_0x4ddaf1++)_0x5b5f14['indexOf'](_0x255e3c[_0x4ddaf1])<0x0&&Object[_0x32f0c5(0x192)][_0x32f0c5(0x296)][_0x32f0c5(0x109)](_0x12efdf,_0x255e3c[_0x4ddaf1])&&(_0x1fe75a[_0x255e3c[_0x4ddaf1]]=_0x12efdf[_0x255e3c[_0x4ddaf1]]);}return _0x1fe75a;},pe=L['forwardRef'](function(_0x3c36b2,_0x4bc1b0){const _0xdd77d8=_0x31dfc7;var _0x4983c1=_0x3c36b2['icon'],_0x59fb9d=_0x3c36b2['id'],_0x503389=_0x3c36b2[_0xdd77d8(0x2b6)],_0x2385ff=_0x3c36b2[_0xdd77d8(0x106)],_0x3b9d8a=ze(_0x3c36b2,['icon','id','className',_0xdd77d8(0x106)]),_0x1e5e3d=_0xdd77d8(0xd9)[_0xdd77d8(0x14f)](_0x59fb9d,'\x20')[_0xdd77d8(0x14f)](_0x503389||'')[_0xdd77d8(0x215)](),_0x51ce3d=L[_0xdd77d8(0x19e)]('_'['concat'](Qe()));return ye(_0x4983c1,''[_0xdd77d8(0x14f)](_0x59fb9d),{'defIds':_0x4983c1[_0xdd77d8(0x20b)],'idSuffix':_0x51ce3d['current']},O({'ref':_0x4bc1b0,'className':_0x1e5e3d},_0x3b9d8a),_0x2385ff);});function ye(_0x1e1d3f,_0x5b4011,_0x381f59,_0x35dafc,_0x356351){const _0x1d2132=_0x31dfc7;return L[_0x1d2132(0x19c)](_0x1e1d3f['tag'],O(O({'key':_0x5b4011},Je(_0x1e1d3f,_0x381f59,_0x356351)),_0x35dafc),(Ze(_0x1e1d3f,_0x381f59)[_0x1d2132(0x21a)]||[])['map'](function(_0x28d00d,_0x4203b8){const _0x56f5a4=_0x1d2132;return ye(_0x28d00d,''['concat'](_0x5b4011,'-')[_0x56f5a4(0x14f)](_0x1e1d3f[_0x56f5a4(0x186)],'-')[_0x56f5a4(0x14f)](_0x4203b8),_0x381f59,void 0x0,_0x356351);}));}function Je(_0x27bfb5,_0x20243e,_0x293e05){const _0x4e40d2=_0x31dfc7;var _0x5e4e50=O({},_0x27bfb5[_0x4e40d2(0x2c1)]);_0x293e05!=null&&_0x293e05['colorChannel1']&&_0x5e4e50[_0x4e40d2(0x16c)]===_0x4e40d2(0x199)&&(_0x5e4e50[_0x4e40d2(0x16c)]=_0x293e05['colorChannel1']),_0x27bfb5[_0x4e40d2(0x186)]===_0x4e40d2(0x304)&&_0x5e4e50['id']&&(_0x5e4e50['id']=_0x5e4e50['id']+_0x20243e[_0x4e40d2(0x1c1)]),Object[_0x4e40d2(0x119)](_0x5e4e50)[_0x4e40d2(0x1da)](function(_0x340682){const _0x303c11=_0x4e40d2;var _0x3f52e4=_0x340682[0x0],_0x3db829=_0x340682[0x1];_0x3f52e4==='mask'&&typeof _0x3db829==_0x303c11(0x2b8)&&(_0x5e4e50[_0x3f52e4]=_0x3db829[_0x303c11(0x24b)](/url\(#(.*)\)/,_0x303c11(0x112)[_0x303c11(0x14f)](_0x20243e[_0x303c11(0x1c1)],')')));});var _0x3f7041=_0x20243e[_0x4e40d2(0x20b)];return!_0x3f7041||_0x3f7041['length']===0x0||(_0x27bfb5[_0x4e40d2(0x186)]===_0x4e40d2(0x17a)&&_0x5e4e50['xlink:href']&&(_0x5e4e50[_0x4e40d2(0xc6)]=_0x5e4e50['xlink:href']+_0x20243e[_0x4e40d2(0x1c1)]),Object[_0x4e40d2(0x119)](_0x5e4e50)[_0x4e40d2(0x1da)](function(_0x338300){const _0x4337fe=_0x4e40d2;var _0x304ce4=_0x338300[0x0],_0x2b7e38=_0x338300[0x1];typeof _0x2b7e38=='string'&&(_0x5e4e50[_0x304ce4]=_0x2b7e38['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4337fe(0x14f)](_0x20243e[_0x4337fe(0x1c1)],')')));})),_0x5e4e50;}function _0x2603(){const _0xc0e51c=['getCurrentSelections','black','unitId','fromEvent','selections','DEFAULT_WS_SESSION_TICKET_URL','ONLINE','collabStatus.fetchMiss','next','_docTransformStateCacheService','makeDirty','SetSelectionsOperation','toRgbString','apply','_taskIds','_docTransformIMECacheService','push','Shape','_memberService','LOGIN_TOKEN_PROCESSING_FAILED','54lGacNG','_textBubble','_colorIndex','Rectangle','maxFormulaLimit','_syncEditingCollabCursorService','propertyIsEnumerable','memberID','UNRECOGNIZED','_hasFormulaInDirtyRanges','shareReplay','executeCommand','collabStatus.syncing','DocStateChangeManagerService','_refreshCollabCursors','CollaborationDataLoaderController','handleInsertRangeMoveRight','isArray','Vector2','_urlService','runRefRangeMutations','DesktopCollaborationStatusDisplayController','_entities','MessageType','_currentUsage','AUTHORIZE_CODE_ILLEGAL','deepClone','activeSheet$','REDEMPTION_INVALID_CODE','onLocalMutation','status$','DeleteRangeMoveLeftCommandId','SetFormulaCalculationNotificationMutation','_checkCalculationAvailable','onPointerEnter$','getLocalCacheKey','_initCommandExecutedListener','YUUMI_TABLE_NOT_FOUND_IN_UNIT','className','EMAIL_VERIFY_CODE_MISMATCH','string','getRenderById','getMemberID','entityInit$','_scheduleHeartbeat','RemoteUniscriptService','filter','mutations','white','attrs','ColorKit','addObject','IImageIoService','getCollabCursors$','error','_registerDependencies','runOnServer','getAncestorScale','currentUsage','get','switchMap','YUUMI_RATE_OVER_LIMIT','connectInjector','LOCAL_CACHE_INTERVAL_KEY','SUBMIT_CHANGESET_TIMEOUT','NO_OTHER_CLIENTS_EDITING','Error','from','_saveTaskMap','WebURLService','_unitStatus','handleDeleteRangeMoveLeft','NOT_COLLAB','APPLY_REVISION_CONFILICT','debug','CollaborationSessionService','collabStatus.conflict','HTTPService','generateRandomId','getDocRanges','m2Prime','LocaleService','collab-rect-range-','subscribeEvent','_cachedData','stringify','transformRemoteChangeset','DocSkeletonManagerService','invokeId','_beforeCloseService','registerRefRange','purple.300','ILocalCacheService','COLORS','undoState','createIdentifier','ThemeService','PERMISSION_DENIED','IConfigService','closePath','_clearOtherTimers','currentColor','dispose$','_collabSessionService','length','_cursorShapes','setStateCache','EMAIL_HAS_BEEN_BOUND','REDEMPTION_CODE_FULLY_REDEEMED','RemoveRowCommandId','transformByState','Inject','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','application/json','Loading','CollaborationEvent','mask','data','getRelativeToViewportCoord','_context','_injector','UniverCollaborationClientPlugin','_cursorInfo$','REDEMPTION_CODE_NOT_STARTED','_shapes','setItem','getTypeOfUnitAdded$','size','getParam','subunit','BehaviorSubject','redoState','TEXT','Plugin','1803274KhMgxC','unitID','ranges','delete','removeParam','CommandType','INVALID_INVITE_CODE','SOCKET_FAILED','ENTITLE_CHAT_LIMIT_EXCEED','IMessageService','_handleHeartbeatEvent','focused$','UPDATE_CURSOR','UNIVER_SHEET','CURRENT_STATUS_CANNOT_OPERATE','_initStatusComponent','_id','LICENSE_IMPORT_SIZE_EXCEEDED','TEXT_RANGE_LAYER_INDEX','collaboration.single-unit.warning','getUnhiddenWorksheets','range','transformStateCache','_initDependencies','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','_dataLoaderService','Tools','_hover','history','IURLService','imageSourceType','syncEditingCollabCursor','evenodd','YUUMI_NO_CUBOID_FOR_QUESTION','BuiltInUIPart','startRow','defs','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','DisposableCollection','cursorInfo$','ACTIVE_UNIT_EVENT_CHANNEL','disposeWithMe','_collabCursorState$','EffectRefRangId','setConfig','toString','endRow','OFFLINE','getUnit','ISnapshotServerService','off-line-icon','SheetSkeletonManagerService','transform','Optional','_getScale','_collaborationController','_backgroundColor','params','clearInterval','FormulaExecutedStateType','LOGIN_FAILED','PY_RUNTIME_SCRIPT_ERROR','_labelPosition','dispose','moveTo','UnitStatus','replaceDocRanges','_maxFormulaLimit','ENTITLE_CAN_NOT_BUY_LOWER_OTP','COMPLETION_FINISHED','_removeClearOtherTimer','includes','CanceledError','collabStatus.notCollab','formula.calculation.unable','SheetsSelectionsService','collab-text-range-','pipe','_toggleOffline','_onRefRangeChange','roomMembers','beginPath','getUnitId','_getSessionTicket','PAYMENT_CHANNEL_NOT_SUPPORT','on-line-icon','isActive','has','_themeService','clipPath','jsxs','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','searchParams','getSheetObject','uni.network.url-service','AWAITING_WITH_PENDING','UNAUTHENTICATED','endColumn','addEventListener','MoveRangeCommandId','disableLocalCache','registerRenderModule','registerDependencies','SheetCollabCursorShape','search','xlink:href','_render','findNodePositionByCharIndex','isEditing','_config','runId','_saveCache','debounceTime','RECT','getRangePointData','LICENSE_EXPORT_SIZE_EXCEEDED','setActiveRange','svg','_onCursorUpdate','backgroundColor','div','toStringTag','YUUMI_UNABLE_LOAD_URL','_removeCollabCursors','univerjs-icon\x20univerjs-icon-','YUUMI_ALL_TABLES_IS_INVALID','DocSelectionManagerService','handleIRemoveCol','handleMoveRange','INVITE_CODE_HAS_BEEN_UES','set','UniverInstanceType','getMergeData','_anchorDot','then','measureText','registerBeforeClose','split','_transformUndoRedoStack','setShapeProps','loadUnit','_instanceService','functionsExecutedState','CLOSE_ROOM','_name','handleDeleteRangeMoveUp','isFormulaString','PENDING','_registerRenderDependencies','_scene','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','301535SZhlQZ','100ADWuww','color','sessionTicket','href','storage','_startSheetCollabCursor','stageInfo','ALREADY_EXISTS','_handleEvent','CHANGESET_REVISION_CONFILICT','column','onMouseMove','touchDependencies','_updateCollabCursors','isFormulaId','isTransformMutationFailure','yellow.400','extend','2066770LnsfPa','SNAPSHOT_HAS_BEEN_REMOVED','call','toDisposable','getVpScrollXYInfoByPosToVp','type','map','displayName','lineTo','url(#off-line-icon_clip0_910_343)','_getFormulaLimitStatus','url(#$1','_ensureSubject','merge','_drawRectRange','_createSocketURL','arc','_localStorageService','entries','width','REDEMPTION_USER_REDEEM_TIMES_EXCEED','ICommandService','_range','Tooltip','CONNECTOR_DATA_TOO_LARGE','roomMembers$','_status$','YUUMI_SUBSCRIPTION_NOT_FOUND','textRanges','pluginName','YUUMI_CONNECTOR_URL_NOT_FOUND','path','MemberService','restore','_roomMembers$','_transformHistoryAndStateStack','selection','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','transformIMECache','_drawTextRange','UNIVER_DOC','complete','_eventUnsubscribe','indexOf','save','collabStatus.offline','_scheduleClearOtherTimer','clearTimeout','row','clsx','_getMergeRange','getOwnPropertySymbols','_logService','getSheetId','asObservable','green.600','whenReady','_transformPreviousActiveRange','3748491XfvfJE','APPLY_REJECT','CollaborationStatus','requireSession','_lastPointer','_renderManagerService','Workbook','getCurrentRevOfUnit','_startDocCollabCursor','getTypeOfUnitDisposed$','hide','RefRangeService','getStateCache','Subject','concat','M0\x200H16V16H0z','_imageIoService','reconnect','_uiPartsService','http://www.w3.org/2000/svg','collabStatus.synced','DocCollaborationEntity','IRenderManagerService','_docTransformSelectionsService','pushState','combineLatest','_init','CollaborationUIEventId','IUIPartsService','bottom','getCoordByCell','init','throttleTime','_messageService','currentSkeleton$','SNAPSHOT_INVALID_SNAPSHOT','_univerInstanceService','_color','jiqing.500','engine','_setFormulaLimitStatus','ENTITLE_NEED_BILLING_ADDRESS','serializeRangeWithSheet','fill','_heartbeatTimer','INVITE_CODE_ALREADY_BOUND','APPLY_NON_SEQUENTIAL_REVISION','_lastResponseTimestamp','YUUMI_AI_RUN_FAILED','takeUntil','off-line-icon_clip0_910_343','_initEvent','3RAaDfy','getUniverSheetInstance','univer-flex\x20univer-items-center','disposeUnit','jsx','use','IRemoteInstanceService','send','CollaborationController','REDEMPTION_USER_NOT_ELIGIBLE','_docStateChangeManagerService','SessionStatus','getOffsetConfig','docStateChange$','onRendered','...','currentTheme$','tag','_drawAnchor','unit','CONFLICT','_assignedColors','UniverIcon','_setupSubUnitSync','triggerDblclick','location','IBeforeCloseService','_sheetSkeletonManagerService','translate(.97)','prototype','all','now','fillText','SOCKET_FAILED_RETRY','setTimeout','Disposable','colorChannel1','CollaborationUIEventService','_checkAndWaitForCalculationPermission','createElement','REDEMPTION_CODE_INACTIVE','useRef','_getSheetObject','values','_online','stage','height','RegularPolygon','handleInsertRangeMoveDown','_selfUnitIDs','onCommandExecuted','onStarting','_session','_send','getSkeleton','RevisionService','_httpService','getColorFromTheme','_initStatusListener','transformMutationsWithChangeset','INVITE_CODE_REQUIRED','_revisionService','_document','saveTaskMap','_updateLocalCursor','executionId','transformMutation','defineProperty','_collabCursorController','OTHER_CLIENT_EDITING','session.collaboration-timeout','_docSkeletonManagerService','deserializeRangeWithSheet','sheetID','USERS_LEAVE','getActiveSheet','idSuffix','72dPNNLI','add','loadOfflineData','getOwnPropertyDescriptor','USER_NOT_FOUND','getformulaLimitStatusUrl','/universer-api/license/formula/limit/start','_hideTimer','with','newValue','ENSURE_SNAPSHOT_EXECUTION','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_configService','symbol','show','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_disabled','_scheduleSaving','createInstance','getUndoRedoMutationParamsCache','code','LICENSE_DISTRO_REJECTED','_initEntityListener','FromArray','forEach','SetWorksheetActivateCommand','_commandService','_startCalculationLimit','session.will-retry','SetFormulaCalculationStartMutation','actions','getValue','SetDocZoomRatioOperation','SYNCED','DOC_RANGE_TYPE','debounce','top','startFormulaLimitUrl','InsertRangeMoveRightCommandId','_draw','registerComponent','getCellMatrix','getConfig','setAlpha','_hovered','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_ASYNCIO_CANCELLED','ILogService','origin','key','DeleteRangeMoveUpCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getSheetBySheetId','getActiveRange','beforeCommandExecuted','collabCursorState$','611025DfyUwh','text','handleIRemoveRow','_applyCommand','onPointerLeave$','_unitOnClients','getFocusedUnit','VIEW_MAIN','replaceState','doc.mutation.rich-text-editing','round','assign','WECHAT_HAS_BEEN_BOUND','IDocClipboardService','_initCommandInterceptor','urlChange$','NodePositionConvertToRectRange','defIds','/run/','FormulaExecuteStageType','_releaseCalculationLimit','APPLY_DUPLICATED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getColor','IUniverInstanceService','_showGuardMessage','event$','trim','_setupBeforeClosingHandler','random','SUCCESS','sessionStatus$','children','subscribe','handleInsertRow','session.connection-failed','getViewport','_handleLeaveEvent','assignAColorForMemberID','FETCH_MISS','INTERNAL_ERROR','_doCreateSocket','body','collaboration.closeRoom','hasOwnProperty','unshift','post','_refRangeService','_notificationService','_cursors','NOT_FOUND','m1Prime','ERROR_AGAIN','cursorInfo','282170RsoNXi','getCellPositionByOffset','limitInfo','getCurrent','_entityInit$','onTransformChange$','popstate','url(#on-line-icon_clip0_910_349)','contains','LOCAL_CACHE_INTERVAL','substring','drawWith','_getAnchorBounding','isTransformMutationsWithChangesetSuccess','shift','name','setParam','_updateURLWithCurrentState','_onCursorDelete','_clearPolling','collaboration-client.offline-data-not-saved','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_docClipboardService','InsertColCommandId','min','WebSocketService','_transformService','replace','mergeOverrideWithDependencies','BrowserCollaborationSocketService','CollaborationSocketService','releaseFormulaLimitUrl','Injector','_getSaveTimeout','_localCacheService','distinctUntilChanged','_localeService','eventID','TOO_MANY_REQUESTS','parse','Warning','startColumn','_colorAssignService','SetTextSelectionsOperation','/universer-api/license/formula/limit/status','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','OTHER_CLIENTS_EDITING','some','RxDisposable','_handleJoinEvent','LICENSE_MAX_UNITS_EXCEEDED','Module','1em','function','ILocalStorageService','formula.calculation.started','transformSelections','_pollingInterval','font','APPLY_PERMISSION_DENIED','2465784miqRWC','_anchor','_initResize','/universer-api/license/formula/limit/done','ITransformService','DocIMEInputManagerService','forwardRef','REDEMPTION_CODE_HAS_BEEN_CREATED','_handleHover','totalFormulasToCalculate','YUUMI_URL_COL_OUT_OF_RANGE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','handleInsertCol','_updateSubUnitFromURLParams','useDependency','USER_NOT_INVITED_CODE'];_0x2603=function(){return _0xc0e51c;};return _0x2603();}function Ze(_0x547c7c,_0x424aae){const _0x4ee7c4=_0x31dfc7;var _0x26e066,_0x2184d3=_0x424aae[_0x4ee7c4(0x20b)];return!_0x2184d3||_0x2184d3[_0x4ee7c4(0x2f8)]===0x0?_0x547c7c:_0x547c7c[_0x4ee7c4(0x186)]==='defs'&&(!((_0x26e066=_0x547c7c[_0x4ee7c4(0x21a)])===null||_0x26e066===void 0x0)&&_0x26e066[_0x4ee7c4(0x2f8)])?O(O({},_0x547c7c),{'children':_0x547c7c[_0x4ee7c4(0x21a)][_0x4ee7c4(0x10d)](function(_0x1c09ef){const _0x3a96a4=_0x4ee7c4;return typeof _0x1c09ef[_0x3a96a4(0x2c1)]['id']==_0x3a96a4(0x2b8)&&_0x2184d3&&_0x2184d3['includes'](_0x1c09ef[_0x3a96a4(0x2c1)]['id'])?O(O({},_0x1c09ef),{'attrs':O(O({},_0x1c09ef[_0x3a96a4(0x2c1)]),{'id':_0x1c09ef[_0x3a96a4(0x2c1)]['id']+_0x424aae[_0x3a96a4(0x1c1)]})}):_0x1c09ef;})}):_0x547c7c;}function Qe(){const _0x482f55=_0x31dfc7;return Math[_0x482f55(0x217)]()['toString'](0x24)[_0x482f55(0x23a)](0x2,0x8);}pe[_0x31dfc7(0x10e)]=_0x31dfc7(0x18b);var et={'tag':'svg','attrs':{'xmlns':_0x31dfc7(0x154),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x31dfc7(0x264)},'children':[{'tag':'g','attrs':{'clipPath':_0x31dfc7(0x110)},'children':[{'tag':_0x31dfc7(0x126),'attrs':{'stroke':_0x31dfc7(0x2f5),'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':_0x31dfc7(0x204),'strokeLinejoin':_0x31dfc7(0x204),'strokeWidth':1.2}}]},{'tag':_0x31dfc7(0x33a),'attrs':{},'children':[{'tag':_0x31dfc7(0xb6),'attrs':{'id':_0x31dfc7(0x173)},'children':[{'tag':_0x31dfc7(0x126),'attrs':{'fill':_0x31dfc7(0x2c0),'d':_0x31dfc7(0x150)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=L[_0x31dfc7(0x272)](function(_0x5dd325,_0x25f12e){const _0x363cec=_0x31dfc7;return L[_0x363cec(0x19c)](pe,Object[_0x363cec(0x205)]({},_0x5dd325,{'id':_0x363cec(0x348),'ref':_0x25f12e,'icon':et}));});xe['displayName']='OffLineIcon';var tt={'tag':_0x31dfc7(0xd2),'attrs':{'xmlns':_0x31dfc7(0x154),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x31dfc7(0x264),'height':_0x31dfc7(0x264)},'children':[{'tag':'g','attrs':{'clipPath':_0x31dfc7(0x237)},'children':[{'tag':'path','attrs':{'stroke':_0x31dfc7(0x2f5),'d':_0x31dfc7(0x32e),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x31dfc7(0x33a),'attrs':{},'children':[{'tag':_0x31dfc7(0xb6),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x31dfc7(0x126),'attrs':{'fill':_0x31dfc7(0x2c0),'d':_0x31dfc7(0x150),'transform':_0x31dfc7(0x191)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=L['forwardRef'](function(_0x580066,_0x29d757){const _0x20bbaa=_0x31dfc7;return L['createElement'](pe,Object['assign']({},_0x580066,{'id':_0x20bbaa(0xb2),'ref':_0x29d757,'icon':tt}));});$e[_0x31dfc7(0x10e)]='OnLineIcon';function st(_0x289539){const _0x520fcb=_0x31dfc7;switch(_0x289539){case u[_0x520fcb(0x143)][_0x520fcb(0x345)]:return _0x520fcb(0x134);case u[_0x520fcb(0x143)]['CONFLICT']:return _0x520fcb(0x2dc);case u[_0x520fcb(0x143)][_0x520fcb(0x221)]:return _0x520fcb(0x283);case u[_0x520fcb(0x143)][_0x520fcb(0x2d8)]:return _0x520fcb(0x35f);case u[_0x520fcb(0x143)]['AWAITING']:case u[_0x520fcb(0x143)][_0x520fcb(0xbc)]:return _0x520fcb(0x29c);case u['CollaborationStatus'][_0x520fcb(0x1e3)]:case u[_0x520fcb(0x143)][_0x520fcb(0xf0)]:return _0x520fcb(0x155);}}function it(_0x4d7e22){const _0x426b6f=_0x31dfc7,{status$:_0x2b4de5}=_0x4d7e22,_0x340a44=R['useObservable'](_0x2b4de5,u[_0x426b6f(0x143)][_0x426b6f(0x2d8)]),_0x59a621=R['useDependency'](a['LocaleService']),_0x325b0d=R[_0x426b6f(0x27a)](u[_0x426b6f(0x2db)]),_0xb62f76=_0x340a44!==u[_0x426b6f(0x143)][_0x426b6f(0x345)],_0x4ba1f6=_0x59a621['t'](st(_0x340a44)),_0x2882e6=_0xb62f76?P[_0x426b6f(0x179)]($e,{}):P[_0x426b6f(0x179)](xe,{}),_0x36a90c=L['useCallback'](()=>{const _0x57149b=_0x426b6f;_0xb62f76||_0x325b0d[_0x57149b(0x152)]();},[_0xb62f76,_0x325b0d]);function _0x364062(){const _0x16fd27=_0x426b6f;return P[_0x16fd27(0xb7)]('div',{'className':_0x16fd27(0x177),'onClick':_0x36a90c,'children':[P[_0x16fd27(0x179)](_0x16fd27(0xd5),{'className':T[_0x16fd27(0x138)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0xb62f76,'univer-text-red-500':!_0xb62f76}),'children':_0x2882e6}),P[_0x16fd27(0x179)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4ba1f6})]});}return _0xb62f76?_0x364062():P[_0x426b6f(0x179)](T[_0x426b6f(0x11e)],{'title':_0x59a621['t']('collab-client.tooltip.reconnect'),'children':_0x364062()});}var nt=Object[_0x31dfc7(0x1c5)],rt=(_0x50e0b2,_0x296607,_0x247112,_0x2b1e72)=>{const _0x2089cb=_0x31dfc7;for(var _0x129c11=_0x2b1e72>0x1?void 0x0:_0x2b1e72?nt(_0x296607,_0x247112):_0x296607,_0xce1d1d=_0x50e0b2[_0x2089cb(0x2f8)]-0x1,_0x5ef413;_0xce1d1d>=0x0;_0xce1d1d--)(_0x5ef413=_0x50e0b2[_0xce1d1d])&&(_0x129c11=_0x5ef413(_0x129c11)||_0x129c11);return _0x129c11;},q=(_0x3b93b4,_0x2f0529)=>(_0x3308b1,_0x1da8f0)=>_0x2f0529(_0x3308b1,_0x1da8f0,_0x3b93b4);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x15f3c6,_0x34f470,_0x4929a3,_0x5dece8){const _0x2c3644=_0x31dfc7;super(),_(this,_0x2c3644(0x121),new I[(_0x2c3644(0x312))](u['CollaborationStatus'][_0x2c3644(0x2d8)])),(this['_univerInstanceService']=_0x15f3c6,this[_0x2c3644(0x308)]=_0x34f470,this[_0x2c3644(0x34d)]=_0x4929a3,this['_uiPartsService']=_0x5dece8,this[_0x2c3644(0x325)](),this[_0x2c3644(0x1af)]());}['_initStatusListener'](){const _0x54f5bf=_0x31dfc7;this[_0x54f5bf(0x33f)](this[_0x54f5bf(0x165)][_0x54f5bf(0x321)]['pipe'](I[_0x54f5bf(0x2cc)](()=>{const _0x5d7afb=_0x54f5bf,_0x4d904c=this['_univerInstanceService'][_0x5d7afb(0x200)]();return _0x4d904c?this['_collaborationController']['getCollabEntity$'](_0x4d904c[_0x5d7afb(0xaf)]()):I['of'](null);}),I[_0x54f5bf(0x2cc)](_0x480619=>_0x480619?_0x480619[_0x54f5bf(0x2ae)]:I['of'](u[_0x54f5bf(0x143)][_0x54f5bf(0x2d8)])))[_0x54f5bf(0x21b)](_0xf2fe08=>{const _0x3bd8f1=_0x54f5bf;this[_0x3bd8f1(0x121)]['next'](_0xf2fe08);}));}[_0x31dfc7(0x325)](){const _0x8ee39a=_0x31dfc7;this[_0x8ee39a(0x33f)](this[_0x8ee39a(0x153)][_0x8ee39a(0x1ea)](R[_0x8ee39a(0x338)]['HEADER_MENU'],()=>R[_0x8ee39a(0x2ce)](ot({'status$':this[_0x8ee39a(0x121)][_0x8ee39a(0x13d)]()}),this[_0x8ee39a(0x308)])));}},exports[_0x31dfc7(0x2a5)]=rt([q(0x0,a[_0x31dfc7(0x212)]),q(0x1,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x250)])),q(0x2,a[_0x31dfc7(0x2ff)](u['CollaborationController'])),q(0x3,R[_0x31dfc7(0x15d)])],exports[_0x31dfc7(0x2a5)]);function ot(_0x23a765){const {status$:_0x12b7f5}=_0x23a765;return function(){return P['jsx'](it,{'status$':_0x12b7f5});};}const Te=a[_0x31dfc7(0x2ef)](_0x31dfc7(0xbb));var at=Object[_0x31dfc7(0x1c5)],ct=(_0x36352f,_0xb5d64c,_0x57afc0,_0x2ba05d)=>{for(var _0x545350=_0x2ba05d>0x1?void 0x0:_0x2ba05d?at(_0xb5d64c,_0x57afc0):_0xb5d64c,_0x5c7566=_0x36352f['length']-0x1,_0x3035d6;_0x5c7566>=0x0;_0x5c7566--)(_0x3035d6=_0x36352f[_0x5c7566])&&(_0x545350=_0x3035d6(_0x545350)||_0x545350);return _0x545350;},Y=(_0x3f04bb,_0x2ebf28)=>(_0x5824e3,_0x169311)=>_0x2ebf28(_0x5824e3,_0x169311,_0x3f04bb);exports[_0x31dfc7(0x29f)]=class extends a[_0x31dfc7(0x260)]{constructor(_0x5a92c3,_0x3ab09e,_0x5e3fa7,_0x2f8164,_0x2eba1f){const _0x3c23c3=_0x31dfc7;super(),this['_urlService']=_0x5a92c3,this['_logService']=_0x3ab09e,this[_0x3c23c3(0x1dc)]=_0x5e3fa7,this[_0x3c23c3(0x32f)]=_0x2f8164,_0x2eba1f?_0x2eba1f==null||_0x2eba1f[_0x3c23c3(0x13f)]()[_0x3c23c3(0xe3)](()=>this[_0x3c23c3(0x15b)]()):(this[_0x3c23c3(0x13b)][_0x3c23c3(0x2da)]('[CollaborationDataLoaderController]',_0x3c23c3(0x1cd)),this['_init']());}async[_0x31dfc7(0x15b)](){const _0x14cae6=_0x31dfc7,_0x4c0458=this[_0x14cae6(0x2a3)][_0x14cae6(0x310)](_0x14cae6(0x188)),_0x14f0ef=this[_0x14cae6(0x2a3)][_0x14cae6(0x310)](_0x14cae6(0x10c)),_0x238e03=this['_urlService']['getParam'](_0x14cae6(0x311));if(!_0x4c0458||!_0x14f0ef){this[_0x14cae6(0x13b)][_0x14cae6(0x2da)]('[CollaborationDataLoaderController]',_0x14cae6(0x33b));return;}const _0x4fc218=await this[_0x14cae6(0x32f)][_0x14cae6(0xe9)](_0x4c0458,Number(_0x14f0ef),_0x238e03);_0x4fc218&&_0x4fc218 instanceof a[_0x14cae6(0x147)]&&this['_setupSubUnitSync'](_0x4fc218);}async[_0x31dfc7(0x18c)](_0x589623){const _0x35ef51=_0x31dfc7;await this['_updateSubUnitFromURLParams'](_0x589623),_0x589623[_0x35ef51(0x2ab)][_0x35ef51(0x363)](I[_0x35ef51(0x172)](this[_0x35ef51(0x2f6)]))[_0x35ef51(0x21b)](_0x229843=>{const _0x323f96=_0x35ef51;_0x229843&&this[_0x323f96(0x241)](_0x229843);}),this[_0x35ef51(0x2a3)][_0x35ef51(0x209)]['pipe'](I['takeUntil'](this[_0x35ef51(0x2f6)]))[_0x35ef51(0x21b)](()=>this['_updateSubUnitFromURLParams'](_0x589623));}[_0x31dfc7(0x241)](_0x3ed840,_0x4493a2=!0x1){const _0x29ac1c=_0x31dfc7,_0x56d8ee=this[_0x29ac1c(0x2a3)]['getParam'](_0x29ac1c(0x311));_0x3ed840['getSheetId']()!==_0x56d8ee&&this[_0x29ac1c(0x2a3)]['setParam'](_0x29ac1c(0x311),_0x3ed840['getSheetId'](),_0x4493a2);}async[_0x31dfc7(0x279)](_0x5bde87){const _0x1c6585=_0x31dfc7;var _0x235ca6;const _0x405221=this[_0x1c6585(0x2a3)]['getParam']('subunit');if(!_0x405221||!_0x5bde87['getSheetBySheetId'](_0x405221)){const _0x30c910=_0x5bde87[_0x1c6585(0x32a)]()[0x0],_0x3e878a=_0x5bde87[_0x1c6585(0x1f6)](_0x30c910);if(!_0x3e878a)return;this[_0x1c6585(0x241)](_0x3e878a,!0x0),await this['_commandService'][_0x1c6585(0x29b)](v[_0x1c6585(0x1db)]['id'],{'unitId':_0x5bde87['getUnitId'](),'subUnitId':_0x30c910});return;}((_0x235ca6=_0x5bde87[_0x1c6585(0x1c0)]())==null?void 0x0:_0x235ca6[_0x1c6585(0x13c)]())!==_0x405221&&await this[_0x1c6585(0x1dc)][_0x1c6585(0x29b)](v[_0x1c6585(0x1db)]['id'],{'unitId':_0x5bde87[_0x1c6585(0xaf)](),'subUnitId':_0x405221});}},exports[_0x31dfc7(0x29f)]=ct([Y(0x0,Te),Y(0x1,a[_0x31dfc7(0x1f1)]),Y(0x2,a[_0x31dfc7(0x11c)]),Y(0x3,a['Inject'](u['DataLoaderService'])),Y(0x4,a[_0x31dfc7(0x34b)](Ke[_0x31dfc7(0x17b)]))],exports[_0x31dfc7(0x29f)]);var lt=Object[_0x31dfc7(0x1c5)],_t=(_0x2650ee,_0x12ead0,_0x21e1a4,_0x208858)=>{const _0x4635e2=_0x31dfc7;for(var _0x33ead3=_0x208858>0x1?void 0x0:_0x208858?lt(_0x12ead0,_0x21e1a4):_0x12ead0,_0x11e479=_0x2650ee[_0x4635e2(0x2f8)]-0x1,_0x36c8cf;_0x11e479>=0x0;_0x11e479--)(_0x36c8cf=_0x2650ee[_0x11e479])&&(_0x33ead3=_0x36c8cf(_0x33ead3)||_0x33ead3);return _0x33ead3;},be=(_0x25d268,_0x52ad46)=>(_0x3b89d4,_0x1cab17)=>_0x52ad46(_0x3b89d4,_0x1cab17,_0x25d268);let fe=class extends a[_0x31dfc7(0x260)]{constructor(_0x347a2c,_0x3383be){const _0x19a223=_0x31dfc7;super(),this[_0x19a223(0x246)]=_0x347a2c,this[_0x19a223(0x151)]=_0x3383be,this['_init']();}[_0x31dfc7(0x15b)](){const _0xf68344=_0x31dfc7,_0x2b0a8f=this;this[_0xf68344(0x33f)](this[_0xf68344(0x246)]['addClipboardHook']({'onBeforePasteImage':async _0x171d02=>{const _0x5ec2ca=_0xf68344,_0xf2b803=await _0x2b0a8f['_imageIoService']['saveImage'](_0x171d02);return _0xf2b803?{'source':_0xf2b803['source'],'imageSourceType':_0xf2b803[_0x5ec2ca(0x334)]}:null;}}));}};fe=_t([be(0x0,p[_0x31dfc7(0x207)]),be(0x1,qe[_0x31dfc7(0x2c4)])],fe);const De=[_0x31dfc7(0x2eb),_0x31dfc7(0x167),_0x31dfc7(0x13e),'red.300','blue.400',_0x31dfc7(0x105)];class Oe extends a[_0x31dfc7(0x198)]{constructor(){const _0x1cd605=_0x31dfc7;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x1cd605(0x292),0x0);}['assignAColorForMemberID'](_0x43bc04){const _0x27c4c0=_0x31dfc7;if(this[_0x27c4c0(0x18a)][_0x27c4c0(0xb4)](_0x43bc04))return this[_0x27c4c0(0x18a)][_0x27c4c0(0x2cb)](_0x43bc04);const _0x4af84f=De[this['_colorIndex']];return this[_0x27c4c0(0x292)]=(this[_0x27c4c0(0x292)]+0x1)%De['length'],this[_0x27c4c0(0x18a)][_0x27c4c0(0xdf)](_0x43bc04,_0x4af84f),_0x4af84f;}}function Be(_0x16a608){const _0x2b6ca0=_0x31dfc7;let _0x43f0b8='';for(const _0x400f06 of _0x16a608){const {startOffset:_0x8fa8e2,endOffset:_0x268eb2,isActive:_0x25a5d8,rangeType:_0x166c4c,segmentId:_0x237f4d,segmentPage:_0x557e2a}=_0x400f06;_0x43f0b8[_0x2b6ca0(0x2f8)]&&(_0x43f0b8+=','),_0x43f0b8+=_0x8fa8e2+':'+_0x268eb2+':'+(_0x25a5d8?'1':'0')+':'+_0x166c4c+':'+_0x237f4d+':'+_0x557e2a;}return _0x43f0b8;}function ht(_0x1574b7){const _0x212ae9=_0x31dfc7,_0x4a7bc1=_0x1574b7[_0x212ae9(0xe6)](','),_0xf3c5e7=[];for(const _0x23746f of _0x4a7bc1){const [_0x541433,_0x2f49e1,_0x4cf906,_0x38a206,_0x3321c2,_0x519fe0]=_0x23746f[_0x212ae9(0xe6)](':');_0xf3c5e7[_0x212ae9(0x28c)]({'startOffset':Number(_0x541433),'endOffset':Number(_0x2f49e1),'collapsed':_0x541433===_0x2f49e1,'isActive':_0x4cf906==='1','rangeType':_0x38a206===a[_0x212ae9(0x1e4)][_0x212ae9(0x314)]?a[_0x212ae9(0x1e4)][_0x212ae9(0x314)]:a['DOC_RANGE_TYPE'][_0x212ae9(0xce)],'segmentId':typeof _0x3321c2==_0x212ae9(0x2b8)?String(_0x3321c2):'','segmentPage':Number(_0x519fe0!=null?_0x519fe0:-0x1)});}return _0xf3c5e7[_0x212ae9(0x25f)](_0x2b3121=>_0x2b3121[_0x212ae9(0xb3)])||(_0xf3c5e7[0x0][_0x212ae9(0xb3)]=!0x0),_0xf3c5e7;}class Re extends a[_0x31dfc7(0x260)]{constructor(){const _0x9a7213=_0x31dfc7;super(...arguments),_(this,_0x9a7213(0x340),new I['BehaviorSubject'](null)),_(this,_0x9a7213(0x1f9),this['_collabCursorState$'][_0x9a7213(0x13d)]());}['syncEditingCollabCursor'](_0x31412c){const _0x26776c=_0x31dfc7,{unitID:_0x2d9fb1,memberID:_0x474f9a,textRanges:_0x1c35a8}=_0x31412c,_0x978724=Be(_0x1c35a8);if(_0x978724==='')return;const _0x11fbc1={'unitID':_0x2d9fb1,'memberID':_0x474f9a,'selection':_0x978724};this[_0x26776c(0x340)][_0x26776c(0x284)](_0x11fbc1);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x3ddef3,_0x23a227,_0xda72f9,_0x324684)=>{for(var _0x53485e=_0x324684>0x1?void 0x0:_0x324684?ut(_0x23a227,_0xda72f9):_0x23a227,_0x92c9ce=_0x3ddef3['length']-0x1,_0x436098;_0x92c9ce>=0x0;_0x92c9ce--)(_0x436098=_0x3ddef3[_0x92c9ce])&&(_0x53485e=_0x436098(_0x53485e)||_0x53485e);return _0x53485e;},M=(_0x103a03,_0xb3a99a)=>(_0x573735,_0x274fa3)=>_0xb3a99a(_0x573735,_0x274fa3,_0x103a03);const dt=0x12c,St=0x64;let me=class extends a[_0x31dfc7(0x260)]{constructor(_0x2efcc7,_0x4b0d4a,_0x5f08b4,_0x68a1c2,_0x302b93,_0x32a0f6,_0x2b4c43,_0x369389,_0x440aaf){const _0x58e554=_0x31dfc7;super(),_(this,_0x58e554(0x1a1),!0x1),_(this,_0x58e554(0x15b),!0x1),_(this,_0x58e554(0x30a),new I['BehaviorSubject'](new Map())),_(this,_0x58e554(0x33d),this['_cursorInfo$'][_0x58e554(0x13d)]()),_(this,_0x58e554(0x129),new I[(_0x58e554(0x312))]([])),_(this,_0x58e554(0x120),this[_0x58e554(0x129)]['pipe'](I['debounceTime'](dt))),_(this,_0x58e554(0x1b5),a[_0x58e554(0x1e5)](_0xab4cb1=>{const _0x227f99=_0x58e554,_0x1886f6={'eventID':g['CollaborationEvent'][_0x227f99(0x322)],'data':{'unitID':this[_0x227f99(0x317)],'memberID':this[_0x227f99(0x1a9)][_0x227f99(0x2ba)](),'selection':Be(_0xab4cb1)}};this['_session'][_0x227f99(0x17c)](_0x1886f6,this[_0x227f99(0x317)]);},St)),(this[_0x58e554(0x317)]=_0x2efcc7,this['_session']=_0x4b0d4a,this[_0x58e554(0x308)]=_0x5f08b4,this[_0x58e554(0x25a)]=_0x68a1c2,this['_memberService']=_0x302b93,this[_0x58e554(0x295)]=_0x32a0f6,this[_0x58e554(0x24a)]=_0x2b4c43,this[_0x58e554(0x165)]=_0x369389,this[_0x58e554(0x1dc)]=_0x440aaf);}get[_0x31dfc7(0x22f)](){const _0x581325=_0x31dfc7;return this[_0x581325(0x30a)][_0x581325(0x1e1)]();}get[_0x31dfc7(0xad)](){const _0x58768d=_0x31dfc7;return this['_roomMembers$'][_0x58768d(0x1e1)]();}['dispose'](){const _0x2463c1=_0x31dfc7;super['dispose'](),this['_cursorInfo$'][_0x2463c1(0x284)](new Map()),this[_0x2463c1(0x30a)][_0x2463c1(0x130)](),this['_roomMembers$'][_0x2463c1(0x284)]([]),this[_0x2463c1(0x129)][_0x2463c1(0x130)]();}[_0x31dfc7(0x160)](){const _0x5cfb92=_0x31dfc7;this[_0x5cfb92(0x15b)]||(this[_0x5cfb92(0x15b)]=!0x0,this[_0x5cfb92(0x1a9)][_0x5cfb92(0x219)]['pipe'](I[_0x5cfb92(0x172)](this[_0x5cfb92(0x2f6)]))[_0x5cfb92(0x21b)](_0x5397d1=>{const _0x4b51fe=_0x5cfb92;_0x5397d1===u[_0x4b51fe(0x180)][_0x4b51fe(0x282)]?this['_toggleOnline']():this[_0x4b51fe(0xab)]();}),this[_0x5cfb92(0x1a9)]['event$']['pipe'](I['takeUntil'](this[_0x5cfb92(0x2f6)]))[_0x5cfb92(0x21b)](_0x3f62f9=>{const _0x25abb8=_0x5cfb92,_0x10202d=_0x3f62f9[_0x25abb8(0x255)];_0x10202d===g[_0x25abb8(0x303)][_0x25abb8(0x322)]&&this[_0x25abb8(0xd3)](_0x3f62f9),_0x10202d===g[_0x25abb8(0x303)][_0x25abb8(0x1bf)]&&this[_0x25abb8(0x242)](_0x3f62f9);}),this['disposeWithMe'](this[_0x5cfb92(0x1dc)][_0x5cfb92(0x1a7)](_0x173c27=>{const _0x462eaa=_0x5cfb92,_0x349d6c=_0x173c27['params'];_0x349d6c!=null&&this[_0x462eaa(0x1a1)]&&_0x173c27['id']===V[_0x462eaa(0x25b)]['id']&&_0x349d6c[_0x462eaa(0x27e)]===this[_0x462eaa(0x317)]&&_0x349d6c[_0x462eaa(0xc9)]===!0x1&&_0x349d6c['ranges'][_0x462eaa(0x2f8)]>0x0&&this['_updateLocalCursor'](_0x349d6c[_0x462eaa(0x318)]);})),this[_0x5cfb92(0x295)]['collabCursorState$'][_0x5cfb92(0x363)](I['takeUntil'](this[_0x5cfb92(0x2f6)]))[_0x5cfb92(0x21b)](_0x5314cd=>{const _0x37730f=_0x5cfb92;if((_0x5314cd==null?void 0x0:_0x5314cd[_0x37730f(0x317)])!==this[_0x37730f(0x317)])return;const _0x25ab71={'eventID':g[_0x37730f(0x303)][_0x37730f(0x322)],'data':_0x5314cd};this[_0x37730f(0xd3)](_0x25ab71);}),this[_0x5cfb92(0x33f)](this[_0x5cfb92(0x1dc)]['onCommandExecuted'](_0x4356d9=>{const _0x15c601=_0x5cfb92;if(_0x4356d9[_0x15c601(0x34f)]==null)return;const _0x121189=_0x4356d9[_0x15c601(0x34f)];if(_0x4356d9['id']!==V['RichTextEditingMutation']['id']||_0x121189[_0x15c601(0x27e)]!==this[_0x15c601(0x317)])return;const _0x258aef={'id':_0x15c601(0x203),'params':_0x121189},_0x234935=this[_0x15c601(0x22f)];for(const [_0x374315,_0x490aaf]of _0x234935){const _0x52dd7c={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x15c601(0x317)],'actions':null,'textRanges':_0x490aaf['ranges']}},_0x570da4=this[_0x15c601(0x24a)]['transformMutation'](_0x258aef,_0x52dd7c,!0x1);if(g[_0x15c601(0x104)](_0x570da4))throw _0x570da4[_0x15c601(0x2c6)];_0x234935[_0x15c601(0xdf)](_0x374315,{..._0x490aaf,'ranges':_0x570da4[_0x15c601(0x2e0)]['params']['textRanges']});}queueMicrotask(()=>{const _0x1181d1=_0x15c601;this['_cursorInfo$'][_0x1181d1(0x284)](_0x234935);});})));}[_0x31dfc7(0xd3)](_0x2de4cf){const _0x2ef9d1=_0x31dfc7;var _0x5ebf9c,_0x54486a;const {memberID:_0x55e476,selection:_0x2cc452}=_0x2de4cf[_0x2ef9d1(0x305)],_0x38a803=ht(_0x2cc452),_0x2e9df2=(_0x54486a=(_0x5ebf9c=this['_memberService']['getMember'](this[_0x2ef9d1(0x317)],_0x55e476))==null?void 0x0:_0x5ebf9c['name'])!=null?_0x54486a:'Unknown\x20user',_0x99166e={'color':this[_0x2ef9d1(0x25a)][_0x2ef9d1(0x220)](_0x55e476),'name':_0x2e9df2,'ranges':_0x38a803},_0x3d9b77=this['cursorInfo'];_0x3d9b77['set'](_0x55e476,_0x99166e),this[_0x2ef9d1(0x30a)][_0x2ef9d1(0x284)](_0x3d9b77);}[_0x31dfc7(0x242)](_0x1ec47a){const _0x1c2481=_0x31dfc7,{memberID:_0x46528c}=_0x1ec47a[_0x1c2481(0x305)],_0x28bd68=this[_0x1c2481(0x22f)];_0x28bd68['delete'](_0x46528c),this[_0x1c2481(0x30a)][_0x1c2481(0x284)](_0x28bd68);}['_toggleOnline'](){const _0x37e192=_0x31dfc7;var _0x16057b;if(this['_online']=!0x0,((_0x16057b=this[_0x37e192(0x165)]['getFocusedUnit']())==null?void 0x0:_0x16057b[_0x37e192(0xaf)]())!==this[_0x37e192(0x317)])return;const _0xc4f2d4=this['_injector']['get'](V[_0x37e192(0xdb)])[_0x37e192(0x2df)]();Array[_0x37e192(0x2a1)](_0xc4f2d4)&&_0xc4f2d4[_0x37e192(0x2f8)]>0x0&&this[_0x37e192(0x1b5)](_0xc4f2d4);}[_0x31dfc7(0xab)](){const _0x4c2de5=_0x31dfc7;this[_0x4c2de5(0x1a1)]=!0x1;}};me=It([M(0x2,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x250)])),M(0x3,a['Inject'](Oe)),M(0x4,a[_0x31dfc7(0x2ff)](u[_0x31dfc7(0x127)])),M(0x5,a[_0x31dfc7(0x2ff)](Re)),M(0x6,g[_0x31dfc7(0x270)]),M(0x7,a[_0x31dfc7(0x212)]),M(0x8,a['ICommandService'])],me);var ft=Object[_0x31dfc7(0x1c5)],mt=(_0x3b61f8,_0x256fc8,_0x366762,_0x24d38a)=>{const _0x2d9799=_0x31dfc7;for(var _0x2bd9b9=_0x24d38a>0x1?void 0x0:_0x24d38a?ft(_0x256fc8,_0x366762):_0x256fc8,_0x1c566c=_0x3b61f8[_0x2d9799(0x2f8)]-0x1,_0x3919c8;_0x1c566c>=0x0;_0x1c566c--)(_0x3919c8=_0x3b61f8[_0x1c566c])&&(_0x2bd9b9=_0x3919c8(_0x2bd9b9)||_0x2bd9b9);return _0x2bd9b9;},y=(_0x489e75,_0x5e6ab9)=>(_0x49b9ea,_0x1856ca)=>_0x5e6ab9(_0x49b9ea,_0x1856ca,_0x489e75);const vt=0x12c,gt=0x64,Et=()=>{let _0x4a470f=[],_0x57d761=!0x1;return _0x14c2e0=>{const _0x449684=_0xc081;_0x4a470f[_0x449684(0x28c)](_0x14c2e0),_0x57d761||(_0x57d761=!0x0,setTimeout(()=>{const _0x584691=_0x449684;_0x4a470f[_0x584691(0x1da)](_0x2c7c64=>_0x2c7c64()),_0x4a470f=[],_0x57d761=!0x1;}));};};let ve=class extends a[_0x31dfc7(0x260)]{constructor(_0x73e2f5,_0x32ac71,_0x32e62a,_0x3253d1,_0x48e6b0,_0x5963d0,_0xbed4cc,_0x5a7726){const _0x4813b3=_0x31dfc7;super(),_(this,_0x4813b3(0x1a1),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x4813b3(0x33d),this[_0x4813b3(0x30a)][_0x4813b3(0x13d)]()),_(this,_0x4813b3(0x129),new I['BehaviorSubject']([])),_(this,_0x4813b3(0x120),this[_0x4813b3(0x129)][_0x4813b3(0x363)](I[_0x4813b3(0xcd)](vt))),_(this,_0x4813b3(0x1b5),a[_0x4813b3(0x1e5)]((_0x5ed81c,_0x10fb38)=>{const _0xe16c4b=_0x4813b3,_0x4480bb={'eventID':g[_0xe16c4b(0x303)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xe16c4b(0x1a9)][_0xe16c4b(0x2ba)](),'selection':B[_0xe16c4b(0x16b)](_0x5ed81c,_0x10fb38[_0xe16c4b(0x32b)])}};this[_0xe16c4b(0x1a9)][_0xe16c4b(0x17c)](_0x4480bb,this[_0xe16c4b(0x317)]);},gt)),(this[_0x4813b3(0x317)]=_0x73e2f5,this['_session']=_0x32ac71,this['_injector']=_0x32e62a,this[_0x4813b3(0x25a)]=_0x3253d1,this['_memberService']=_0x48e6b0,this[_0x4813b3(0x165)]=_0x5963d0,this[_0x4813b3(0x1dc)]=_0xbed4cc,this['_refRangeService']=_0x5a7726);}get['cursorInfo'](){const _0x5e35dc=_0x31dfc7;return this[_0x5e35dc(0x30a)][_0x5e35dc(0x1e1)]();}get['roomMembers'](){const _0x930eb9=_0x31dfc7;return this['_roomMembers$'][_0x930eb9(0x1e1)]();}[_0x31dfc7(0x355)](){const _0x539b1d=_0x31dfc7;super['dispose'](),this[_0x539b1d(0x30a)][_0x539b1d(0x284)](new Map()),this['_cursorInfo$'][_0x539b1d(0x130)](),this[_0x539b1d(0x129)][_0x539b1d(0x284)]([]),this[_0x539b1d(0x129)]['complete']();}[_0x31dfc7(0x160)](){const _0x3cd0d5=_0x31dfc7;this[_0x3cd0d5(0x15b)]||(this[_0x3cd0d5(0x15b)]=!0x0,this[_0x3cd0d5(0x1a9)][_0x3cd0d5(0x219)][_0x3cd0d5(0x363)](I[_0x3cd0d5(0x172)](this[_0x3cd0d5(0x2f6)]))['subscribe'](_0x34683a=>{const _0x63ea39=_0x3cd0d5;_0x34683a===u[_0x63ea39(0x180)]['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this['_session']['event$'][_0x3cd0d5(0x363)](I['takeUntil'](this[_0x3cd0d5(0x2f6)]))[_0x3cd0d5(0x21b)](_0x671bc1=>{const _0x48ec37=_0x3cd0d5,_0x5bbcc0=_0x671bc1[_0x48ec37(0x255)];_0x5bbcc0===g['CollaborationEvent'][_0x48ec37(0x322)]&&this[_0x48ec37(0xd3)](_0x671bc1),_0x5bbcc0===g[_0x48ec37(0x303)][_0x48ec37(0x1bf)]&&this[_0x48ec37(0x242)](_0x671bc1);}),this[_0x3cd0d5(0xac)](),this['disposeWithMe'](this['_commandService'][_0x3cd0d5(0x1a7)](_0x20f1e4=>{const _0x14df55=_0x3cd0d5;if(this['_online']&&_0x20f1e4['id']===v[_0x14df55(0x287)]['id']&&_0x20f1e4[_0x14df55(0x34f)][_0x14df55(0x27e)]===this[_0x14df55(0x317)]){const _0x259fd1=_0x20f1e4[_0x14df55(0x34f)];this[_0x14df55(0x1b5)](_0x259fd1['subUnitId'],_0x259fd1[_0x14df55(0x280)][0x0]);}})));}[_0x31dfc7(0xd3)](_0x4fdf9f){const _0x58a790=_0x31dfc7;var _0x1ffa0f,_0x397434;const {memberID:_0x554cc4,selection:_0x1b83a2}=_0x4fdf9f[_0x58a790(0x305)],{sheetName:_0x1679e6,range:_0x4d7336}=B[_0x58a790(0x1bd)](_0x1b83a2),_0x163de9={'name':(_0x397434=(_0x1ffa0f=this[_0x58a790(0x28e)]['getMember'](this[_0x58a790(0x317)],_0x554cc4))==null?void 0x0:_0x1ffa0f['name'])!=null?_0x397434:'Unknown\x20user','range':this['_getMergeRange'](_0x1679e6,_0x4d7336),'sheetID':_0x1679e6,'color':this['_colorAssignService'][_0x58a790(0x220)](_0x554cc4),'selection':_0x1b83a2},_0x3298e2=this[_0x58a790(0x22f)];_0x3298e2[_0x58a790(0xdf)](_0x554cc4,_0x163de9),this['_cursorInfo$']['next'](_0x3298e2);}[_0x31dfc7(0x242)](_0x3a3e32){const _0x58170d=_0x31dfc7,{memberID:_0x499ddb}=_0x3a3e32[_0x58170d(0x305)],_0x58029d=this[_0x58170d(0x22f)];_0x58029d[_0x58170d(0x319)](_0x499ddb),this['_cursorInfo$'][_0x58170d(0x284)](_0x58029d);}[_0x31dfc7(0x139)](_0x496cba,_0x2253bd){const _0x294f15=_0x31dfc7;var _0x5d8ea0,_0x2a7d26;const _0x572443=(_0x2a7d26=(_0x5d8ea0=this['_univerInstanceService'][_0x294f15(0x176)](this[_0x294f15(0x317)]))==null?void 0x0:_0x5d8ea0[_0x294f15(0x1f6)](_0x496cba))==null?void 0x0:_0x2a7d26[_0x294f15(0xe1)]();return(_0x572443==null?void 0x0:_0x572443['find'](_0x35aca0=>a[_0x294f15(0x293)][_0x294f15(0x238)](_0x35aca0,_0x2253bd)))||_0x2253bd;}[_0x31dfc7(0xac)](){const _0x13d2ae=_0x31dfc7,_0x4457f4=new a[(_0x13d2ae(0x33c))](),_0x4be88b=Et(),_0x1bf05d=()=>{const _0x41dc22=_0x13d2ae;_0x4457f4[_0x41dc22(0x355)]();const _0x1811a6=(_0x3acac0,_0x2b3015,_0x23370f,_0x2238e0)=>{const _0x251245=_0x41dc22;let _0x28f9f6=[];switch(_0x3acac0['id']){case v[_0x251245(0x341)][_0x251245(0x2af)]:{_0x28f9f6=v[_0x251245(0x2d7)](_0x3acac0,_0x2238e0);break;}case v['EffectRefRangId'][_0x251245(0x1f4)]:{_0x28f9f6=v[_0x251245(0xee)](_0x3acac0,_0x2238e0);break;}case v[_0x251245(0x341)][_0x251245(0x247)]:{_0x28f9f6=v[_0x251245(0x278)](_0x3acac0,_0x2238e0);break;}case v['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x28f9f6=v[_0x251245(0x1a5)](_0x3acac0,_0x2238e0);break;}case v['EffectRefRangId'][_0x251245(0x1e8)]:{_0x28f9f6=v[_0x251245(0x2a0)](_0x3acac0,_0x2238e0);break;}case v[_0x251245(0x341)]['InsertRowCommandId']:{_0x28f9f6=v[_0x251245(0x21c)](_0x3acac0,_0x2238e0);break;}case v[_0x251245(0x341)][_0x251245(0xc0)]:{_0x28f9f6=v[_0x251245(0xdd)](_0x3acac0,_0x2238e0);break;}case v[_0x251245(0x341)]['RemoveColCommandId']:{_0x28f9f6=v[_0x251245(0xdc)](_0x3acac0,_0x2238e0);break;}case v['EffectRefRangId'][_0x251245(0x2fd)]:{_0x28f9f6=v[_0x251245(0x1fc)](_0x3acac0,_0x2238e0);break;}}const _0x1c1cb0=v[_0x251245(0x2a4)](_0x28f9f6,_0x2238e0),_0x4b318c=this[_0x251245(0x22f)][_0x251245(0x2cb)](_0x2b3015);if(_0x4b318c&&_0x1c1cb0){const _0x48ca02={..._0x4b318c,'range':_0x1c1cb0};this[_0x251245(0x22f)][_0x251245(0xdf)](_0x2b3015,_0x48ca02),_0x4be88b(()=>{const _0x15fe7c=_0x251245,_0x3dc4c7=this[_0x15fe7c(0x229)][_0x15fe7c(0x2ea)](_0x1c1cb0,_0x379f5d=>(_0x3dc4c7['dispose'](),_0x1811a6(_0x379f5d,_0x2b3015,_0x23370f,_0x1c1cb0)));_0x4457f4[_0x15fe7c(0x1c3)](_0x3dc4c7);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x41dc22(0x1da)]((_0x1e93e6,_0x618402)=>{const _0x4fe60f=_0x41dc22,{range:_0x17aa7e,sheetID:_0x25618c}=_0x1e93e6,_0x60b959=this['_refRangeService']['registerRefRange'](_0x17aa7e,_0x3efa80=>(_0x60b959[_0x4fe60f(0x355)](),_0x1811a6(_0x3efa80,_0x618402,_0x25618c,_0x17aa7e)));_0x4457f4[_0x4fe60f(0x1c3)](_0x60b959);});};this[_0x13d2ae(0x33f)](a[_0x13d2ae(0x10a)](this[_0x13d2ae(0x30a)][_0x13d2ae(0x21b)](()=>{_0x1bf05d();})));}['_toggleOnline'](){const _0x5e7139=_0x31dfc7;var _0x507f1c,_0x3bf55e;if(this[_0x5e7139(0x1a1)]=!0x0,((_0x507f1c=this[_0x5e7139(0x165)]['getFocusedUnit']())==null?void 0x0:_0x507f1c['getUnitId']())!==this[_0x5e7139(0x317)])return;const _0x22afdd=(_0x3bf55e=this[_0x5e7139(0x308)][_0x5e7139(0x2cb)](v[_0x5e7139(0x361)])[_0x5e7139(0x27c)]())==null?void 0x0:_0x3bf55e[0x0],_0x4e2d07=this[_0x5e7139(0x165)]['getCurrentUnitForType'](a[_0x5e7139(0xe0)][_0x5e7139(0x323)])[_0x5e7139(0x1c0)]();_0x22afdd&&_0x4e2d07&&this['_updateLocalCursor'](_0x4e2d07['getSheetId'](),_0x22afdd);}[_0x31dfc7(0xab)](){const _0x207862=_0x31dfc7;this[_0x207862(0x1a1)]=!0x1;}};ve=mt([y(0x2,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x250)])),y(0x3,a[_0x31dfc7(0x2ff)](Oe)),y(0x4,a[_0x31dfc7(0x2ff)](u[_0x31dfc7(0x127)])),y(0x5,a['IUniverInstanceService']),y(0x6,a['ICommandService']),y(0x7,a[_0x31dfc7(0x2ff)](v[_0x31dfc7(0x14c)]))],ve);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x3343d8,_0x26608d,_0x11ae92,_0x2a1530)=>{const _0x2538cd=_0x31dfc7;for(var _0xbd1a62=_0x2a1530>0x1?void 0x0:_0x2a1530?Ct(_0x26608d,_0x11ae92):_0x26608d,_0x5b10c6=_0x3343d8[_0x2538cd(0x2f8)]-0x1,_0x1d0b46;_0x5b10c6>=0x0;_0x5b10c6--)(_0x1d0b46=_0x3343d8[_0x5b10c6])&&(_0xbd1a62=_0x1d0b46(_0xbd1a62)||_0xbd1a62);return _0xbd1a62;},ae=(_0x4a4099,_0x3c3c2c)=>(_0x4bae54,_0x1bbc2f)=>_0x3c3c2c(_0x4bae54,_0x1bbc2f,_0x4a4099);let F=class extends a[_0x31dfc7(0x260)]{constructor(_0x2ef7e2,_0x51c773,_0x17fe3d){const _0x49cd96=_0x31dfc7;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new I[(_0x49cd96(0x14e))]()),(this[_0x49cd96(0x165)]=_0x2ef7e2,this[_0x49cd96(0x308)]=_0x51c773,this[_0x49cd96(0x2f7)]=_0x17fe3d,this[_0x49cd96(0x15b)]());}[_0x31dfc7(0x355)](){const _0xe8a08b=_0x31dfc7;super[_0xe8a08b(0x355)](),this[_0xe8a08b(0x234)][_0xe8a08b(0x130)](),this['_entities'][_0xe8a08b(0x1da)](_0x45c069=>_0x45c069[_0xe8a08b(0x355)]());}[_0x31dfc7(0x2c5)](_0x3b9002){const _0x392cbe=_0x31dfc7;return this[_0x392cbe(0x2a6)][_0x392cbe(0xb4)](_0x3b9002)?this[_0x392cbe(0x2a6)][_0x392cbe(0x2cb)](_0x3b9002)[_0x392cbe(0x33d)]:this[_0x392cbe(0x234)][_0x392cbe(0x363)](I[_0x392cbe(0x2be)](_0x5b336b=>_0x5b336b[_0x392cbe(0x317)]===_0x3b9002),I[_0x392cbe(0x2cc)](_0x5e8876=>_0x5e8876['cursorInfo$']));}[_0x31dfc7(0x15b)](){const _0x9a89e9=_0x31dfc7;this[_0x9a89e9(0x165)]['getTypeOfUnitAdded$'](a[_0x9a89e9(0xe0)][_0x9a89e9(0x323)])['pipe'](I[_0x9a89e9(0x172)](this[_0x9a89e9(0x2f6)]))[_0x9a89e9(0x21b)](async _0x525b3a=>{const _0x1a7294=_0x9a89e9,_0x4eed27=_0x525b3a[_0x1a7294(0xaf)](),_0x185102=await this[_0x1a7294(0xfa)](_0x4eed27);this['_entityInit$'][_0x1a7294(0x284)](_0x185102),this['_entities'][_0x1a7294(0xdf)](_0x4eed27,_0x185102);}),this[_0x9a89e9(0x165)][_0x9a89e9(0x30e)](a[_0x9a89e9(0xe0)][_0x9a89e9(0x12f)])[_0x9a89e9(0x363)](I[_0x9a89e9(0x172)](this[_0x9a89e9(0x2f6)]))[_0x9a89e9(0x363)](I['filter'](_0x2b9e31=>!_0x2b9e31['getUnitId']()['startsWith']('__')))['subscribe'](async _0x396006=>{const _0x487488=_0x9a89e9,_0x2e0c6e=_0x396006[_0x487488(0xaf)](),_0x49cd68=await this['_startDocCollabCursor'](_0x2e0c6e);this['_entityInit$'][_0x487488(0x284)](_0x49cd68),this[_0x487488(0x2a6)][_0x487488(0xdf)](_0x2e0c6e,_0x49cd68);}),I[_0x9a89e9(0x114)](this[_0x9a89e9(0x165)][_0x9a89e9(0x14a)](a[_0x9a89e9(0xe0)][_0x9a89e9(0x12f)]),this['_univerInstanceService'][_0x9a89e9(0x14a)](a[_0x9a89e9(0xe0)][_0x9a89e9(0x323)]))['pipe'](I['takeUntil'](this[_0x9a89e9(0x2f6)]))[_0x9a89e9(0x21b)](_0x1581d7=>{const _0x22b46d=_0x9a89e9,_0x1ba37d=_0x1581d7[_0x22b46d(0xaf)](),_0x5cb732=this[_0x22b46d(0x2a6)]['get'](_0x1ba37d);_0x5cb732&&(_0x5cb732['dispose'](),this[_0x22b46d(0x2a6)]['delete'](_0x1ba37d));});}async[_0x31dfc7(0xfa)](_0x55b433){const _0xe5b49e=_0x31dfc7,_0x146519=await this['_collabSessionService'][_0xe5b49e(0x144)](_0x55b433),_0x396a2f=this[_0xe5b49e(0x308)]['createInstance'](ve,_0x55b433,_0x146519);return _0x396a2f[_0xe5b49e(0x160)](),_0x396a2f;}async[_0x31dfc7(0x149)](_0xd08e84){const _0x561780=_0x31dfc7,_0x3af7c3=await this[_0x561780(0x2f7)][_0x561780(0x144)](_0xd08e84),_0x5e7a21=this[_0x561780(0x308)][_0x561780(0x1d4)](me,_0xd08e84,_0x3af7c3);return _0x5e7a21[_0x561780(0x160)](),_0x5e7a21;}};F=pt([ae(0x0,a[_0x31dfc7(0x212)]),ae(0x1,a['Inject'](a['Injector'])),ae(0x2,a[_0x31dfc7(0x2ff)](u['CollaborationSessionService']))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x30b149,_0x376a44){const _0x51af8e=_0x31dfc7;let {radius:_0x582ea5,width:_0x44e08e,height:_0x2173e3}=_0x376a44;_0x582ea5=_0x582ea5!=null?_0x582ea5:0x0,_0x44e08e=_0x44e08e!=null?_0x44e08e:0x1e,_0x2173e3=_0x2173e3!=null?_0x2173e3:0x1e;let _0x520ec6=0x0,_0x2509f4=0x0,_0x8f7da5=0x0;_0x520ec6=_0x2509f4=_0x8f7da5=Math[_0x51af8e(0x248)](_0x582ea5,_0x44e08e/0x2,_0x2173e3/0x2),_0x30b149[_0x51af8e(0xae)](),_0x30b149[_0x51af8e(0x356)](_0x520ec6,0x0),_0x30b149['lineTo'](_0x44e08e-_0x2509f4,0x0),_0x30b149[_0x51af8e(0x117)](_0x44e08e-_0x2509f4,_0x2509f4,_0x2509f4,Math['PI']*0x3/0x2,0x0,!0x1),_0x30b149[_0x51af8e(0x10f)](_0x44e08e,_0x2173e3-_0x8f7da5),_0x30b149['arc'](_0x44e08e-_0x8f7da5,_0x2173e3-_0x8f7da5,_0x8f7da5,0x0,Math['PI']/0x2,!0x1),_0x30b149['lineTo'](0x0,_0x2173e3),_0x30b149[_0x51af8e(0x10f)](0x0,_0x520ec6),_0x30b149['arc'](_0x520ec6,_0x520ec6,_0x520ec6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x30b149[_0x51af8e(0x2f3)](),_0x376a44[_0x51af8e(0x16c)]&&(_0x30b149['save'](),_0x30b149['fillStyle']=_0x376a44[_0x51af8e(0x16c)],_0x376a44['fillRule']===_0x51af8e(0x336)?_0x30b149['fill']('evenodd'):_0x30b149[_0x51af8e(0x16c)](),_0x30b149['restore']());}class ne extends C[_0x31dfc7(0x28d)]{constructor(_0x3c4f93,_0x1caa36){const _0x8a0c5d=_0x31dfc7;super(_0x3c4f93,_0x1caa36),_(this,_0x8a0c5d(0xf6)),_(this,_0x8a0c5d(0x1fb)),(this[_0x8a0c5d(0xf6)]=_0x1caa36==null?void 0x0:_0x1caa36[_0x8a0c5d(0xf6)],this['text']=_0x1caa36==null?void 0x0:_0x1caa36[_0x8a0c5d(0x1fb)]);}static[_0x31dfc7(0x23b)](_0x5670a9,_0x8b9bc5){const _0x437f10=_0x31dfc7,{text:_0x23a20d,color:_0x3eebb0}=_0x8b9bc5;_0x5670a9[_0x437f10(0x133)](),_0x5670a9[_0x437f10(0x26a)]=_0x437f10(0x277);const _0x14791d=_0x5670a9[_0x437f10(0xe4)](_0x23a20d)[_0x437f10(0x11a)],_0x11fd9a=Math[_0x437f10(0x248)](_0x14791d+0x2*ce,Ne);Ot(_0x5670a9,{'height':K,'radius':0x4,'width':_0x11fd9a,'fill':_0x3eebb0}),_0x5670a9['fillStyle']='#FFF';const _0x19ba0d=ce,_0x525da9=K-Tt,_0x4635f7=Ne-0x2*ce;if(_0x14791d>_0x4635f7){let _0x6cb81e='',_0x530c58=0x0;for(const _0x835df4 of _0x23a20d){const _0x53275f=_0x5670a9['measureText'](_0x835df4)[_0x437f10(0x11a)];if(_0x530c58+_0x53275f<=_0x4635f7-_0x5670a9[_0x437f10(0xe4)](_0x437f10(0x184))[_0x437f10(0x11a)])_0x6cb81e+=_0x835df4,_0x530c58+=_0x53275f;else{_0x6cb81e+=_0x437f10(0x184);break;}}_0x5670a9[_0x437f10(0x195)](_0x6cb81e,_0x19ba0d,_0x525da9);}else _0x5670a9[_0x437f10(0x195)](_0x23a20d,_0x19ba0d,_0x525da9);_0x5670a9[_0x437f10(0x128)]();}['_draw'](_0x16ac28){const _0x1cb28c=_0x31dfc7;ne[_0x1cb28c(0x23b)](_0x16ac28,this);}}const le='collab-text-anchor-',Rt=_0x31dfc7(0x362),bt=_0x31dfc7(0x2e2),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x338e0f,_0xadde6f,_0x74e169,_0x4019ee){const _0x2e7f48=_0x31dfc7;_(this,_0x2e7f48(0x30c),[]),_(this,_0x2e7f48(0x26d),null),_(this,'_textBubble',null),_(this,_0x2e7f48(0xe2),null),_(this,_0x2e7f48(0x1c9),null),_(this,_0x2e7f48(0x131),null),(this['_cursor']=_0x338e0f,this['_scene']=_0xadde6f,this['_docSkeleton']=_0x74e169,this[_0x2e7f48(0x1b3)]=_0x4019ee,this['_render']());}set[_0x31dfc7(0x331)](_0x21bdc0){const _0x574c70=_0x31dfc7;_0x21bdc0?(this[_0x574c70(0xe2)]&&this['_anchorDot'][_0x574c70(0x14b)](),this['_textBubble']&&this[_0x574c70(0x291)][_0x574c70(0x1d0)]()):(this[_0x574c70(0xe2)]&&this[_0x574c70(0xe2)][_0x574c70(0x1d0)](),this[_0x574c70(0x291)]&&this['_textBubble'][_0x574c70(0x14b)]());}[_0x31dfc7(0x355)](){const _0x485ba7=_0x31dfc7;for(const _0x5adf1c of this[_0x485ba7(0x30c)])_0x5adf1c[_0x485ba7(0x355)]();this[_0x485ba7(0x291)]&&this['_textBubble']['dispose'](),this[_0x485ba7(0xe2)]&&this[_0x485ba7(0xe2)]['dispose'](),this[_0x485ba7(0x26d)]&&this[_0x485ba7(0x26d)][_0x485ba7(0x355)](),this[_0x485ba7(0x131)]&&this['_eventUnsubscribe']();}[_0x31dfc7(0xc7)](){const _0x4aae87=_0x31dfc7;var _0x22a359;const {_docSkeleton:_0x59df2a,_document:_0x24f7f1}=this,{color:_0x43c492,name:_0x29d780,ranges:_0x294d31}=this['_cursor'],_0x5b6e9a=_0x24f7f1[_0x4aae87(0x181)](),{docsLeft:_0x2d0f15,docsTop:_0x542162}=_0x5b6e9a,_0x504d64=new p['NodePositionConvertToCursor'](_0x5b6e9a,_0x59df2a);for(const {startOffset:_0xe16283,endOffset:_0x2bc0fc,rangeType:_0xe644f1,segmentId:_0x1c145c,segmentPage:_0x22b55b,collapsed:_0x52b979,isActive:_0x3773a0}of _0x294d31){const _0xe5d68c=_0x59df2a[_0x4aae87(0xc8)](_0xe16283,!0x0,_0x1c145c,_0x22b55b);let _0x155713=_0x59df2a['findNodePositionByCharIndex'](_0x2bc0fc,!0x0,_0x1c145c,_0x22b55b);if(_0x155713==null&&(_0x155713=_0x59df2a[_0x4aae87(0xc8)](_0x2bc0fc-0x1,!0x1,_0x1c145c,_0x22b55b)),_0x3773a0){const {contentBoxPointGroup:_0x11beed}=_0x504d64[_0x4aae87(0xcf)](_0x155713,_0x155713);if(_0x11beed[_0x4aae87(0x2f8)]===0x0)continue;this[_0x4aae87(0x187)](_0x43c492,_0x11beed,_0x2d0f15,_0x542162,_0x29d780),this[_0x4aae87(0x131)]=this[_0x4aae87(0x274)]();}if(_0xe5d68c&&_0x155713){if(_0xe644f1===a['DOC_RANGE_TYPE'][_0x4aae87(0xce)]){const _0x536526=new p[(_0x4aae87(0x20a))](_0x5b6e9a,_0x59df2a),{pointGroup:_0x41c031}=(_0x22a359=_0x536526[_0x4aae87(0xcf)](_0xe5d68c,_0x155713))!=null?_0x22a359:{};if(_0x41c031==null||_0x41c031[_0x4aae87(0x2f8)]===0x0)continue;this[_0x4aae87(0x115)](_0x43c492,_0x41c031,_0x2d0f15,_0x542162);}else{if(!_0x52b979){const {borderBoxPointGroup:_0x201c45}=_0x504d64['getRangePointData'](_0xe5d68c,_0x155713);if(_0x201c45['length']===0x0)continue;this[_0x4aae87(0x12e)](_0x43c492,_0x201c45,_0x2d0f15,_0x542162);}}}}}['_drawAnchor'](_0xf136e,_0x3bb01a,_0x579096,_0x54ac12,_0x2c6ec9){const _0x2382a3=_0x31dfc7,_0x3f5ab0=this['_getAnchorBounding'](_0x3bb01a),{left:_0xdca97c,top:_0x6f3ef6,height:_0x1c19e9}=_0x3f5ab0,_0x37f335=this[_0x2382a3(0x34c)](),_0x37329f=Nt/_0x37f335,_0x1d3fcb=new C['Rect'](le+a[_0x2382a3(0x2de)](H),{'left':_0xdca97c+_0x579096-_0x37329f,'top':_0x6f3ef6+_0x54ac12,'height':_0x1c19e9,'width':Dt,'fill':_0xf136e||C[_0x2382a3(0x211)](a[_0x2382a3(0x2ed)][_0x2382a3(0x27d)],0x0),'strokeWidth':_0x37329f,'stroke':Ut,'evented':!0x0});this[_0x2382a3(0x26d)]=_0x1d3fcb,this[_0x2382a3(0xf2)][_0x2382a3(0x2c3)](_0x1d3fcb,p[_0x2382a3(0x328)]);const _0x1296d8=new C['Rect'](le+a[_0x2382a3(0x2de)](H),{'left':_0xdca97c+_0x579096-_0x37329f,'top':_0x6f3ef6+_0x54ac12-_e/0x2,'height':_e,'width':_e,'fill':_0xf136e||C[_0x2382a3(0x211)](a[_0x2382a3(0x2ed)][_0x2382a3(0x27d)],0x0),'strokeWidth':0x0,'stroke':_0xf136e||C[_0x2382a3(0x211)](a[_0x2382a3(0x2ed)][_0x2382a3(0x27d)],0x0),'evented':!0x1});this[_0x2382a3(0xe2)]=_0x1296d8,this[_0x2382a3(0xf2)][_0x2382a3(0x2c3)](_0x1296d8,p[_0x2382a3(0x328)]);const _0x41727b=new ne(le+a['generateRandomId'](H),{'left':_0xdca97c+_0x579096-_0x37329f,'top':_0x6f3ef6+_0x54ac12-K,'text':_0x2c6ec9,'color':_0xf136e});this[_0x2382a3(0x291)]=_0x41727b,this[_0x2382a3(0xf2)][_0x2382a3(0x2c3)](_0x41727b,p[_0x2382a3(0x328)]),this['_hover']=!0x1;}[_0x31dfc7(0x274)](){const _0x2dee60=_0x31dfc7,_0x282415=this[_0x2dee60(0x26d)][_0x2dee60(0x2b2)][_0x2dee60(0x2e3)](()=>{this['_hover']=!0x0;}),_0x3457d4=this[_0x2dee60(0x26d)][_0x2dee60(0x1fe)]['subscribeEvent'](()=>{const _0x11dd86=_0x2dee60;this[_0x11dd86(0x1c9)]&&clearTimeout(this[_0x11dd86(0x1c9)]),this[_0x11dd86(0x1c9)]=setTimeout(()=>{const _0x429a94=_0x11dd86;this[_0x429a94(0x331)]=!0x1;},0x7d0);});return()=>{_0x282415['unsubscribe'](),_0x3457d4['unsubscribe']();};}[_0x31dfc7(0x12e)](_0x42464f,_0x53519a,_0xee11bf,_0x47f5bd){const _0x5e50fe=_0x31dfc7,_0x2201b1=new a[(_0x5e50fe(0x2c2))](_0x42464f)[_0x5e50fe(0x1ed)](0.2)[_0x5e50fe(0x288)](),_0x3c3242=new C['RegularPolygon'](Rt+a[_0x5e50fe(0x2de)](H),{'pointsGroup':_0x53519a,'fill':_0x2201b1||C[_0x5e50fe(0x211)](a[_0x5e50fe(0x2ed)][_0x5e50fe(0x27d)],0.2),'left':_0xee11bf,'top':_0x47f5bd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e50fe(0x30c)][_0x5e50fe(0x28c)](_0x3c3242),this[_0x5e50fe(0xf2)][_0x5e50fe(0x2c3)](_0x3c3242,p[_0x5e50fe(0x328)]);}['_drawRectRange'](_0x18dc2b,_0x34b7d1,_0x46eb45,_0x522615){const _0x3072b4=_0x31dfc7,_0x32e365=new a['ColorKit'](_0x18dc2b)[_0x3072b4(0x1ed)](0.2)[_0x3072b4(0x288)](),_0x892be4=new C[(_0x3072b4(0x1a4))](bt+a['generateRandomId'](H),{'pointsGroup':_0x34b7d1,'fill':_0x32e365||C[_0x3072b4(0x211)](a[_0x3072b4(0x2ed)][_0x3072b4(0x27d)],0.2),'left':_0x46eb45,'top':_0x522615,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3072b4(0x30c)][_0x3072b4(0x28c)](_0x892be4),this['_scene'][_0x3072b4(0x2c3)](_0x892be4,p[_0x3072b4(0x328)]);}[_0x31dfc7(0x23c)](_0x160779){const _0x3a77d8=_0x160779[0x0],_0x2b6ec1=_0x3a77d8[0x0],_0x545b7a=_0x3a77d8[0x2],{x:_0x1eb29e,y:_0x197ff5}=_0x2b6ec1,{x:_0x499b23,y:_0x208c77}=_0x545b7a;return{'left':_0x1eb29e,'top':_0x197ff5,'width':_0x499b23-_0x1eb29e,'height':_0x208c77-_0x197ff5};}[_0x31dfc7(0x34c)](){const _0x320e06=_0x31dfc7,{scaleX:_0x15a0ac,scaleY:_0x83da7f}=this[_0x320e06(0xf2)][_0x320e06(0x2c9)]();return Math['max'](_0x15a0ac,_0x83da7f);}}var Lt=Object[_0x31dfc7(0x1c5)],Mt=(_0x1f36db,_0x446f71,_0x2d63e2,_0x462b37)=>{const _0x2cb77d=_0x31dfc7;for(var _0x35d0a6=_0x462b37>0x1?void 0x0:_0x462b37?Lt(_0x446f71,_0x2d63e2):_0x446f71,_0x3251bf=_0x1f36db[_0x2cb77d(0x2f8)]-0x1,_0x31d177;_0x3251bf>=0x0;_0x3251bf--)(_0x31d177=_0x1f36db[_0x3251bf])&&(_0x35d0a6=_0x31d177(_0x35d0a6)||_0x35d0a6);return _0x35d0a6;},z=(_0x1cc273,_0x5c92b4)=>(_0x38f885,_0x52198c)=>_0x5c92b4(_0x38f885,_0x52198c,_0x1cc273);let ge=class extends a[_0x31dfc7(0x260)]{constructor(_0x4315d1,_0x14a015,_0x476c21,_0x23ad53,_0x20293b){const _0xd11da5=_0x31dfc7;super(),_(this,_0xd11da5(0x2f9),[]),_(this,_0xd11da5(0x22b),[]),(this[_0xd11da5(0x307)]=_0x4315d1,this[_0xd11da5(0x1bc)]=_0x14a015,this['_collabCursorController']=_0x476c21,this['_commandService']=_0x23ad53,this[_0xd11da5(0xb5)]=_0x20293b,this[_0xd11da5(0x15b)]());}[_0x31dfc7(0x15b)](){const _0x49b1d3=_0x31dfc7,_0xdcabbb=this[_0x49b1d3(0x307)][_0x49b1d3(0x27e)],_0x53917b=this[_0x49b1d3(0x1bc)];this[_0x49b1d3(0x33f)](I['combineLatest']([this['_collabCursorController']['getCollabCursors$'](_0xdcabbb),this[_0x49b1d3(0xb5)][_0x49b1d3(0x185)]])[_0x49b1d3(0x363)]($[_0x49b1d3(0x10d)](([_0x2563ec,_0x5170c8])=>({'skeleton':_0x53917b[_0x49b1d3(0x1ab)](),'cursors':[..._0x2563ec['values']()]['flatMap'](_0x26cd66=>({..._0x26cd66,'color':this[_0x49b1d3(0xb5)][_0x49b1d3(0x1ae)](_0x26cd66[_0x49b1d3(0xf6)])}))})))[_0x49b1d3(0x21b)](_0x325764=>{const _0x3c8f6c=_0x49b1d3;if(this[_0x3c8f6c(0xd8)](),_0x325764){const {skeleton:_0x449691,cursors:_0x215f64}=_0x325764;this['_updateCollabCursors'](_0x449691,_0x215f64);}})),this[_0x49b1d3(0x26e)](),this['_initCommandExecutedListener']();}[_0x31dfc7(0x102)](_0x17c90c,_0x379f66){const _0x118518=_0x31dfc7,{scene:_0x5cee64,mainComponent:_0x42ad7d}=this[_0x118518(0x307)],_0x42db9b=_0x379f66[_0x118518(0x10d)](_0x228966=>new Ue(_0x228966,_0x5cee64,_0x17c90c,_0x42ad7d));this['_cursorShapes']=_0x42db9b,this[_0x118518(0x22b)]=_0x379f66;}[_0x31dfc7(0x29e)](){const _0x3596ba=_0x31dfc7;this[_0x3596ba(0xd8)]();const {scene:_0x644553,mainComponent:_0x171a41}=this['_context'],_0x58b6e6=this[_0x3596ba(0x1bc)]['getSkeleton'](),_0x234013=this['_cursors'][_0x3596ba(0x10d)](_0x577a47=>new Ue(_0x577a47,_0x644553,_0x58b6e6,_0x171a41));this[_0x3596ba(0x2f9)]=_0x234013;}[_0x31dfc7(0xd8)](){const _0x186779=_0x31dfc7;this[_0x186779(0x2f9)][_0x186779(0x1da)](_0x24e1bc=>_0x24e1bc['dispose']()),this[_0x186779(0x2f9)]=[];}[_0x31dfc7(0x2b4)](){const _0x128615=_0x31dfc7,_0x38235d=[p[_0x128615(0x1e2)]['id']];this[_0x128615(0x33f)](this[_0x128615(0x1dc)][_0x128615(0x1a7)](_0x26f7ea=>{const _0x3bb253=_0x128615;_0x38235d[_0x3bb253(0x35d)](_0x26f7ea['id'])&&_0x26f7ea[_0x3bb253(0x34f)][_0x3bb253(0x27e)]===this[_0x3bb253(0x307)]['unitId']&&this[_0x3bb253(0x29e)]();}));}[_0x31dfc7(0x26e)](){const _0x8e447d=_0x31dfc7;this[_0x8e447d(0x33f)](a['fromEventSubject'](this[_0x8e447d(0x307)][_0x8e447d(0x168)][_0x8e447d(0x235)])[_0x8e447d(0x363)]($[_0x8e447d(0x2be)](_0x276926=>_0x276926[_0x8e447d(0x10c)]===C[_0x8e447d(0x245)]['resize']),$[_0x8e447d(0x161)](0x10))['subscribe'](()=>{const _0x3a6ca5=_0x8e447d;this[_0x3a6ca5(0x29e)]();}));}};ge=Mt([z(0x1,a[_0x31dfc7(0x2ff)](V[_0x31dfc7(0x2e7)])),z(0x2,a['Inject'](F)),z(0x3,a['ICommandService']),z(0x4,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x2f0)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0x31dfc7(0x28d)]{constructor(_0x1486c6,_0x4d6619){const _0x2e556f=_0x31dfc7;super(_0x1486c6,_0x4d6619),_(this,_0x2e556f(0x166)),_(this,'_hovered',!0x1),_(this,_0x2e556f(0x11d)),_(this,_0x2e556f(0xed),''),_(this,_0x2e556f(0x354),'top'),_(this,_0x2e556f(0x34e)),(_0x4d6619&&this[_0x2e556f(0xe8)](_0x4d6619),this[_0x2e556f(0x2b2)][_0x2e556f(0x2e3)](()=>this[_0x2e556f(0xe8)]({'hovered':!0x0})),this[_0x2e556f(0x1fe)][_0x2e556f(0x2e3)](()=>this[_0x2e556f(0xe8)]({'hovered':!0x1})));}[_0x31dfc7(0xe8)](_0x357832){const _0x4ef35e=_0x31dfc7;var _0x399547,_0x28bc68,_0x121a6,_0x3b04f5,_0x278249,_0x1e5153;this[_0x4ef35e(0x166)]=(_0x399547=_0x357832['color'])!=null?_0x399547:this[_0x4ef35e(0x166)],this['_hovered']=(_0x28bc68=_0x357832['hovered'])!=null?_0x28bc68:this['_hovered'],this[_0x4ef35e(0x11d)]=(_0x121a6=_0x357832['range'])!=null?_0x121a6:this[_0x4ef35e(0x11d)],this[_0x4ef35e(0xed)]=(_0x3b04f5=_0x357832[_0x4ef35e(0x23f)])!=null?_0x3b04f5:this[_0x4ef35e(0xed)],this[_0x4ef35e(0x354)]=(_0x278249=_0x357832['labelPosition'])!=null?_0x278249:this[_0x4ef35e(0x354)],this[_0x4ef35e(0x34e)]=(_0x1e5153=_0x357832[_0x4ef35e(0xd4)])!=null?_0x1e5153:this[_0x4ef35e(0x34e)],this[_0x4ef35e(0x2fe)]({'width':_0x357832[_0x4ef35e(0x11a)],'height':_0x357832[_0x4ef35e(0x1a3)]});}[_0x31dfc7(0x100)](_0x765514){const _0x1dcd2f=_0x31dfc7,{row:_0x2a0efa,column:_0x162bd3}=_0x765514;if(_0x2a0efa>=this['_range'][_0x1dcd2f(0x339)]&&_0x2a0efa<=this[_0x1dcd2f(0x11d)][_0x1dcd2f(0x344)]&&_0x162bd3>=this[_0x1dcd2f(0x11d)][_0x1dcd2f(0x259)]&&_0x162bd3<=this[_0x1dcd2f(0x11d)][_0x1dcd2f(0xbe)]){this[_0x1dcd2f(0xe8)]({'hovered':!0x0});return;}this[_0x1dcd2f(0xe8)]({'hovered':!0x1});}[_0x31dfc7(0x18d)](_0x3e0715){return!0x1;}[_0x31dfc7(0x1e9)](_0xee58c3){const _0x4ada5c=_0x31dfc7;C['Rect']['drawWith'](_0xee58c3,{'width':this[_0x4ada5c(0x11a)],'height':this[_0x4ada5c(0x1a3)],'strokeWidth':Pt,'stroke':this[_0x4ada5c(0x166)],'evented':!0x1,'fill':this[_0x4ada5c(0x34e)]}),this[_0x4ada5c(0x1ee)]&&(_0xee58c3[_0x4ada5c(0x133)](),_0xee58c3[_0x4ada5c(0x34a)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x4ada5c(0x15e)?0x0:-K),ne[_0x4ada5c(0x23b)](_0xee58c3,{'text':this['_name'],'color':this[_0x4ada5c(0x166)]}),_0xee58c3[_0x4ada5c(0x128)]());}}var wt=Object[_0x31dfc7(0x1c5)],yt=(_0x3528a8,_0x1dedf0,_0x215c07,_0x293d7d)=>{for(var _0x23fa14=_0x293d7d>0x1?void 0x0:_0x293d7d?wt(_0x1dedf0,_0x215c07):_0x1dedf0,_0x4d777d=_0x3528a8['length']-0x1,_0x5116f4;_0x4d777d>=0x0;_0x4d777d--)(_0x5116f4=_0x3528a8[_0x4d777d])&&(_0x23fa14=_0x5116f4(_0x23fa14)||_0x23fa14);return _0x23fa14;},he=(_0x45e661,_0x377f0a)=>(_0x383b7d,_0x4a777f)=>_0x377f0a(_0x383b7d,_0x4a777f,_0x45e661);const xt=0x1389;let Ee=class extends a[_0x31dfc7(0x260)]{constructor(_0x34b912,_0x3afe91,_0x106982,_0x4aedbc){const _0x2d953b=_0x31dfc7;super(),_(this,_0x2d953b(0x22b),new Set()),_(this,_0x2d953b(0x145),null),(this[_0x2d953b(0x307)]=_0x34b912,this[_0x2d953b(0x190)]=_0x3afe91,this[_0x2d953b(0x1b9)]=_0x106982,this[_0x2d953b(0xb5)]=_0x4aedbc,this['_init']());}[_0x31dfc7(0x15b)](){const _0x25c659=_0x31dfc7;this[_0x25c659(0x190)][_0x25c659(0x163)][_0x25c659(0x363)]($[_0x25c659(0x172)](this[_0x25c659(0x2f6)]),$['switchMap'](_0x3b1bd9=>{const _0x2c6443=_0x25c659;if(_0x3b1bd9){const _0x2933f6=_0x3b1bd9['sheetId'];return I[_0x2c6443(0x15a)](this[_0x2c6443(0x1b9)][_0x2c6443(0x2c5)](this['_context']['unitId']),this[_0x2c6443(0xb5)][_0x2c6443(0x185)])['pipe']($[_0x2c6443(0x10d)](([_0x45dfd2,_0x1e441f])=>{const _0x292899=_0x2c6443,_0x5d58c4=new Map();return _0x45dfd2[_0x292899(0x1da)]((_0x66c83b,_0x824b27)=>{const _0x84a19a=_0x292899;if(_0x66c83b[_0x84a19a(0x1be)]===_0x2933f6){const _0x10b9b8={..._0x66c83b};_0x10b9b8[_0x84a19a(0xf6)]=this['_themeService']['getColorFromTheme'](_0x66c83b[_0x84a19a(0xf6)]),_0x5d58c4[_0x84a19a(0xdf)](_0x824b27,_0x10b9b8);}}),{'skeleton':_0x3b1bd9,'cursors':_0x5d58c4};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1b73b8,cursors:_0x3c3f70})=>{const _0x31d72d=_0x25c659;this[_0x31d72d(0xd8)](),_0x1b73b8&&this[_0x31d72d(0x102)](_0x1b73b8,_0x3c3f70);}),this[_0x25c659(0x190)][_0x25c659(0x163)][_0x25c659(0x21b)](_0x3c9a2f=>{const _0x4ca6d4=_0x25c659;if(_0x3c9a2f==null)return;const {skeleton:_0x53295b}=_0x3c9a2f,{scene:_0x5a5989}=this[_0x4ca6d4(0x307)];_0x5a5989['onPointerMove$'][_0x4ca6d4(0x2e3)](a[_0x4ca6d4(0x1e5)](_0x5ba75a=>{const _0x3a9132=_0x4ca6d4;var _0x40aa98,_0x6d300;const {offsetX:_0x2776a8,offsetY:_0x43a3c7}=_0x5ba75a,{x:_0x3947c1,y:_0xde7b0a}=_0x5a5989[_0x3a9132(0x306)](C[_0x3a9132(0x2a2)]['FromArray']([_0x2776a8,_0x43a3c7])),{scaleX:_0x42bc21,scaleY:_0x51c030}=_0x5a5989['getAncestorScale'](),_0x2a463c=_0x5a5989[_0x3a9132(0x21e)](C['SHEET_VIEWPORT_KEY'][_0x3a9132(0x201)]),_0xba1255=_0x5a5989[_0x3a9132(0x10b)](C[_0x3a9132(0x2a2)][_0x3a9132(0x1d9)]([_0x3947c1,_0xde7b0a]),_0x2a463c),_0x594acd=_0x53295b[_0x3a9132(0x231)](_0x2776a8,_0x43a3c7,_0x42bc21,_0x51c030,_0xba1255);((_0x40aa98=this['_lastPointer'])==null?void 0x0:_0x40aa98['column'])===_0x594acd[_0x3a9132(0xff)]&&((_0x6d300=this[_0x3a9132(0x145)])==null?void 0x0:_0x6d300[_0x3a9132(0x137)])===_0x594acd[_0x3a9132(0x137)]||this[_0x3a9132(0x22b)][_0x3a9132(0x1da)](_0x59fb33=>{const _0x3c883c=_0x3a9132;_0x59fb33[_0x3c883c(0x100)](_0x594acd);});},0x64));});}[_0x31dfc7(0x102)](_0xd0ebd2,_0x5073b5){const _0x5a140d=_0x31dfc7;var _0x3c9e19;const _0x1dceb3=(_0x3c9e19=this[_0x5a140d(0x190)][_0x5a140d(0x233)]())==null?void 0x0:_0x3c9e19['skeleton'];if(!_0x1dceb3)return;const _0x23d882=this[_0x5a140d(0x19f)]();if(!_0x23d882)return;this[_0x5a140d(0x22b)][_0x5a140d(0x1da)](_0x55c761=>{const _0x5d4ca8=_0x5a140d;_0x55c761[_0x5d4ca8(0x286)]();});const {scene:_0x21844a}=_0x23d882,_0x2b9732=$t(Array[_0x5a140d(0x2d3)](_0x5073b5['values']()))[_0x5a140d(0x10d)](_0x1321ca=>{const _0x3a3e84=_0x5a140d,{color:_0x5d6af4,range:_0x5d731,name:_0x2dbcd3,selection:_0x47e164,sheetID:_0x145d3c}=_0x1321ca,{startColumn:_0x27dbde,startRow:_0x9b5cbf,endColumn:_0x198dfc,endRow:_0x37126a}=_0x5d731,_0x54a811=J[_0x3a3e84(0x15f)](_0x9b5cbf,_0x27dbde,_0x21844a,_0x1dceb3),_0x55fea2=J['getCoordByCell'](_0x37126a,_0x198dfc,_0x21844a,_0x1dceb3),{columnHeaderHeightAndMarginTop:_0x5d1df2}=_0x1dceb3,{startX:_0x24d86a,startY:_0x1c4433}=_0x54a811,{endX:_0x4c868d,endY:_0x33dcf7}=_0x55fea2,_0x5195b9=_0x4c868d-_0x24d86a,_0x305c57=_0x33dcf7-_0x1c4433,_0xf4ce18={'labelPosition':_0x1c4433-_0x5d1df2>=K?_0x3a3e84(0x1e6):'bottom','sheetID':_0x145d3c,'range':_0x5d731,'color':_0x5d6af4,'name':_0x2dbcd3,'selection':_0x47e164,'left':_0x24d86a,'top':_0x1c4433,'width':_0x5195b9,'height':_0x305c57,'evented':!0x1,'zIndex':xt};return new Fe(_0x2dbcd3,_0xf4ce18);});_0x21844a['addObjects'](_0x2b9732,At),this['_cursors']=new Set(_0x2b9732);}[_0x31dfc7(0xd8)](){const _0x4500a3=_0x31dfc7;var _0x515336;(_0x515336=this[_0x4500a3(0x22b)])==null||_0x515336['forEach'](_0x20f92c=>_0x20f92c[_0x4500a3(0x355)]());}[_0x31dfc7(0x19f)](){const _0x1125f3=_0x31dfc7;return J[_0x1125f3(0xba)](this[_0x1125f3(0x307)][_0x1125f3(0x188)],this['_context']);}};Ee=yt([he(0x1,a['Inject'](J[_0x31dfc7(0x349)])),he(0x2,a[_0x31dfc7(0x2ff)](F)),he(0x3,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x2f0)]))],Ee);function $t(_0x236ff1){const _0x305079=_0x31dfc7,_0x4a76a1=new Map();return _0x236ff1[_0x305079(0x1da)](_0x2717f6=>{const _0x211e64=_0x305079;if(_0x4a76a1['has'](_0x2717f6[_0x211e64(0x12b)])){const _0x23d3e6=_0x4a76a1['get'](_0x2717f6[_0x211e64(0x12b)]);_0x23d3e6[_0x211e64(0x23f)]+=',\x20'+_0x2717f6['name'];}else _0x4a76a1[_0x211e64(0xdf)](_0x2717f6['selection'],_0x2717f6);}),Array[_0x305079(0x2d3)](_0x4a76a1[_0x305079(0x1a0)]());}var Bt=Object[_0x31dfc7(0x1c5)],Ft=(_0x108100,_0x29aa33,_0x5b6876,_0x20a751)=>{const _0x44f86c=_0x31dfc7;for(var _0x2bb340=_0x20a751>0x1?void 0x0:_0x20a751?Bt(_0x29aa33,_0x5b6876):_0x29aa33,_0x22e64a=_0x108100[_0x44f86c(0x2f8)]-0x1,_0x24117e;_0x22e64a>=0x0;_0x22e64a--)(_0x24117e=_0x108100[_0x22e64a])&&(_0x2bb340=_0x24117e(_0x2bb340)||_0x2bb340);return _0x2bb340;},x=(_0x2b5c8f,_0x3d3ead)=>(_0x1c8e10,_0x5c0bc1)=>_0x3d3ead(_0x1c8e10,_0x5c0bc1,_0x2b5c8f);let Z=class extends a[_0x31dfc7(0x198)]{constructor(_0x2505b4,_0x580642,_0x4a3fa7,_0x10581f,_0x31e4f9,_0x22a014){const _0x2d7471=_0x31dfc7;super(),this['_beforeCloseService']=_0x2505b4,this['_localCacheService']=_0x580642,this['_collaborationUIEventService']=_0x4a3fa7,this[_0x2d7471(0x162)]=_0x10581f,this[_0x2d7471(0x22a)]=_0x31e4f9,this['_localeService']=_0x22a014,this[_0x2d7471(0x216)](),this[_0x2d7471(0x174)]();}[_0x31dfc7(0x216)](){const _0x29d3d5=_0x31dfc7;this['disposeWithMe'](this[_0x29d3d5(0x2e9)][_0x29d3d5(0xe5)](()=>{const _0x53b47b=_0x29d3d5;if(this[_0x53b47b(0x252)][_0x53b47b(0x1b4)][_0x53b47b(0x30f)])return this[_0x53b47b(0x254)]['t'](_0x53b47b(0x244));}));}[_0x31dfc7(0x174)](){const _0x524b11=_0x31dfc7;this[_0x524b11(0x33f)](this['_collaborationUIEventService'][_0x524b11(0x214)][_0x524b11(0x21b)](_0x5e1e3f=>{const _0x27acfb=_0x524b11;_0x5e1e3f['id']===u[_0x27acfb(0x15c)][_0x27acfb(0x1ba)]&&this['_messageService']['show']({'type':T['MessageType'][_0x27acfb(0x258)],'content':this['_localeService']['t'](_0x27acfb(0x329))}),_0x5e1e3f['id']===u[_0x27acfb(0x15c)][_0x27acfb(0xec)]&&this[_0x27acfb(0x162)][_0x27acfb(0x1d0)]({'type':T[_0x27acfb(0x2a7)][_0x27acfb(0x258)],'content':this[_0x27acfb(0x254)]['t'](_0x27acfb(0x225))}),_0x5e1e3f['id']===u[_0x27acfb(0x15c)]['PERMISSION_DENIED']&&this['_notificationService'][_0x27acfb(0x1d0)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x27acfb(0x254)]['t']('permission.content'),'type':_0x27acfb(0x2c6),'duration':0x0}),_0x5e1e3f['id']===u[_0x27acfb(0x15c)][_0x27acfb(0x189)]&&this[_0x27acfb(0x162)][_0x27acfb(0x1d0)]({'type':T[_0x27acfb(0x2a7)][_0x27acfb(0x2d2)],'content':this[_0x27acfb(0x254)]['t'](_0x27acfb(0x225))+'('+_0x5e1e3f[_0x27acfb(0x305)]+')'}),_0x5e1e3f['id']===u[_0x27acfb(0x15c)]['JOIN_ROOM_FAILED']&&this[_0x27acfb(0x162)][_0x27acfb(0x1d0)]({'type':T[_0x27acfb(0x2a7)]['Warning'],'content':this['_localeService']['t'](_0x5e1e3f[_0x27acfb(0x305)]||'')}),_0x5e1e3f['id']===u['CollaborationUIEventId'][_0x27acfb(0x196)]&&this[_0x27acfb(0x162)][_0x27acfb(0x1d0)]({'type':T[_0x27acfb(0x2a7)][_0x27acfb(0x258)],'content':this[_0x27acfb(0x254)]['t'](_0x27acfb(0x1de))}),_0x5e1e3f['id']===u[_0x27acfb(0x15c)][_0x27acfb(0x31d)]&&this['_messageService'][_0x27acfb(0x1d0)]({'type':T[_0x27acfb(0x2a7)][_0x27acfb(0x2d2)],'content':this[_0x27acfb(0x254)]['t'](_0x27acfb(0x21d))}),_0x5e1e3f['id']===u['CollaborationUIEventId'][_0x27acfb(0x2d0)]&&this[_0x27acfb(0x162)][_0x27acfb(0x1d0)]({'type':T[_0x27acfb(0x2a7)][_0x27acfb(0x2d2)],'content':this['_localeService']['t'](_0x27acfb(0x1bb))});}));}};Z=Ft([x(0x0,R[_0x31dfc7(0x18f)]),x(0x1,u[_0x31dfc7(0x2ec)]),x(0x2,a['Inject'](u[_0x31dfc7(0x19a)])),x(0x3,R[_0x31dfc7(0x31f)]),x(0x4,R['INotificationService']),x(0x5,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x2e1)]))],Z);const kt='collaboration-client-ui.config',Le={};var jt=Object[_0x31dfc7(0x1c5)],Yt=(_0x94defb,_0x5505d7,_0x2a27e9,_0x15ccc4)=>{const _0x2a64ad=_0x31dfc7;for(var _0x1f8ba7=_0x15ccc4>0x1?void 0x0:_0x15ccc4?jt(_0x5505d7,_0x2a27e9):_0x5505d7,_0x26f21c=_0x94defb[_0x2a64ad(0x2f8)]-0x1,_0xe8d49b;_0x26f21c>=0x0;_0x26f21c--)(_0xe8d49b=_0x94defb[_0x26f21c])&&(_0x1f8ba7=_0xe8d49b(_0x1f8ba7)||_0x1f8ba7);return _0x1f8ba7;},Me=(_0x4b4e96,_0x2e8fe7)=>(_0x53d572,_0x2b8307)=>_0x2e8fe7(_0x53d572,_0x2b8307,_0x4b4e96);let Q=class{constructor(_0xbd6293,_0x197df4){const _0x1fb0f8=_0x31dfc7;this[_0x1fb0f8(0x24a)]=_0xbd6293,this[_0x1fb0f8(0x146)]=_0x197df4;}[_0x31dfc7(0x12d)](_0x1ce409){const _0x4e5da1=_0x31dfc7;this[_0x4e5da1(0xe7)](_0x1ce409),this['_transformPreviousActiveRange'](_0x1ce409);}[_0x31dfc7(0x2e6)](_0x412311){const _0x875b07=_0x31dfc7,{unitID:_0x44ded8}=_0x412311,_0x4c2257=this['_renderManagerService'][_0x875b07(0x2b9)](_0x44ded8)[_0x875b07(0x1ca)](p[_0x875b07(0x271)]),{redoCache:_0x429360}=_0x4c2257[_0x875b07(0x1d5)]();if(_0x429360[_0x875b07(0x2f8)]===0x0)return _0x412311;let _0x4e8c97=a[_0x875b07(0x330)][_0x875b07(0x2aa)](_0x412311[_0x875b07(0x2bf)][0x0]);for(let _0x1b1cca=0x0;_0x1b1cca<_0x429360[_0x875b07(0x2f8)];_0x1b1cca++){const _0x1caf60={'id':_0x875b07(0x203),'params':{..._0x429360[_0x1b1cca]}},_0x28c3cd=this[_0x875b07(0x24a)][_0x875b07(0x1b7)](_0x4e8c97,_0x1caf60,!0x1);if(g[_0x875b07(0x104)](_0x28c3cd))throw _0x28c3cd[_0x875b07(0x2c6)];_0x4e8c97=_0x28c3cd['m1Prime'];}return{...a[_0x875b07(0x330)][_0x875b07(0x2aa)](_0x412311),'mutations':[_0x4e8c97]};}['_transformUndoRedoStack'](_0x4e06c4){const _0x5bf23b=_0x31dfc7,{unitID:_0x10c73f}=_0x4e06c4,_0x5bc4c7=this[_0x5bf23b(0x146)][_0x5bf23b(0x2b9)](_0x10c73f)[_0x5bf23b(0x1ca)](p[_0x5bf23b(0x271)]),{undoCache:_0x1d4352,redoCache:_0x3ae8fb}=_0x5bc4c7[_0x5bf23b(0x1d5)]();if(_0x1d4352[_0x5bf23b(0x2f8)]===0x0||_0x3ae8fb[_0x5bf23b(0x2f8)]===0x0)return;const _0x305753=[],_0x4c390e=[];let _0x3185c3=a['Tools'][_0x5bf23b(0x2aa)](_0x4e06c4[_0x5bf23b(0x2bf)][0x0]),_0x2eeeac=a['Tools'][_0x5bf23b(0x2aa)](_0x4e06c4[_0x5bf23b(0x2bf)][0x0]);for(let _0x3aad11=_0x1d4352['length']-0x1;_0x3aad11>=0x0;_0x3aad11--){const _0x2de6d5={'id':'doc.mutation.rich-text-editing','params':{..._0x1d4352[_0x3aad11]}},_0x585c62={'id':_0x5bf23b(0x203),'params':{..._0x3ae8fb[_0x3aad11]}},_0x24b49e=this[_0x5bf23b(0x24a)]['transformMutation'](_0x3185c3,_0x2de6d5,!0x1),_0xc52ad=this[_0x5bf23b(0x24a)][_0x5bf23b(0x1b7)](_0x2eeeac,_0x585c62,!0x1);if(g[_0x5bf23b(0x104)](_0x24b49e))throw _0x24b49e[_0x5bf23b(0x2c6)];if(g[_0x5bf23b(0x104)](_0xc52ad))throw _0xc52ad['error'];_0x305753[_0x5bf23b(0x227)](_0x24b49e['m2Prime'][_0x5bf23b(0x34f)]),_0x4c390e[_0x5bf23b(0x227)](_0xc52ad[_0x5bf23b(0x2e0)][_0x5bf23b(0x34f)]),_0x3185c3=_0x24b49e[_0x5bf23b(0x22d)],_0x2eeeac=_0xc52ad[_0x5bf23b(0x22d)];}_0x5bc4c7['setUndoRedoMutationParamsCache']({'undoCache':_0x305753,'redoCache':_0x4c390e});}[_0x31dfc7(0x140)](_0x11737a){const _0x48b3ed=_0x31dfc7,{unitID:_0x26312a}=_0x11737a,_0xc583fc=this[_0x48b3ed(0x146)][_0x48b3ed(0x2b9)](_0x26312a)['with'](p[_0x48b3ed(0x271)]),_0x25b6ba=_0xc583fc[_0x48b3ed(0x1f7)]();if(_0x25b6ba==null)return;const _0x1ae1e3=[{'id':_0x48b3ed(0x203),'params':{'unitId':_0x11737a[_0x48b3ed(0x317)],'actions':null,'textRanges':[_0x25b6ba]}}],_0x45ae07=this[_0x48b3ed(0x24a)][_0x48b3ed(0x1b0)](_0x11737a,_0x1ae1e3);if(!g[_0x48b3ed(0x23d)](_0x45ae07))throw _0x45ae07['error'];const _0x132d85=_0x45ae07['m2Prime'][0x0][_0x48b3ed(0x34f)][_0x48b3ed(0x123)];Array['isArray'](_0x132d85)&&_0x132d85[_0x48b3ed(0x2f8)]&&_0xc583fc[_0x48b3ed(0xd1)](_0x132d85[0x0]);}};Q=Yt([Me(0x0,g[_0x31dfc7(0x270)]),Me(0x1,C[_0x31dfc7(0x157)])],Q);var Ht=Object[_0x31dfc7(0x1c5)],Wt=(_0x5ce69e,_0x5eef1b,_0x3eb635,_0x33d6fc)=>{const _0x12a7ea=_0x31dfc7;for(var _0x1cf079=_0x33d6fc>0x1?void 0x0:_0x33d6fc?Ht(_0x5eef1b,_0x3eb635):_0x5eef1b,_0x36673b=_0x5ce69e[_0x12a7ea(0x2f8)]-0x1,_0x4df685;_0x36673b>=0x0;_0x36673b--)(_0x4df685=_0x5ce69e[_0x36673b])&&(_0x1cf079=_0x4df685(_0x1cf079)||_0x1cf079);return _0x1cf079;},ue=(_0x179e2c,_0x225b84)=>(_0x34f397,_0xd18b12)=>_0x225b84(_0x34f397,_0xd18b12,_0x179e2c);let ee=class{constructor(_0x32fff9,_0x3fe147,_0x2d1317){const _0x3747fb=_0x31dfc7;this[_0x3747fb(0x308)]=_0x32fff9,this[_0x3747fb(0x24a)]=_0x3fe147,this[_0x3747fb(0x17f)]=_0x2d1317;}[_0x31dfc7(0x32c)](_0x4a197c){const _0x22b006=_0x31dfc7;this[_0x22b006(0x12a)](_0x4a197c);}[_0x31dfc7(0x2e6)](_0x3c93fe){const _0x2df169=_0x31dfc7,{unitID:_0x56a71b}=_0x3c93fe,{collaboration:_0x11ecba}=this[_0x2df169(0x17f)][_0x2df169(0x14d)](_0x56a71b);if(_0x11ecba[_0x2df169(0x2f8)]===0x0)return _0x3c93fe;let _0x4d1045=a[_0x2df169(0x330)][_0x2df169(0x2aa)](_0x3c93fe[_0x2df169(0x2bf)][0x0]);for(let _0x4398c0=0x0;_0x4398c0<_0x11ecba[_0x2df169(0x2f8)];_0x4398c0++){const _0x802880={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x11ecba[_0x4398c0][_0x2df169(0x27e)],..._0x11ecba[_0x4398c0][_0x2df169(0x313)]}},_0x570db4=this[_0x2df169(0x24a)][_0x2df169(0x1b7)](_0x4d1045,_0x802880,!0x1);if(g['isTransformMutationFailure'](_0x570db4))throw _0x570db4[_0x2df169(0x2c6)];_0x4d1045=_0x570db4[_0x2df169(0x22d)];}return{...a[_0x2df169(0x330)][_0x2df169(0x2aa)](_0x3c93fe),'mutations':[_0x4d1045]};}[_0x31dfc7(0x12a)](_0x39013e){const _0x646262=_0x31dfc7,{unitID:_0x5d8d5}=_0x39013e,{history:_0x56311d,collaboration:_0x357074}=this[_0x646262(0x17f)]['getStateCache'](_0x5d8d5);if(_0x56311d['length']===0x0&&_0x357074[_0x646262(0x2f8)]===0x0)return;const _0x59ab20=[],_0x231e04=[];let _0x50b4dd=a['Tools'][_0x646262(0x2aa)](_0x39013e['mutations'][0x0]),_0x212634=a[_0x646262(0x330)][_0x646262(0x2aa)](_0x39013e['mutations'][0x0]);for(let _0x39a4fc=_0x56311d[_0x646262(0x2f8)]-0x1;_0x39a4fc>=0x0;_0x39a4fc--){const _0x3fe3b7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x56311d[_0x39a4fc][_0x646262(0x27e)],..._0x56311d[_0x39a4fc][_0x646262(0x2ee)]}},_0x18dbc2={'id':_0x646262(0x203),'params':{'unitId':_0x56311d[_0x39a4fc][_0x646262(0x27e)],..._0x56311d[_0x39a4fc][_0x646262(0x313)]}},_0x229160=this[_0x646262(0x24a)]['transformMutation'](_0x50b4dd,_0x3fe3b7,!0x1),_0x52fc71=this[_0x646262(0x24a)][_0x646262(0x1b7)](_0x212634,_0x18dbc2,!0x1);if(g[_0x646262(0x104)](_0x229160))throw _0x229160[_0x646262(0x2c6)];if(g['isTransformMutationFailure'](_0x52fc71))throw _0x52fc71[_0x646262(0x2c6)];_0x59ab20[_0x646262(0x227)]({..._0x56311d[_0x39a4fc],'undoState':_0x229160[_0x646262(0x2e0)][_0x646262(0x34f)],'redoState':_0x52fc71[_0x646262(0x2e0)][_0x646262(0x34f)]}),_0x50b4dd=_0x229160[_0x646262(0x22d)],_0x212634=_0x52fc71['m1Prime'];}_0x50b4dd=a['Tools']['deepClone'](_0x39013e[_0x646262(0x2bf)][0x0]),_0x212634=a[_0x646262(0x330)][_0x646262(0x2aa)](_0x39013e[_0x646262(0x2bf)][0x0]);for(let _0x2ab93f=_0x357074[_0x646262(0x2f8)]-0x1;_0x2ab93f>=0x0;_0x2ab93f--){const _0x57aae3={'id':_0x646262(0x203),'params':{'unitId':_0x357074[_0x2ab93f][_0x646262(0x27e)],..._0x357074[_0x2ab93f][_0x646262(0x2ee)]}},_0xa33d52={'id':_0x646262(0x203),'params':{'unitId':_0x357074[_0x2ab93f]['unitId'],..._0x357074[_0x2ab93f][_0x646262(0x313)]}},_0x17622a=this[_0x646262(0x24a)][_0x646262(0x1b7)](_0x50b4dd,_0x57aae3,!0x1),_0x568f70=this[_0x646262(0x24a)][_0x646262(0x1b7)](_0x212634,_0xa33d52,!0x1);if(g[_0x646262(0x104)](_0x17622a))throw _0x17622a[_0x646262(0x2c6)];if(g['isTransformMutationFailure'](_0x568f70))throw _0x568f70[_0x646262(0x2c6)];_0x231e04['unshift']({..._0x357074[_0x2ab93f],'undoState':_0x17622a['m2Prime']['params'],'redoState':_0x568f70[_0x646262(0x2e0)][_0x646262(0x34f)]}),_0x50b4dd=_0x17622a[_0x646262(0x22d)],_0x212634=_0x568f70[_0x646262(0x22d)];}this[_0x646262(0x17f)][_0x646262(0x2fa)](_0x5d8d5,{'history':_0x59ab20,'collaboration':_0x231e04});}};ee=Wt([ue(0x0,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x250)])),ue(0x1,g['ITransformService']),ue(0x2,a['Inject'](p[_0x31dfc7(0x29d)]))],ee);var Vt=Object[_0x31dfc7(0x1c5)],Gt=(_0x5d3b35,_0x1ffb17,_0x5411c0,_0x138ee8)=>{const _0x410c4f=_0x31dfc7;for(var _0x2fcdef=_0x138ee8>0x1?void 0x0:_0x138ee8?Vt(_0x1ffb17,_0x5411c0):_0x1ffb17,_0x268e73=_0x5d3b35[_0x410c4f(0x2f8)]-0x1,_0x3f14d6;_0x268e73>=0x0;_0x268e73--)(_0x3f14d6=_0x5d3b35[_0x268e73])&&(_0x2fcdef=_0x3f14d6(_0x2fcdef)||_0x2fcdef);return _0x2fcdef;},Ae=(_0x54fcd8,_0x4f3687)=>(_0x56d7d1,_0x1fd54f)=>_0x4f3687(_0x56d7d1,_0x1fd54f,_0x54fcd8);let te=class{constructor(_0x56230b,_0x1909f2){const _0x5ceccf=_0x31dfc7;this[_0x5ceccf(0x308)]=_0x56230b,this[_0x5ceccf(0x24a)]=_0x1909f2;}['transformSelections'](_0x4c6be2){const _0x4b2ed5=_0x31dfc7;var _0x452ef7;const _0x137e65=this['_injector'][_0x4b2ed5(0x2cb)](V['DocSelectionManagerService']),_0x38a281=(_0x452ef7=_0x137e65['getDocRanges']())!=null?_0x452ef7:[];if(_0x38a281['length']===0x0)return;const _0x1d6982=_0x4c6be2[_0x4b2ed5(0x317)],_0x56258f=[{'id':_0x4b2ed5(0x203),'params':{'unitId':_0x1d6982,'actions':null,'textRanges':_0x38a281}}],_0x4df5be=this['_transformService'][_0x4b2ed5(0x1b0)](_0x4c6be2,_0x56258f);if(!g['isTransformMutationsWithChangesetSuccess'](_0x4df5be))throw _0x4df5be[_0x4b2ed5(0x2c6)];const _0x2fcb52=_0x4df5be['m2Prime'][0x0][_0x4b2ed5(0x34f)][_0x4b2ed5(0x123)];Array['isArray'](_0x2fcb52)&&_0x2fcb52[_0x4b2ed5(0x2f8)]&&_0x137e65[_0x4b2ed5(0x358)](_0x2fcb52,{'unitId':_0x1d6982,'subUnitId':_0x1d6982},!0x1);}};te=Gt([Ae(0x0,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x250)])),Ae(0x1,g['ITransformService'])],te);var Xt=Object[_0x31dfc7(0x1c5)],Kt=(_0x502144,_0x155a90,_0x144143,_0x4fe795)=>{for(var _0x4003b5=_0x4fe795>0x1?void 0x0:_0x4fe795?Xt(_0x155a90,_0x144143):_0x155a90,_0x2122ff=_0x502144['length']-0x1,_0x91dc1b;_0x2122ff>=0x0;_0x2122ff--)(_0x91dc1b=_0x502144[_0x2122ff])&&(_0x4003b5=_0x91dc1b(_0x4003b5)||_0x4003b5);return _0x4003b5;},U=(_0x623f92,_0x1dcfce)=>(_0xa74e66,_0x5a42ed)=>_0x1dcfce(_0xa74e66,_0x5a42ed,_0x623f92);let se=class extends a[_0x31dfc7(0x198)]{constructor(_0xf43d6f,_0x496468,_0x24faa4,_0x1bab32,_0x1fd1a3,_0x10e444,_0x5235cd,_0x575361){const _0x165457=_0x31dfc7;super(),_(this,_0x165457(0x121),new I[(_0x165457(0x312))](u[_0x165457(0x143)][_0x165457(0x2d8)])),(this['_docStateChangeManagerService']=_0xf43d6f,this[_0x165457(0x34d)]=_0x496468,this[_0x165457(0x28b)]=_0x24faa4,this['_docTransformStateCacheService']=_0x1bab32,this[_0x165457(0x158)]=_0x1fd1a3,this['_docSyncEditingCollabCursorService']=_0x10e444,this[_0x165457(0x162)]=_0x5235cd,this[_0x165457(0x254)]=_0x575361,this[_0x165457(0x1d8)]());}[_0x31dfc7(0x1d8)](){const _0x1a35bf=_0x31dfc7;this[_0x1a35bf(0x33f)](this['_collaborationController'][_0x1a35bf(0x2bb)]['subscribe'](_0x2787fb=>{const _0x20e675=_0x1a35bf,_0x34a7da=this[_0x20e675(0x17f)][_0x20e675(0x182)][_0x20e675(0x21b)](_0x3f4569=>{const _0x210296=_0x20e675;if(_0x3f4569==null)return;const {unitId:_0x2d1c5d,redoState:_0x5a827a,commandId:_0x3b4e19}=_0x3f4569;if(_0x2d1c5d!==_0x2787fb[_0x210296(0x317)])return;const _0x2908bc={'id':_0x3b4e19,'type':a[_0x210296(0x31b)]['MUTATION'],'params':{'unitId':_0x2d1c5d,'actions':_0x5a827a[_0x210296(0x1e0)],'textRanges':null}};_0x2787fb[_0x210296(0x2ad)](_0x2908bc);});if(_0x2787fb['disposeWithMe'](_0x34a7da),_0x2787fb instanceof u[_0x20e675(0x156)]){const _0x57ac={'onTransformIME':_0x33324a=>this['_docTransformIMECacheService']['transformIMECache'](_0x33324a),'onTransformState':_0x4f4f5a=>this[_0x20e675(0x285)][_0x20e675(0x32c)](_0x4f4f5a),'onTransformSelections':_0x589c40=>this[_0x20e675(0x158)][_0x20e675(0x268)](_0x589c40),'onSyncEditingCollabCursor':_0x110ca5=>this['_docSyncEditingCollabCursorService'][_0x20e675(0x335)](_0x110ca5),'onTransformRemoteChangesetByIMECache':_0x155d1f=>this['_docTransformIMECacheService'][_0x20e675(0x2e6)](_0x155d1f),'onTransformRemoteChangesetByStateCache':_0x1f1607=>this[_0x20e675(0x285)]['transformRemoteChangeset'](_0x1f1607)};_0x2787fb['addHandlerCallback'](_0x57ac);}}));}};se=Kt([U(0x0,a[_0x31dfc7(0x2ff)](p[_0x31dfc7(0x29d)])),U(0x1,a[_0x31dfc7(0x2ff)](u[_0x31dfc7(0x17d)])),U(0x2,a['Inject'](Q)),U(0x3,a[_0x31dfc7(0x2ff)](ee)),U(0x4,a[_0x31dfc7(0x2ff)](te)),U(0x5,a[_0x31dfc7(0x2ff)](Re)),U(0x6,R['IMessageService']),U(0x7,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x2e1)]))],se);var G=(_0x941841=>(_0x941841[_0x941841['UNDEFINED']=0x0]='UNDEFINED',_0x941841[_0x941841['OK']=0x1]='OK',_0x941841[_0x941841[_0x31dfc7(0x222)]=0x2]=_0x31dfc7(0x222),_0x941841[_0x941841[_0x31dfc7(0x2f1)]=0x3]=_0x31dfc7(0x2f1),_0x941841[_0x941841[_0x31dfc7(0x22c)]=0x4]=_0x31dfc7(0x22c),_0x941841[_0x941841[_0x31dfc7(0xbd)]=0x5]='UNAUTHENTICATED',_0x941841[_0x941841[_0x31dfc7(0xfc)]=0x6]='ALREADY_EXISTS',_0x941841[_0x941841['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x941841[_0x941841[_0x31dfc7(0x256)]=0x8]=_0x31dfc7(0x256),_0x941841[_0x941841[_0x31dfc7(0x35b)]=0x9]=_0x31dfc7(0x35b),_0x941841[_0x941841[_0x31dfc7(0x352)]=0xa]=_0x31dfc7(0x352),_0x941841[_0x941841['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x941841[_0x941841[_0x31dfc7(0x300)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x941841[_0x941841[_0x31dfc7(0x2b7)]=0xd]=_0x31dfc7(0x2b7),_0x941841[_0x941841['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x31dfc7(0x1ef),_0x941841[_0x941841[_0x31dfc7(0x2a9)]=0xf]=_0x31dfc7(0x2a9),_0x941841[_0x941841[_0x31dfc7(0x28f)]=0x10]=_0x31dfc7(0x28f),_0x941841[_0x941841[_0x31dfc7(0x324)]=0x64]=_0x31dfc7(0x324),_0x941841[_0x941841[_0x31dfc7(0x22e)]=0x65]=_0x31dfc7(0x22e),_0x941841[_0x941841[_0x31dfc7(0x1c6)]=0xc9]=_0x31dfc7(0x1c6),_0x941841[_0x941841['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x941841[_0x941841['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x31dfc7(0xfe),_0x941841[_0x941841[_0x31dfc7(0x164)]=0x1771]=_0x31dfc7(0x164),_0x941841[_0x941841[_0x31dfc7(0x108)]=0x1772]=_0x31dfc7(0x108),_0x941841[_0x941841['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x31dfc7(0x1cc),_0x941841[_0x941841[_0x31dfc7(0x142)]=0x1b59]='APPLY_REJECT',_0x941841[_0x941841[_0x31dfc7(0x16f)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x941841[_0x941841[_0x31dfc7(0x2d9)]=0x1b5b]=_0x31dfc7(0x2d9),_0x941841[_0x941841[_0x31dfc7(0x26b)]=0x1b5c]=_0x31dfc7(0x26b),_0x941841[_0x941841[_0x31dfc7(0x20f)]=0x1b5d]='APPLY_DUPLICATED',_0x941841[_0x941841[_0x31dfc7(0x11f)]=0x1f41]=_0x31dfc7(0x11f),_0x941841[_0x941841['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x31dfc7(0x262),_0x941841[_0x941841[_0x31dfc7(0xf3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x941841[_0x941841['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x31dfc7(0x327),_0x941841[_0x941841[_0x31dfc7(0xd0)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x941841[_0x941841[_0x31dfc7(0x1d7)]=0x232d]=_0x31dfc7(0x1d7),_0x941841[_0x941841['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x31dfc7(0xd7),_0x941841[_0x941841[_0x31dfc7(0x276)]=0x2712]=_0x31dfc7(0x276),_0x941841[_0x941841[_0x31dfc7(0x2cd)]=0x2713]=_0x31dfc7(0x2cd),_0x941841[_0x941841['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x31dfc7(0x122),_0x941841[_0x941841[_0x31dfc7(0x337)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x941841[_0x941841[_0x31dfc7(0x1f0)]=0x271b]=_0x31dfc7(0x1f0),_0x941841[_0x941841[_0x31dfc7(0x2b5)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x941841[_0x941841[_0x31dfc7(0xda)]=0x271d]=_0x31dfc7(0xda),_0x941841[_0x941841[_0x31dfc7(0xb8)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x941841[_0x941841[_0x31dfc7(0x171)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x941841[_0x941841[_0x31dfc7(0x125)]=0x2720]=_0x31dfc7(0x125),_0x941841[_0x941841[_0x31dfc7(0x353)]=0x2af9]=_0x31dfc7(0x353),_0x941841[_0x941841[_0x31dfc7(0xde)]=0x2ee1]=_0x31dfc7(0xde),_0x941841[_0x941841['INVALID_INVITE_CODE']=0x2ee2]=_0x31dfc7(0x31c),_0x941841[_0x941841['INVITE_CODE_REQUIRED']=0x2ee3]=_0x31dfc7(0x1b1),_0x941841[_0x941841[_0x31dfc7(0x27b)]=0x2ee4]=_0x31dfc7(0x27b),_0x941841[_0x941841[_0x31dfc7(0x16e)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x941841[_0x941841[_0x31dfc7(0x206)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x941841[_0x941841['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x941841[_0x941841[_0x31dfc7(0x2fb)]=0x32cb]=_0x31dfc7(0x2fb),_0x941841[_0x941841[_0x31dfc7(0x35a)]=0x36b1]=_0x31dfc7(0x35a),_0x941841[_0x941841[_0x31dfc7(0x1d1)]=0x36b2]=_0x31dfc7(0x1d1),_0x941841[_0x941841['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x941841[_0x941841[_0x31dfc7(0xb1)]=0x36b4]=_0x31dfc7(0xb1),_0x941841[_0x941841[_0x31dfc7(0x31e)]=0x3715]=_0x31dfc7(0x31e),_0x941841[_0x941841['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x941841[_0x941841[_0x31dfc7(0x16a)]=0x37dd]=_0x31dfc7(0x16a),_0x941841[_0x941841['REDEMPTION_INVALID_CODE']=0x3a99]=_0x31dfc7(0x2ac),_0x941841[_0x941841[_0x31dfc7(0x19d)]=0x3a9a]=_0x31dfc7(0x19d),_0x941841[_0x941841[_0x31dfc7(0x2fc)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x941841[_0x941841[_0x31dfc7(0x30b)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x941841[_0x941841[_0x31dfc7(0x17e)]=0x3a9d]=_0x31dfc7(0x17e),_0x941841[_0x941841[_0x31dfc7(0x11b)]=0x3a9e]=_0x31dfc7(0x11b),_0x941841[_0x941841[_0x31dfc7(0x273)]=0x3a9f]=_0x31dfc7(0x273),_0x941841[_0x941841[_0x31dfc7(0x298)]=-0x1]=_0x31dfc7(0x298),_0x941841))(G||{});function qt(_0x3d1d47){const _0x120368=_0x31dfc7;var _0x297084,_0x1ea09d;const _0x28feca=(_0x297084=_0x3d1d47[_0x120368(0xfb)])==null?void 0x0:_0x297084[_0x120368(0x1a2)],_0x345806=((_0x1ea09d=_0x3d1d47[_0x120368(0xfb)])==null?void 0x0:_0x1ea09d[_0x120368(0x275)])||0x0;return _0x28feca===B[_0x120368(0x20d)]['START_CALCULATION']&&_0x345806>0x0;}function zt(_0x17f8c2){const _0x57ed87=_0x31dfc7;return _0x17f8c2[_0x57ed87(0xeb)]===B[_0x57ed87(0x351)][_0x57ed87(0x218)];}var Jt=Object[_0x31dfc7(0x1c5)],Zt=(_0x281b6c,_0x2191c3,_0x4c2f65,_0x4f8f6d)=>{const _0x3b22c3=_0x31dfc7;for(var _0x344905=_0x4f8f6d>0x1?void 0x0:_0x4f8f6d?Jt(_0x2191c3,_0x4c2f65):_0x2191c3,_0x2946f9=_0x281b6c[_0x3b22c3(0x2f8)]-0x1,_0x48e150;_0x2946f9>=0x0;_0x2946f9--)(_0x48e150=_0x281b6c[_0x2946f9])&&(_0x344905=_0x48e150(_0x344905)||_0x344905);return _0x344905;},A=(_0x32e8f4,_0xcff271)=>(_0x247b3e,_0x37489f)=>_0xcff271(_0x247b3e,_0x37489f,_0x32e8f4);const Qt=_0x31dfc7(0x25c),es=_0x31dfc7(0x1c8),ts=_0x31dfc7(0x26f);let ie=class extends a[_0x31dfc7(0x198)]{constructor(_0x486984,_0x3b738c,_0x44eb81,_0x4e0dfb,_0x58b62f,_0x2fab63,_0x28b31b){const _0x58d96b=_0x31dfc7;super(),_(this,_0x58d96b(0x269),null),_(this,_0x58d96b(0x359),0x0),_(this,_0x58d96b(0x2a8),0x0),_(this,_0x58d96b(0x28a),[]),_(this,_0x58d96b(0x170),0x0),(this[_0x58d96b(0x162)]=_0x486984,this[_0x58d96b(0x1dc)]=_0x3b738c,this[_0x58d96b(0x1ce)]=_0x44eb81,this[_0x58d96b(0x1ad)]=_0x4e0dfb,this[_0x58d96b(0x165)]=_0x58b62f,this[_0x58d96b(0x13b)]=_0x2fab63,this['_localeService']=_0x28b31b,this[_0x58d96b(0x208)]());}[_0x31dfc7(0x208)](){const _0x1a65e3=_0x31dfc7;this[_0x1a65e3(0x33f)](this['_commandService'][_0x1a65e3(0x1f8)]((_0x1ee667,_0x4864ad)=>{const _0x2228ad=_0x1a65e3;if(_0x1ee667['id']!==B[_0x2228ad(0x1df)]['id'])return;const _0x2493e1=_0x1ee667[_0x2228ad(0x34f)];if(!this[_0x2228ad(0x299)](_0x2493e1['dirtyRanges']))return;if(!this[_0x2228ad(0x2b1)]())throw this[_0x2228ad(0x19b)](_0x1ee667,_0x4864ad),this[_0x2228ad(0x213)](),new a[(_0x2228ad(0x35e))]();})),this[_0x1a65e3(0x33f)](this[_0x1a65e3(0x1dc)][_0x1a65e3(0x1a7)]((_0x506778,_0x4d4fa8)=>{const _0x575fad=_0x1a65e3;if(_0x506778['id']!==B[_0x575fad(0x2b0)]['id'])return;const _0x1230f8=_0x506778['params'];if(qt(_0x1230f8)){const _0x56fc52=a['generateRandomId']();this[_0x575fad(0x28a)][_0x575fad(0x28c)](_0x56fc52),this[_0x575fad(0x1dd)](_0x56fc52);}else{if(zt(_0x1230f8)&&this[_0x575fad(0x28a)]['length']>0x0){const _0x3f8a6a=this[_0x575fad(0x28a)][_0x575fad(0x23e)]();this[_0x575fad(0x20e)](_0x3f8a6a);}}}));}['dispose'](){const _0x4401b3=_0x31dfc7;super[_0x4401b3(0x355)](),this[_0x4401b3(0x243)](),this[_0x4401b3(0x28a)]=[],this[_0x4401b3(0x2a8)]=0x0,this[_0x4401b3(0x359)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x31dfc7(0x19b)](_0x253c85,_0x22789f){const _0x57aefe=_0x31dfc7;for(let _0x507221=0x0;_0x507221<0x1e;_0x507221++)try{if(await this[_0x57aefe(0x111)](),this[_0x57aefe(0x2b1)]()){this[_0x57aefe(0x1fd)](_0x253c85,_0x22789f),this[_0x57aefe(0x162)][_0x57aefe(0x1d0)]({'content':this[_0x57aefe(0x254)]['t'](_0x57aefe(0x267)),'type':T[_0x57aefe(0x2a7)]['Success']});return;}await new Promise(_0x3391c2=>{const _0x4fc537=_0x57aefe;this['_pollingInterval']=window[_0x4fc537(0x197)](_0x3391c2,0x3e8);});}catch(_0x320570){this[_0x57aefe(0x13b)][_0x57aefe(0x2c6)](_0x320570);}this[_0x57aefe(0x162)]['show']({'content':this[_0x57aefe(0x254)]['t'](_0x57aefe(0x360)),'type':T[_0x57aefe(0x2a7)][_0x57aefe(0x2d2)]});}[_0x31dfc7(0x1fd)](_0x5f1f4a,_0x38f810){const _0x188f66=_0x31dfc7;try{this['_commandService'][_0x188f66(0x29b)](_0x5f1f4a['id'],_0x5f1f4a[_0x188f66(0x34f)],_0x38f810);}catch(_0x4e9c1b){this[_0x188f66(0x13b)][_0x188f66(0x2c6)](_0x4e9c1b);}}['_setFormulaLimitStatus'](_0x39ca36,_0x1d472e){const _0x3bab28=_0x31dfc7;_0x1d472e<this[_0x3bab28(0x170)]||(this[_0x3bab28(0x170)]=_0x1d472e,this[_0x3bab28(0x359)]=Number['parseInt'](_0x39ca36[_0x3bab28(0x294)]),this[_0x3bab28(0x2a8)]=Number['parseInt'](_0x39ca36[_0x3bab28(0x2ca)]));}async['_startCalculationLimit'](_0x2a881a){const _0x219433=_0x31dfc7;var _0x2989ad,_0x242cb8;const _0x3f8a4c=Date['now']();try{const _0x4c2a75=((_0x2989ad=this[_0x219433(0x1ce)][_0x219433(0x1ec)](u[_0x219433(0x1f5)]))==null?void 0x0:_0x2989ad[_0x219433(0x1e7)])||es,_0x493f49=(await this[_0x219433(0x1ad)][_0x219433(0x228)](_0x4c2a75,{'body':JSON['stringify']({'taskId':_0x2a881a})}))['body'];if(((_0x242cb8=_0x493f49[_0x219433(0x2c6)])==null?void 0x0:_0x242cb8[_0x219433(0x1d6)])!==G['OK'])return;this[_0x219433(0x169)](_0x493f49[_0x219433(0x232)],_0x3f8a4c);}catch(_0x1f2fc2){this['_logService'][_0x219433(0x2c6)](_0x1f2fc2);}}async[_0x31dfc7(0x111)](_0x31e171){const _0x5c0ae5=_0x31dfc7;var _0x47e5e3,_0x10750a;const _0x1fd835=Date[_0x5c0ae5(0x194)]();try{const _0x2a8836=((_0x47e5e3=this[_0x5c0ae5(0x1ce)]['getConfig'](u[_0x5c0ae5(0x1f5)]))==null?void 0x0:_0x47e5e3[_0x5c0ae5(0x1c7)])||Qt,_0x2ec732=_0x31e171?_0x2a8836+'?taskId='+encodeURIComponent(_0x31e171):_0x2a8836,_0x33cab7=(await this[_0x5c0ae5(0x1ad)]['get'](_0x2ec732))[_0x5c0ae5(0x224)];if(((_0x10750a=_0x33cab7['error'])==null?void 0x0:_0x10750a[_0x5c0ae5(0x1d6)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x33cab7['limitInfo'],_0x1fd835);}catch(_0x4d9cea){this[_0x5c0ae5(0x13b)][_0x5c0ae5(0x2c6)](_0x4d9cea);}}async[_0x31dfc7(0x20e)](_0x340a60){const _0x2e640b=_0x31dfc7;var _0x36278d,_0x5bc9d8;const _0x509b84=Date[_0x2e640b(0x194)]();try{const _0x3179dd=((_0x36278d=this['_configService'][_0x2e640b(0x1ec)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x36278d[_0x2e640b(0x24f)])||ts,_0x4664a5=(await this[_0x2e640b(0x1ad)]['post'](_0x3179dd,{'body':JSON[_0x2e640b(0x2e5)]({'taskId':_0x340a60})}))['body'];if(((_0x5bc9d8=_0x4664a5['error'])==null?void 0x0:_0x5bc9d8[_0x2e640b(0x1d6)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x4664a5[_0x2e640b(0x232)],_0x509b84);}catch(_0x44f445){this['_logService'][_0x2e640b(0x2c6)](_0x44f445);}}[_0x31dfc7(0x2b1)](){const _0x38245f=_0x31dfc7;return this[_0x38245f(0x359)]===0x0?!0x0:this[_0x38245f(0x359)]-this[_0x38245f(0x2a8)]>0x0;}['_clearPolling'](){const _0x590830=_0x31dfc7;this[_0x590830(0x269)]&&(clearTimeout(this[_0x590830(0x269)]),this[_0x590830(0x269)]=null);}[_0x31dfc7(0x213)](){const _0x21c354=_0x31dfc7;this[_0x21c354(0x162)][_0x21c354(0x1d0)]({'content':this[_0x21c354(0x254)]['t']('formula.calculation.waiting'),'type':T[_0x21c354(0x2a7)][_0x21c354(0x302)]});}[_0x31dfc7(0x299)](_0xd02db8){const _0x2e3f58=_0x31dfc7;for(const _0x21d567 of _0xd02db8){const {unitId:_0x226e55,sheetId:_0x45b2b1,range:_0x1296a3}=_0x21d567,_0x4fba6c=this[_0x2e3f58(0x165)][_0x2e3f58(0x346)](_0x226e55);if(!_0x4fba6c)continue;const _0x388010=_0x4fba6c[_0x2e3f58(0x1f6)](_0x45b2b1);if(!_0x388010)continue;const _0x24ffe0=_0x388010[_0x2e3f58(0x1eb)]();for(let _0x8c9d32=_0x1296a3['startRow'];_0x8c9d32<=_0x1296a3[_0x2e3f58(0x344)];_0x8c9d32++)for(let _0x2925b5=_0x1296a3[_0x2e3f58(0x259)];_0x2925b5<=_0x1296a3['endColumn'];_0x2925b5++){const _0x372977=_0x24ffe0[_0x2e3f58(0x1e1)](_0x8c9d32,_0x2925b5);if(_0x372977&&(a[_0x2e3f58(0xef)](_0x372977['f'])||a[_0x2e3f58(0x103)](_0x372977['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0x31dfc7(0x2ff)](R[_0x31dfc7(0x31f)])),A(0x1,a[_0x31dfc7(0x11c)]),A(0x2,a[_0x31dfc7(0x2f2)]),A(0x3,a[_0x31dfc7(0x2ff)](X[_0x31dfc7(0x2dd)])),A(0x4,a[_0x31dfc7(0x212)]),A(0x5,a['ILogService']),A(0x6,a[_0x31dfc7(0x2ff)](a[_0x31dfc7(0x2e1)]))],ie);var ss=Object[_0x31dfc7(0x1c5)],is=(_0x2db3a7,_0x8fad36,_0xfcb536,_0x32e02f)=>{const _0x9f9b1b=_0x31dfc7;for(var _0x34e7d0=_0x32e02f>0x1?void 0x0:_0x32e02f?ss(_0x8fad36,_0xfcb536):_0x8fad36,_0x12fc9f=_0x2db3a7[_0x9f9b1b(0x2f8)]-0x1,_0xade62e;_0x12fc9f>=0x0;_0x12fc9f--)(_0xade62e=_0x2db3a7[_0x12fc9f])&&(_0x34e7d0=_0xade62e(_0x34e7d0)||_0x34e7d0);return _0x34e7d0;},Ie=(_0x4e733c,_0x21828f)=>(_0x271c2a,_0x1b2c03)=>_0x21828f(_0x271c2a,_0x1b2c03,_0x4e733c);let Ce=class extends a[_0x31dfc7(0x198)]{constructor(_0x1a4d2b,_0xb5b365,_0x27f11a){const _0x3c9723=_0x31dfc7;super(),_(this,_0x3c9723(0x2e4),new Map()),_(this,_0x3c9723(0x2d4),new Map()),_(this,'_disabled',!0x1),(this[_0x3c9723(0x1ce)]=_0x1a4d2b,this['_localStorageService']=_0xb5b365,this[_0x3c9723(0x1b2)]=_0x27f11a);}[_0x31dfc7(0xc1)](){const _0x30ed07=_0x31dfc7;this[_0x30ed07(0x1d2)]=!0x0;}['enableLocalCache'](){const _0x5de768=_0x31dfc7;this[_0x5de768(0x1d2)]=!0x1;}get[_0x31dfc7(0x1b4)](){return this['_saveTaskMap'];}[_0x31dfc7(0x355)](){const _0x2a876a=_0x31dfc7;this['exhaustSavingTask']()[_0x2a876a(0xe3)](()=>super[_0x2a876a(0x355)]());}async[_0x31dfc7(0x1c4)](_0xf8b8ff){const _0x11f971=_0x31dfc7;return this['_disabled']?null:this[_0x11f971(0x118)]['getItem'](u['getLocalCacheKey'](_0xf8b8ff));}async['saveOfflineData'](_0x1b4a9b,_0x52cba6){const _0x18c07e=_0x31dfc7;return!!this['_localStorageService'][_0x18c07e(0x30d)](_0x1b4a9b,_0x52cba6);}['updateOfflineData'](_0x421adb,_0x243223,_0x5f39b5,_0x3eef9f){const _0x54db8f=_0x31dfc7,_0x420088=this[_0x54db8f(0x1b2)][_0x54db8f(0x148)](_0x421adb);this[_0x54db8f(0x2e4)][_0x54db8f(0xdf)](_0x421adb,{'unitID':_0x421adb,'type':_0x243223,'awaitingChangeset':_0x5f39b5,'mutations':_0x3eef9f,'rev':_0x420088}),this['_saveTaskMap'][_0x54db8f(0xb4)](_0x421adb)||this[_0x54db8f(0x1d3)](_0x421adb);}[_0x31dfc7(0x1d3)](_0x3ffb07){const _0x5a9132=_0x31dfc7,_0x27c472=this[_0x5a9132(0x251)]();_0x27c472===0x0?this['_saveCache'](_0x3ffb07):this[_0x5a9132(0x2d4)]['set'](_0x3ffb07,setTimeout(()=>this[_0x5a9132(0xcc)](_0x3ffb07),_0x27c472));}[_0x31dfc7(0x251)](){const _0x550f99=_0x31dfc7;var _0x6f1894;return(_0x6f1894=this['_configService'][_0x550f99(0x1ec)](u[_0x550f99(0x2cf)]))!=null?_0x6f1894:u[_0x550f99(0x239)];}[_0x31dfc7(0xcc)](_0x1af432){const _0x350cd3=_0x31dfc7,_0xaeaf41=this[_0x350cd3(0x2d4)][_0x350cd3(0x2cb)](_0x1af432);return _0xaeaf41!==void 0x0&&window['clearTimeout'](_0xaeaf41),this[_0x350cd3(0x118)]['setItem'](u[_0x350cd3(0x2b3)](_0x1af432),this[_0x350cd3(0x2e4)]['get'](_0x1af432))[_0x350cd3(0xe3)](()=>this[_0x350cd3(0x2d4)][_0x350cd3(0x319)](_0x1af432));}async['exhaustSavingTask'](){const _0xe08b6e=_0x31dfc7,_0x35078e=[];this[_0xe08b6e(0x2d4)][_0xe08b6e(0x1da)]((_0x566deb,_0x303047)=>{const _0x374b1d=_0xe08b6e;window[_0x374b1d(0x136)](_0x566deb),_0x35078e['push'](this['_saveCache'](_0x303047)[_0x374b1d(0xe3)](()=>{const _0x38de77=_0x374b1d;this[_0x38de77(0x2d4)]['delete'](_0x303047);}));}),await Promise[_0xe08b6e(0x193)](_0x35078e);}};Ce=is([Ie(0x0,a[_0x31dfc7(0x2f2)]),Ie(0x1,a[_0x31dfc7(0x266)]),Ie(0x2,a[_0x31dfc7(0x2ff)](g[_0x31dfc7(0x1ac)]))],Ce);class ke extends a['RxDisposable']{constructor(){const _0x24f997=_0x31dfc7;super(),_(this,_0x24f997(0x209)),this[_0x24f997(0x209)]=I[_0x24f997(0x27f)](window,_0x24f997(0x236))[_0x24f997(0x363)](I['takeUntil'](this[_0x24f997(0x2f6)]),I[_0x24f997(0x29a)](0x1),I['mapTo'](void 0x0));}[_0x31dfc7(0x240)](_0x21f45e,_0xac9d10,_0x3e8a2e=!0x1){const _0x464fe5=_0x31dfc7,_0x4bef7e=new URL(window['location'][_0x464fe5(0xf8)]);_0x4bef7e[_0x464fe5(0xb9)][_0x464fe5(0xdf)](_0x21f45e,_0xac9d10),_0x3e8a2e?window[_0x464fe5(0x332)][_0x464fe5(0x202)]('','',_0x4bef7e[_0x464fe5(0x343)]()):window[_0x464fe5(0x332)][_0x464fe5(0x159)]('','',_0x4bef7e[_0x464fe5(0x343)]());}[_0x31dfc7(0x31a)](_0x498d59,_0x4367f6=!0x1){const _0x527475=_0x31dfc7,_0x51bad1=new URL(window['location']['href']);_0x51bad1[_0x527475(0xb9)][_0x527475(0x319)](_0x498d59),_0x4367f6?window[_0x527475(0x332)][_0x527475(0x202)]('','',_0x51bad1[_0x527475(0x343)]()):window[_0x527475(0x332)][_0x527475(0x159)]('','',_0x51bad1[_0x527475(0x343)]());}[_0x31dfc7(0x310)](_0x75f097){const _0x4a94d8=_0x31dfc7;var _0x28db2c;return(_0x28db2c=new URL(window[_0x4a94d8(0x18e)][_0x4a94d8(0xf8)])[_0x4a94d8(0xb9)][_0x4a94d8(0x2cb)](_0x75f097))!=null?_0x28db2c:void 0x0;}}var ns=Object[_0x31dfc7(0x1b8)],rs=Object[_0x31dfc7(0x1c5)],os=(_0x3923de,_0x293a25,_0x341e10)=>_0x293a25 in _0x3923de?ns(_0x3923de,_0x293a25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x341e10}):_0x3923de[_0x293a25]=_0x341e10,as=(_0x209149,_0x483b1f,_0x21890b,_0x1a6344)=>{for(var _0x5d93bd=_0x1a6344>0x1?void 0x0:_0x1a6344?rs(_0x483b1f,_0x21890b):_0x483b1f,_0x3a43cd=_0x209149['length']-0x1,_0x8752aa;_0x3a43cd>=0x0;_0x3a43cd--)(_0x8752aa=_0x209149[_0x3a43cd])&&(_0x5d93bd=_0x8752aa(_0x5d93bd)||_0x5d93bd);return _0x5d93bd;},de=(_0x2380d6,_0x48d706)=>(_0x3d04c0,_0x1833f4)=>_0x48d706(_0x3d04c0,_0x1833f4,_0x2380d6),cs=(_0x508537,_0x11a274,_0x45ceb8)=>os(_0x508537,_0x11a274+'',_0x45ceb8);const ls=_0x31dfc7(0x25d);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x31dfc7(0x315)]{constructor(_0x1813e1=Le,_0x560bb0,_0x3b8f00,_0x1e7f1d){const _0xd9673d=_0x31dfc7;super(),this[_0xd9673d(0xca)]=_0x1813e1,this[_0xd9673d(0x146)]=_0x560bb0,this[_0xd9673d(0x308)]=_0x3b8f00,this[_0xd9673d(0x1ce)]=_0x1e7f1d;const {..._0x3f2c30}=a[_0xd9673d(0x114)]({},Le,this[_0xd9673d(0xca)]);this['_configService'][_0xd9673d(0x342)](kt,_0x3f2c30);}[_0x31dfc7(0x1a8)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x31dfc7(0x183)](){const _0x591a3e=_0x31dfc7;this[_0x591a3e(0xf1)]();}[_0x31dfc7(0x2c7)](){const _0x2e94ef=_0x31dfc7;var _0x196dfb;const _0x1d2d9c=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X['ISocketService'],{'useClass':X[_0x2e94ef(0x249)]}],[u['ILocalCacheService'],{'useClass':Ce}],[exports[_0x2e94ef(0x2a5)]],[se],[Z],[F],[fe],[exports[_0x2e94ef(0x29f)]]];a[_0x2e94ef(0xc3)](this[_0x2e94ef(0x308)],a[_0x2e94ef(0x24c)](_0x1d2d9c,(_0x196dfb=this[_0x2e94ef(0xca)])==null?void 0x0:_0x196dfb['override']));}['_registerRenderDependencies'](){const _0xded752=_0x31dfc7;this[_0xded752(0x33f)](this[_0xded752(0x146)][_0xded752(0xc2)](a[_0xded752(0xe0)]['UNIVER_DOC'],[ge])),this[_0xded752(0x33f)](this[_0xded752(0x146)]['registerRenderModule'](a[_0xded752(0xe0)][_0xded752(0x323)],[Ee]));}[_0x31dfc7(0x32d)](){const _0x154072=_0x31dfc7;a[_0x154072(0x101)](this[_0x154072(0x308)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[se],[Z],[exports['CollaborationDataLoaderController']],[ie]]);}},cs(exports['UniverCollaborationClientUIPlugin'],_0x31dfc7(0x124),ls),exports['UniverCollaborationClientUIPlugin']=as([a['DependentOn'](u[_0x31dfc7(0x309)]),de(0x1,C[_0x31dfc7(0x157)]),de(0x2,a['Inject'](a['Injector'])),de(0x3,a[_0x31dfc7(0x2f2)])],exports['UniverCollaborationClientUIPlugin']);var _s=Object[_0x31dfc7(0x1c5)],hs=(_0xaa19b9,_0x2db08d,_0x4f4869,_0x5e6b41)=>{const _0x1c4ac6=_0x31dfc7;for(var _0x5207aa=_0x5e6b41>0x1?void 0x0:_0x5e6b41?_s(_0x2db08d,_0x4f4869):_0x2db08d,_0xbb02bb=_0xaa19b9[_0x1c4ac6(0x2f8)]-0x1,_0x55d77a;_0xbb02bb>=0x0;_0xbb02bb--)(_0x55d77a=_0xaa19b9[_0xbb02bb])&&(_0x5207aa=_0x55d77a(_0x5207aa)||_0x5207aa);return _0x5207aa;},W=(_0x2de54d,_0x31362c)=>(_0x4e35b5,_0x216503)=>_0x31362c(_0x4e35b5,_0x216503,_0x2de54d);exports[_0x31dfc7(0x24d)]=class extends u[_0x31dfc7(0x24e)]{constructor(_0x34f259,_0x173dde,_0x34b548,_0xe85f23,_0x14547c){super(_0x34f259,_0x173dde,_0x34b548,_0xe85f23,_0x14547c);}async['createSocket'](_0xda6b12){const _0x2b43ee=_0x31dfc7,_0x51cd08=await this[_0x2b43ee(0xb0)](),_0x226ee5=this[_0x2b43ee(0x116)](_0xda6b12,_0x51cd08);return this[_0x2b43ee(0x223)](_0x226ee5);}['_createSocketURL'](_0x40a0f7,_0x2af5ab){const _0x3908e1=_0x31dfc7,_0x5adcd2=typeof window>'u'?new URL(_0x40a0f7):new URL(_0x40a0f7,window[_0x3908e1(0x18e)][_0x3908e1(0x1f2)]);_0x5adcd2['searchParams'][_0x3908e1(0xdf)](_0x3908e1(0xf7),_0x2af5ab);const _0x203443=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3908e1(0x18e)][_0x3908e1(0xc5)]);return _0x203443[_0x3908e1(0x2cb)](_0x3908e1(0xcb))&&_0x5adcd2[_0x3908e1(0xb9)][_0x3908e1(0xdf)](_0x3908e1(0xcb),_0x203443[_0x3908e1(0x2cb)]('runId')),_0x5adcd2['toString']();}async['_getSessionTicket'](){const _0x2c8afd=_0x31dfc7;var _0x5cad13,_0xfa87b2,_0x19e807;const _0xe9ad55=this[_0x2c8afd(0x1ce)][_0x2c8afd(0x1ec)](u[_0x2c8afd(0x1f5)]),_0x42029a=(_0x5cad13=_0xe9ad55==null?void 0x0:_0xe9ad55['wsSessionTicketUrl'])!=null?_0x5cad13:u[_0x2c8afd(0x281)];return(_0x19e807=(_0xfa87b2=(await this[_0x2c8afd(0x1ad)][_0x2c8afd(0x2cb)](_0x42029a,{'headers':{'Content-Type':_0x2c8afd(0x301)}}))[_0x2c8afd(0x224)])==null?void 0x0:_0xfa87b2['ticket'])!=null?_0x19e807:'';}},exports[_0x31dfc7(0x24d)]=hs([W(0x0,a['Inject'](a[_0x31dfc7(0x250)])),W(0x1,a['Inject'](X[_0x31dfc7(0x2dd)])),W(0x2,a[_0x31dfc7(0x2f2)]),W(0x3,a['ILogService']),W(0x4,g[_0x31dfc7(0x347)])],exports[_0x31dfc7(0x24d)]);var us=Object[_0x31dfc7(0x1c5)],Is=(_0x48f9dd,_0x5d0a7f,_0x5eba35,_0x46393a)=>{const _0x487612=_0x31dfc7;for(var _0x150d5c=_0x46393a>0x1?void 0x0:_0x46393a?us(_0x5d0a7f,_0x5eba35):_0x5d0a7f,_0x522375=_0x48f9dd[_0x487612(0x2f8)]-0x1,_0x171a59;_0x522375>=0x0;_0x522375--)(_0x171a59=_0x48f9dd[_0x522375])&&(_0x150d5c=_0x171a59(_0x150d5c)||_0x150d5c);return _0x150d5c;},Se=(_0x1f8cd3,_0x36fcce)=>(_0x345c7a,_0x3b0d69)=>_0x36fcce(_0x345c7a,_0x3b0d69,_0x1f8cd3);exports[_0x31dfc7(0x2bd)]=class extends a[_0x31dfc7(0x198)]{constructor(_0x423579,_0x281ddb,_0x4e3792){const _0x5c7c9f=_0x31dfc7;super(),this['_instanceService']=_0x423579,this['_httpService']=_0x281ddb,this[_0x5c7c9f(0x1ce)]=_0x4e3792;}async[_0x31dfc7(0x2c8)](_0x4e875c,_0x20f00d,_0x109ee9,..._0x1f1ab2){const _0x15d267=_0x31dfc7;var _0x43c083,_0x224185,_0x121e62,_0x3cc44c;const _0x1cfe65=this[_0x15d267(0xea)][_0x15d267(0x200)]();if(!_0x1cfe65)throw new Error(_0x15d267(0x210));const _0x9179b5=((_0x43c083=this[_0x15d267(0x1ce)]['getConfig'](u[_0x15d267(0x12c)]))!=null?_0x43c083:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x4e875c+_0x15d267(0x20c)+_0x20f00d,_0x3902e0=new URL(window[_0x15d267(0x18e)][_0x15d267(0xf8)]),_0x28a3f5={'scriptId':_0x4e875c,'runId':(_0x224185=_0x3902e0[_0x15d267(0xb9)][_0x15d267(0x2cb)](_0x15d267(0xcb)))!=null?_0x224185:'','function':_0x20f00d,'unitId':_0x1cfe65['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x1f1ab2),'invokeId':(_0x121e62=_0x109ee9[_0x15d267(0x2e8)])!=null?_0x121e62:'','executionId':(_0x3cc44c=_0x109ee9[_0x15d267(0x1b6)])!=null?_0x3cc44c:''};try{const _0x5525a2=await this[_0x15d267(0x1ad)][_0x15d267(0x228)](_0x9179b5,{'body':_0x28a3f5});return _0x5525a2['body'][_0x15d267(0x2c6)]&&_0x5525a2[_0x15d267(0x224)][_0x15d267(0x2c6)]['code']!==G['OK']?'Failed':_0x5525a2[_0x15d267(0x224)]['result'];}catch{return'Failed';}}},exports['RemoteUniscriptService']=Is([Se(0x0,a[_0x31dfc7(0x212)]),Se(0x1,a[_0x31dfc7(0x2ff)](X['HTTPService'])),Se(0x2,a[_0x31dfc7(0x2f2)])],exports[_0x31dfc7(0x2bd)]);const Pe=0x7530,we=_0x31dfc7(0x33e);class ds extends a[_0x31dfc7(0x198)]{constructor(){const _0x17d020=_0x31dfc7;super(),_(this,_0x17d020(0x326),a[_0x17d020(0x2de)]()),_(this,_0x17d020(0x1a6),new Set()),_(this,_0x17d020(0x1ff),new Map()),_(this,_0x17d020(0x16d),null),_(this,_0x17d020(0x2f4),new Map()),_(this,_0x17d020(0x2d6),new Map()),this[_0x17d020(0x15b)]();}[_0x31dfc7(0x355)](){const _0x42e268=_0x31dfc7;super['dispose'](),this['_clearOtherTimers'][_0x42e268(0x1da)]((_0x21ffac,_0x4b124b)=>this[_0x42e268(0x35c)](_0x4b124b)),this[_0x42e268(0x16d)]&&window[_0x42e268(0x350)](this[_0x42e268(0x16d)]);}['getUnitStatus$'](_0x1ad5f5){const _0x5de800=_0x31dfc7;return this['_ensureSubject'](_0x1ad5f5)[_0x5de800(0x363)](I[_0x5de800(0x253)]());}['editingUnit'](_0x1cd20b){const _0x4a92a2=_0x31dfc7;this[_0x4a92a2(0x1a6)]['size']===0x0&&this[_0x4a92a2(0x2bc)](),this[_0x4a92a2(0x1a6)][_0x4a92a2(0x1c3)](_0x1cd20b),this[_0x4a92a2(0x1aa)]({'type':0x0,'memberID':this[_0x4a92a2(0x326)],'unitIDs':[_0x1cd20b],'isForwarded':!0x1});}[_0x31dfc7(0x178)](_0x5b1ff5){const _0x58a888=_0x31dfc7;this[_0x58a888(0x1a6)][_0x58a888(0x319)](_0x5b1ff5),this[_0x58a888(0x1a6)]['size']===0x0&&this[_0x58a888(0x16d)]&&window['clearInterval'](this[_0x58a888(0x16d)]);}[_0x31dfc7(0x15b)](){const _0x16fe2d=_0x31dfc7;this['disposeWithMe'](a['toDisposable'](I['fromEvent'](window,_0x16fe2d(0xf9))[_0x16fe2d(0x21b)](_0x5f0f0e=>{const _0x110990=_0x16fe2d;if(_0x5f0f0e[_0x110990(0x1f3)]!==we||!_0x5f0f0e[_0x110990(0x1cb)])return;const _0x360f36=JSON[_0x110990(0x257)](_0x5f0f0e[_0x110990(0x1cb)]);this[_0x110990(0xfd)](_0x360f36);}))),window[_0x16fe2d(0xbf)]('unload',()=>this[_0x16fe2d(0x1aa)]({'type':0x1,'memberID':this[_0x16fe2d(0x326)],'unitIDs':Array[_0x16fe2d(0x2d3)](this[_0x16fe2d(0x1a6)])}));}[_0x31dfc7(0xfd)](_0x3936de){const _0x4afac6=_0x31dfc7;switch(_0x3936de[_0x4afac6(0x10c)]){case 0x0:this[_0x4afac6(0x261)](_0x3936de);break;case 0x1:this[_0x4afac6(0x21f)](_0x3936de);break;case 0x2:this[_0x4afac6(0x320)](_0x3936de);break;}}[_0x31dfc7(0x261)](_0x50b086){const _0x92b46b=_0x31dfc7,{unitIDs:_0x4b094e,memberID:_0x1184e5,isForwarded:_0x122ffa}=_0x50b086;_0x4b094e[_0x92b46b(0x1da)](_0x16a338=>{const _0x46f7fc=_0x92b46b;if(!_0x122ffa&&this[_0x46f7fc(0x1ff)][_0x46f7fc(0xb4)](_0x16a338)&&this['_ensureSubject'](_0x16a338)['next'](u['UnitStatus'][_0x46f7fc(0x25e)]),!this[_0x46f7fc(0x1ff)][_0x46f7fc(0xb4)](_0x16a338)||!this[_0x46f7fc(0x1ff)]['get'](_0x16a338)[_0x46f7fc(0xb4)](_0x1184e5)){const _0x3dd37e=this[_0x46f7fc(0x1ff)][_0x46f7fc(0x2cb)](_0x16a338)||new Set();_0x3dd37e[_0x46f7fc(0x1c3)](_0x1184e5),this[_0x46f7fc(0x1ff)][_0x46f7fc(0xdf)](_0x16a338,_0x3dd37e),this[_0x46f7fc(0x135)](_0x1184e5);}}),_0x122ffa||this[_0x92b46b(0x1aa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x31dfc7(0x135)](_0x4df730){const _0x3754f2=_0x31dfc7;this[_0x3754f2(0x35c)](_0x4df730);const _0x5280f8=window[_0x3754f2(0x197)](()=>{const _0x58c79f=_0x3754f2;this[_0x58c79f(0x1ff)][_0x58c79f(0x1da)](_0x25c971=>{const _0x1b8f4b=_0x58c79f;_0x25c971[_0x1b8f4b(0x319)](_0x4df730);});},Pe*0x2);this[_0x3754f2(0x2f4)][_0x3754f2(0xdf)](_0x4df730,_0x5280f8);}[_0x31dfc7(0x35c)](_0x427a6c){const _0x100c7e=_0x31dfc7;if(this['_clearOtherTimers'][_0x100c7e(0xb4)](_0x427a6c)){const _0x211fd2=this['_clearOtherTimers']['get'](_0x427a6c);_0x211fd2&&window[_0x100c7e(0x136)](_0x211fd2),this['_clearOtherTimers']['set'](_0x427a6c,null);}}[_0x31dfc7(0x21f)](_0x406a56){const _0x4d0302=_0x31dfc7,{memberID:_0x5a0976,unitIDs:_0x4606e3}=_0x406a56;_0x4606e3[_0x4d0302(0x1da)](_0x5165ac=>{const _0x4cd691=_0x4d0302;var _0x50a170;const _0x347092=this[_0x4cd691(0x1ff)][_0x4cd691(0x2cb)](_0x5165ac);_0x347092&&(_0x347092[_0x4cd691(0x319)](_0x5a0976),(_0x50a170=this[_0x4cd691(0x113)](_0x5165ac))==null||_0x50a170[_0x4cd691(0x284)](_0x347092[_0x4cd691(0x30f)]===0x0?u[_0x4cd691(0x357)][_0x4cd691(0x2d1)]:u[_0x4cd691(0x357)][_0x4cd691(0x25e)]));}),this['_removeClearOtherTimer'](_0x5a0976);}['_handleHeartbeatEvent'](_0x535bd8){const _0x8adec3=_0x31dfc7;this['_scheduleClearOtherTimer'](_0x535bd8[_0x8adec3(0x297)]);}[_0x31dfc7(0x1aa)](_0x1c86d8){const _0x2b1c29=_0x31dfc7;localStorage[_0x2b1c29(0x30d)](we,JSON[_0x2b1c29(0x2e5)](_0x1c86d8));}['_scheduleHeartbeat'](){const _0x48e8e9=_0x31dfc7;this[_0x48e8e9(0x16d)]=window['setInterval'](()=>{const _0x7fe674=_0x48e8e9;this['_send']({'type':0x2,'memberID':this[_0x7fe674(0x326)]});},Pe);}[_0x31dfc7(0x113)](_0x115bdb){const _0x4baaba=_0x31dfc7;return this['_unitStatus'][_0x4baaba(0xb4)](_0x115bdb)||this[_0x4baaba(0x2d6)][_0x4baaba(0xdf)](_0x115bdb,new I[(_0x4baaba(0x312))](u[_0x4baaba(0x357)][_0x4baaba(0x2d1)])),this[_0x4baaba(0x2d6)][_0x4baaba(0x2cb)](_0x115bdb);}}exports[_0x31dfc7(0x333)]=Te,exports[_0x31dfc7(0xc4)]=Fe,exports['WebBrowserSingleActiveUnitService']=ds,exports[_0x31dfc7(0x2d5)]=ke;
|