@univerjs-pro/collaboration-client-ui 0.10.8-nightly.202509200616 → 0.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4aef(){const _0x30160c=['6190506spRsnP','20aRdTRK','16VhuCsY','476089VxmLpE','4883292ikcfkN','4282185xPoMjg','26667uxLuze','6PocjxR','get','runOnServer','4900208aPQyAv','4693353IELfhr','FUniver','RemoteUniscriptService'];_0x4aef=function(){return _0x30160c;};return _0x4aef();}const _0x3ca09a=_0x5851;(function(_0xe2514f,_0x50b58d){const _0x272bee=_0x5851,_0x13088c=_0xe2514f();while(!![]){try{const _0x43d2ef=parseInt(_0x272bee(0x113))/0x1*(-parseInt(_0x272bee(0x117))/0x2)+parseInt(_0x272bee(0x116))/0x3*(parseInt(_0x272bee(0x112))/0x4)+parseInt(_0x272bee(0x115))/0x5+-parseInt(_0x272bee(0x110))/0x6+parseInt(_0x272bee(0x10d))/0x7+parseInt(_0x272bee(0x10c))/0x8+parseInt(_0x272bee(0x114))/0x9*(parseInt(_0x272bee(0x111))/0xa);if(_0x43d2ef===_0x50b58d)break;else _0x13088c['push'](_0x13088c['shift']());}catch(_0x528f93){_0x13088c['push'](_0x13088c['shift']());}}}(_0x4aef,0xc359c));function _0x5851(_0x566e6a,_0x1a7b17){const _0x4aef1d=_0x4aef();return _0x5851=function(_0x58514c,_0x148c68){_0x58514c=_0x58514c-0x10c;let _0x4246ba=_0x4aef1d[_0x58514c];return _0x4246ba;},_0x5851(_0x566e6a,_0x1a7b17);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x3ca09a(0x10e)]{['runOnServer'](_0x5113eb,_0x517be9,..._0x2b240f){const _0x40f3d5=_0x3ca09a;return this['_injector'][_0x40f3d5(0x118)](t[_0x40f3d5(0x10f)])[_0x40f3d5(0x119)](_0x5113eb,_0x517be9,{},..._0x2b240f);}}e['FUniver']['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x56e0a9=_0x4119;(function(_0x653a0e,_0x5791fd){const _0x2cf722=_0x4119,_0x42620e=_0x653a0e();while(!![]){try{const _0x2703d4=-parseInt(_0x2cf722(0x291))/0x1+-parseInt(_0x2cf722(0x2f0))/0x2+parseInt(_0x2cf722(0x1ee))/0x3*(parseInt(_0x2cf722(0x2a2))/0x4)+-parseInt(_0x2cf722(0x2ae))/0x5*(-parseInt(_0x2cf722(0x23c))/0x6)+-parseInt(_0x2cf722(0x383))/0x7+-parseInt(_0x2cf722(0x1d6))/0x8*(-parseInt(_0x2cf722(0x277))/0x9)+parseInt(_0x2cf722(0x280))/0xa;if(_0x2703d4===_0x5791fd)break;else _0x42620e['push'](_0x42620e['shift']());}catch(_0x3c587f){_0x42620e['push'](_0x42620e['shift']());}}}(_0x4745,0x93c29));var We=Object[_0x56e0a9(0x35c)],Ve=(_0x2b3251,_0xeff127,_0x446759)=>_0xeff127 in _0x2b3251?We(_0x2b3251,_0xeff127,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x446759}):_0x2b3251[_0xeff127]=_0x446759,h=(_0xca6d0f,_0x274e02,_0x2a46ac)=>Ve(_0xca6d0f,typeof _0x274e02!='symbol'?_0x274e02+'':_0x274e02,_0x2a46ac);Object[_0x56e0a9(0x35c)](exports,Symbol[_0x56e0a9(0x367)],{'value':_0x56e0a9(0x2ac)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x23f539=_0x56e0a9;return b=Object[_0x23f539(0x2b5)]||function(_0x38fb19){const _0x4f068c=_0x23f539;for(var _0x49430f,_0x1232e5=0x1,_0x506525=arguments[_0x4f068c(0x202)];_0x1232e5<_0x506525;_0x1232e5++){_0x49430f=arguments[_0x1232e5];for(var _0x12cf3e in _0x49430f)Object['prototype'][_0x4f068c(0x214)]['call'](_0x49430f,_0x12cf3e)&&(_0x38fb19[_0x12cf3e]=_0x49430f[_0x12cf3e]);}return _0x38fb19;},b['apply'](this,arguments);},Ke=function(_0x414418,_0x27f1cd){const _0x10e1ce=_0x56e0a9;var _0x307a15={};for(var _0x4271b6 in _0x414418)Object[_0x10e1ce(0x30f)][_0x10e1ce(0x214)][_0x10e1ce(0x240)](_0x414418,_0x4271b6)&&_0x27f1cd[_0x10e1ce(0x300)](_0x4271b6)<0x0&&(_0x307a15[_0x4271b6]=_0x414418[_0x4271b6]);if(_0x414418!=null&&typeof Object[_0x10e1ce(0x231)]==_0x10e1ce(0x29e)){for(var _0x4395a8=0x0,_0x4271b6=Object[_0x10e1ce(0x231)](_0x414418);_0x4395a8<_0x4271b6[_0x10e1ce(0x202)];_0x4395a8++)_0x27f1cd[_0x10e1ce(0x300)](_0x4271b6[_0x4395a8])<0x0&&Object[_0x10e1ce(0x30f)]['propertyIsEnumerable'][_0x10e1ce(0x240)](_0x414418,_0x4271b6[_0x4395a8])&&(_0x307a15[_0x4271b6[_0x4395a8]]=_0x414418[_0x4271b6[_0x4395a8]]);}return _0x307a15;},ge=M[_0x56e0a9(0x38c)](function(_0x4d7b08,_0x47a1d2){const _0x325dba=_0x56e0a9;var _0x5d7b83=_0x4d7b08[_0x325dba(0x322)],_0x18b166=_0x4d7b08['id'],_0x3453ec=_0x4d7b08[_0x325dba(0x3e9)],_0x30d119=_0x4d7b08[_0x325dba(0x24f)],_0x21a8a9=Ke(_0x4d7b08,[_0x325dba(0x322),'id','className','extend']),_0xe47297=_0x325dba(0x31c)[_0x325dba(0x265)](_0x18b166,'\x20')[_0x325dba(0x265)](_0x3453ec||'')[_0x325dba(0x30e)](),_0x20ec61=M[_0x325dba(0x260)]('_'[_0x325dba(0x265)](Je()));return Pe(_0x5d7b83,''['concat'](_0x18b166),{'defIds':_0x5d7b83['defIds'],'idSuffix':_0x20ec61['current']},b({'ref':_0x47a1d2,'className':_0xe47297},_0x21a8a9),_0x30d119);});function Pe(_0x268b79,_0x58230f,_0x31cb45,_0x2ac852,_0x530622){const _0x5afe5f=_0x56e0a9;return M['createElement'](_0x268b79[_0x5afe5f(0x241)],b(b({'key':_0x58230f},qe(_0x268b79,_0x31cb45,_0x530622)),_0x2ac852),(ze(_0x268b79,_0x31cb45)[_0x5afe5f(0x3d6)]||[])['map'](function(_0x125b09,_0xc14385){const _0x45ffb2=_0x5afe5f;return Pe(_0x125b09,''[_0x45ffb2(0x265)](_0x58230f,'-')[_0x45ffb2(0x265)](_0x268b79['tag'],'-')[_0x45ffb2(0x265)](_0xc14385),_0x31cb45,void 0x0,_0x530622);}));}function qe(_0x5c0f8d,_0x418978,_0x468878){const _0x104294=_0x56e0a9;var _0x2d2443=b({},_0x5c0f8d[_0x104294(0x1c7)]);_0x468878!=null&&_0x468878[_0x104294(0x1bc)]&&_0x2d2443[_0x104294(0x2ba)]===_0x104294(0x1bc)&&(_0x2d2443[_0x104294(0x2ba)]=_0x468878[_0x104294(0x1bc)]),_0x5c0f8d[_0x104294(0x241)]===_0x104294(0x24e)&&_0x2d2443['id']&&(_0x2d2443['id']=_0x2d2443['id']+_0x418978[_0x104294(0x1a9)]),Object[_0x104294(0x196)](_0x2d2443)[_0x104294(0x302)](function(_0x4c2c01){const _0x6902ca=_0x104294;var _0x107d90=_0x4c2c01[0x0],_0x5127e6=_0x4c2c01[0x1];_0x107d90===_0x6902ca(0x24e)&&typeof _0x5127e6==_0x6902ca(0x359)&&(_0x2d2443[_0x107d90]=_0x5127e6['replace'](/url\(#(.*)\)/,_0x6902ca(0x2b9)[_0x6902ca(0x265)](_0x418978[_0x6902ca(0x1a9)],')')));});var _0x5cd798=_0x418978['defIds'];return!_0x5cd798||_0x5cd798['length']===0x0||(_0x5c0f8d[_0x104294(0x241)]===_0x104294(0x194)&&_0x2d2443[_0x104294(0x3aa)]&&(_0x2d2443[_0x104294(0x3aa)]=_0x2d2443['xlink:href']+_0x418978['idSuffix']),Object[_0x104294(0x196)](_0x2d2443)['forEach'](function(_0x51e669){const _0x7fd719=_0x104294;var _0xf22fa6=_0x51e669[0x0],_0x208dd8=_0x51e669[0x1];typeof _0x208dd8=='string'&&(_0x2d2443[_0xf22fa6]=_0x208dd8[_0x7fd719(0x3db)](/url\(#(.*)\)/,_0x7fd719(0x2b9)['concat'](_0x418978['idSuffix'],')')));})),_0x2d2443;}function ze(_0x785943,_0x30962f){const _0x52e8ad=_0x56e0a9;var _0x3e791d,_0x23e3cf=_0x30962f[_0x52e8ad(0x323)];return!_0x23e3cf||_0x23e3cf['length']===0x0?_0x785943:_0x785943[_0x52e8ad(0x241)]===_0x52e8ad(0x25c)&&(!((_0x3e791d=_0x785943[_0x52e8ad(0x3d6)])===null||_0x3e791d===void 0x0)&&_0x3e791d[_0x52e8ad(0x202)])?b(b({},_0x785943),{'children':_0x785943[_0x52e8ad(0x3d6)][_0x52e8ad(0x2f4)](function(_0x2ba224){const _0x215496=_0x52e8ad;return typeof _0x2ba224['attrs']['id']=='string'&&_0x23e3cf&&_0x23e3cf[_0x215496(0x2ff)](_0x2ba224[_0x215496(0x1c7)]['id'])?b(b({},_0x2ba224),{'attrs':b(b({},_0x2ba224[_0x215496(0x1c7)]),{'id':_0x2ba224[_0x215496(0x1c7)]['id']+_0x30962f[_0x215496(0x1a9)]})}):_0x2ba224;})}):_0x785943;}function Je(){const _0x4075a0=_0x56e0a9;return Math[_0x4075a0(0x1b8)]()[_0x4075a0(0x3c3)](0x24)[_0x4075a0(0x2e2)](0x2,0x8);}ge['displayName']=_0x56e0a9(0x2d3);function _0x4119(_0x1565f8,_0xa4f28c){const _0x4745a2=_0x4745();return _0x4119=function(_0x4119e2,_0x420f0d){_0x4119e2=_0x4119e2-0x193;let _0x1f4fad=_0x4745a2[_0x4119e2];return _0x1f4fad;},_0x4119(_0x1565f8,_0xa4f28c);}var Ze={'tag':_0x56e0a9(0x3e6),'attrs':{'xmlns':_0x56e0a9(0x219),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x56e0a9(0x380),'height':_0x56e0a9(0x380)},'children':[{'tag':'g','attrs':{'clipPath':_0x56e0a9(0x299)},'children':[{'tag':_0x56e0a9(0x200),'attrs':{'stroke':_0x56e0a9(0x267),'d':_0x56e0a9(0x337),'strokeLinecap':_0x56e0a9(0x1ce),'strokeLinejoin':_0x56e0a9(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x56e0a9(0x25c),'attrs':{},'children':[{'tag':_0x56e0a9(0x2d1),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x56e0a9(0x200),'attrs':{'fill':_0x56e0a9(0x1ff),'d':_0x56e0a9(0x2bf)}}]}]}],'defIds':[_0x56e0a9(0x26d)]},we=M[_0x56e0a9(0x38c)](function(_0x2a1185,_0x44afad){const _0x337a55=_0x56e0a9;return M['createElement'](ge,Object[_0x337a55(0x2b5)]({},_0x2a1185,{'id':_0x337a55(0x390),'ref':_0x44afad,'icon':Ze}));});we[_0x56e0a9(0x2df)]='OffLineIcon';var Qe={'tag':_0x56e0a9(0x3e6),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x56e0a9(0x29c),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x56e0a9(0x380)},'children':[{'tag':'g','attrs':{'clipPath':_0x56e0a9(0x408)},'children':[{'tag':_0x56e0a9(0x200),'attrs':{'stroke':'currentColor','d':_0x56e0a9(0x336),'strokeLinecap':_0x56e0a9(0x1ce),'strokeLinejoin':_0x56e0a9(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x56e0a9(0x25c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x56e0a9(0x200),'attrs':{'fill':_0x56e0a9(0x1ff),'d':_0x56e0a9(0x2bf),'transform':'translate(.97)'}}]}]}],'defIds':[_0x56e0a9(0x366)]},Ae=M['forwardRef'](function(_0x2e1cf9,_0xce7bfd){const _0x4fdca7=_0x56e0a9;return M[_0x4fdca7(0x315)](ge,Object[_0x4fdca7(0x2b5)]({},_0x2e1cf9,{'id':_0x4fdca7(0x3df),'ref':_0xce7bfd,'icon':Qe}));});Ae[_0x56e0a9(0x2df)]=_0x56e0a9(0x368);function et(_0x49ecc9){const _0x5a681a=_0x56e0a9;switch(_0x49ecc9){case u[_0x5a681a(0x3ca)][_0x5a681a(0x278)]:return _0x5a681a(0x3dc);case u[_0x5a681a(0x3ca)]['CONFLICT']:return _0x5a681a(0x3c4);case u['CollaborationStatus']['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x5a681a(0x3ca)][_0x5a681a(0x209)]:return'collabStatus.notCollab';case u[_0x5a681a(0x3ca)]['AWAITING']:case u[_0x5a681a(0x3ca)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x5a681a(0x3ca)][_0x5a681a(0x33c)]:case u[_0x5a681a(0x3ca)][_0x5a681a(0x24a)]:return _0x5a681a(0x3f4);}}function tt(_0x52ece5){const _0x59d8f0=_0x56e0a9,{status$:_0x5847cc}=_0x52ece5,_0x330f57=O[_0x59d8f0(0x34e)](_0x5847cc,u[_0x59d8f0(0x3ca)][_0x59d8f0(0x209)]),_0xddd0e1=O[_0x59d8f0(0x3d4)](a[_0x59d8f0(0x3ff)]),_0x10cddb=O[_0x59d8f0(0x3d4)](u[_0x59d8f0(0x30b)]),_0xc559bc=_0x330f57!==u[_0x59d8f0(0x3ca)][_0x59d8f0(0x278)],_0x1f25c6=_0xddd0e1['t'](et(_0x330f57)),_0x1eb8ae=_0xc559bc?P[_0x59d8f0(0x3bd)](Ae,{}):P[_0x59d8f0(0x3bd)](we,{}),_0x53f6ca=M[_0x59d8f0(0x351)](()=>{_0xc559bc||_0x10cddb['reconnect']();},[_0xc559bc,_0x10cddb]);function _0x3c4290(){const _0x26c683=_0x59d8f0;return P[_0x26c683(0x23d)](_0x26c683(0x2c9),{'className':_0x26c683(0x3d8),'onClick':_0x53f6ca,'children':[P[_0x26c683(0x3bd)](_0x26c683(0x2c9),{'className':D['clsx'](_0x26c683(0x1fd),{'univer-text-green-500':_0xc559bc,'univer-text-red-500':!_0xc559bc}),'children':_0x1eb8ae}),P[_0x26c683(0x3bd)](_0x26c683(0x2c9),{'className':_0x26c683(0x354),'children':_0x1f25c6})]});}return _0xc559bc?_0x3c4290():P[_0x59d8f0(0x3bd)](D['Tooltip'],{'title':_0xddd0e1['t']('collab-client.tooltip.reconnect'),'children':_0x3c4290()});}var st=Object[_0x56e0a9(0x2a6)],it=(_0x547d2f,_0x539e5c,_0x5519c5,_0x1a8045)=>{const _0x17f53b=_0x56e0a9;for(var _0x3efdf1=_0x1a8045>0x1?void 0x0:_0x1a8045?st(_0x539e5c,_0x5519c5):_0x539e5c,_0x43815a=_0x547d2f[_0x17f53b(0x202)]-0x1,_0x5c260a;_0x43815a>=0x0;_0x43815a--)(_0x5c260a=_0x547d2f[_0x43815a])&&(_0x3efdf1=_0x5c260a(_0x3efdf1)||_0x3efdf1);return _0x3efdf1;},V=(_0x47acb1,_0x528a79)=>(_0x3f6b7c,_0x487cee)=>_0x528a79(_0x3f6b7c,_0x487cee,_0x47acb1);exports[_0x56e0a9(0x31f)]=class extends a[_0x56e0a9(0x229)]{constructor(_0x42e20a,_0x51d5e9,_0x286271,_0x30ae8f){const _0x49aa02=_0x56e0a9;super(),h(this,'_status$',new d[(_0x49aa02(0x230))](u[_0x49aa02(0x3ca)][_0x49aa02(0x209)])),(this['_univerInstanceService']=_0x42e20a,this['_injector']=_0x51d5e9,this[_0x49aa02(0x26f)]=_0x286271,this['_uiPartsService']=_0x30ae8f,this[_0x49aa02(0x397)](),this[_0x49aa02(0x34c)]());}['_initStatusListener'](){const _0x11a148=_0x56e0a9;this[_0x11a148(0x39f)](this[_0x11a148(0x2f8)][_0x11a148(0x3f7)][_0x11a148(0x2d7)](d[_0x11a148(0x2c3)](()=>{const _0x509194=_0x11a148,_0x44b336=this['_univerInstanceService'][_0x509194(0x345)]();return _0x44b336?this[_0x509194(0x26f)][_0x509194(0x2f5)](_0x44b336['getUnitId']()):d['of'](null);}),d['switchMap'](_0x363f82=>_0x363f82?_0x363f82['status$']:d['of'](u[_0x11a148(0x3ca)][_0x11a148(0x209)])))[_0x11a148(0x2b1)](_0x292868=>{const _0x53a2eb=_0x11a148;this[_0x53a2eb(0x3fa)][_0x53a2eb(0x33d)](_0x292868);}));}['_initStatusComponent'](){const _0x4964eb=_0x56e0a9;this[_0x4964eb(0x39f)](this['_uiPartsService']['registerComponent'](O[_0x4964eb(0x1c3)][_0x4964eb(0x404)],()=>O[_0x4964eb(0x2eb)](nt({'status$':this['_status$'][_0x4964eb(0x290)]()}),this[_0x4964eb(0x263)])));}},exports['DesktopCollaborationStatusDisplayController']=it([V(0x0,a[_0x56e0a9(0x2b7)]),V(0x1,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x1dd)])),V(0x2,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x394)])),V(0x3,O[_0x56e0a9(0x20d)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x529329){const {status$:_0x5b4ef7}=_0x529329;return function(){const _0xf9ae80=_0x4119;return P[_0xf9ae80(0x3bd)](tt,{'status$':_0x5b4ef7});};}const me=a['createIdentifier'](_0x56e0a9(0x1da));var rt=Object[_0x56e0a9(0x2a6)],ot=(_0x2a9aec,_0xad7089,_0x736c9b,_0x5e5d66)=>{for(var _0x329d47=_0x5e5d66>0x1?void 0x0:_0x5e5d66?rt(_0xad7089,_0x736c9b):_0xad7089,_0x4125c1=_0x2a9aec['length']-0x1,_0x6b249f;_0x4125c1>=0x0;_0x4125c1--)(_0x6b249f=_0x2a9aec[_0x4125c1])&&(_0x329d47=_0x6b249f(_0x329d47)||_0x329d47);return _0x329d47;},k=(_0x33120c,_0x59c9a9)=>(_0x481dc6,_0x44fee7)=>_0x59c9a9(_0x481dc6,_0x44fee7,_0x33120c);exports[_0x56e0a9(0x304)]=class extends a[_0x56e0a9(0x356)]{constructor(_0x345a4b,_0xe159a1,_0x5b6c11,_0x3e08d1,_0x5e0ddf){const _0x305346=_0x56e0a9;super(),this[_0x305346(0x1c4)]=_0x345a4b,this[_0x305346(0x2c0)]=_0xe159a1,this[_0x305346(0x1c5)]=_0x5b6c11,this['_dataLoaderService']=_0x3e08d1,_0x5e0ddf?_0x5e0ddf==null||_0x5e0ddf[_0x305346(0x195)]()['then'](()=>this[_0x305346(0x2dd)]()):(this[_0x305346(0x2c0)][_0x305346(0x20b)](_0x305346(0x252),_0x305346(0x1de)),this[_0x305346(0x2dd)]());}async['_init'](){const _0xcbf81b=_0x56e0a9,_0x436808=this['_urlService']['getParam'](_0xcbf81b(0x37e)),_0x4bc7f0=this[_0xcbf81b(0x1c4)]['getParam'](_0xcbf81b(0x305)),_0xc90df7=this[_0xcbf81b(0x1c4)][_0xcbf81b(0x365)]('subunit');if(!_0x436808||!_0x4bc7f0){this['_logService'][_0xcbf81b(0x20b)](_0xcbf81b(0x252),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1cd336=await this[_0xcbf81b(0x243)][_0xcbf81b(0x23f)](_0x436808,Number(_0x4bc7f0),_0xc90df7);_0x1cd336&&_0x1cd336 instanceof a[_0xcbf81b(0x205)]&&this[_0xcbf81b(0x1bd)](_0x1cd336);}async['_setupSubUnitSync'](_0x516197){const _0x5c5e25=_0x56e0a9;await this['_updateSubUnitFromURLParams'](_0x516197),_0x516197['activeSheet$'][_0x5c5e25(0x2d7)](d[_0x5c5e25(0x1d4)](this[_0x5c5e25(0x2ab)]))[_0x5c5e25(0x2b1)](_0x3c974c=>{const _0x5a6673=_0x5c5e25;_0x3c974c&&this[_0x5a6673(0x311)](_0x3c974c);}),this['_urlService']['urlChange$']['pipe'](d['takeUntil'](this[_0x5c5e25(0x2ab)]))[_0x5c5e25(0x2b1)](()=>this[_0x5c5e25(0x379)](_0x516197));}[_0x56e0a9(0x311)](_0x24aec9,_0x5c7f1a=!0x1){const _0x24a374=_0x56e0a9,_0x29f07b=this['_urlService'][_0x24a374(0x365)](_0x24a374(0x1ae));_0x24aec9[_0x24a374(0x206)]()!==_0x29f07b&&this[_0x24a374(0x1c4)]['setParam'](_0x24a374(0x1ae),_0x24aec9[_0x24a374(0x206)](),_0x5c7f1a);}async[_0x56e0a9(0x379)](_0x1ae3c1){const _0x3818c=_0x56e0a9;var _0x4bff1f;const _0x48f0ea=this['_urlService'][_0x3818c(0x365)](_0x3818c(0x1ae));if(!_0x48f0ea||!_0x1ae3c1['getSheetBySheetId'](_0x48f0ea)){const _0x4e0f8e=_0x1ae3c1[_0x3818c(0x2e5)]()[0x0],_0x1f1f48=_0x1ae3c1[_0x3818c(0x256)](_0x4e0f8e);if(!_0x1f1f48)return;this[_0x3818c(0x311)](_0x1f1f48,!0x0),await this[_0x3818c(0x1c5)][_0x3818c(0x3e0)](g[_0x3818c(0x1f7)]['id'],{'unitId':_0x1ae3c1['getUnitId'](),'subUnitId':_0x4e0f8e});return;}((_0x4bff1f=_0x1ae3c1[_0x3818c(0x2c5)]())==null?void 0x0:_0x4bff1f[_0x3818c(0x206)]())!==_0x48f0ea&&await this[_0x3818c(0x1c5)]['executeCommand'](g[_0x3818c(0x1f7)]['id'],{'unitId':_0x1ae3c1[_0x3818c(0x2b0)](),'subUnitId':_0x48f0ea});}},exports[_0x56e0a9(0x304)]=ot([k(0x0,me),k(0x1,a[_0x56e0a9(0x215)]),k(0x2,a[_0x56e0a9(0x2a9)]),k(0x3,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x208)])),k(0x4,a['Optional'](Xe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var at=Object[_0x56e0a9(0x2a6)],ct=(_0x2ab086,_0x27ed5d,_0x206293,_0x1edf64)=>{for(var _0x371bcc=_0x1edf64>0x1?void 0x0:_0x1edf64?at(_0x27ed5d,_0x206293):_0x27ed5d,_0x134d15=_0x2ab086['length']-0x1,_0x54b407;_0x134d15>=0x0;_0x134d15--)(_0x54b407=_0x2ab086[_0x134d15])&&(_0x371bcc=_0x54b407(_0x371bcc)||_0x371bcc);return _0x371bcc;},be=(_0x38f4bb,_0xa80311)=>(_0x340ec1,_0x263cda)=>_0xa80311(_0x340ec1,_0x263cda,_0x38f4bb);let ue=class extends a[_0x56e0a9(0x356)]{constructor(_0x13ffe1,_0x48d651){const _0x4d6466=_0x56e0a9;super(),this[_0x4d6466(0x31a)]=_0x13ffe1,this[_0x4d6466(0x28a)]=_0x48d651,this[_0x4d6466(0x2dd)]();}['_init'](){const _0x32da8b=_0x56e0a9,_0x29d24d=this;this['disposeWithMe'](this[_0x32da8b(0x31a)]['addClipboardHook']({'onBeforePasteImage':async _0xdd7f4d=>{const _0x280123=_0x32da8b,_0x398f1a=await _0x29d24d[_0x280123(0x28a)][_0x280123(0x1ef)](_0xdd7f4d);return _0x398f1a?{'source':_0x398f1a[_0x280123(0x3e1)],'imageSourceType':_0x398f1a[_0x280123(0x248)]}:null;}}));}};ue=ct([be(0x0,E[_0x56e0a9(0x344)]),be(0x1,Ge[_0x56e0a9(0x1d9)])],ue);const Oe=[_0x56e0a9(0x26c),'jiqing.500',_0x56e0a9(0x370),'red.300',_0x56e0a9(0x2b6),'yellow.400'];class Ce extends a[_0x56e0a9(0x229)]{constructor(){const _0x4c4b06=_0x56e0a9;super(...arguments),h(this,_0x4c4b06(0x3fc),new Map()),h(this,_0x4c4b06(0x381),0x0);}['assignAColorForMemberID'](_0x4141f9){const _0x1a751a=_0x56e0a9;if(this[_0x1a751a(0x3fc)]['has'](_0x4141f9))return this[_0x1a751a(0x3fc)]['get'](_0x4141f9);const _0x1d6037=Oe[this[_0x1a751a(0x381)]];return this[_0x1a751a(0x381)]=(this[_0x1a751a(0x381)]+0x1)%Oe[_0x1a751a(0x202)],this[_0x1a751a(0x3fc)][_0x1a751a(0x39e)](_0x4141f9,_0x1d6037),_0x1d6037;}}function ye(_0x142f41){const _0x4b17c7=_0x56e0a9;let _0x1c7eab='';for(const _0x438679 of _0x142f41){const {startOffset:_0x5250d0,endOffset:_0x4ec95a,isActive:_0x140503,rangeType:_0x588bf2,segmentId:_0x4951a3,segmentPage:_0xbc2079}=_0x438679;_0x1c7eab[_0x4b17c7(0x202)]&&(_0x1c7eab+=','),_0x1c7eab+=_0x5250d0+':'+_0x4ec95a+':'+(_0x140503?'1':'0')+':'+_0x588bf2+':'+_0x4951a3+':'+_0xbc2079;}return _0x1c7eab;}function lt(_0x36b7fc){const _0x572428=_0x56e0a9,_0x180ae4=_0x36b7fc[_0x572428(0x3f8)](','),_0x49abf7=[];for(const _0x34a14c of _0x180ae4){const [_0x26b763,_0x2aa4e3,_0x5acd48,_0x4faee6,_0x38387e,_0x27f3f7]=_0x34a14c[_0x572428(0x3f8)](':');_0x49abf7[_0x572428(0x22e)]({'startOffset':Number(_0x26b763),'endOffset':Number(_0x2aa4e3),'collapsed':_0x26b763===_0x2aa4e3,'isActive':_0x5acd48==='1','rangeType':_0x4faee6===a['DOC_RANGE_TYPE'][_0x572428(0x210)]?a[_0x572428(0x319)][_0x572428(0x210)]:a['DOC_RANGE_TYPE'][_0x572428(0x31b)],'segmentId':typeof _0x38387e==_0x572428(0x359)?String(_0x38387e):'','segmentPage':Number(_0x27f3f7!=null?_0x27f3f7:-0x1)});}return _0x49abf7[_0x572428(0x2cb)](_0xca7a40=>_0xca7a40[_0x572428(0x2ee)])||(_0x49abf7[0x0][_0x572428(0x2ee)]=!0x0),_0x49abf7;}class pe extends a[_0x56e0a9(0x356)]{constructor(){const _0x3aa2ee=_0x56e0a9;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0x3aa2ee(0x227)][_0x3aa2ee(0x290)]());}[_0x56e0a9(0x1b4)](_0x4c97de){const _0x4b2a25=_0x56e0a9,{unitID:_0x56f049,memberID:_0x22f52c,textRanges:_0xf4f60c}=_0x4c97de,_0x3c3d32=ye(_0xf4f60c);if(_0x3c3d32==='')return;const _0x29265e={'unitID':_0x56f049,'memberID':_0x22f52c,'selection':_0x3c3d32};this[_0x4b2a25(0x227)][_0x4b2a25(0x33d)](_0x29265e);}}var _t=Object[_0x56e0a9(0x2a6)],ht=(_0x5018f6,_0xa7806d,_0x27f6f3,_0x3e135b)=>{const _0x3846e0=_0x56e0a9;for(var _0xd94760=_0x3e135b>0x1?void 0x0:_0x3e135b?_t(_0xa7806d,_0x27f6f3):_0xa7806d,_0x43abfb=_0x5018f6[_0x3846e0(0x202)]-0x1,_0x40bfcc;_0x43abfb>=0x0;_0x43abfb--)(_0x40bfcc=_0x5018f6[_0x43abfb])&&(_0xd94760=_0x40bfcc(_0xd94760)||_0xd94760);return _0xd94760;},L=(_0x555b6e,_0x18a2a1)=>(_0x3af8cc,_0x3dfebd)=>_0x18a2a1(_0x3af8cc,_0x3dfebd,_0x555b6e);const ut=0x12c,dt=0x64;let de=class extends a[_0x56e0a9(0x356)]{constructor(_0x482707,_0x23b0c3,_0x28568b,_0x4d78b5,_0xe9915e,_0xec0401,_0x3d87c9,_0x30fa14,_0x1996f1){const _0x28fbf2=_0x56e0a9;super(),h(this,'_online',!0x1),h(this,_0x28fbf2(0x2dd),!0x1),h(this,_0x28fbf2(0x282),new d[(_0x28fbf2(0x230))](new Map())),h(this,'cursorInfo$',this[_0x28fbf2(0x282)][_0x28fbf2(0x290)]()),h(this,'_roomMembers$',new d[(_0x28fbf2(0x230))]([])),h(this,_0x28fbf2(0x1a2),this[_0x28fbf2(0x334)][_0x28fbf2(0x2d7)](d[_0x28fbf2(0x373)](ut))),h(this,_0x28fbf2(0x2d8),a[_0x28fbf2(0x303)](_0x42b227=>{const _0x28a63d=_0x28fbf2,_0x3fb5f0={'eventID':m[_0x28a63d(0x2e4)][_0x28a63d(0x288)],'data':{'unitID':this[_0x28a63d(0x1ea)],'memberID':this[_0x28a63d(0x317)][_0x28a63d(0x2ea)](),'selection':ye(_0x42b227)}};this[_0x28a63d(0x317)][_0x28a63d(0x389)](_0x3fb5f0,this[_0x28a63d(0x1ea)]);},dt)),(this[_0x28fbf2(0x1ea)]=_0x482707,this['_session']=_0x23b0c3,this[_0x28fbf2(0x263)]=_0x28568b,this[_0x28fbf2(0x38f)]=_0x4d78b5,this[_0x28fbf2(0x201)]=_0xe9915e,this[_0x28fbf2(0x30d)]=_0xec0401,this[_0x28fbf2(0x1bb)]=_0x3d87c9,this[_0x28fbf2(0x2f8)]=_0x30fa14,this['_commandService']=_0x1996f1);}get[_0x56e0a9(0x2e6)](){const _0x1dedb4=_0x56e0a9;return this[_0x1dedb4(0x282)][_0x1dedb4(0x35d)]();}get[_0x56e0a9(0x2ef)](){const _0x5f49e7=_0x56e0a9;return this['_roomMembers$'][_0x5f49e7(0x35d)]();}['dispose'](){const _0x291839=_0x56e0a9;super[_0x291839(0x1d5)](),this[_0x291839(0x282)]['next'](new Map()),this['_cursorInfo$'][_0x291839(0x2b8)](),this[_0x291839(0x334)][_0x291839(0x33d)]([]),this[_0x291839(0x334)][_0x291839(0x2b8)]();}[_0x56e0a9(0x1be)](){const _0x19ef30=_0x56e0a9;this[_0x19ef30(0x2dd)]||(this[_0x19ef30(0x2dd)]=!0x0,this[_0x19ef30(0x317)]['sessionStatus$'][_0x19ef30(0x2d7)](d[_0x19ef30(0x1d4)](this[_0x19ef30(0x2ab)]))[_0x19ef30(0x2b1)](_0x3eb417=>{const _0x53713b=_0x19ef30;_0x3eb417===u['SessionStatus']['ONLINE']?this[_0x53713b(0x1b2)]():this[_0x53713b(0x3fb)]();}),this[_0x19ef30(0x317)]['event$'][_0x19ef30(0x2d7)](d['takeUntil'](this[_0x19ef30(0x2ab)]))[_0x19ef30(0x2b1)](_0xfdcd22=>{const _0x2a719a=_0x19ef30,_0x2c667b=_0xfdcd22[_0x2a719a(0x32e)];_0x2c667b===m[_0x2a719a(0x2e4)]['UPDATE_CURSOR']&&this[_0x2a719a(0x3f0)](_0xfdcd22),_0x2c667b===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x2a719a(0x348)](_0xfdcd22);}),this[_0x19ef30(0x39f)](this[_0x19ef30(0x1c5)][_0x19ef30(0x350)](_0x4db8af=>{const _0x34090c=_0x19ef30,_0x99759c=_0x4db8af[_0x34090c(0x2e3)];_0x99759c!=null&&this[_0x34090c(0x3d3)]&&_0x4db8af['id']===Y[_0x34090c(0x2fe)]['id']&&_0x99759c['unitId']===this['unitID']&&_0x99759c['isEditing']===!0x1&&_0x99759c[_0x34090c(0x2e1)][_0x34090c(0x202)]>0x0&&this[_0x34090c(0x2d8)](_0x99759c[_0x34090c(0x2e1)]);})),this[_0x19ef30(0x30d)][_0x19ef30(0x279)][_0x19ef30(0x2d7)](d[_0x19ef30(0x1d4)](this['dispose$']))[_0x19ef30(0x2b1)](_0x3ffa77=>{const _0x1b6d7b=_0x19ef30;if((_0x3ffa77==null?void 0x0:_0x3ffa77[_0x1b6d7b(0x1ea)])!==this[_0x1b6d7b(0x1ea)])return;const _0x3abbc4={'eventID':m[_0x1b6d7b(0x2e4)][_0x1b6d7b(0x288)],'data':_0x3ffa77};this[_0x1b6d7b(0x3f0)](_0x3abbc4);}),this[_0x19ef30(0x39f)](this['_commandService'][_0x19ef30(0x350)](_0x34569c=>{const _0x11cec2=_0x19ef30;if(_0x34569c[_0x11cec2(0x2e3)]==null)return;const _0x22ddde=_0x34569c[_0x11cec2(0x2e3)];if(_0x34569c['id']!==Y[_0x11cec2(0x1e7)]['id']||_0x22ddde[_0x11cec2(0x377)]!==this[_0x11cec2(0x1ea)])return;const _0x2ca278={'id':'doc.mutation.rich-text-editing','params':_0x22ddde},_0x3a9e98=this['cursorInfo'];for(const [_0x2cc7f5,_0x433628]of _0x3a9e98){const _0x54f127={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x11cec2(0x1ea)],'actions':null,'textRanges':_0x433628[_0x11cec2(0x2e1)]}},_0x5c4571=this[_0x11cec2(0x1bb)][_0x11cec2(0x331)](_0x2ca278,_0x54f127,!0x1);if(m['isTransformMutationFailure'](_0x5c4571))throw _0x5c4571[_0x11cec2(0x2f3)];_0x3a9e98['set'](_0x2cc7f5,{..._0x433628,'ranges':_0x5c4571[_0x11cec2(0x1ab)][_0x11cec2(0x2e3)][_0x11cec2(0x3e7)]});}queueMicrotask(()=>{const _0x4e3b1b=_0x11cec2;this[_0x4e3b1b(0x282)][_0x4e3b1b(0x33d)](_0x3a9e98);});})));}[_0x56e0a9(0x3f0)](_0x23fad3){const _0x352ff3=_0x56e0a9;var _0x890060,_0x102eef;const {memberID:_0x3941a5,selection:_0x3dc470}=_0x23fad3[_0x352ff3(0x400)],_0x4fdcbe=lt(_0x3dc470),_0x2ca57e=(_0x102eef=(_0x890060=this['_memberService']['getMember'](this['unitID'],_0x3941a5))==null?void 0x0:_0x890060[_0x352ff3(0x36d)])!=null?_0x102eef:_0x352ff3(0x3a0),_0x42710b={'color':this[_0x352ff3(0x38f)][_0x352ff3(0x2af)](_0x3941a5),'name':_0x2ca57e,'ranges':_0x4fdcbe},_0x3103d6=this[_0x352ff3(0x2e6)];_0x3103d6[_0x352ff3(0x39e)](_0x3941a5,_0x42710b),this[_0x352ff3(0x282)][_0x352ff3(0x33d)](_0x3103d6);}[_0x56e0a9(0x348)](_0x131f2a){const _0x2140a6=_0x56e0a9,{memberID:_0x4c8c69}=_0x131f2a[_0x2140a6(0x400)],_0x1f522d=this[_0x2140a6(0x2e6)];_0x1f522d[_0x2140a6(0x32f)](_0x4c8c69),this[_0x2140a6(0x282)][_0x2140a6(0x33d)](_0x1f522d);}[_0x56e0a9(0x1b2)](){const _0x90a074=_0x56e0a9;var _0x205b92;if(this[_0x90a074(0x3d3)]=!0x0,((_0x205b92=this[_0x90a074(0x2f8)][_0x90a074(0x345)]())==null?void 0x0:_0x205b92['getUnitId']())!==this['unitID'])return;const _0x4b0f3b=this['_injector']['get'](Y[_0x90a074(0x24b)])['getDocRanges']();Array[_0x90a074(0x244)](_0x4b0f3b)&&_0x4b0f3b['length']>0x0&&this[_0x90a074(0x2d8)](_0x4b0f3b);}[_0x56e0a9(0x3fb)](){const _0xe2ccec=_0x56e0a9;this[_0xe2ccec(0x3d3)]=!0x1;}};de=ht([L(0x2,a['Inject'](a['Injector'])),L(0x3,a[_0x56e0a9(0x39b)](Ce)),L(0x4,a['Inject'](u[_0x56e0a9(0x308)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x56e0a9(0x1d7)]),L(0x7,a[_0x56e0a9(0x2b7)]),L(0x8,a[_0x56e0a9(0x2a9)])],de);var St=Object[_0x56e0a9(0x2a6)],ft=(_0x4a80fe,_0x485407,_0x24003f,_0x3c0c73)=>{const _0x5642e6=_0x56e0a9;for(var _0x508608=_0x3c0c73>0x1?void 0x0:_0x3c0c73?St(_0x485407,_0x24003f):_0x485407,_0x1a878d=_0x4a80fe[_0x5642e6(0x202)]-0x1,_0x284b5a;_0x1a878d>=0x0;_0x1a878d--)(_0x284b5a=_0x4a80fe[_0x1a878d])&&(_0x508608=_0x284b5a(_0x508608)||_0x508608);return _0x508608;},A=(_0x2fb98a,_0x3d85e7)=>(_0x8dc5de,_0x4aa771)=>_0x3d85e7(_0x8dc5de,_0x4aa771,_0x2fb98a);const It=0x12c,vt=0x64,gt=()=>{let _0x29478f=[],_0x4406bc=!0x1;return _0x56e282=>{const _0x19f9b5=_0x4119;_0x29478f[_0x19f9b5(0x22e)](_0x56e282),_0x4406bc||(_0x4406bc=!0x0,setTimeout(()=>{const _0x518512=_0x19f9b5;_0x29478f[_0x518512(0x302)](_0x173024=>_0x173024()),_0x29478f=[],_0x4406bc=!0x1;}));};};let Se=class extends a[_0x56e0a9(0x356)]{constructor(_0x3bde07,_0x491dbf,_0xe3f4ea,_0x2cd768,_0x5150a1,_0xd3405b,_0x5d2f9e,_0x39db60){const _0x388dcc=_0x56e0a9;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x388dcc(0x282),new d['BehaviorSubject'](new Map())),h(this,_0x388dcc(0x328),this[_0x388dcc(0x282)]['asObservable']()),h(this,_0x388dcc(0x334),new d[(_0x388dcc(0x230))]([])),h(this,_0x388dcc(0x1a2),this['_roomMembers$'][_0x388dcc(0x2d7)](d[_0x388dcc(0x373)](It))),h(this,_0x388dcc(0x2d8),a[_0x388dcc(0x303)]((_0xce94b,_0x31597a)=>{const _0x40f4b=_0x388dcc,_0x1bca36={'eventID':m['CollaborationEvent'][_0x40f4b(0x288)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x40f4b(0x2ea)](),'selection':Ee[_0x40f4b(0x3ee)](_0xce94b,_0x31597a[_0x40f4b(0x3c1)])}};this[_0x40f4b(0x317)][_0x40f4b(0x389)](_0x1bca36,this['unitID']);},vt)),(this[_0x388dcc(0x1ea)]=_0x3bde07,this[_0x388dcc(0x317)]=_0x491dbf,this['_injector']=_0xe3f4ea,this[_0x388dcc(0x38f)]=_0x2cd768,this[_0x388dcc(0x201)]=_0x5150a1,this[_0x388dcc(0x2f8)]=_0xd3405b,this['_commandService']=_0x5d2f9e,this[_0x388dcc(0x1c1)]=_0x39db60);}get[_0x56e0a9(0x2e6)](){const _0x5678ac=_0x56e0a9;return this[_0x5678ac(0x282)]['getValue']();}get['roomMembers'](){const _0x26cce5=_0x56e0a9;return this[_0x26cce5(0x334)]['getValue']();}[_0x56e0a9(0x1d5)](){const _0x3279ed=_0x56e0a9;super[_0x3279ed(0x1d5)](),this['_cursorInfo$']['next'](new Map()),this[_0x3279ed(0x282)][_0x3279ed(0x2b8)](),this[_0x3279ed(0x334)][_0x3279ed(0x33d)]([]),this[_0x3279ed(0x334)]['complete']();}['init'](){const _0x25ad6c=_0x56e0a9;this[_0x25ad6c(0x2dd)]||(this['_init']=!0x0,this[_0x25ad6c(0x317)]['sessionStatus$'][_0x25ad6c(0x2d7)](d[_0x25ad6c(0x1d4)](this[_0x25ad6c(0x2ab)]))[_0x25ad6c(0x2b1)](_0x48797c=>{const _0x232e6b=_0x25ad6c;_0x48797c===u[_0x232e6b(0x2fb)][_0x232e6b(0x332)]?this['_toggleOnline']():this[_0x232e6b(0x3fb)]();}),this[_0x25ad6c(0x317)][_0x25ad6c(0x29b)][_0x25ad6c(0x2d7)](d[_0x25ad6c(0x1d4)](this[_0x25ad6c(0x2ab)]))[_0x25ad6c(0x2b1)](_0x34fa96=>{const _0x4a2a95=_0x25ad6c,_0x273993=_0x34fa96['eventID'];_0x273993===m['CollaborationEvent'][_0x4a2a95(0x288)]&&this[_0x4a2a95(0x3f0)](_0x34fa96),_0x273993===m[_0x4a2a95(0x2e4)][_0x4a2a95(0x1cc)]&&this[_0x4a2a95(0x348)](_0x34fa96);}),this[_0x25ad6c(0x2c4)](),this['disposeWithMe'](this[_0x25ad6c(0x1c5)][_0x25ad6c(0x350)](_0x3ce42a=>{const _0x71d005=_0x25ad6c;if(this[_0x71d005(0x3d3)]&&_0x3ce42a['id']===g[_0x71d005(0x409)]['id']&&_0x3ce42a[_0x71d005(0x2e3)]['unitId']===this['unitID']){const _0x16fb87=_0x3ce42a[_0x71d005(0x2e3)];this[_0x71d005(0x2d8)](_0x16fb87[_0x71d005(0x1c6)],_0x16fb87[_0x71d005(0x1ba)][0x0]);}})));}['_onCursorUpdate'](_0x480fb4){const _0x945eec=_0x56e0a9;var _0x4f2847,_0xb473c0;const {memberID:_0x5346d5,selection:_0xf84602}=_0x480fb4[_0x945eec(0x400)],{sheetName:_0x54d4bc,range:_0x1f1140}=Ee[_0x945eec(0x386)](_0xf84602),_0x12d603={'name':(_0xb473c0=(_0x4f2847=this['_memberService'][_0x945eec(0x2fa)](this[_0x945eec(0x1ea)],_0x5346d5))==null?void 0x0:_0x4f2847[_0x945eec(0x36d)])!=null?_0xb473c0:_0x945eec(0x3a0),'range':this[_0x945eec(0x3ef)](_0x54d4bc,_0x1f1140),'sheetID':_0x54d4bc,'color':this['_colorAssignService'][_0x945eec(0x2af)](_0x5346d5),'selection':_0xf84602},_0x23367c=this[_0x945eec(0x2e6)];_0x23367c[_0x945eec(0x39e)](_0x5346d5,_0x12d603),this['_cursorInfo$']['next'](_0x23367c);}[_0x56e0a9(0x348)](_0x4e61a3){const _0x32c989=_0x56e0a9,{memberID:_0x59e686}=_0x4e61a3[_0x32c989(0x400)],_0x3698a4=this[_0x32c989(0x2e6)];_0x3698a4['delete'](_0x59e686),this['_cursorInfo$']['next'](_0x3698a4);}[_0x56e0a9(0x3ef)](_0x481942,_0x150c11){const _0xc8fe08=_0x56e0a9;var _0x1da0a0,_0x2c0b22;const _0x3fd94f=(_0x2c0b22=(_0x1da0a0=this[_0xc8fe08(0x2f8)][_0xc8fe08(0x39c)](this[_0xc8fe08(0x1ea)]))==null?void 0x0:_0x1da0a0[_0xc8fe08(0x256)](_0x481942))==null?void 0x0:_0x2c0b22[_0xc8fe08(0x3b4)]();return(_0x3fd94f==null?void 0x0:_0x3fd94f[_0xc8fe08(0x32a)](_0x565c5f=>a[_0xc8fe08(0x1ca)][_0xc8fe08(0x32d)](_0x565c5f,_0x150c11)))||_0x150c11;}[_0x56e0a9(0x2c4)](){const _0x1bbb60=_0x56e0a9,_0x30b8a7=new a[(_0x1bbb60(0x37f))](),_0x3cf0d8=gt(),_0x3eef51=()=>{const _0x5e26ec=_0x1bbb60;_0x30b8a7[_0x5e26ec(0x1d5)]();const _0x485ae3=(_0x344cc9,_0x4ae558,_0x48fed0,_0x59927b)=>{const _0x3649e2=_0x5e26ec;let _0x21400a=[];switch(_0x344cc9['id']){case g[_0x3649e2(0x193)][_0x3649e2(0x307)]:{_0x21400a=g['handleDeleteRangeMoveLeft'](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x405)]:{_0x21400a=g[_0x3649e2(0x301)](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x362)]:{_0x21400a=g[_0x3649e2(0x327)](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x36e)]:{_0x21400a=g['handleInsertRangeMoveDown'](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)]['InsertRangeMoveRightCommandId']:{_0x21400a=g[_0x3649e2(0x2f2)](_0x344cc9,_0x59927b);break;}case g['EffectRefRangId'][_0x3649e2(0x2bc)]:{_0x21400a=g[_0x3649e2(0x1e2)](_0x344cc9,_0x59927b);break;}case g['EffectRefRangId'][_0x3649e2(0x385)]:{_0x21400a=g['handleMoveRange'](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x294)]:{_0x21400a=g[_0x3649e2(0x1a6)](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x32c)]:{_0x21400a=g[_0x3649e2(0x38d)](_0x344cc9,_0x59927b);break;}}const _0x563617=g[_0x3649e2(0x1d3)](_0x21400a,_0x59927b),_0xa41413=this['cursorInfo'][_0x3649e2(0x31d)](_0x4ae558);if(_0xa41413&&_0x563617){const _0x5aed2c={..._0xa41413,'range':_0x563617};this['cursorInfo'][_0x3649e2(0x39e)](_0x4ae558,_0x5aed2c),_0x3cf0d8(()=>{const _0x54abc0=_0x3649e2,_0x5ca99b=this['_refRangeService'][_0x54abc0(0x203)](_0x563617,_0x55f9f7=>(_0x5ca99b['dispose'](),_0x485ae3(_0x55f9f7,_0x4ae558,_0x48fed0,_0x563617)));_0x30b8a7[_0x54abc0(0x247)](_0x5ca99b);});}return{'redos':[],'undos':[]};};this[_0x5e26ec(0x2e6)][_0x5e26ec(0x302)]((_0x2271be,_0x3afc09)=>{const _0x272a62=_0x5e26ec,{range:_0x33f0da,sheetID:_0x49fb77}=_0x2271be,_0x1f9db9=this[_0x272a62(0x1c1)][_0x272a62(0x203)](_0x33f0da,_0xf46214=>(_0x1f9db9[_0x272a62(0x1d5)](),_0x485ae3(_0xf46214,_0x3afc09,_0x49fb77,_0x33f0da)));_0x30b8a7[_0x272a62(0x247)](_0x1f9db9);});};this['disposeWithMe'](a[_0x1bbb60(0x3b8)](this[_0x1bbb60(0x282)][_0x1bbb60(0x2b1)](()=>{_0x3eef51();})));}[_0x56e0a9(0x1b2)](){const _0x5adc6e=_0x56e0a9;var _0x1682c1,_0x228b0b;if(this[_0x5adc6e(0x3d3)]=!0x0,((_0x1682c1=this[_0x5adc6e(0x2f8)][_0x5adc6e(0x345)]())==null?void 0x0:_0x1682c1[_0x5adc6e(0x2b0)]())!==this[_0x5adc6e(0x1ea)])return;const _0x2da741=(_0x228b0b=this[_0x5adc6e(0x263)][_0x5adc6e(0x31d)](g[_0x5adc6e(0x274)])[_0x5adc6e(0x22d)]())==null?void 0x0:_0x228b0b[0x0],_0x39c6f2=this['_univerInstanceService'][_0x5adc6e(0x284)](a['UniverInstanceType'][_0x5adc6e(0x38e)])[_0x5adc6e(0x2c5)]();_0x2da741&&_0x39c6f2&&this[_0x5adc6e(0x2d8)](_0x39c6f2[_0x5adc6e(0x206)](),_0x2da741);}[_0x56e0a9(0x3fb)](){this['_online']=!0x1;}};Se=ft([A(0x2,a['Inject'](a['Injector'])),A(0x3,a[_0x56e0a9(0x39b)](Ce)),A(0x4,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x308)])),A(0x5,a[_0x56e0a9(0x2b7)]),A(0x6,a[_0x56e0a9(0x2a9)]),A(0x7,a[_0x56e0a9(0x39b)](g['RefRangeService']))],Se);var mt=Object[_0x56e0a9(0x2a6)],Ct=(_0x5d19c4,_0x4e851e,_0x380485,_0x1d299f)=>{for(var _0xaf97b0=_0x1d299f>0x1?void 0x0:_0x1d299f?mt(_0x4e851e,_0x380485):_0x4e851e,_0x3b5c03=_0x5d19c4['length']-0x1,_0x800f48;_0x3b5c03>=0x0;_0x3b5c03--)(_0x800f48=_0x5d19c4[_0x3b5c03])&&(_0xaf97b0=_0x800f48(_0xaf97b0)||_0xaf97b0);return _0xaf97b0;},ie=(_0x52bdbb,_0x25b00f)=>(_0x3faaf8,_0x420cf1)=>_0x25b00f(_0x3faaf8,_0x420cf1,_0x52bdbb);let x=class extends a[_0x56e0a9(0x356)]{constructor(_0x2bc6d4,_0x185110,_0x1b4266){const _0x288f9e=_0x56e0a9;super(),h(this,_0x288f9e(0x329),new Map()),h(this,_0x288f9e(0x3c5),new d[(_0x288f9e(0x3dd))]()),(this[_0x288f9e(0x2f8)]=_0x2bc6d4,this[_0x288f9e(0x263)]=_0x185110,this['_collabSessionService']=_0x1b4266,this[_0x288f9e(0x2dd)]());}[_0x56e0a9(0x1d5)](){const _0x3dca72=_0x56e0a9;super[_0x3dca72(0x1d5)](),this[_0x3dca72(0x3c5)][_0x3dca72(0x2b8)](),this[_0x3dca72(0x329)][_0x3dca72(0x302)](_0x1f78c5=>_0x1f78c5[_0x3dca72(0x1d5)]());}[_0x56e0a9(0x40b)](_0x3a7dc7){const _0x354f90=_0x56e0a9;return this[_0x354f90(0x329)][_0x354f90(0x1e0)](_0x3a7dc7)?this[_0x354f90(0x329)]['get'](_0x3a7dc7)['cursorInfo$']:this[_0x354f90(0x3c5)][_0x354f90(0x2d7)](d[_0x354f90(0x276)](_0x370ee0=>_0x370ee0[_0x354f90(0x1ea)]===_0x3a7dc7),d[_0x354f90(0x2c3)](_0x2cbf21=>_0x2cbf21[_0x354f90(0x328)]));}[_0x56e0a9(0x2dd)](){const _0x330378=_0x56e0a9;this['_univerInstanceService'][_0x330378(0x1d8)](a[_0x330378(0x295)]['UNIVER_SHEET'])[_0x330378(0x2d7)](d[_0x330378(0x1d4)](this[_0x330378(0x2ab)]))['subscribe'](async _0x40817e=>{const _0x42cc91=_0x330378,_0x2b3679=_0x40817e[_0x42cc91(0x2b0)](),_0x56448a=await this['_startSheetCollabCursor'](_0x2b3679);this['_entityInit$']['next'](_0x56448a),this[_0x42cc91(0x329)][_0x42cc91(0x39e)](_0x2b3679,_0x56448a);}),this[_0x330378(0x2f8)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x330378(0x3fe)])[_0x330378(0x2d7)](d[_0x330378(0x1d4)](this['dispose$']))[_0x330378(0x2d7)](d[_0x330378(0x276)](_0x4fbe6a=>!_0x4fbe6a[_0x330378(0x2b0)]()['startsWith']('__')))[_0x330378(0x2b1)](async _0x14e941=>{const _0x90815a=_0x330378,_0x5ad4a4=_0x14e941[_0x90815a(0x2b0)](),_0x5eaeb4=await this[_0x90815a(0x19a)](_0x5ad4a4);this[_0x90815a(0x3c5)][_0x90815a(0x33d)](_0x5eaeb4),this['_entities'][_0x90815a(0x39e)](_0x5ad4a4,_0x5eaeb4);}),d[_0x330378(0x3a5)](this[_0x330378(0x2f8)][_0x330378(0x21c)](a['UniverInstanceType'][_0x330378(0x3fe)]),this[_0x330378(0x2f8)][_0x330378(0x21c)](a[_0x330378(0x295)][_0x330378(0x38e)]))[_0x330378(0x2d7)](d[_0x330378(0x1d4)](this[_0x330378(0x2ab)]))['subscribe'](_0xd5c480=>{const _0x454873=_0x330378,_0x5ab26c=_0xd5c480[_0x454873(0x2b0)](),_0x435b0a=this[_0x454873(0x329)]['get'](_0x5ab26c);_0x435b0a&&(_0x435b0a[_0x454873(0x1d5)](),this[_0x454873(0x329)][_0x454873(0x32f)](_0x5ab26c));});}async[_0x56e0a9(0x212)](_0x2df4cb){const _0x1ec8b0=_0x56e0a9,_0x245ba6=await this[_0x1ec8b0(0x36f)][_0x1ec8b0(0x3f2)](_0x2df4cb),_0x33266a=this['_injector'][_0x1ec8b0(0x2a1)](Se,_0x2df4cb,_0x245ba6);return _0x33266a[_0x1ec8b0(0x1be)](),_0x33266a;}async[_0x56e0a9(0x19a)](_0x4c2cb2){const _0x5b42dc=_0x56e0a9,_0x29cbe3=await this['_collabSessionService'][_0x5b42dc(0x3f2)](_0x4c2cb2),_0x1ae35a=this[_0x5b42dc(0x263)][_0x5b42dc(0x2a1)](de,_0x4c2cb2,_0x29cbe3);return _0x1ae35a['init'](),_0x1ae35a;}};x=Ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x1dd)])),ie(0x2,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x30b)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x167720,_0xb8abf2){const _0x4304ce=_0x56e0a9;let {radius:_0x587e4f,width:_0x5a9418,height:_0x6ef79e}=_0xb8abf2;_0x587e4f=_0x587e4f!=null?_0x587e4f:0x0,_0x5a9418=_0x5a9418!=null?_0x5a9418:0x1e,_0x6ef79e=_0x6ef79e!=null?_0x6ef79e:0x1e;let _0x50b6f6=0x0,_0x3afea1=0x0,_0x688c8a=0x0;_0x50b6f6=_0x3afea1=_0x688c8a=Math[_0x4304ce(0x364)](_0x587e4f,_0x5a9418/0x2,_0x6ef79e/0x2),_0x167720['beginPath'](),_0x167720[_0x4304ce(0x353)](_0x50b6f6,0x0),_0x167720[_0x4304ce(0x1b3)](_0x5a9418-_0x3afea1,0x0),_0x167720[_0x4304ce(0x1f4)](_0x5a9418-_0x3afea1,_0x3afea1,_0x3afea1,Math['PI']*0x3/0x2,0x0,!0x1),_0x167720[_0x4304ce(0x1b3)](_0x5a9418,_0x6ef79e-_0x688c8a),_0x167720['arc'](_0x5a9418-_0x688c8a,_0x6ef79e-_0x688c8a,_0x688c8a,0x0,Math['PI']/0x2,!0x1),_0x167720[_0x4304ce(0x1b3)](0x0,_0x6ef79e),_0x167720[_0x4304ce(0x1b3)](0x0,_0x50b6f6),_0x167720[_0x4304ce(0x1f4)](_0x50b6f6,_0x50b6f6,_0x50b6f6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x167720[_0x4304ce(0x1d1)](),_0xb8abf2[_0x4304ce(0x2ba)]&&(_0x167720[_0x4304ce(0x306)](),_0x167720[_0x4304ce(0x22f)]=_0xb8abf2[_0x4304ce(0x2ba)],_0xb8abf2[_0x4304ce(0x2f7)]==='evenodd'?_0x167720['fill'](_0x4304ce(0x1f1)):_0x167720[_0x4304ce(0x2ba)](),_0x167720[_0x4304ce(0x318)]());}class ee extends p[_0x56e0a9(0x2aa)]{constructor(_0x561648,_0x11fa7a){const _0x376931=_0x56e0a9;super(_0x561648,_0x11fa7a),h(this,_0x376931(0x40c)),h(this,_0x376931(0x287)),(this[_0x376931(0x40c)]=_0x11fa7a==null?void 0x0:_0x11fa7a[_0x376931(0x40c)],this[_0x376931(0x287)]=_0x11fa7a==null?void 0x0:_0x11fa7a['text']);}static['drawWith'](_0x648338,_0x16a6d6){const _0x574126=_0x56e0a9,{text:_0x52eb0c,color:_0x1f4d23}=_0x16a6d6;_0x648338['save'](),_0x648338['font']=_0x574126(0x258);const _0xd643c0=_0x648338[_0x574126(0x20e)](_0x52eb0c)['width'],_0xe16b5b=Math[_0x574126(0x364)](_0xd643c0+0x2*ne,Te);Et(_0x648338,{'height':W,'radius':0x4,'width':_0xe16b5b,'fill':_0x1f4d23}),_0x648338[_0x574126(0x22f)]='#FFF';const _0x2a83cf=ne,_0x3f0659=W-pt,_0x57b026=Te-0x2*ne;if(_0xd643c0>_0x57b026){let _0x3b81f4='',_0x1208f7=0x0;for(const _0xcd7c9 of _0x52eb0c){const _0x49619d=_0x648338[_0x574126(0x20e)](_0xcd7c9)[_0x574126(0x3c8)];if(_0x1208f7+_0x49619d<=_0x57b026-_0x648338[_0x574126(0x20e)]('...')[_0x574126(0x3c8)])_0x3b81f4+=_0xcd7c9,_0x1208f7+=_0x49619d;else{_0x3b81f4+='...';break;}}_0x648338[_0x574126(0x1f8)](_0x3b81f4,_0x2a83cf,_0x3f0659);}else _0x648338[_0x574126(0x1f8)](_0x52eb0c,_0x2a83cf,_0x3f0659);_0x648338['restore']();}[_0x56e0a9(0x2ec)](_0x578ec1){const _0xa90857=_0x56e0a9;ee[_0xa90857(0x3b0)](_0x578ec1,this);}}const re='collab-text-anchor-',bt=_0x56e0a9(0x339),Ot=_0x56e0a9(0x261),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x56e0a9(0x391);class Re{constructor(_0x559dd5,_0x597af4,_0x24907c,_0x3c22d9){const _0x2e6115=_0x56e0a9;h(this,_0x2e6115(0x2b2),[]),h(this,'_anchor',null),h(this,_0x2e6115(0x38a),null),h(this,_0x2e6115(0x35b),null),h(this,_0x2e6115(0x1d2),null),h(this,_0x2e6115(0x22a),null),(this[_0x2e6115(0x2c7)]=_0x559dd5,this[_0x2e6115(0x3ea)]=_0x597af4,this['_docSkeleton']=_0x24907c,this[_0x2e6115(0x298)]=_0x3c22d9,this['_render']());}set[_0x56e0a9(0x3b6)](_0x10d9ff){const _0x22ad9f=_0x56e0a9;_0x10d9ff?(this[_0x22ad9f(0x35b)]&&this[_0x22ad9f(0x35b)][_0x22ad9f(0x273)](),this['_textBubble']&&this[_0x22ad9f(0x38a)][_0x22ad9f(0x3b5)]()):(this['_anchorDot']&&this['_anchorDot'][_0x22ad9f(0x3b5)](),this[_0x22ad9f(0x38a)]&&this[_0x22ad9f(0x38a)]['hide']());}['dispose'](){const _0x41fe9a=_0x56e0a9;for(const _0x1cee4a of this[_0x41fe9a(0x2b2)])_0x1cee4a['dispose']();this[_0x41fe9a(0x38a)]&&this[_0x41fe9a(0x38a)][_0x41fe9a(0x1d5)](),this[_0x41fe9a(0x35b)]&&this[_0x41fe9a(0x35b)][_0x41fe9a(0x1d5)](),this[_0x41fe9a(0x22c)]&&this[_0x41fe9a(0x22c)][_0x41fe9a(0x1d5)](),this[_0x41fe9a(0x22a)]&&this['_eventUnsubscribe']();}[_0x56e0a9(0x3a6)](){const _0x129e72=_0x56e0a9;var _0x403297;const {_docSkeleton:_0x52fe24,_document:_0x30d4c5}=this,{color:_0x4951b4,name:_0x37fbb0,ranges:_0x15322c}=this[_0x129e72(0x2c7)],_0x82b12e=_0x30d4c5[_0x129e72(0x316)](),{docsLeft:_0xf30152,docsTop:_0x1216b8}=_0x82b12e,_0x145362=new E['NodePositionConvertToCursor'](_0x82b12e,_0x52fe24);for(const {startOffset:_0x541619,endOffset:_0x46f6e3,rangeType:_0x403658,segmentId:_0x26ca0f,segmentPage:_0x3f12ef,collapsed:_0x4ce5f1,isActive:_0x276596}of _0x15322c){const _0x170220=_0x52fe24[_0x129e72(0x384)](_0x541619,!0x0,_0x26ca0f,_0x3f12ef);let _0x1d5bcf=_0x52fe24[_0x129e72(0x384)](_0x46f6e3,!0x0,_0x26ca0f,_0x3f12ef);if(_0x1d5bcf==null&&(_0x1d5bcf=_0x52fe24[_0x129e72(0x384)](_0x46f6e3-0x1,!0x1,_0x26ca0f,_0x3f12ef)),_0x276596){const {contentBoxPointGroup:_0x3e1def}=_0x145362[_0x129e72(0x1e9)](_0x1d5bcf,_0x1d5bcf);if(_0x3e1def['length']===0x0)continue;this[_0x129e72(0x2d0)](_0x4951b4,_0x3e1def,_0xf30152,_0x1216b8,_0x37fbb0),this[_0x129e72(0x22a)]=this[_0x129e72(0x1ac)]();}if(_0x170220&&_0x1d5bcf){if(_0x403658===a[_0x129e72(0x319)][_0x129e72(0x31b)]){const _0x5aeed9=new E[(_0x129e72(0x1c2))](_0x82b12e,_0x52fe24),{pointGroup:_0x50b4c2}=(_0x403297=_0x5aeed9[_0x129e72(0x1e9)](_0x170220,_0x1d5bcf))!=null?_0x403297:{};if(_0x50b4c2==null||_0x50b4c2[_0x129e72(0x202)]===0x0)continue;this['_drawRectRange'](_0x4951b4,_0x50b4c2,_0xf30152,_0x1216b8);}else{if(!_0x4ce5f1){const {borderBoxPointGroup:_0x31e31b}=_0x145362[_0x129e72(0x1e9)](_0x170220,_0x1d5bcf);if(_0x31e31b[_0x129e72(0x202)]===0x0)continue;this[_0x129e72(0x2fd)](_0x4951b4,_0x31e31b,_0xf30152,_0x1216b8);}}}}}[_0x56e0a9(0x2d0)](_0x28db8f,_0x26e73f,_0x38c148,_0x18b2e4,_0x5d8c33){const _0x59e656=_0x56e0a9,_0x437216=this[_0x59e656(0x2ca)](_0x26e73f),{left:_0xb3ab71,top:_0x561961,height:_0x50d1e2}=_0x437216,_0x336fe6=this[_0x59e656(0x2fc)](),_0x24cf58=Rt/_0x336fe6,_0x47b673=new p['Rect'](re+a[_0x59e656(0x2a0)](F),{'left':_0xb3ab71+_0x38c148-_0x24cf58,'top':_0x561961+_0x18b2e4,'height':_0x50d1e2,'width':Tt,'fill':_0x28db8f||p['getColor'](a[_0x59e656(0x309)]['black'],0x0),'strokeWidth':_0x24cf58,'stroke':Dt,'evented':!0x0});this[_0x59e656(0x22c)]=_0x47b673,this[_0x59e656(0x3ea)][_0x59e656(0x3f3)](_0x47b673,E[_0x59e656(0x338)]);const _0x13b720=new p[(_0x59e656(0x363))](re+a[_0x59e656(0x2a0)](F),{'left':_0xb3ab71+_0x38c148-_0x24cf58,'top':_0x561961+_0x18b2e4-oe/0x2,'height':oe,'width':oe,'fill':_0x28db8f||p['getColor'](a[_0x59e656(0x309)][_0x59e656(0x1e6)],0x0),'strokeWidth':0x0,'stroke':_0x28db8f||p[_0x59e656(0x220)](a[_0x59e656(0x309)][_0x59e656(0x1e6)],0x0),'evented':!0x1});this[_0x59e656(0x35b)]=_0x13b720,this[_0x59e656(0x3ea)]['addObject'](_0x13b720,E['TEXT_RANGE_LAYER_INDEX']);const _0x461ac8=new ee(re+a[_0x59e656(0x2a0)](F),{'left':_0xb3ab71+_0x38c148-_0x24cf58,'top':_0x561961+_0x18b2e4-W,'text':_0x5d8c33,'color':_0x28db8f});this[_0x59e656(0x38a)]=_0x461ac8,this[_0x59e656(0x3ea)][_0x59e656(0x3f3)](_0x461ac8,E[_0x59e656(0x338)]),this[_0x59e656(0x3b6)]=!0x1;}[_0x56e0a9(0x1ac)](){const _0x360e0=_0x56e0a9,_0x4716ab=this[_0x360e0(0x22c)][_0x360e0(0x28d)][_0x360e0(0x25d)](()=>{this['_hover']=!0x0;}),_0x2e8981=this[_0x360e0(0x22c)][_0x360e0(0x3be)]['subscribeEvent'](()=>{const _0x2cbe85=_0x360e0;this['_hideTimer']&&clearTimeout(this[_0x2cbe85(0x1d2)]),this[_0x2cbe85(0x1d2)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x400cb3=_0x360e0;_0x4716ab['unsubscribe'](),_0x2e8981[_0x400cb3(0x2b4)]();};}[_0x56e0a9(0x2fd)](_0x52bac0,_0x1a449d,_0x53458c,_0x3e4952){const _0x3c68d2=_0x56e0a9,_0x46898c=new a[(_0x3c68d2(0x36b))](_0x52bac0)['setAlpha'](0.2)[_0x3c68d2(0x297)](),_0x4c10d3=new p[(_0x3c68d2(0x402))](bt+a['generateRandomId'](F),{'pointsGroup':_0x1a449d,'fill':_0x46898c||p['getColor'](a[_0x3c68d2(0x309)][_0x3c68d2(0x1e6)],0.2),'left':_0x53458c,'top':_0x3e4952,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3c68d2(0x22e)](_0x4c10d3),this[_0x3c68d2(0x3ea)][_0x3c68d2(0x3f3)](_0x4c10d3,E[_0x3c68d2(0x338)]);}['_drawRectRange'](_0x45355d,_0x5918f0,_0x41eb3b,_0x17980c){const _0x2f056d=_0x56e0a9,_0x343ed6=new a['ColorKit'](_0x45355d)[_0x2f056d(0x29d)](0.2)[_0x2f056d(0x297)](),_0x3ef859=new p[(_0x2f056d(0x402))](Ot+a[_0x2f056d(0x2a0)](F),{'pointsGroup':_0x5918f0,'fill':_0x343ed6||p[_0x2f056d(0x220)](a[_0x2f056d(0x309)]['black'],0.2),'left':_0x41eb3b,'top':_0x17980c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f056d(0x2b2)][_0x2f056d(0x22e)](_0x3ef859),this[_0x2f056d(0x3ea)][_0x2f056d(0x3f3)](_0x3ef859,E[_0x2f056d(0x338)]);}[_0x56e0a9(0x2ca)](_0x556f60){const _0x44d4d1=_0x556f60[0x0],_0x5e44da=_0x44d4d1[0x0],_0x2aa563=_0x44d4d1[0x2],{x:_0x580e6c,y:_0x3a52aa}=_0x5e44da,{x:_0x34adc8,y:_0x17bc70}=_0x2aa563;return{'left':_0x580e6c,'top':_0x3a52aa,'width':_0x34adc8-_0x580e6c,'height':_0x17bc70-_0x3a52aa};}[_0x56e0a9(0x2fc)](){const _0x2a6a72=_0x56e0a9,{scaleX:_0x3b5dd5,scaleY:_0x53ed8c}=this[_0x2a6a72(0x3ea)][_0x2a6a72(0x1ed)]();return Math[_0x2a6a72(0x216)](_0x3b5dd5,_0x53ed8c);}}var Ut=Object[_0x56e0a9(0x2a6)],Nt=(_0x3fd818,_0xf979ad,_0x5a464e,_0x5f5036)=>{for(var _0x1fceb1=_0x5f5036>0x1?void 0x0:_0x5f5036?Ut(_0xf979ad,_0x5a464e):_0xf979ad,_0x5a3da7=_0x3fd818['length']-0x1,_0x185d02;_0x5a3da7>=0x0;_0x5a3da7--)(_0x185d02=_0x3fd818[_0x5a3da7])&&(_0x1fceb1=_0x185d02(_0x1fceb1)||_0x1fceb1);return _0x1fceb1;},X=(_0x799737,_0x2269f6)=>(_0x3bdc59,_0x511f69)=>_0x2269f6(_0x3bdc59,_0x511f69,_0x799737);let fe=class extends a[_0x56e0a9(0x356)]{constructor(_0x263125,_0xdc502b,_0x4b2409,_0x5363f3,_0x574750){const _0x37a251=_0x56e0a9;super(),h(this,_0x37a251(0x3e2),[]),h(this,'_cursors',[]),(this[_0x37a251(0x2f1)]=_0x263125,this[_0x37a251(0x34d)]=_0xdc502b,this['_collabCursorController']=_0x4b2409,this[_0x37a251(0x1c5)]=_0x5363f3,this[_0x37a251(0x26e)]=_0x574750,this[_0x37a251(0x2dd)]());}[_0x56e0a9(0x2dd)](){const _0x59e8a1=_0x56e0a9,_0x16dac4=this[_0x59e8a1(0x2f1)][_0x59e8a1(0x377)],_0x4c1b15=this['_docSkeletonManagerService'];this[_0x59e8a1(0x39f)](d[_0x59e8a1(0x3e3)]([this['_collabCursorController']['getCollabCursors$'](_0x16dac4),this[_0x59e8a1(0x26e)][_0x59e8a1(0x406)]])['pipe']($[_0x59e8a1(0x2f4)](([_0x58fd74,_0x54f2ab])=>({'skeleton':_0x4c1b15[_0x59e8a1(0x1a7)](),'cursors':[..._0x58fd74['values']()][_0x59e8a1(0x3a2)](_0x4ec4b9=>({..._0x4ec4b9,'color':this[_0x59e8a1(0x26e)][_0x59e8a1(0x281)](_0x4ec4b9[_0x59e8a1(0x40c)])}))})))[_0x59e8a1(0x2b1)](_0x5064cb=>{const _0x4a24f1=_0x59e8a1;if(this[_0x4a24f1(0x382)](),_0x5064cb){const {skeleton:_0x5f13ca,cursors:_0x103490}=_0x5064cb;this[_0x4a24f1(0x1b1)](_0x5f13ca,_0x103490);}})),this['_initResize'](),this[_0x59e8a1(0x349)]();}[_0x56e0a9(0x1b1)](_0x4646f1,_0x2b1f50){const _0x449f04=_0x56e0a9,{scene:_0x1b8e16,mainComponent:_0x105c47}=this[_0x449f04(0x2f1)],_0x5b3bc5=_0x2b1f50[_0x449f04(0x2f4)](_0x3e5653=>new Re(_0x3e5653,_0x1b8e16,_0x4646f1,_0x105c47));this[_0x449f04(0x3e2)]=_0x5b3bc5,this['_cursors']=_0x2b1f50;}['_refreshCollabCursors'](){const _0x505ec2=_0x56e0a9;this[_0x505ec2(0x382)]();const {scene:_0x253c14,mainComponent:_0x12dc29}=this[_0x505ec2(0x2f1)],_0x4164a1=this[_0x505ec2(0x34d)]['getSkeleton'](),_0x5e2d99=this['_cursors'][_0x505ec2(0x2f4)](_0xaa948c=>new Re(_0xaa948c,_0x253c14,_0x4164a1,_0x12dc29));this[_0x505ec2(0x3e2)]=_0x5e2d99;}[_0x56e0a9(0x382)](){const _0x5afa15=_0x56e0a9;this['_cursorShapes'][_0x5afa15(0x302)](_0x5ea953=>_0x5ea953[_0x5afa15(0x1d5)]()),this[_0x5afa15(0x3e2)]=[];}[_0x56e0a9(0x349)](){const _0x76ac33=_0x56e0a9,_0xe1dab3=[E[_0x76ac33(0x3c6)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x5465f7=>{const _0x4094c6=_0x76ac33;_0xe1dab3[_0x4094c6(0x2ff)](_0x5465f7['id'])&&_0x5465f7[_0x4094c6(0x2e3)][_0x4094c6(0x377)]===this['_context']['unitId']&&this[_0x4094c6(0x2a5)]();}));}[_0x56e0a9(0x19f)](){const _0x583bdc=_0x56e0a9;this[_0x583bdc(0x39f)](a['fromEventSubject'](this[_0x583bdc(0x2f1)][_0x583bdc(0x3d7)][_0x583bdc(0x236)])[_0x583bdc(0x2d7)]($[_0x583bdc(0x276)](_0x1e57c2=>_0x1e57c2[_0x583bdc(0x305)]===p[_0x583bdc(0x3a3)]['resize']),$[_0x583bdc(0x3ad)](0x10))[_0x583bdc(0x2b1)](()=>{const _0xfce448=_0x583bdc;this[_0xfce448(0x2a5)]();}));}};fe=Nt([X(0x1,a[_0x56e0a9(0x39b)](Y[_0x56e0a9(0x40d)])),X(0x2,a[_0x56e0a9(0x39b)](x)),X(0x3,a['ICommandService']),X(0x4,a[_0x56e0a9(0x39b)](a['ThemeService']))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x56e0a9(0x2aa)]{constructor(_0x2b2542,_0x3c5542){const _0x402381=_0x56e0a9;super(_0x2b2542,_0x3c5542),h(this,'_color'),h(this,_0x402381(0x293),!0x1),h(this,_0x402381(0x204)),h(this,_0x402381(0x2d4),''),h(this,_0x402381(0x34f),_0x402381(0x2be)),h(this,_0x402381(0x3f5)),(_0x3c5542&&this[_0x402381(0x312)](_0x3c5542),this[_0x402381(0x28d)][_0x402381(0x25d)](()=>this[_0x402381(0x312)]({'hovered':!0x0})),this[_0x402381(0x3be)][_0x402381(0x25d)](()=>this[_0x402381(0x312)]({'hovered':!0x1})));}[_0x56e0a9(0x312)](_0x1fc59a){const _0x3653c4=_0x56e0a9;var _0x45c78c,_0x3b39d8,_0x4a8cb2,_0x450728,_0x1d9ba6,_0x1d0a9b;this['_color']=(_0x45c78c=_0x1fc59a[_0x3653c4(0x40c)])!=null?_0x45c78c:this[_0x3653c4(0x242)],this[_0x3653c4(0x293)]=(_0x3b39d8=_0x1fc59a[_0x3653c4(0x20a)])!=null?_0x3b39d8:this['_hovered'],this[_0x3653c4(0x204)]=(_0x4a8cb2=_0x1fc59a[_0x3653c4(0x3c1)])!=null?_0x4a8cb2:this[_0x3653c4(0x204)],this[_0x3653c4(0x2d4)]=(_0x450728=_0x1fc59a[_0x3653c4(0x36d)])!=null?_0x450728:this[_0x3653c4(0x2d4)],this['_labelPosition']=(_0x1d9ba6=_0x1fc59a['labelPosition'])!=null?_0x1d9ba6:this[_0x3653c4(0x34f)],this[_0x3653c4(0x3f5)]=(_0x1d0a9b=_0x1fc59a[_0x3653c4(0x213)])!=null?_0x1d0a9b:this['_backgroundColor'],this[_0x3653c4(0x357)]({'width':_0x1fc59a[_0x3653c4(0x3c8)],'height':_0x1fc59a[_0x3653c4(0x262)]});}[_0x56e0a9(0x3de)](_0x3af8be){const _0x22e455=_0x56e0a9,{row:_0x31f338,column:_0x54171c}=_0x3af8be;if(_0x31f338>=this[_0x22e455(0x204)][_0x22e455(0x20f)]&&_0x31f338<=this[_0x22e455(0x204)][_0x22e455(0x28b)]&&_0x54171c>=this['_range'][_0x22e455(0x238)]&&_0x54171c<=this[_0x22e455(0x204)]['endColumn']){this[_0x22e455(0x312)]({'hovered':!0x0});return;}this[_0x22e455(0x312)]({'hovered':!0x1});}[_0x56e0a9(0x2a7)](_0x32a9e5){return!0x1;}[_0x56e0a9(0x2ec)](_0x3e156d){const _0x3d83a5=_0x56e0a9;p[_0x3d83a5(0x363)][_0x3d83a5(0x3b0)](_0x3e156d,{'width':this[_0x3d83a5(0x3c8)],'height':this['height'],'strokeWidth':Lt,'stroke':this[_0x3d83a5(0x242)],'evented':!0x1,'fill':this[_0x3d83a5(0x3f5)]}),this[_0x3d83a5(0x293)]&&(_0x3e156d[_0x3d83a5(0x306)](),_0x3e156d[_0x3d83a5(0x1a8)](0x1,0x0,0x0,0x1,this[_0x3d83a5(0x3c8)],this[_0x3d83a5(0x34f)]===_0x3d83a5(0x232)?0x0:-W),ee[_0x3d83a5(0x3b0)](_0x3e156d,{'text':this[_0x3d83a5(0x2d4)],'color':this[_0x3d83a5(0x242)]}),_0x3e156d[_0x3d83a5(0x318)]());}}var Pt=Object[_0x56e0a9(0x2a6)],wt=(_0x53c34c,_0x220c33,_0x4aa8ae,_0x5e5c88)=>{for(var _0xaff276=_0x5e5c88>0x1?void 0x0:_0x5e5c88?Pt(_0x220c33,_0x4aa8ae):_0x220c33,_0x22a0f1=_0x53c34c['length']-0x1,_0x2bad21;_0x22a0f1>=0x0;_0x22a0f1--)(_0x2bad21=_0x53c34c[_0x22a0f1])&&(_0xaff276=_0x2bad21(_0xaff276)||_0xaff276);return _0xaff276;},ae=(_0x153f6f,_0x36adf7)=>(_0x384a89,_0x2ae37b)=>_0x36adf7(_0x384a89,_0x2ae37b,_0x153f6f);const At=0x1389;let Ie=class extends a[_0x56e0a9(0x356)]{constructor(_0x309c24,_0x230f63,_0xb2da45,_0x5e3c67){const _0x445ed8=_0x56e0a9;super(),h(this,'_cursors',new Set()),h(this,'_lastPointer',null),(this[_0x445ed8(0x2f1)]=_0x309c24,this[_0x445ed8(0x1f9)]=_0x230f63,this[_0x445ed8(0x234)]=_0xb2da45,this['_themeService']=_0x5e3c67,this[_0x445ed8(0x2dd)]());}[_0x56e0a9(0x2dd)](){const _0x241eb1=_0x56e0a9;this['_sheetSkeletonManagerService'][_0x241eb1(0x21a)][_0x241eb1(0x2d7)]($[_0x241eb1(0x1d4)](this[_0x241eb1(0x2ab)]),$[_0x241eb1(0x2c3)](_0xddcacd=>{const _0x187575=_0x241eb1;if(_0xddcacd){const _0x5109fc=_0xddcacd[_0x187575(0x355)];return d[_0x187575(0x3e3)](this['_collabCursorController'][_0x187575(0x40b)](this['_context'][_0x187575(0x377)]),this[_0x187575(0x26e)][_0x187575(0x406)])[_0x187575(0x2d7)]($[_0x187575(0x2f4)](([_0x2fcc37,_0x3862d1])=>{const _0x2dc8f5=_0x187575,_0x513cfa=new Map();return _0x2fcc37[_0x2dc8f5(0x302)]((_0x1c4184,_0x5beb63)=>{const _0x1927d4=_0x2dc8f5;if(_0x1c4184[_0x1927d4(0x352)]===_0x5109fc){const _0x3b044d={..._0x1c4184};_0x3b044d[_0x1927d4(0x40c)]=this[_0x1927d4(0x26e)][_0x1927d4(0x281)](_0x1c4184[_0x1927d4(0x40c)]),_0x513cfa[_0x1927d4(0x39e)](_0x5beb63,_0x3b044d);}}),{'skeleton':_0xddcacd,'cursors':_0x513cfa};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x241eb1(0x2b1)](({skeleton:_0x46a2e4,cursors:_0x503737})=>{const _0x327aa6=_0x241eb1;this[_0x327aa6(0x382)](),_0x46a2e4&&this['_updateCollabCursors'](_0x46a2e4,_0x503737);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x532b47=>{const _0x5ac0d9=_0x241eb1;if(_0x532b47==null)return;const {skeleton:_0x54c88f}=_0x532b47,{scene:_0x4d4302}=this[_0x5ac0d9(0x2f1)];_0x4d4302[_0x5ac0d9(0x22b)][_0x5ac0d9(0x25d)](a[_0x5ac0d9(0x303)](_0x5edbc=>{const _0x1060d7=_0x5ac0d9;var _0xa697d0,_0x2da776;const {offsetX:_0x2d21d9,offsetY:_0x1e931a}=_0x5edbc,{x:_0x171d99,y:_0x3016c4}=_0x4d4302[_0x1060d7(0x3f6)](p[_0x1060d7(0x2e9)][_0x1060d7(0x1fe)]([_0x2d21d9,_0x1e931a])),{scaleX:_0x4ca7a9,scaleY:_0x3ce9d9}=_0x4d4302[_0x1060d7(0x1ed)](),_0x6bea35=_0x4d4302[_0x1060d7(0x1b5)](p[_0x1060d7(0x29f)][_0x1060d7(0x25e)]),_0x345b64=_0x4d4302[_0x1060d7(0x21e)](p['Vector2']['FromArray']([_0x171d99,_0x3016c4]),_0x6bea35),_0x245baa=_0x54c88f['getCellPositionByOffset'](_0x2d21d9,_0x1e931a,_0x4ca7a9,_0x3ce9d9,_0x345b64);((_0xa697d0=this[_0x1060d7(0x378)])==null?void 0x0:_0xa697d0[_0x1060d7(0x314)])===_0x245baa[_0x1060d7(0x314)]&&((_0x2da776=this[_0x1060d7(0x378)])==null?void 0x0:_0x2da776[_0x1060d7(0x27f)])===_0x245baa[_0x1060d7(0x27f)]||this['_cursors']['forEach'](_0x58d86f=>{const _0x23d8e1=_0x1060d7;_0x58d86f[_0x23d8e1(0x3de)](_0x245baa);});},0x64));});}[_0x56e0a9(0x1b1)](_0x2577ae,_0x1dbc57){const _0xc09262=_0x56e0a9;var _0x5fe814;const _0x3d9915=(_0x5fe814=this[_0xc09262(0x1f9)]['getCurrent']())==null?void 0x0:_0x5fe814[_0xc09262(0x32b)];if(!_0x3d9915)return;const _0x15bb16=this['_getSheetObject']();if(!_0x15bb16)return;this[_0xc09262(0x374)][_0xc09262(0x302)](_0x434e80=>{const _0x38f1f5=_0xc09262;_0x434e80[_0x38f1f5(0x320)]();});const {scene:_0x4a0474}=_0x15bb16,_0x4260e6=yt(Array['from'](_0x1dbc57[_0xc09262(0x375)]()))[_0xc09262(0x2f4)](_0x4757ea=>{const _0x5c024c=_0xc09262,{color:_0x17017b,range:_0x3bb073,name:_0xf56217,selection:_0x10008c,sheetID:_0x1489ba}=_0x4757ea,{startColumn:_0xda8541,startRow:_0x294424,endColumn:_0xa2f783,endRow:_0x3a6504}=_0x3bb073,_0x390666=G[_0x5c024c(0x3ae)](_0x294424,_0xda8541,_0x4a0474,_0x3d9915),_0x6ef7b1=G[_0x5c024c(0x3ae)](_0x3a6504,_0xa2f783,_0x4a0474,_0x3d9915),{columnHeaderHeightAndMarginTop:_0x4cfd73}=_0x3d9915,{startX:_0x23f8d4,startY:_0x3735de}=_0x390666,{endX:_0x14e401,endY:_0x84297c}=_0x6ef7b1,_0x54b872=_0x14e401-_0x23f8d4,_0x7d27ef=_0x84297c-_0x3735de,_0x4f3275={'labelPosition':_0x3735de-_0x4cfd73>=W?_0x5c024c(0x2be):_0x5c024c(0x232),'sheetID':_0x1489ba,'range':_0x3bb073,'color':_0x17017b,'name':_0xf56217,'selection':_0x10008c,'left':_0x23f8d4,'top':_0x3735de,'width':_0x54b872,'height':_0x7d27ef,'evented':!0x1,'zIndex':At};return new $e(_0xf56217,_0x4f3275);});_0x4a0474['addObjects'](_0x4260e6,Mt),this[_0xc09262(0x374)]=new Set(_0x4260e6);}[_0x56e0a9(0x382)](){const _0x27d2f4=_0x56e0a9;var _0x5e7fd8;(_0x5e7fd8=this['_cursors'])==null||_0x5e7fd8['forEach'](_0x52b7a5=>_0x52b7a5[_0x27d2f4(0x1d5)]());}[_0x56e0a9(0x226)](){const _0x1bff94=_0x56e0a9;return G[_0x1bff94(0x292)](this[_0x1bff94(0x2f1)][_0x1bff94(0x37e)],this[_0x1bff94(0x2f1)]);}};Ie=wt([ae(0x1,a[_0x56e0a9(0x39b)](G['SheetSkeletonManagerService'])),ae(0x2,a[_0x56e0a9(0x39b)](x)),ae(0x3,a[_0x56e0a9(0x39b)](a['ThemeService']))],Ie);function yt(_0x285fc3){const _0x589fb2=_0x56e0a9,_0x3c1cda=new Map();return _0x285fc3[_0x589fb2(0x302)](_0x473c91=>{const _0x3d6066=_0x589fb2;if(_0x3c1cda[_0x3d6066(0x1e0)](_0x473c91[_0x3d6066(0x1e4)])){const _0x221460=_0x3c1cda[_0x3d6066(0x31d)](_0x473c91[_0x3d6066(0x1e4)]);_0x221460['name']+=',\x20'+_0x473c91['name'];}else _0x3c1cda[_0x3d6066(0x39e)](_0x473c91[_0x3d6066(0x1e4)],_0x473c91);}),Array['from'](_0x3c1cda[_0x589fb2(0x375)]());}var $t=Object[_0x56e0a9(0x2a6)],xt=(_0x1014a4,_0x5ade69,_0x42fe5c,_0x117f50)=>{const _0x198099=_0x56e0a9;for(var _0x207226=_0x117f50>0x1?void 0x0:_0x117f50?$t(_0x5ade69,_0x42fe5c):_0x5ade69,_0x257a9c=_0x1014a4[_0x198099(0x202)]-0x1,_0x1f66df;_0x257a9c>=0x0;_0x257a9c--)(_0x1f66df=_0x1014a4[_0x257a9c])&&(_0x207226=_0x1f66df(_0x207226)||_0x207226);return _0x207226;},y=(_0x5f2a0a,_0x42cf5f)=>(_0x408c73,_0x46eb6f)=>_0x42cf5f(_0x408c73,_0x46eb6f,_0x5f2a0a);let q=class extends a[_0x56e0a9(0x229)]{constructor(_0x520e30,_0xdf3f36,_0x5a02d5,_0x7e55bd,_0x349551,_0x150e48){const _0x509e9e=_0x56e0a9;super(),this['_beforeCloseService']=_0x520e30,this[_0x509e9e(0x2d6)]=_0xdf3f36,this['_collaborationUIEventService']=_0x5a02d5,this[_0x509e9e(0x1a0)]=_0x7e55bd,this[_0x509e9e(0x237)]=_0x349551,this[_0x509e9e(0x1e5)]=_0x150e48,this[_0x509e9e(0x1aa)](),this[_0x509e9e(0x3ab)]();}[_0x56e0a9(0x1aa)](){const _0x28f897=_0x56e0a9;this[_0x28f897(0x39f)](this[_0x28f897(0x36c)]['registerBeforeClose'](()=>{const _0x153e9c=_0x28f897;if(this[_0x153e9c(0x2d6)][_0x153e9c(0x399)][_0x153e9c(0x283)])return this[_0x153e9c(0x1e5)]['t'](_0x153e9c(0x250));}));}[_0x56e0a9(0x3ab)](){const _0x1cfe12=_0x56e0a9;this[_0x1cfe12(0x39f)](this[_0x1cfe12(0x228)][_0x1cfe12(0x29b)][_0x1cfe12(0x2b1)](_0x1606ff=>{const _0x4fd92a=_0x1cfe12;_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x259)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D[_0x4fd92a(0x2b3)][_0x4fd92a(0x19c)],'content':this['_localeService']['t'](_0x4fd92a(0x275))}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x254)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D[_0x4fd92a(0x2b3)][_0x4fd92a(0x19c)],'content':this['_localeService']['t'](_0x4fd92a(0x1c8))}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x3b9)]&&this[_0x4fd92a(0x237)][_0x4fd92a(0x3b5)]({'title':this[_0x4fd92a(0x1e5)]['t']('permission.title'),'content':this[_0x4fd92a(0x1e5)]['t']('permission.content'),'type':_0x4fd92a(0x2f3),'duration':0x0}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x1db)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D[_0x4fd92a(0x2b3)][_0x4fd92a(0x3af)],'content':this[_0x4fd92a(0x1e5)]['t']('collaboration.closeRoom')+'('+_0x1606ff[_0x4fd92a(0x400)]+')'}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x398)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D['MessageType'][_0x4fd92a(0x19c)],'content':this[_0x4fd92a(0x1e5)]['t'](_0x1606ff[_0x4fd92a(0x400)]||'')}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x27c)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D['MessageType']['Warning'],'content':this[_0x4fd92a(0x1e5)]['t'](_0x4fd92a(0x26a))}),_0x1606ff['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D[_0x4fd92a(0x2b3)][_0x4fd92a(0x3af)],'content':this[_0x4fd92a(0x1e5)]['t'](_0x4fd92a(0x1ad))}),_0x1606ff['id']===u['CollaborationUIEventId'][_0x4fd92a(0x253)]&&this[_0x4fd92a(0x1a0)]['show']({'type':D[_0x4fd92a(0x2b3)]['Error'],'content':this[_0x4fd92a(0x1e5)]['t'](_0x4fd92a(0x1cd))});}));}};q=xt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x56e0a9(0x1c0)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x3ff)]))],q);const Bt=_0x56e0a9(0x3d9),De={};function _0x4745(){const _0x18365d=['CONNECTOR_DATA_TOO_LARGE','event$','none','setAlpha','function','SHEET_VIEWPORT_KEY','generateRandomId','createInstance','43412qXybMo','_cachedData','YUUMI_RATE_OVER_LIMIT','_refreshCollabCursors','getOwnPropertyDescriptor','triggerDblclick','PY_RUNTIME_SCRIPT_ERROR','ICommandService','Shape','dispose$','Module','transformMutationsWithChangeset','5QPdNvU','assignAColorForMemberID','getUnitId','subscribe','_shapes','MessageType','unsubscribe','assign','blue.400','IUniverInstanceService','complete','url(#$1','fill','executionId','InsertRowCommandId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','top','M0\x200H16V16H0z','_logService','_transformHistoryAndStateStack','ticket','switchMap','_onRefRangeChange','getActiveSheet','UnitStatus','_cursor','saveOfflineData','div','_getAnchorBounding','some','INTERNAL_ERROR','CollaborationUIEventId','_config','_scheduleHeartbeat','_drawAnchor','clipPath','location','UniverIcon','_name','replaceState','_localCacheService','pipe','_updateLocalCursor','INVITE_CODE_HAS_BEEN_UES','_handleEvent','BrowserCollaborationSocketService','code','_init','YUUMI_ALL_TABLES_IS_INVALID','displayName','IConfigService','ranges','substring','params','CollaborationEvent','getUnhiddenWorksheets','cursorInfo','COMPLETION_FINISHED','_removeClearOtherTimer','Vector2','getMemberID','connectInjector','_draw','redoState','isActive','roomMembers','1218574fpnbNa','_context','handleInsertRangeMoveRight','error','map','getCollabEntity$','_send','fillRule','_univerInstanceService','HTTPService','getMember','SessionStatus','_getScale','_drawTextRange','SetTextSelectionsOperation','includes','indexOf','handleDeleteRangeMoveUp','forEach','debounce','CollaborationDataLoaderController','type','save','DeleteRangeMoveLeftCommandId','MemberService','COLORS','INVALID_INVITE_CODE','CollaborationSessionService','LICENSE_IMPORT_SIZE_EXCEEDED','_syncEditingCollabCursorService','trim','prototype','_unitStatus','_updateURLWithCurrentState','setShapeProps','onStarting','column','createElement','getOffsetConfig','_session','restore','DOC_RANGE_TYPE','_docClipboardService','RECT','univerjs-icon\x20univerjs-icon-','get','_docTransformStateCacheService','DesktopCollaborationStatusDisplayController','makeDirty','MUTATION','icon','defIds','_registerRenderDependencies','post','MOBILE_VERIFY_CODE_MISMATCH','handleInsertCol','cursorInfo$','_entities','find','skeleton','RemoveRowCommandId','contains','eventID','delete','Tools','transformMutation','ONLINE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_roomMembers$','registerDependencies','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','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','TEXT_RANGE_LAYER_INDEX','collab-text-range-','invokeId','m1Prime','SYNCED','next','onLocalMutation','clearTimeout','_initEntityListener','YUUMI_SUBSCRIPTION_NOT_FOUND','UNRECOGNIZED','getUnitStatus$','IDocClipboardService','getFocusedUnit','mergeOverrideWithDependencies','ACTIVE_UNIT_EVENT_CHANNEL','_onCursorDelete','_initCommandExecutedListener','getRenderById','setConfig','_initStatusListener','_docSkeletonManagerService','useObservable','_labelPosition','onCommandExecuted','useCallback','sheetID','moveTo','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheetId','RxDisposable','transformByState','ENSURE_SNAPSHOT_EXECUTION','string','_configService','_anchorDot','defineProperty','getValue','UniverCollaborationClientPlugin','_clearOtherTimers','shareReplay','_saveTaskMap','InsertColCommandId','Rect','min','getParam','on-line-icon_clip0_910_349','toStringTag','OnLineIcon','runOnServer','ALREADY_EXISTS','ColorKit','_beforeCloseService','name','InsertRangeMoveDownCommandId','_collabSessionService','green.600','_ensureSubject','Failed','debounceTime','_cursors','values','SheetCollabCursorShape','unitId','_lastPointer','_updateSubUnitFromURLParams','searchParams','unshift','APPLY_NON_SEQUENTIAL_REVISION','history','unit','DisposableCollection','1em','_colorIndex','_removeCollabCursors','8130115WbrHLj','findNodePositionByCharIndex','MoveRangeCommandId','deserializeRangeWithSheet','WebBrowserSingleActiveUnitService','getActiveRange','send','_textBubble','_localStorageService','forwardRef','handleIRemoveRow','UNIVER_SHEET','_colorAssignService','off-line-icon','rgba(255,\x20255,\x20255,\x200.01)','INVITE_CODE_REQUIRED','_scheduleSaving','CollaborationController','getConfig','EMAIL_HAS_BEEN_BOUND','_initStatusComponent','JOIN_ROOM_FAILED','saveTaskMap','UNAUTHENTICATED','Inject','getUniverSheetInstance','LICENSE_DISTRO_REJECTED','set','disposeWithMe','Unknown\x20user','exhaustSavingTask','flatMap','TRANSFORM_CHANGE_OBSERVABLE_TYPE','setActiveRange','merge','_render','UniverCollaborationClientUIPlugin','href','key','xlink:href','_initEvent','disposeUnit','throttleTime','getCoordByCell','Error','drawWith','setParam','LICENSE_EXPORT_SIZE_EXCEEDED','pluginName','getMergeData','show','_hover','docStateChange$','toDisposable','PERMISSION_DENIED','entityInit$','LOCAL_CACHE_INTERVAL','transformSelections','jsx','onPointerLeave$','_initDependencies','setItem','range','DocIMEInputManagerService','toString','collabStatus.conflict','_entityInit$','SetDocZoomRatioOperation','SNAPSHOT_HAS_BEEN_REMOVED','width','setStateCache','CollaborationStatus','_handleHeartbeatEvent','_docTransformIMECacheService','_doCreateSocket','CollaborationSocketService','override','INVITE_CODE_ALREADY_BOUND','addHandlerCallback','APPLY_PERMISSION_DENIED','_online','useDependency','RemoteUniscriptService','children','engine','univer-flex\x20univer-items-center','collaboration-client-ui.config','setInterval','replace','collabStatus.offline','Subject','onMouseMove','on-line-icon','executeCommand','source','_cursorShapes','combineLatest','_id','from','svg','textRanges','enableLocalCache','className','_scene','_registerDependencies','UNDEFINED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','serializeRangeWithSheet','_getMergeRange','_onCursorUpdate','isTransformMutationsWithChangesetSuccess','requireSession','addObject','collabStatus.synced','_backgroundColor','getRelativeToViewportCoord','focused$','split','WECHAT_HAS_BEEN_BOUND','_status$','_toggleOffline','_assignedColors','YUUMI_UNABLE_LOAD_URL','UNIVER_DOC','LocaleService','data','sessionTicket','RegularPolygon','unload','HEADER_MENU','DeleteRangeMoveUpCommandId','currentTheme$','pushState','url(#on-line-icon_clip0_910_349)','SetSelectionsOperation','_revisionService','getCollabCursors$','color','DocSkeletonManagerService','_docTransformSelectionsService','EffectRefRangId','use','whenReady','entries','with','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','createSocket','_startDocCollabCursor','storage','Warning','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_selfUnitIDs','_initResize','_messageService','LICENSE_MAX_UNITS_EXCEEDED','roomMembers$','_disabled','_unitOnClients','undoState','handleIRemoveCol','getSkeleton','transform','idSuffix','_setupBeforeClosingHandler','m2Prime','_handleHover','session.connection-failed','subunit','deepClone','newValue','_updateCollabCursors','_toggleOnline','lineTo','syncEditingCollabCursor','getViewport','_docSyncEditingCollabCursorService','YUUMI_CONNECTOR_URL_NOT_FOUND','random','popstate','selections','_transformService','colorChannel1','_setupSubUnitSync','init','mutations','ILocalCacheService','_refRangeService','NodePositionConvertToRectRange','BuiltInUIPart','_urlService','_commandService','subUnitId','attrs','collaboration.closeRoom','SNAPSHOT_INVALID_SNAPSHOT','Rectangle','parse','USERS_LEAVE','session.collaboration-timeout','round','_transformUndoRedoStack','updateOfflineData','closePath','_hideTimer','runRefRangeMutations','takeUntil','dispose','5189432zDFaYd','ITransformService','getTypeOfUnitAdded$','IImageIoService','uni.network.url-service','CONFLICT','getCurrentRevOfUnit','Injector','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_getSaveTimeout','has','EMAIL_VERIFY_CODE_MISMATCH','handleInsertRow','DEFAULT_WS_SESSION_TICKET_URL','selection','_localeService','black','RichTextEditingMutation','OTHER_CLIENTS_EDITING','getRangePointData','unitID','registerRenderModule','_renderManagerService','getAncestorScale','306FLYHIv','saveImage','replaceDocRanges','evenodd','then','IURLService','arc','_instanceService','clearInterval','SetWorksheetActivateCommand','fillText','_sheetSkeletonManagerService','onRendered','getUndoRedoMutationParamsCache','doc.mutation.rich-text-editing','univer-mr-2\x20univer-flex\x20univer-text-xl','FromArray','white','path','_memberService','length','registerRefRange','_range','Workbook','getSheetId','YUUMI_TABLE_NOT_FOUND_IN_UNIT','DataLoaderService','NOT_COLLAB','hovered','debug','APPLY_DUPLICATED','IUIPartsService','measureText','startRow','TEXT','_scheduleClearOtherTimer','_startSheetCollabCursor','backgroundColor','hasOwnProperty','ILogService','max','_createSocketURL','getStateCache','http://www.w3.org/2000/svg','currentSkeleton$','/run/','getTypeOfUnitDisposed$','_docStateChangeManagerService','getVpScrollXYInfoByPosToVp','runId','getColor','getLocalCacheKey','urlChange$','LOGIN_FAILED','MOBILE_HAS_BEEN_BOUND','mapTo','_getSheetObject','_collabCursorState$','_collaborationUIEventService','Disposable','_eventUnsubscribe','onPointerMove$','_anchor','getCurrentSelections','push','fillStyle','BehaviorSubject','getOwnPropertySymbols','bottom','YUUMI_AI_RUN_FAILED','_collabCursorController','APPLY_REVISION_CONFILICT','onTransformChange$','_notificationService','startColumn','editingUnit','getDocRanges','DocCollaborationEntity','4682598cFkJwa','jsxs','wsSessionTicketUrl','loadUnit','call','tag','_color','_dataLoaderService','isArray','body','fromEvent','add','imageSourceType','NOT_FOUND','PENDING','DocSelectionManagerService','RevisionService','getItem','mask','extend','collaboration-client.offline-data-not-saved','LOCAL_CACHE_INTERVAL_KEY','[CollaborationDataLoaderController]','SUBMIT_CHANGESET_TIMEOUT','CLOSE_ROOM','transformRemoteChangeset','getSheetBySheetId','CHANGESET_REVISION_CONFILICT','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','OTHER_CLIENT_EDITING','WebSocketService','YUUMI_URL_COL_OUT_OF_RANGE','defs','subscribeEvent','VIEW_MAIN','_heartbeatTimer','useRef','collab-rect-range-','height','_injector','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','concat','APPLY_REJECT','currentColor','isTransformMutationFailure','INVALID_ARGUMENT','session.will-retry','_getSessionTicket','purple.300','off-line-icon_clip0_910_343','_themeService','_collaborationController','result','setTimeout','_saveCache','hide','SheetsSelectionsService','collaboration.single-unit.warning','filter','9KAydvF','OFFLINE','collabCursorState$','_httpService','NO_OTHER_CLIENTS_EDITING','SOCKET_FAILED_RETRY','all','DependentOn','row','6112390QMOAHP','getColorFromTheme','_cursorInfo$','size','getCurrentUnitForType','_handleLeaveEvent','distinctUntilChanged','text','UPDATE_CURSOR','USER_NOT_INVITED_CODE','_imageIoService','endRow','_transformPreviousActiveRange','onPointerEnter$','transformStateCache','setUndoRedoMutationParamsCache','asObservable','771400ufViVH','getSheetObject','_hovered','RemoveColCommandId','UniverInstanceType','transformIMECache','toRgbString','_document','url(#off-line-icon_clip0_910_343)'];_0x4745=function(){return _0x18365d;};return _0x4745();}var jt=Object[_0x56e0a9(0x2a6)],kt=(_0x3f72d4,_0xb2523e,_0x5ec031,_0x1bff6f)=>{for(var _0x18a3b2=_0x1bff6f>0x1?void 0x0:_0x1bff6f?jt(_0xb2523e,_0x5ec031):_0xb2523e,_0xc8bb27=_0x3f72d4['length']-0x1,_0x1a07a3;_0xc8bb27>=0x0;_0xc8bb27--)(_0x1a07a3=_0x3f72d4[_0xc8bb27])&&(_0x18a3b2=_0x1a07a3(_0x18a3b2)||_0x18a3b2);return _0x18a3b2;},Ue=(_0x496333,_0x386f91)=>(_0x5a1677,_0x57bd05)=>_0x386f91(_0x5a1677,_0x57bd05,_0x496333);let z=class{constructor(_0x1b9b5e,_0x2faf08){this['_transformService']=_0x1b9b5e,this['_renderManagerService']=_0x2faf08;}[_0x56e0a9(0x296)](_0x4feb47){const _0x2d97f5=_0x56e0a9;this[_0x2d97f5(0x1cf)](_0x4feb47),this[_0x2d97f5(0x28c)](_0x4feb47);}[_0x56e0a9(0x255)](_0x3f75b1){const _0x457210=_0x56e0a9,{unitID:_0x284335}=_0x3f75b1,_0x4afcbf=this['_renderManagerService'][_0x457210(0x34a)](_0x284335)[_0x457210(0x197)](E[_0x457210(0x3c2)]),{redoCache:_0x58e41e}=_0x4afcbf[_0x457210(0x1fb)]();if(_0x58e41e[_0x457210(0x202)]===0x0)return _0x3f75b1;let _0x539dd9=a[_0x457210(0x330)][_0x457210(0x1af)](_0x3f75b1['mutations'][0x0]);for(let _0x3dc0b5=0x0;_0x3dc0b5<_0x58e41e[_0x457210(0x202)];_0x3dc0b5++){const _0x14f08a={'id':_0x457210(0x1fc),'params':{..._0x58e41e[_0x3dc0b5]}},_0x354921=this[_0x457210(0x1bb)][_0x457210(0x331)](_0x539dd9,_0x14f08a,!0x1);if(m[_0x457210(0x268)](_0x354921))throw _0x354921['error'];_0x539dd9=_0x354921[_0x457210(0x33b)];}return{...a[_0x457210(0x330)][_0x457210(0x1af)](_0x3f75b1),'mutations':[_0x539dd9]};}['_transformUndoRedoStack'](_0x3ccba5){const _0x54bab9=_0x56e0a9,{unitID:_0x413ec0}=_0x3ccba5,_0x26574c=this['_renderManagerService'][_0x54bab9(0x34a)](_0x413ec0)[_0x54bab9(0x197)](E['DocIMEInputManagerService']),{undoCache:_0x13d655,redoCache:_0xf08f74}=_0x26574c['getUndoRedoMutationParamsCache']();if(_0x13d655[_0x54bab9(0x202)]===0x0||_0xf08f74[_0x54bab9(0x202)]===0x0)return;const _0x26aa85=[],_0x22a15c=[];let _0x279a59=a[_0x54bab9(0x330)]['deepClone'](_0x3ccba5[_0x54bab9(0x1bf)][0x0]),_0x52416a=a['Tools'][_0x54bab9(0x1af)](_0x3ccba5[_0x54bab9(0x1bf)][0x0]);for(let _0x6cceb3=_0x13d655[_0x54bab9(0x202)]-0x1;_0x6cceb3>=0x0;_0x6cceb3--){const _0x5a1cde={'id':_0x54bab9(0x1fc),'params':{..._0x13d655[_0x6cceb3]}},_0x188ca0={'id':_0x54bab9(0x1fc),'params':{..._0xf08f74[_0x6cceb3]}},_0x1475e5=this[_0x54bab9(0x1bb)][_0x54bab9(0x331)](_0x279a59,_0x5a1cde,!0x1),_0x2daa8b=this[_0x54bab9(0x1bb)][_0x54bab9(0x331)](_0x52416a,_0x188ca0,!0x1);if(m[_0x54bab9(0x268)](_0x1475e5))throw _0x1475e5[_0x54bab9(0x2f3)];if(m[_0x54bab9(0x268)](_0x2daa8b))throw _0x2daa8b[_0x54bab9(0x2f3)];_0x26aa85[_0x54bab9(0x37b)](_0x1475e5['m2Prime'][_0x54bab9(0x2e3)]),_0x22a15c[_0x54bab9(0x37b)](_0x2daa8b[_0x54bab9(0x1ab)][_0x54bab9(0x2e3)]),_0x279a59=_0x1475e5[_0x54bab9(0x33b)],_0x52416a=_0x2daa8b[_0x54bab9(0x33b)];}_0x26574c[_0x54bab9(0x28f)]({'undoCache':_0x26aa85,'redoCache':_0x22a15c});}[_0x56e0a9(0x28c)](_0x428ab4){const _0x175688=_0x56e0a9,{unitID:_0x4762de}=_0x428ab4,_0x5b1411=this[_0x175688(0x1ec)][_0x175688(0x34a)](_0x4762de)[_0x175688(0x197)](E['DocIMEInputManagerService']),_0x54660d=_0x5b1411[_0x175688(0x388)]();if(_0x54660d==null)return;const _0x29cf02=[{'id':_0x175688(0x1fc),'params':{'unitId':_0x428ab4[_0x175688(0x1ea)],'actions':null,'textRanges':[_0x54660d]}}],_0x5e43a5=this['_transformService'][_0x175688(0x2ad)](_0x428ab4,_0x29cf02);if(!m['isTransformMutationsWithChangesetSuccess'](_0x5e43a5))throw _0x5e43a5['error'];const _0x16cd86=_0x5e43a5[_0x175688(0x1ab)][0x0]['params']['textRanges'];Array[_0x175688(0x244)](_0x16cd86)&&_0x16cd86[_0x175688(0x202)]&&_0x5b1411[_0x175688(0x3a4)](_0x16cd86[0x0]);}};z=kt([Ue(0x0,m[_0x56e0a9(0x1d7)]),Ue(0x1,p['IRenderManagerService'])],z);var Ft=Object[_0x56e0a9(0x2a6)],Ht=(_0x22205f,_0x3e4d0c,_0x5756e2,_0x248750)=>{const _0x166e0e=_0x56e0a9;for(var _0x205363=_0x248750>0x1?void 0x0:_0x248750?Ft(_0x3e4d0c,_0x5756e2):_0x3e4d0c,_0x1e568b=_0x22205f[_0x166e0e(0x202)]-0x1,_0x16b67e;_0x1e568b>=0x0;_0x1e568b--)(_0x16b67e=_0x22205f[_0x1e568b])&&(_0x205363=_0x16b67e(_0x205363)||_0x205363);return _0x205363;},ce=(_0x289b19,_0x29f118)=>(_0x350fba,_0x1fede1)=>_0x29f118(_0x350fba,_0x1fede1,_0x289b19);let J=class{constructor(_0x50b512,_0x2099f5,_0x24179a){const _0x41d745=_0x56e0a9;this['_injector']=_0x50b512,this[_0x41d745(0x1bb)]=_0x2099f5,this[_0x41d745(0x21d)]=_0x24179a;}[_0x56e0a9(0x28e)](_0x4c395d){this['_transformHistoryAndStateStack'](_0x4c395d);}[_0x56e0a9(0x255)](_0x3d62c2){const _0x1deae0=_0x56e0a9,{unitID:_0x54b297}=_0x3d62c2,{collaboration:_0x556687}=this[_0x1deae0(0x21d)]['getStateCache'](_0x54b297);if(_0x556687[_0x1deae0(0x202)]===0x0)return _0x3d62c2;let _0x3339c0=a[_0x1deae0(0x330)]['deepClone'](_0x3d62c2['mutations'][0x0]);for(let _0x5e93ac=0x0;_0x5e93ac<_0x556687[_0x1deae0(0x202)];_0x5e93ac++){const _0x47992d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x556687[_0x5e93ac][_0x1deae0(0x377)],..._0x556687[_0x5e93ac][_0x1deae0(0x2ed)]}},_0x1ad148=this[_0x1deae0(0x1bb)]['transformMutation'](_0x3339c0,_0x47992d,!0x1);if(m['isTransformMutationFailure'](_0x1ad148))throw _0x1ad148[_0x1deae0(0x2f3)];_0x3339c0=_0x1ad148[_0x1deae0(0x33b)];}return{...a[_0x1deae0(0x330)][_0x1deae0(0x1af)](_0x3d62c2),'mutations':[_0x3339c0]};}[_0x56e0a9(0x2c1)](_0x488f7e){const _0x5284e5=_0x56e0a9,{unitID:_0x37f686}=_0x488f7e,{history:_0x25fe91,collaboration:_0x464e17}=this[_0x5284e5(0x21d)][_0x5284e5(0x218)](_0x37f686);if(_0x25fe91['length']===0x0&&_0x464e17[_0x5284e5(0x202)]===0x0)return;const _0x2440a6=[],_0x2e492e=[];let _0x1df9e4=a[_0x5284e5(0x330)][_0x5284e5(0x1af)](_0x488f7e[_0x5284e5(0x1bf)][0x0]),_0x330b75=a[_0x5284e5(0x330)][_0x5284e5(0x1af)](_0x488f7e[_0x5284e5(0x1bf)][0x0]);for(let _0x263d53=_0x25fe91[_0x5284e5(0x202)]-0x1;_0x263d53>=0x0;_0x263d53--){const _0x4a6d2c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x25fe91[_0x263d53][_0x5284e5(0x377)],..._0x25fe91[_0x263d53][_0x5284e5(0x1a5)]}},_0x308183={'id':_0x5284e5(0x1fc),'params':{'unitId':_0x25fe91[_0x263d53][_0x5284e5(0x377)],..._0x25fe91[_0x263d53][_0x5284e5(0x2ed)]}},_0x5ed22a=this[_0x5284e5(0x1bb)][_0x5284e5(0x331)](_0x1df9e4,_0x4a6d2c,!0x1),_0x2c9a55=this[_0x5284e5(0x1bb)][_0x5284e5(0x331)](_0x330b75,_0x308183,!0x1);if(m[_0x5284e5(0x268)](_0x5ed22a))throw _0x5ed22a[_0x5284e5(0x2f3)];if(m[_0x5284e5(0x268)](_0x2c9a55))throw _0x2c9a55[_0x5284e5(0x2f3)];_0x2440a6['unshift']({..._0x25fe91[_0x263d53],'undoState':_0x5ed22a['m2Prime'][_0x5284e5(0x2e3)],'redoState':_0x2c9a55[_0x5284e5(0x1ab)][_0x5284e5(0x2e3)]}),_0x1df9e4=_0x5ed22a[_0x5284e5(0x33b)],_0x330b75=_0x2c9a55[_0x5284e5(0x33b)];}_0x1df9e4=a[_0x5284e5(0x330)][_0x5284e5(0x1af)](_0x488f7e[_0x5284e5(0x1bf)][0x0]),_0x330b75=a[_0x5284e5(0x330)][_0x5284e5(0x1af)](_0x488f7e[_0x5284e5(0x1bf)][0x0]);for(let _0x5c2aca=_0x464e17['length']-0x1;_0x5c2aca>=0x0;_0x5c2aca--){const _0x434444={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x464e17[_0x5c2aca]['unitId'],..._0x464e17[_0x5c2aca]['undoState']}},_0x1d6706={'id':_0x5284e5(0x1fc),'params':{'unitId':_0x464e17[_0x5c2aca][_0x5284e5(0x377)],..._0x464e17[_0x5c2aca]['redoState']}},_0xe5a228=this['_transformService'][_0x5284e5(0x331)](_0x1df9e4,_0x434444,!0x1),_0x126330=this[_0x5284e5(0x1bb)][_0x5284e5(0x331)](_0x330b75,_0x1d6706,!0x1);if(m[_0x5284e5(0x268)](_0xe5a228))throw _0xe5a228[_0x5284e5(0x2f3)];if(m[_0x5284e5(0x268)](_0x126330))throw _0x126330['error'];_0x2e492e[_0x5284e5(0x37b)]({..._0x464e17[_0x5c2aca],'undoState':_0xe5a228[_0x5284e5(0x1ab)][_0x5284e5(0x2e3)],'redoState':_0x126330[_0x5284e5(0x1ab)][_0x5284e5(0x2e3)]}),_0x1df9e4=_0xe5a228[_0x5284e5(0x33b)],_0x330b75=_0x126330['m1Prime'];}this[_0x5284e5(0x21d)][_0x5284e5(0x3c9)](_0x37f686,{'history':_0x2440a6,'collaboration':_0x2e492e});}};J=Ht([ce(0x0,a['Inject'](a[_0x56e0a9(0x1dd)])),ce(0x1,m['ITransformService']),ce(0x2,a[_0x56e0a9(0x39b)](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x56e0a9(0x2a6)],Wt=(_0x5ebdf9,_0x1c2df1,_0x38f8ee,_0x33481f)=>{const _0x153e48=_0x56e0a9;for(var _0xda6632=_0x33481f>0x1?void 0x0:_0x33481f?Yt(_0x1c2df1,_0x38f8ee):_0x1c2df1,_0x3e510e=_0x5ebdf9[_0x153e48(0x202)]-0x1,_0x4df563;_0x3e510e>=0x0;_0x3e510e--)(_0x4df563=_0x5ebdf9[_0x3e510e])&&(_0xda6632=_0x4df563(_0xda6632)||_0xda6632);return _0xda6632;},Ne=(_0x59ceb4,_0x4e5d80)=>(_0x50bdb2,_0x1252f8)=>_0x4e5d80(_0x50bdb2,_0x1252f8,_0x59ceb4);let Z=class{constructor(_0x1ecedc,_0x113bf1){const _0x339f4f=_0x56e0a9;this[_0x339f4f(0x263)]=_0x1ecedc,this['_transformService']=_0x113bf1;}[_0x56e0a9(0x3bc)](_0x4b6f68){const _0x6f810f=_0x56e0a9;var _0x2c7442;const _0x523e21=this[_0x6f810f(0x263)][_0x6f810f(0x31d)](Y[_0x6f810f(0x24b)]),_0x46a39e=(_0x2c7442=_0x523e21[_0x6f810f(0x23a)]())!=null?_0x2c7442:[];if(_0x46a39e[_0x6f810f(0x202)]===0x0)return;const _0x1a483a=_0x4b6f68['unitID'],_0x53521a=[{'id':_0x6f810f(0x1fc),'params':{'unitId':_0x1a483a,'actions':null,'textRanges':_0x46a39e}}],_0x2ae9c0=this['_transformService'][_0x6f810f(0x2ad)](_0x4b6f68,_0x53521a);if(!m[_0x6f810f(0x3f1)](_0x2ae9c0))throw _0x2ae9c0[_0x6f810f(0x2f3)];const _0x8443cb=_0x2ae9c0[_0x6f810f(0x1ab)][0x0]['params'][_0x6f810f(0x3e7)];Array['isArray'](_0x8443cb)&&_0x8443cb[_0x6f810f(0x202)]&&_0x523e21[_0x6f810f(0x1f0)](_0x8443cb,{'unitId':_0x1a483a,'subUnitId':_0x1a483a},!0x1);}};Z=Wt([Ne(0x0,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x1dd)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x56e0a9(0x2a6)],Xt=(_0x55460a,_0x4b3387,_0xee3939,_0x1c60bc)=>{const _0x48a855=_0x56e0a9;for(var _0x4cbad0=_0x1c60bc>0x1?void 0x0:_0x1c60bc?Vt(_0x4b3387,_0xee3939):_0x4b3387,_0x415a25=_0x55460a[_0x48a855(0x202)]-0x1,_0x433f46;_0x415a25>=0x0;_0x415a25--)(_0x433f46=_0x55460a[_0x415a25])&&(_0x4cbad0=_0x433f46(_0x4cbad0)||_0x4cbad0);return _0x4cbad0;},N=(_0x187bcb,_0x50f71a)=>(_0xdaa05a,_0x36a6f6)=>_0x50f71a(_0xdaa05a,_0x36a6f6,_0x187bcb);let Q=class extends a[_0x56e0a9(0x229)]{constructor(_0x324892,_0x40774a,_0x33faaf,_0x4468e7,_0x35d7bb,_0x3058e9,_0x47e0c9,_0xc14477){const _0x3bdd75=_0x56e0a9;super(),h(this,'_status$',new d[(_0x3bdd75(0x230))](u[_0x3bdd75(0x3ca)][_0x3bdd75(0x209)])),(this[_0x3bdd75(0x21d)]=_0x324892,this[_0x3bdd75(0x26f)]=_0x40774a,this['_docTransformIMECacheService']=_0x33faaf,this['_docTransformStateCacheService']=_0x4468e7,this[_0x3bdd75(0x40e)]=_0x35d7bb,this[_0x3bdd75(0x1b6)]=_0x3058e9,this[_0x3bdd75(0x1a0)]=_0x47e0c9,this[_0x3bdd75(0x1e5)]=_0xc14477,this[_0x3bdd75(0x340)]());}[_0x56e0a9(0x340)](){const _0x381833=_0x56e0a9;this[_0x381833(0x39f)](this['_collaborationController'][_0x381833(0x3ba)]['subscribe'](_0x1dc445=>{const _0x1ca001=_0x381833,_0x2869f6=this[_0x1ca001(0x21d)][_0x1ca001(0x3b7)][_0x1ca001(0x2b1)](_0xc3f945=>{const _0x255841=_0x1ca001;if(_0xc3f945==null)return;const {unitId:_0x708259,redoState:_0x69a560,commandId:_0x1eb4ed}=_0xc3f945;if(_0x708259!==_0x1dc445[_0x255841(0x1ea)])return;const _0xfa3995={'id':_0x1eb4ed,'type':a['CommandType'][_0x255841(0x321)],'params':{'unitId':_0x708259,'actions':_0x69a560['actions'],'textRanges':null}};_0x1dc445[_0x255841(0x33e)](_0xfa3995);});if(_0x1dc445[_0x1ca001(0x39f)](_0x2869f6),_0x1dc445 instanceof u[_0x1ca001(0x23b)]){const _0x4ef09c={'onTransformIME':_0x31e48c=>this[_0x1ca001(0x3cc)][_0x1ca001(0x296)](_0x31e48c),'onTransformState':_0x3ae0fe=>this[_0x1ca001(0x31e)]['transformStateCache'](_0x3ae0fe),'onTransformSelections':_0x30f9c4=>this[_0x1ca001(0x40e)][_0x1ca001(0x3bc)](_0x30f9c4),'onSyncEditingCollabCursor':_0x16039e=>this['_docSyncEditingCollabCursorService'][_0x1ca001(0x1b4)](_0x16039e),'onTransformRemoteChangesetByIMECache':_0x481ce3=>this[_0x1ca001(0x3cc)][_0x1ca001(0x255)](_0x481ce3),'onTransformRemoteChangesetByStateCache':_0x46d7f1=>this[_0x1ca001(0x31e)][_0x1ca001(0x255)](_0x46d7f1)};_0x1dc445[_0x1ca001(0x3d1)](_0x4ef09c);}}));}};Q=Xt([N(0x0,a[_0x56e0a9(0x39b)](E['DocStateChangeManagerService'])),N(0x1,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x394)])),N(0x2,a[_0x56e0a9(0x39b)](z)),N(0x3,a[_0x56e0a9(0x39b)](J)),N(0x4,a[_0x56e0a9(0x39b)](Z)),N(0x5,a['Inject'](pe)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x56e0a9(0x3ff)]))],Q);var Gt=Object[_0x56e0a9(0x2a6)],Kt=(_0x17506f,_0x2ee1a3,_0x4b8811,_0x1d1104)=>{const _0x331e90=_0x56e0a9;for(var _0x393111=_0x1d1104>0x1?void 0x0:_0x1d1104?Gt(_0x2ee1a3,_0x4b8811):_0x2ee1a3,_0x5564b1=_0x17506f[_0x331e90(0x202)]-0x1,_0x389476;_0x5564b1>=0x0;_0x5564b1--)(_0x389476=_0x17506f[_0x5564b1])&&(_0x393111=_0x389476(_0x393111)||_0x393111);return _0x393111;},le=(_0x34d74b,_0x50fd00)=>(_0x3a641,_0x122619)=>_0x50fd00(_0x3a641,_0x122619,_0x34d74b);let ve=class extends a[_0x56e0a9(0x229)]{constructor(_0x567f14,_0xa5baa9,_0x3e5f3d){const _0xeb78cc=_0x56e0a9;super(),h(this,_0xeb78cc(0x2a3),new Map()),h(this,_0xeb78cc(0x361),new Map()),h(this,_0xeb78cc(0x1a3),!0x1),(this[_0xeb78cc(0x35a)]=_0x567f14,this[_0xeb78cc(0x38b)]=_0xa5baa9,this[_0xeb78cc(0x40a)]=_0x3e5f3d);}['disableLocalCache'](){const _0x1c069c=_0x56e0a9;this[_0x1c069c(0x1a3)]=!0x0;}[_0x56e0a9(0x3e8)](){this['_disabled']=!0x1;}get[_0x56e0a9(0x399)](){const _0x2622f6=_0x56e0a9;return this[_0x2622f6(0x361)];}[_0x56e0a9(0x1d5)](){const _0x50be08=_0x56e0a9;this[_0x50be08(0x3a1)]()[_0x50be08(0x1f2)](()=>super[_0x50be08(0x1d5)]());}async['loadOfflineData'](_0xdbb787){const _0x977357=_0x56e0a9;return this[_0x977357(0x1a3)]?null:this[_0x977357(0x38b)][_0x977357(0x24d)](u[_0x977357(0x221)](_0xdbb787));}async[_0x56e0a9(0x2c8)](_0x2862de,_0x51c508){const _0x1ea52b=_0x56e0a9;return!!this[_0x1ea52b(0x38b)][_0x1ea52b(0x3c0)](_0x2862de,_0x51c508);}[_0x56e0a9(0x1d0)](_0x1f9dca,_0x3d317c,_0x43cbcf,_0x3bd5ea){const _0x382b57=_0x56e0a9,_0xd386e5=this[_0x382b57(0x40a)][_0x382b57(0x1dc)](_0x1f9dca);this['_cachedData']['set'](_0x1f9dca,{'unitID':_0x1f9dca,'type':_0x3d317c,'awaitingChangeset':_0x43cbcf,'mutations':_0x3bd5ea,'rev':_0xd386e5}),this[_0x382b57(0x361)][_0x382b57(0x1e0)](_0x1f9dca)||this[_0x382b57(0x393)](_0x1f9dca);}[_0x56e0a9(0x393)](_0x4d2935){const _0xd5a970=_0x56e0a9,_0x4ce278=this[_0xd5a970(0x1df)]();_0x4ce278===0x0?this[_0xd5a970(0x272)](_0x4d2935):this[_0xd5a970(0x361)]['set'](_0x4d2935,setTimeout(()=>this[_0xd5a970(0x272)](_0x4d2935),_0x4ce278));}['_getSaveTimeout'](){const _0xde431=_0x56e0a9;var _0x4cd0fd;return(_0x4cd0fd=this[_0xde431(0x35a)][_0xde431(0x395)](u[_0xde431(0x251)]))!=null?_0x4cd0fd:u[_0xde431(0x3bb)];}[_0x56e0a9(0x272)](_0x20f544){const _0x10a53a=_0x56e0a9,_0x4f981a=this[_0x10a53a(0x361)][_0x10a53a(0x31d)](_0x20f544);return _0x4f981a!==void 0x0&&window[_0x10a53a(0x33f)](_0x4f981a),this[_0x10a53a(0x38b)][_0x10a53a(0x3c0)](u[_0x10a53a(0x221)](_0x20f544),this[_0x10a53a(0x2a3)][_0x10a53a(0x31d)](_0x20f544))[_0x10a53a(0x1f2)](()=>this['_saveTaskMap'][_0x10a53a(0x32f)](_0x20f544));}async[_0x56e0a9(0x3a1)](){const _0x3d16dc=_0x56e0a9,_0x3dc84e=[];this[_0x3d16dc(0x361)]['forEach']((_0x29c918,_0x465383)=>{const _0x1c21a5=_0x3d16dc;window[_0x1c21a5(0x33f)](_0x29c918),_0x3dc84e['push'](this[_0x1c21a5(0x272)](_0x465383)[_0x1c21a5(0x1f2)](()=>{const _0x298d1f=_0x1c21a5;this[_0x298d1f(0x361)][_0x298d1f(0x32f)](_0x465383);}));}),await Promise[_0x3d16dc(0x27d)](_0x3dc84e);}};ve=Kt([le(0x0,a['IConfigService']),le(0x1,a['ILocalStorageService']),le(0x2,a[_0x56e0a9(0x39b)](m[_0x56e0a9(0x24c)]))],ve);class xe extends a['RxDisposable']{constructor(){const _0x455d54=_0x56e0a9;super(),h(this,_0x455d54(0x222)),this[_0x455d54(0x222)]=d[_0x455d54(0x246)](window,_0x455d54(0x1b9))['pipe'](d[_0x455d54(0x1d4)](this[_0x455d54(0x2ab)]),d[_0x455d54(0x360)](0x1),d[_0x455d54(0x225)](void 0x0));}[_0x56e0a9(0x3b1)](_0xd64637,_0x1231dc,_0x510022=!0x1){const _0x110bad=_0x56e0a9,_0x272d0d=new URL(window['location']['href']);_0x272d0d[_0x110bad(0x37a)]['set'](_0xd64637,_0x1231dc),_0x510022?window[_0x110bad(0x37d)][_0x110bad(0x2d5)]('','',_0x272d0d['toString']()):window['history'][_0x110bad(0x407)]('','',_0x272d0d[_0x110bad(0x3c3)]());}['removeParam'](_0x564c7a,_0x360331=!0x1){const _0x330462=_0x56e0a9,_0x39161b=new URL(window[_0x330462(0x2d2)]['href']);_0x39161b['searchParams'][_0x330462(0x32f)](_0x564c7a),_0x360331?window[_0x330462(0x37d)]['replaceState']('','',_0x39161b['toString']()):window[_0x330462(0x37d)][_0x330462(0x407)]('','',_0x39161b[_0x330462(0x3c3)]());}[_0x56e0a9(0x365)](_0x512987){const _0x139a02=_0x56e0a9;var _0xb011b3;return(_0xb011b3=new URL(window[_0x139a02(0x2d2)][_0x139a02(0x3a8)])[_0x139a02(0x37a)][_0x139a02(0x31d)](_0x512987))!=null?_0xb011b3:void 0x0;}}var qt=Object[_0x56e0a9(0x35c)],zt=Object[_0x56e0a9(0x2a6)],Jt=(_0x2d3163,_0x4b3aac,_0x383fb2)=>_0x4b3aac in _0x2d3163?qt(_0x2d3163,_0x4b3aac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x383fb2}):_0x2d3163[_0x4b3aac]=_0x383fb2,Zt=(_0xbcde48,_0x1682a0,_0x11ef75,_0x4d6013)=>{const _0x51f1f8=_0x56e0a9;for(var _0x1bb3e5=_0x4d6013>0x1?void 0x0:_0x4d6013?zt(_0x1682a0,_0x11ef75):_0x1682a0,_0x3d8a4b=_0xbcde48[_0x51f1f8(0x202)]-0x1,_0x5a8dee;_0x3d8a4b>=0x0;_0x3d8a4b--)(_0x5a8dee=_0xbcde48[_0x3d8a4b])&&(_0x1bb3e5=_0x5a8dee(_0x1bb3e5)||_0x1bb3e5);return _0x1bb3e5;},_e=(_0x160fe9,_0x268914)=>(_0x308088,_0x49fce3)=>_0x268914(_0x308088,_0x49fce3,_0x160fe9),Qt=(_0x19300b,_0x19f2eb,_0x2c768c)=>Jt(_0x19300b,_0x19f2eb+'',_0x2c768c);const es=_0x56e0a9(0x333);exports[_0x56e0a9(0x3a7)]=class extends a['Plugin']{constructor(_0x11657c=De,_0x370ed6,_0x2aa569,_0x5d8009){const _0x3b4b5f=_0x56e0a9;super(),this[_0x3b4b5f(0x2ce)]=_0x11657c,this[_0x3b4b5f(0x1ec)]=_0x370ed6,this[_0x3b4b5f(0x263)]=_0x2aa569,this[_0x3b4b5f(0x35a)]=_0x5d8009;const {..._0x217b97}=a['merge']({},De,this[_0x3b4b5f(0x2ce)]);this[_0x3b4b5f(0x35a)][_0x3b4b5f(0x34b)](Bt,_0x217b97);}[_0x56e0a9(0x313)](){const _0x3bd445=_0x56e0a9;this['_registerDependencies'](),this[_0x3bd445(0x3bf)]();}[_0x56e0a9(0x1fa)](){const _0x236f1c=_0x56e0a9;this[_0x236f1c(0x324)]();}[_0x56e0a9(0x3eb)](){const _0x45eac0=_0x56e0a9;var _0x2ea788;const _0x570b07=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K['ISocketService'],{'useClass':K[_0x45eac0(0x25a)]}],[u[_0x45eac0(0x1c0)],{'useClass':ve}],[exports[_0x45eac0(0x31f)]],[Q],[q],[x],[ue],[exports[_0x45eac0(0x304)]]];a[_0x45eac0(0x335)](this['_injector'],a[_0x45eac0(0x346)](_0x570b07,(_0x2ea788=this['_config'])==null?void 0x0:_0x2ea788[_0x45eac0(0x3cf)]));}['_registerRenderDependencies'](){const _0x2695b8=_0x56e0a9;this['disposeWithMe'](this['_renderManagerService'][_0x2695b8(0x1eb)](a['UniverInstanceType'][_0x2695b8(0x3fe)],[fe])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x2695b8(0x295)][_0x2695b8(0x38e)],[Ie]));}[_0x56e0a9(0x3bf)](){const _0x4fb987=_0x56e0a9;a['touchDependencies'](this[_0x4fb987(0x263)],[[x],[exports[_0x4fb987(0x31f)]],[Q],[q],[exports[_0x4fb987(0x304)]]]);}},Qt(exports[_0x56e0a9(0x3a7)],_0x56e0a9(0x3b3),es),exports[_0x56e0a9(0x3a7)]=Zt([a[_0x56e0a9(0x27e)](u[_0x56e0a9(0x35e)]),_e(0x1,p['IRenderManagerService']),_e(0x2,a['Inject'](a[_0x56e0a9(0x1dd)])),_e(0x3,a['IConfigService'])],exports[_0x56e0a9(0x3a7)]);var ts=Object[_0x56e0a9(0x2a6)],ss=(_0x54790b,_0x46c6ea,_0x146a2e,_0x4f7d40)=>{const _0x3d3791=_0x56e0a9;for(var _0xb5706e=_0x4f7d40>0x1?void 0x0:_0x4f7d40?ts(_0x46c6ea,_0x146a2e):_0x46c6ea,_0x2a4e0f=_0x54790b[_0x3d3791(0x202)]-0x1,_0x412728;_0x2a4e0f>=0x0;_0x2a4e0f--)(_0x412728=_0x54790b[_0x2a4e0f])&&(_0xb5706e=_0x412728(_0xb5706e)||_0xb5706e);return _0xb5706e;},H=(_0x42a010,_0x232000)=>(_0x50d35e,_0x35fbcb)=>_0x232000(_0x50d35e,_0x35fbcb,_0x42a010);exports[_0x56e0a9(0x2db)]=class extends u[_0x56e0a9(0x3ce)]{constructor(_0x56af95,_0x46fb09,_0x316fc6,_0x4eb1c7,_0x36143e){super(_0x56af95,_0x46fb09,_0x316fc6,_0x4eb1c7,_0x36143e);}async[_0x56e0a9(0x199)](_0x4f47c6){const _0x447b03=_0x56e0a9,_0x3231aa=await this[_0x447b03(0x26b)](),_0x5edbf7=this[_0x447b03(0x217)](_0x4f47c6,_0x3231aa);return this[_0x447b03(0x3cd)](_0x5edbf7);}[_0x56e0a9(0x217)](_0x1beb29,_0x1aa4d9){const _0x4a4956=_0x56e0a9,_0x3c55f4=typeof window>'u'?new URL(_0x1beb29):new URL(_0x1beb29,window[_0x4a4956(0x2d2)]['origin']);_0x3c55f4[_0x4a4956(0x37a)][_0x4a4956(0x39e)](_0x4a4956(0x401),_0x1aa4d9);const _0x4d6892=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x4d6892[_0x4a4956(0x31d)](_0x4a4956(0x21f))&&_0x3c55f4[_0x4a4956(0x37a)]['set'](_0x4a4956(0x21f),_0x4d6892[_0x4a4956(0x31d)](_0x4a4956(0x21f))),_0x3c55f4['toString']();}async[_0x56e0a9(0x26b)](){const _0x992b0b=_0x56e0a9;var _0xad26f1,_0x3224af,_0x31dbbf;const _0x4ba94c=this[_0x992b0b(0x35a)][_0x992b0b(0x395)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2f05d3=(_0xad26f1=_0x4ba94c==null?void 0x0:_0x4ba94c[_0x992b0b(0x23e)])!=null?_0xad26f1:u[_0x992b0b(0x1e3)];return(_0x31dbbf=(_0x3224af=(await this[_0x992b0b(0x27a)][_0x992b0b(0x31d)](_0x2f05d3,{'headers':{'Content-Type':'application/json'}}))[_0x992b0b(0x245)])==null?void 0x0:_0x3224af[_0x992b0b(0x2c2)])!=null?_0x31dbbf:'';}},exports[_0x56e0a9(0x2db)]=ss([H(0x0,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x1dd)])),H(0x1,a[_0x56e0a9(0x39b)](K['HTTPService'])),H(0x2,a['IConfigService']),H(0x3,a[_0x56e0a9(0x215)]),H(0x4,m['ISnapshotServerService'])],exports[_0x56e0a9(0x2db)]);var Be=(_0x437925=>(_0x437925[_0x437925[_0x56e0a9(0x3ec)]=0x0]='UNDEFINED',_0x437925[_0x437925['OK']=0x1]='OK',_0x437925[_0x437925[_0x56e0a9(0x2cc)]=0x2]='INTERNAL_ERROR',_0x437925[_0x437925['PERMISSION_DENIED']=0x3]=_0x56e0a9(0x3b9),_0x437925[_0x437925[_0x56e0a9(0x249)]=0x4]=_0x56e0a9(0x249),_0x437925[_0x437925[_0x56e0a9(0x39a)]=0x5]='UNAUTHENTICATED',_0x437925[_0x437925['ALREADY_EXISTS']=0x6]=_0x56e0a9(0x36a),_0x437925[_0x437925[_0x56e0a9(0x269)]=0x7]='INVALID_ARGUMENT',_0x437925[_0x437925['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x437925[_0x437925[_0x56e0a9(0x2e7)]=0x9]=_0x56e0a9(0x2e7),_0x437925[_0x437925[_0x56e0a9(0x223)]=0xa]=_0x56e0a9(0x223),_0x437925[_0x437925[_0x56e0a9(0x326)]=0xb]=_0x56e0a9(0x326),_0x437925[_0x437925[_0x56e0a9(0x264)]=0xc]=_0x56e0a9(0x264),_0x437925[_0x437925[_0x56e0a9(0x1e1)]=0xd]=_0x56e0a9(0x1e1),_0x437925[_0x437925[_0x56e0a9(0x2bd)]=0xe]=_0x56e0a9(0x2bd),_0x437925[_0x437925['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x56e0a9(0x257),_0x437925[_0x437925['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x56e0a9(0x1c9),_0x437925[_0x437925['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x56e0a9(0x3c7),_0x437925[_0x437925['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x56e0a9(0x358),_0x437925[_0x437925['APPLY_REJECT']=0x1b59]=_0x56e0a9(0x266),_0x437925[_0x437925[_0x56e0a9(0x37c)]=0x1b5a]=_0x56e0a9(0x37c),_0x437925[_0x437925[_0x56e0a9(0x235)]=0x1b5b]=_0x56e0a9(0x235),_0x437925[_0x437925['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x56e0a9(0x3d2),_0x437925[_0x437925['APPLY_DUPLICATED']=0x1b5d]=_0x56e0a9(0x20c),_0x437925[_0x437925[_0x56e0a9(0x29a)]=0x1f41]=_0x56e0a9(0x29a),_0x437925[_0x437925[_0x56e0a9(0x1a1)]=0x2329]=_0x56e0a9(0x1a1),_0x437925[_0x437925['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x56e0a9(0x19d),_0x437925[_0x437925[_0x56e0a9(0x30c)]=0x232b]=_0x56e0a9(0x30c),_0x437925[_0x437925[_0x56e0a9(0x3b2)]=0x232c]=_0x56e0a9(0x3b2),_0x437925[_0x437925['LICENSE_DISTRO_REJECTED']=0x232d]=_0x56e0a9(0x39d),_0x437925[_0x437925[_0x56e0a9(0x3fd)]=0x2711]=_0x56e0a9(0x3fd),_0x437925[_0x437925[_0x56e0a9(0x25b)]=0x2712]=_0x56e0a9(0x25b),_0x437925[_0x437925[_0x56e0a9(0x2a4)]=0x2713]=_0x56e0a9(0x2a4),_0x437925[_0x437925[_0x56e0a9(0x341)]=0x2714]=_0x56e0a9(0x341),_0x437925[_0x437925['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x437925[_0x437925['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x437925[_0x437925[_0x56e0a9(0x207)]=0x271c]=_0x56e0a9(0x207),_0x437925[_0x437925[_0x56e0a9(0x2de)]=0x271d]=_0x56e0a9(0x2de),_0x437925[_0x437925[_0x56e0a9(0x198)]=0x271e]=_0x56e0a9(0x198),_0x437925[_0x437925['YUUMI_AI_RUN_FAILED']=0x271f]=_0x56e0a9(0x233),_0x437925[_0x437925[_0x56e0a9(0x1b7)]=0x2720]=_0x56e0a9(0x1b7),_0x437925[_0x437925[_0x56e0a9(0x2a8)]=0x2af9]=_0x56e0a9(0x2a8),_0x437925[_0x437925[_0x56e0a9(0x2d9)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x437925[_0x437925[_0x56e0a9(0x30a)]=0x2ee2]=_0x56e0a9(0x30a),_0x437925[_0x437925[_0x56e0a9(0x392)]=0x2ee3]=_0x56e0a9(0x392),_0x437925[_0x437925[_0x56e0a9(0x289)]=0x2ee4]=_0x56e0a9(0x289),_0x437925[_0x437925[_0x56e0a9(0x3d0)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x437925[_0x437925['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x56e0a9(0x3f9),_0x437925[_0x437925[_0x56e0a9(0x224)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x437925[_0x437925[_0x56e0a9(0x396)]=0x32cb]=_0x56e0a9(0x396),_0x437925[_0x437925[_0x56e0a9(0x342)]=-0x1]=_0x56e0a9(0x342),_0x437925))(Be||{}),is=Object['getOwnPropertyDescriptor'],ns=(_0x5ec17e,_0x9fb59a,_0x3c2cb3,_0x52e903)=>{const _0x228061=_0x56e0a9;for(var _0x16598a=_0x52e903>0x1?void 0x0:_0x52e903?is(_0x9fb59a,_0x3c2cb3):_0x9fb59a,_0x4ccfb2=_0x5ec17e[_0x228061(0x202)]-0x1,_0x156516;_0x4ccfb2>=0x0;_0x4ccfb2--)(_0x156516=_0x5ec17e[_0x4ccfb2])&&(_0x16598a=_0x156516(_0x16598a)||_0x16598a);return _0x16598a;},he=(_0x256bcc,_0x4fbd82)=>(_0x24328a,_0x5d0177)=>_0x4fbd82(_0x24328a,_0x5d0177,_0x256bcc);exports['RemoteUniscriptService']=class extends a[_0x56e0a9(0x229)]{constructor(_0x2d4311,_0x4cd05d,_0x40bf55){const _0x18b451=_0x56e0a9;super(),this[_0x18b451(0x1f5)]=_0x2d4311,this['_httpService']=_0x4cd05d,this[_0x18b451(0x35a)]=_0x40bf55;}async[_0x56e0a9(0x369)](_0x10bb89,_0x59151b,_0x55800c,..._0x58c1de){const _0x46ac79=_0x56e0a9;var _0x1fb627,_0x533f38,_0x47e4ab,_0x525750;const _0x52223c=this[_0x46ac79(0x1f5)][_0x46ac79(0x345)]();if(!_0x52223c)throw new Error(_0x46ac79(0x3ed));const _0x1359f6=((_0x1fb627=this[_0x46ac79(0x35a)][_0x46ac79(0x395)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x1fb627:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x10bb89+_0x46ac79(0x21b)+_0x59151b,_0x48c90f=new URL(window['location']['href']),_0x51f2df={'scriptId':_0x10bb89,'runId':(_0x533f38=_0x48c90f[_0x46ac79(0x37a)]['get'](_0x46ac79(0x21f)))!=null?_0x533f38:'','function':_0x59151b,'unitId':_0x52223c[_0x46ac79(0x2b0)](),'argsOfFunction':JSON['stringify'](_0x58c1de),'invokeId':(_0x47e4ab=_0x55800c[_0x46ac79(0x33a)])!=null?_0x47e4ab:'','executionId':(_0x525750=_0x55800c[_0x46ac79(0x2bb)])!=null?_0x525750:''};try{const _0x5c6998=await this[_0x46ac79(0x27a)][_0x46ac79(0x325)](_0x1359f6,{'body':_0x51f2df});return _0x5c6998['body']['error']&&_0x5c6998[_0x46ac79(0x245)][_0x46ac79(0x2f3)][_0x46ac79(0x2dc)]!==Be['OK']?_0x46ac79(0x372):_0x5c6998[_0x46ac79(0x245)][_0x46ac79(0x270)];}catch{return _0x46ac79(0x372);}}},exports[_0x56e0a9(0x3d5)]=ns([he(0x0,a['IUniverInstanceService']),he(0x1,a[_0x56e0a9(0x39b)](K[_0x56e0a9(0x2f9)])),he(0x2,a[_0x56e0a9(0x2e0)])],exports[_0x56e0a9(0x3d5)]);const Me=0x7530,Le=_0x56e0a9(0x347);class rs extends a[_0x56e0a9(0x229)]{constructor(){const _0x26a3a9=_0x56e0a9;super(),h(this,_0x26a3a9(0x3e4),a[_0x26a3a9(0x2a0)]()),h(this,_0x26a3a9(0x19e),new Set()),h(this,_0x26a3a9(0x1a4),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x26a3a9(0x35f),new Map()),h(this,_0x26a3a9(0x310),new Map()),this[_0x26a3a9(0x2dd)]();}['dispose'](){const _0x58ebee=_0x56e0a9;super['dispose'](),this[_0x58ebee(0x35f)][_0x58ebee(0x302)]((_0x1d932f,_0x2f0936)=>this[_0x58ebee(0x2e8)](_0x2f0936)),this[_0x58ebee(0x25f)]&&window[_0x58ebee(0x1f6)](this['_heartbeatTimer']);}[_0x56e0a9(0x343)](_0x12799e){const _0x595f61=_0x56e0a9;return this[_0x595f61(0x371)](_0x12799e)[_0x595f61(0x2d7)](d[_0x595f61(0x286)]());}[_0x56e0a9(0x239)](_0x17844f){const _0x14b021=_0x56e0a9;this[_0x14b021(0x19e)][_0x14b021(0x283)]===0x0&&this[_0x14b021(0x2cf)](),this[_0x14b021(0x19e)][_0x14b021(0x247)](_0x17844f),this[_0x14b021(0x2f6)]({'type':0x0,'memberID':this[_0x14b021(0x3e4)],'unitIDs':[_0x17844f],'isForwarded':!0x1});}[_0x56e0a9(0x3ac)](_0x1fa1ca){const _0x482ec8=_0x56e0a9;this[_0x482ec8(0x19e)][_0x482ec8(0x32f)](_0x1fa1ca),this[_0x482ec8(0x19e)]['size']===0x0&&this[_0x482ec8(0x25f)]&&window[_0x482ec8(0x1f6)](this['_heartbeatTimer']);}[_0x56e0a9(0x2dd)](){const _0x5dfb34=_0x56e0a9;this['disposeWithMe'](a[_0x5dfb34(0x3b8)](d[_0x5dfb34(0x246)](window,_0x5dfb34(0x19b))[_0x5dfb34(0x2b1)](_0x2cb24f=>{const _0x8b3114=_0x5dfb34;if(_0x2cb24f[_0x8b3114(0x3a9)]!==Le||!_0x2cb24f[_0x8b3114(0x1b0)])return;const _0x300578=JSON[_0x8b3114(0x1cb)](_0x2cb24f[_0x8b3114(0x1b0)]);this[_0x8b3114(0x2da)](_0x300578);}))),window['addEventListener'](_0x5dfb34(0x403),()=>this[_0x5dfb34(0x2f6)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5dfb34(0x3e5)](this[_0x5dfb34(0x19e)])}));}[_0x56e0a9(0x2da)](_0xa36c2c){const _0x4d1a4d=_0x56e0a9;switch(_0xa36c2c[_0x4d1a4d(0x305)]){case 0x0:this['_handleJoinEvent'](_0xa36c2c);break;case 0x1:this[_0x4d1a4d(0x285)](_0xa36c2c);break;case 0x2:this[_0x4d1a4d(0x3cb)](_0xa36c2c);break;}}['_handleJoinEvent'](_0x395ed7){const _0x2a95d8=_0x56e0a9,{unitIDs:_0x5958d7,memberID:_0x2dcc86,isForwarded:_0xad05a8}=_0x395ed7;_0x5958d7[_0x2a95d8(0x302)](_0x32b551=>{const _0x427498=_0x2a95d8;if(!_0xad05a8&&this['_unitOnClients'][_0x427498(0x1e0)](_0x32b551)&&this[_0x427498(0x371)](_0x32b551)[_0x427498(0x33d)](u[_0x427498(0x2c6)]['OTHER_CLIENTS_EDITING']),!this[_0x427498(0x1a4)][_0x427498(0x1e0)](_0x32b551)||!this[_0x427498(0x1a4)][_0x427498(0x31d)](_0x32b551)[_0x427498(0x1e0)](_0x2dcc86)){const _0x2c55e1=this['_unitOnClients'][_0x427498(0x31d)](_0x32b551)||new Set();_0x2c55e1[_0x427498(0x247)](_0x2dcc86),this[_0x427498(0x1a4)][_0x427498(0x39e)](_0x32b551,_0x2c55e1),this[_0x427498(0x211)](_0x2dcc86);}}),_0xad05a8||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2a95d8(0x19e)]],'isForwarded':!0x0});}[_0x56e0a9(0x211)](_0x50ccbb){const _0x22fc1b=_0x56e0a9;this['_removeClearOtherTimer'](_0x50ccbb);const _0x58105e=window[_0x22fc1b(0x271)](()=>{const _0x47f67f=_0x22fc1b;this['_unitOnClients'][_0x47f67f(0x302)](_0x467643=>{const _0x39b2e0=_0x47f67f;_0x467643[_0x39b2e0(0x32f)](_0x50ccbb);});},Me*0x2);this[_0x22fc1b(0x35f)][_0x22fc1b(0x39e)](_0x50ccbb,_0x58105e);}[_0x56e0a9(0x2e8)](_0x3a248f){const _0x58f2ea=_0x56e0a9;if(this[_0x58f2ea(0x35f)][_0x58f2ea(0x1e0)](_0x3a248f)){const _0x417f71=this['_clearOtherTimers']['get'](_0x3a248f);_0x417f71&&window[_0x58f2ea(0x33f)](_0x417f71),this[_0x58f2ea(0x35f)][_0x58f2ea(0x39e)](_0x3a248f,null);}}['_handleLeaveEvent'](_0x5fe7d4){const _0x164a98=_0x56e0a9,{memberID:_0xb1c23a,unitIDs:_0x5a4b34}=_0x5fe7d4;_0x5a4b34[_0x164a98(0x302)](_0x21ea46=>{const _0x13f677=_0x164a98;var _0xe88e12;const _0x50844a=this[_0x13f677(0x1a4)][_0x13f677(0x31d)](_0x21ea46);_0x50844a&&(_0x50844a[_0x13f677(0x32f)](_0xb1c23a),(_0xe88e12=this[_0x13f677(0x371)](_0x21ea46))==null||_0xe88e12['next'](_0x50844a[_0x13f677(0x283)]===0x0?u[_0x13f677(0x2c6)][_0x13f677(0x27b)]:u[_0x13f677(0x2c6)][_0x13f677(0x1e8)]));}),this[_0x164a98(0x2e8)](_0xb1c23a);}[_0x56e0a9(0x3cb)](_0x4cadc1){const _0x3f8324=_0x56e0a9;this[_0x3f8324(0x211)](_0x4cadc1['memberID']);}['_send'](_0x443afd){const _0x1f82d6=_0x56e0a9;localStorage[_0x1f82d6(0x3c0)](Le,JSON['stringify'](_0x443afd));}[_0x56e0a9(0x2cf)](){const _0x49b80c=_0x56e0a9;this[_0x49b80c(0x25f)]=window[_0x49b80c(0x3da)](()=>{const _0x2e3a6e=_0x49b80c;this[_0x2e3a6e(0x2f6)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x2bd3ae){const _0x3c4e19=_0x56e0a9;return this['_unitStatus'][_0x3c4e19(0x1e0)](_0x2bd3ae)||this[_0x3c4e19(0x310)][_0x3c4e19(0x39e)](_0x2bd3ae,new d[(_0x3c4e19(0x230))](u[_0x3c4e19(0x2c6)][_0x3c4e19(0x27b)])),this[_0x3c4e19(0x310)]['get'](_0x2bd3ae);}}exports[_0x56e0a9(0x1f3)]=me,exports[_0x56e0a9(0x376)]=$e,exports[_0x56e0a9(0x387)]=rs,exports['WebURLService']=xe;
|
|
1
|
+
'use strict';const _0x49cc92=_0x381d;(function(_0x39b408,_0x270ac8){const _0x3f7b06=_0x381d,_0x2e51a5=_0x39b408();while(!![]){try{const _0x397d7f=parseInt(_0x3f7b06(0x34e))/0x1*(-parseInt(_0x3f7b06(0x2a3))/0x2)+parseInt(_0x3f7b06(0x377))/0x3+-parseInt(_0x3f7b06(0x332))/0x4*(-parseInt(_0x3f7b06(0x2df))/0x5)+-parseInt(_0x3f7b06(0x3bf))/0x6*(parseInt(_0x3f7b06(0x28b))/0x7)+-parseInt(_0x3f7b06(0x1e4))/0x8+-parseInt(_0x3f7b06(0x3d3))/0x9*(-parseInt(_0x3f7b06(0x186))/0xa)+-parseInt(_0x3f7b06(0x286))/0xb;if(_0x397d7f===_0x270ac8)break;else _0x2e51a5['push'](_0x2e51a5['shift']());}catch(_0x1a1e41){_0x2e51a5['push'](_0x2e51a5['shift']());}}}(_0x1db5,0xe722b));var We=Object['defineProperty'],Ve=(_0x1a7e88,_0x1ee4e2,_0x2f7806)=>_0x1ee4e2 in _0x1a7e88?We(_0x1a7e88,_0x1ee4e2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f7806}):_0x1a7e88[_0x1ee4e2]=_0x2f7806,h=(_0x96af20,_0x132187,_0x46a813)=>Ve(_0x96af20,typeof _0x132187!='symbol'?_0x132187+'':_0x132187,_0x46a813);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x49cc92(0x2bf)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x33bb27=_0x49cc92;return b=Object[_0x33bb27(0x1ef)]||function(_0x4a7769){const _0x340107=_0x33bb27;for(var _0x19cdc4,_0x31a0fa=0x1,_0x352a9e=arguments[_0x340107(0x2d5)];_0x31a0fa<_0x352a9e;_0x31a0fa++){_0x19cdc4=arguments[_0x31a0fa];for(var _0x128a74 in _0x19cdc4)Object[_0x340107(0x177)]['hasOwnProperty']['call'](_0x19cdc4,_0x128a74)&&(_0x4a7769[_0x128a74]=_0x19cdc4[_0x128a74]);}return _0x4a7769;},b['apply'](this,arguments);},Ke=function(_0x6031f,_0x230c65){const _0x17896e=_0x49cc92;var _0x368954={};for(var _0x4073f1 in _0x6031f)Object[_0x17896e(0x177)]['hasOwnProperty'][_0x17896e(0x232)](_0x6031f,_0x4073f1)&&_0x230c65[_0x17896e(0x15b)](_0x4073f1)<0x0&&(_0x368954[_0x4073f1]=_0x6031f[_0x4073f1]);if(_0x6031f!=null&&typeof Object[_0x17896e(0x327)]==_0x17896e(0x39c)){for(var _0x4d0d1e=0x0,_0x4073f1=Object[_0x17896e(0x327)](_0x6031f);_0x4d0d1e<_0x4073f1[_0x17896e(0x2d5)];_0x4d0d1e++)_0x230c65['indexOf'](_0x4073f1[_0x4d0d1e])<0x0&&Object[_0x17896e(0x177)][_0x17896e(0x225)][_0x17896e(0x232)](_0x6031f,_0x4073f1[_0x4d0d1e])&&(_0x368954[_0x4073f1[_0x4d0d1e]]=_0x6031f[_0x4073f1[_0x4d0d1e]]);}return _0x368954;},ge=M[_0x49cc92(0x338)](function(_0x288081,_0x55cdbb){const _0x4892a1=_0x49cc92;var _0x379ec1=_0x288081[_0x4892a1(0x1d9)],_0x43249a=_0x288081['id'],_0x10a565=_0x288081['className'],_0x5e5b2a=_0x288081['extend'],_0x2106ed=Ke(_0x288081,[_0x4892a1(0x1d9),'id',_0x4892a1(0x228),_0x4892a1(0x37a)]),_0x29536d=_0x4892a1(0x342)[_0x4892a1(0x381)](_0x43249a,'\x20')[_0x4892a1(0x381)](_0x10a565||'')[_0x4892a1(0x39a)](),_0x12f8cb=M[_0x4892a1(0x36b)]('_'[_0x4892a1(0x381)](Je()));return Pe(_0x379ec1,''[_0x4892a1(0x381)](_0x43249a),{'defIds':_0x379ec1[_0x4892a1(0x268)],'idSuffix':_0x12f8cb['current']},b({'ref':_0x55cdbb,'className':_0x29536d},_0x2106ed),_0x5e5b2a);});function Pe(_0x3bd3b0,_0x5aafbe,_0x53b875,_0x2651c6,_0x3f7cae){const _0x299d78=_0x49cc92;return M[_0x299d78(0x267)](_0x3bd3b0[_0x299d78(0x1cc)],b(b({'key':_0x5aafbe},qe(_0x3bd3b0,_0x53b875,_0x3f7cae)),_0x2651c6),(ze(_0x3bd3b0,_0x53b875)[_0x299d78(0x241)]||[])['map'](function(_0x956b05,_0x1914e2){const _0x3e3024=_0x299d78;return Pe(_0x956b05,''[_0x3e3024(0x381)](_0x5aafbe,'-')[_0x3e3024(0x381)](_0x3bd3b0[_0x3e3024(0x1cc)],'-')[_0x3e3024(0x381)](_0x1914e2),_0x53b875,void 0x0,_0x3f7cae);}));}function qe(_0x221f47,_0x2a97bd,_0x5f0868){const _0x36ff73=_0x49cc92;var _0x3afc2a=b({},_0x221f47[_0x36ff73(0x25c)]);_0x5f0868!=null&&_0x5f0868[_0x36ff73(0x155)]&&_0x3afc2a['fill']===_0x36ff73(0x155)&&(_0x3afc2a[_0x36ff73(0x2cf)]=_0x5f0868['colorChannel1']),_0x221f47[_0x36ff73(0x1cc)]==='mask'&&_0x3afc2a['id']&&(_0x3afc2a['id']=_0x3afc2a['id']+_0x2a97bd['idSuffix']),Object['entries'](_0x3afc2a)[_0x36ff73(0x392)](function(_0x568211){const _0x1a94a6=_0x36ff73;var _0x44dbd4=_0x568211[0x0],_0x4d7b5e=_0x568211[0x1];_0x44dbd4===_0x1a94a6(0x283)&&typeof _0x4d7b5e==_0x1a94a6(0x39e)&&(_0x3afc2a[_0x44dbd4]=_0x4d7b5e['replace'](/url\(#(.*)\)/,_0x1a94a6(0x352)['concat'](_0x2a97bd[_0x1a94a6(0x38a)],')')));});var _0x494fdf=_0x2a97bd[_0x36ff73(0x268)];return!_0x494fdf||_0x494fdf[_0x36ff73(0x2d5)]===0x0||(_0x221f47[_0x36ff73(0x1cc)]===_0x36ff73(0x244)&&_0x3afc2a['xlink:href']&&(_0x3afc2a[_0x36ff73(0x1e7)]=_0x3afc2a[_0x36ff73(0x1e7)]+_0x2a97bd['idSuffix']),Object[_0x36ff73(0x173)](_0x3afc2a)[_0x36ff73(0x392)](function(_0x32ceb3){const _0x41f0f3=_0x36ff73;var _0x4bc00d=_0x32ceb3[0x0],_0x2745dc=_0x32ceb3[0x1];typeof _0x2745dc==_0x41f0f3(0x39e)&&(_0x3afc2a[_0x4bc00d]=_0x2745dc[_0x41f0f3(0x38f)](/url\(#(.*)\)/,_0x41f0f3(0x352)['concat'](_0x2a97bd[_0x41f0f3(0x38a)],')')));})),_0x3afc2a;}function ze(_0x311410,_0x228568){const _0x249a3d=_0x49cc92;var _0x5c6951,_0x17e47e=_0x228568[_0x249a3d(0x268)];return!_0x17e47e||_0x17e47e[_0x249a3d(0x2d5)]===0x0?_0x311410:_0x311410['tag']===_0x249a3d(0x16f)&&(!((_0x5c6951=_0x311410[_0x249a3d(0x241)])===null||_0x5c6951===void 0x0)&&_0x5c6951[_0x249a3d(0x2d5)])?b(b({},_0x311410),{'children':_0x311410['children']['map'](function(_0x303bc0){const _0x4c9444=_0x249a3d;return typeof _0x303bc0[_0x4c9444(0x25c)]['id']=='string'&&_0x17e47e&&_0x17e47e[_0x4c9444(0x337)](_0x303bc0[_0x4c9444(0x25c)]['id'])?b(b({},_0x303bc0),{'attrs':b(b({},_0x303bc0[_0x4c9444(0x25c)]),{'id':_0x303bc0['attrs']['id']+_0x228568['idSuffix']})}):_0x303bc0;})}):_0x311410;}function Je(){const _0x396a3f=_0x49cc92;return Math[_0x396a3f(0x1ae)]()[_0x396a3f(0x207)](0x24)[_0x396a3f(0x3ab)](0x2,0x8);}ge[_0x49cc92(0x257)]=_0x49cc92(0x194);var Ze={'tag':_0x49cc92(0x349),'attrs':{'xmlns':_0x49cc92(0x1ab),'fill':_0x49cc92(0x3a9),'viewBox':_0x49cc92(0x30a),'width':_0x49cc92(0x2a4),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x49cc92(0x1db),'attrs':{'stroke':'currentColor','d':_0x49cc92(0x36a),'strokeLinecap':_0x49cc92(0x1e0),'strokeLinejoin':_0x49cc92(0x1e0),'strokeWidth':1.2}}]},{'tag':_0x49cc92(0x16f),'attrs':{},'children':[{'tag':_0x49cc92(0x37b),'attrs':{'id':_0x49cc92(0x3d5)},'children':[{'tag':_0x49cc92(0x1db),'attrs':{'fill':_0x49cc92(0x193),'d':_0x49cc92(0x1ba)}}]}]}],'defIds':[_0x49cc92(0x3d5)]},we=M[_0x49cc92(0x338)](function(_0x458a75,_0x269e2c){const _0x3810e5=_0x49cc92;return M[_0x3810e5(0x267)](ge,Object[_0x3810e5(0x1ef)]({},_0x458a75,{'id':'off-line-icon','ref':_0x269e2c,'icon':Ze}));});we[_0x49cc92(0x257)]=_0x49cc92(0x32a);var Qe={'tag':_0x49cc92(0x349),'attrs':{'xmlns':_0x49cc92(0x1ab),'fill':_0x49cc92(0x3a9),'viewBox':'0\x200\x2017\x2016','width':_0x49cc92(0x2a4),'height':_0x49cc92(0x2a4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x49cc92(0x1db),'attrs':{'stroke':_0x49cc92(0x1c4),'d':_0x49cc92(0x368),'strokeLinecap':_0x49cc92(0x1e0),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x49cc92(0x16f),'attrs':{},'children':[{'tag':_0x49cc92(0x37b),'attrs':{'id':_0x49cc92(0x15c)},'children':[{'tag':_0x49cc92(0x1db),'attrs':{'fill':_0x49cc92(0x193),'d':_0x49cc92(0x1ba),'transform':_0x49cc92(0x2e3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Ae=M[_0x49cc92(0x338)](function(_0x395b6f,_0x1f37ac){return M['createElement'](ge,Object['assign']({},_0x395b6f,{'id':'on-line-icon','ref':_0x1f37ac,'icon':Qe}));});Ae['displayName']='OnLineIcon';function et(_0x130dfd){const _0x4b16d7=_0x49cc92;switch(_0x130dfd){case u[_0x4b16d7(0x1a7)]['OFFLINE']:return _0x4b16d7(0x2be);case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x2bb)]:return _0x4b16d7(0x260);case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x1ed)]:return _0x4b16d7(0x38b);case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x21a)]:return'collabStatus.notCollab';case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x3a4)]:case u[_0x4b16d7(0x1a7)]['AWAITING_WITH_PENDING']:return _0x4b16d7(0x2a2);case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x20f)]:case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x2fc)]:return _0x4b16d7(0x1b6);}}function tt(_0x35a187){const _0x40df7e=_0x49cc92,{status$:_0x554425}=_0x35a187,_0x27984c=O[_0x40df7e(0x3d1)](_0x554425,u[_0x40df7e(0x1a7)]['NOT_COLLAB']),_0x1b7007=O[_0x40df7e(0x2cd)](a[_0x40df7e(0x304)]),_0xfffc69=O[_0x40df7e(0x2cd)](u[_0x40df7e(0x371)]),_0x4cf6f6=_0x27984c!==u['CollaborationStatus'][_0x40df7e(0x266)],_0xb8b56a=_0x1b7007['t'](et(_0x27984c)),_0x2934a2=_0x4cf6f6?P[_0x40df7e(0x307)](Ae,{}):P[_0x40df7e(0x307)](we,{}),_0x35f0e0=M['useCallback'](()=>{const _0x5c90a5=_0x40df7e;_0x4cf6f6||_0xfffc69[_0x5c90a5(0x28c)]();},[_0x4cf6f6,_0xfffc69]);function _0x4e5f91(){const _0x5ba6de=_0x40df7e;return P[_0x5ba6de(0x312)](_0x5ba6de(0x2e9),{'className':_0x5ba6de(0x33c),'onClick':_0x35f0e0,'children':[P['jsx'](_0x5ba6de(0x2e9),{'className':D[_0x5ba6de(0x3b2)](_0x5ba6de(0x247),{'univer-text-green-500':_0x4cf6f6,'univer-text-red-500':!_0x4cf6f6}),'children':_0x2934a2}),P[_0x5ba6de(0x307)](_0x5ba6de(0x2e9),{'className':_0x5ba6de(0x314),'children':_0xb8b56a})]});}return _0x4cf6f6?_0x4e5f91():P[_0x40df7e(0x307)](D['Tooltip'],{'title':_0x1b7007['t'](_0x40df7e(0x1c9)),'children':_0x4e5f91()});}var st=Object[_0x49cc92(0x1af)],it=(_0x24cee5,_0x2ca7f7,_0x731979,_0x30720c)=>{const _0x543264=_0x49cc92;for(var _0x4d9be4=_0x30720c>0x1?void 0x0:_0x30720c?st(_0x2ca7f7,_0x731979):_0x2ca7f7,_0xe4a0a3=_0x24cee5[_0x543264(0x2d5)]-0x1,_0x3a7b58;_0xe4a0a3>=0x0;_0xe4a0a3--)(_0x3a7b58=_0x24cee5[_0xe4a0a3])&&(_0x4d9be4=_0x3a7b58(_0x4d9be4)||_0x4d9be4);return _0x4d9be4;},V=(_0x4b2fda,_0xc38c5d)=>(_0xff041c,_0x1cda0d)=>_0xc38c5d(_0xff041c,_0x1cda0d,_0x4b2fda);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x30330d,_0x4c6195,_0x52c8b1,_0x1dc492){const _0x2e1704=_0x49cc92;super(),h(this,_0x2e1704(0x218),new d[(_0x2e1704(0x220))](u[_0x2e1704(0x1a7)]['NOT_COLLAB'])),(this[_0x2e1704(0x150)]=_0x30330d,this[_0x2e1704(0x176)]=_0x4c6195,this['_collaborationController']=_0x52c8b1,this['_uiPartsService']=_0x1dc492,this['_initStatusComponent'](),this[_0x2e1704(0x280)]());}[_0x49cc92(0x280)](){const _0x59c610=_0x49cc92;this['disposeWithMe'](this[_0x59c610(0x150)]['focused$'][_0x59c610(0x19c)](d[_0x59c610(0x211)](()=>{const _0x416ec4=_0x59c610,_0x484131=this['_univerInstanceService'][_0x416ec4(0x21b)]();return _0x484131?this[_0x416ec4(0x1ce)]['getCollabEntity$'](_0x484131[_0x416ec4(0x273)]()):d['of'](null);}),d[_0x59c610(0x211)](_0x4538e5=>_0x4538e5?_0x4538e5[_0x59c610(0x188)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x59c610(0x282)](_0x5b8b27=>{const _0x575468=_0x59c610;this['_status$'][_0x575468(0x2f4)](_0x5b8b27);}));}[_0x49cc92(0x1f9)](){const _0x1d02b3=_0x49cc92;this[_0x1d02b3(0x28e)](this[_0x1d02b3(0x1c0)]['registerComponent'](O[_0x1d02b3(0x2d7)][_0x1d02b3(0x1a6)],()=>O[_0x1d02b3(0x18d)](nt({'status$':this[_0x1d02b3(0x218)][_0x1d02b3(0x293)]()}),this[_0x1d02b3(0x176)])));}},exports[_0x49cc92(0x1df)]=it([V(0x0,a[_0x49cc92(0x30f)]),V(0x1,a[_0x49cc92(0x26b)](a['Injector'])),V(0x2,a[_0x49cc92(0x26b)](u['CollaborationController'])),V(0x3,O[_0x49cc92(0x387)])],exports[_0x49cc92(0x1df)]);function nt(_0x3f5046){const {status$:_0x370f93}=_0x3f5046;return function(){return P['jsx'](tt,{'status$':_0x370f93});};}const me=a['createIdentifier'](_0x49cc92(0x3c7));var rt=Object[_0x49cc92(0x1af)],ot=(_0x5644fc,_0x5708d6,_0x531342,_0x17d5a9)=>{const _0x263dea=_0x49cc92;for(var _0x6d9048=_0x17d5a9>0x1?void 0x0:_0x17d5a9?rt(_0x5708d6,_0x531342):_0x5708d6,_0x2d5022=_0x5644fc[_0x263dea(0x2d5)]-0x1,_0x56a44f;_0x2d5022>=0x0;_0x2d5022--)(_0x56a44f=_0x5644fc[_0x2d5022])&&(_0x6d9048=_0x56a44f(_0x6d9048)||_0x6d9048);return _0x6d9048;},k=(_0xeff76b,_0x519072)=>(_0x19c792,_0x2bc266)=>_0x519072(_0x19c792,_0x2bc266,_0xeff76b);exports[_0x49cc92(0x23d)]=class extends a[_0x49cc92(0x3b8)]{constructor(_0x512673,_0x540862,_0x252a9e,_0x2e9b0d,_0x2716a9){const _0x5ee5e4=_0x49cc92;super(),this[_0x5ee5e4(0x243)]=_0x512673,this[_0x5ee5e4(0x1d4)]=_0x540862,this[_0x5ee5e4(0x3d6)]=_0x252a9e,this[_0x5ee5e4(0x2e5)]=_0x2e9b0d,_0x2716a9?_0x2716a9==null||_0x2716a9[_0x5ee5e4(0x298)]()['then'](()=>this[_0x5ee5e4(0x2ef)]()):(this[_0x5ee5e4(0x1d4)][_0x5ee5e4(0x395)](_0x5ee5e4(0x2ed),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x5ee5e4(0x2ef)]());}async[_0x49cc92(0x2ef)](){const _0x8d731a=_0x49cc92,_0xed64a0=this['_urlService'][_0x8d731a(0x350)](_0x8d731a(0x2c1)),_0x2f4d2b=this[_0x8d731a(0x243)][_0x8d731a(0x350)]('type'),_0x531b0a=this[_0x8d731a(0x243)][_0x8d731a(0x350)](_0x8d731a(0x318));if(!_0xed64a0||!_0x2f4d2b){this[_0x8d731a(0x1d4)]['debug'](_0x8d731a(0x2ed),_0x8d731a(0x1ee));return;}const _0x3550ba=await this['_dataLoaderService']['loadUnit'](_0xed64a0,Number(_0x2f4d2b),_0x531b0a);_0x3550ba&&_0x3550ba instanceof a[_0x8d731a(0x272)]&&this[_0x8d731a(0x2b6)](_0x3550ba);}async[_0x49cc92(0x2b6)](_0x4d9a0b){const _0x2a0604=_0x49cc92;await this[_0x2a0604(0x2fd)](_0x4d9a0b),_0x4d9a0b['activeSheet$'][_0x2a0604(0x19c)](d[_0x2a0604(0x344)](this[_0x2a0604(0x23a)]))[_0x2a0604(0x282)](_0x35f840=>{_0x35f840&&this['_updateURLWithCurrentState'](_0x35f840);}),this[_0x2a0604(0x243)][_0x2a0604(0x229)][_0x2a0604(0x19c)](d['takeUntil'](this['dispose$']))[_0x2a0604(0x282)](()=>this[_0x2a0604(0x2fd)](_0x4d9a0b));}['_updateURLWithCurrentState'](_0x372c10,_0x8a65cc=!0x1){const _0x36c68a=_0x49cc92,_0x340a72=this[_0x36c68a(0x243)]['getParam'](_0x36c68a(0x318));_0x372c10[_0x36c68a(0x34f)]()!==_0x340a72&&this['_urlService'][_0x36c68a(0x2af)](_0x36c68a(0x318),_0x372c10[_0x36c68a(0x34f)](),_0x8a65cc);}async[_0x49cc92(0x2fd)](_0x4b8fc9){const _0x3b4942=_0x49cc92;var _0x51fd90;const _0x471fa6=this[_0x3b4942(0x243)][_0x3b4942(0x350)](_0x3b4942(0x318));if(!_0x471fa6||!_0x4b8fc9[_0x3b4942(0x1e2)](_0x471fa6)){const _0x258537=_0x4b8fc9['getUnhiddenWorksheets']()[0x0],_0x3e6073=_0x4b8fc9['getSheetBySheetId'](_0x258537);if(!_0x3e6073)return;this[_0x3b4942(0x357)](_0x3e6073,!0x0),await this[_0x3b4942(0x3d6)][_0x3b4942(0x23f)](g[_0x3b4942(0x3c6)]['id'],{'unitId':_0x4b8fc9[_0x3b4942(0x273)](),'subUnitId':_0x258537});return;}((_0x51fd90=_0x4b8fc9[_0x3b4942(0x24f)]())==null?void 0x0:_0x51fd90[_0x3b4942(0x34f)]())!==_0x471fa6&&await this[_0x3b4942(0x3d6)][_0x3b4942(0x23f)](g[_0x3b4942(0x3c6)]['id'],{'unitId':_0x4b8fc9[_0x3b4942(0x273)](),'subUnitId':_0x471fa6});}},exports[_0x49cc92(0x23d)]=ot([k(0x0,me),k(0x1,a[_0x49cc92(0x1e9)]),k(0x2,a[_0x49cc92(0x35c)]),k(0x3,a['Inject'](u['DataLoaderService'])),k(0x4,a[_0x49cc92(0x35f)](Xe[_0x49cc92(0x317)]))],exports['CollaborationDataLoaderController']);var at=Object[_0x49cc92(0x1af)],ct=(_0x4e0c4b,_0x39a3fc,_0x511ed1,_0x4425fc)=>{const _0x4b0442=_0x49cc92;for(var _0x5dd60c=_0x4425fc>0x1?void 0x0:_0x4425fc?at(_0x39a3fc,_0x511ed1):_0x39a3fc,_0x2b80ff=_0x4e0c4b[_0x4b0442(0x2d5)]-0x1,_0x494643;_0x2b80ff>=0x0;_0x2b80ff--)(_0x494643=_0x4e0c4b[_0x2b80ff])&&(_0x5dd60c=_0x494643(_0x5dd60c)||_0x5dd60c);return _0x5dd60c;},be=(_0x95551b,_0x44713c)=>(_0x45f4cc,_0x525ac2)=>_0x44713c(_0x45f4cc,_0x525ac2,_0x95551b);let ue=class extends a['RxDisposable']{constructor(_0x33ac9a,_0x3c388e){const _0x3f6628=_0x49cc92;super(),this[_0x3f6628(0x306)]=_0x33ac9a,this['_imageIoService']=_0x3c388e,this[_0x3f6628(0x2ef)]();}[_0x49cc92(0x2ef)](){const _0x379e40=_0x49cc92,_0x337413=this;this[_0x379e40(0x28e)](this['_docClipboardService'][_0x379e40(0x383)]({'onBeforePasteImage':async _0x129bc1=>{const _0x299fcb=_0x379e40,_0x45373e=await _0x337413[_0x299fcb(0x202)]['saveImage'](_0x129bc1);return _0x45373e?{'source':_0x45373e[_0x299fcb(0x353)],'imageSourceType':_0x45373e['imageSourceType']}:null;}}));}};ue=ct([be(0x0,E[_0x49cc92(0x3c8)]),be(0x1,Ge[_0x49cc92(0x159)])],ue);function _0x1db5(){const _0x2cc392=['getAncestorScale','CONFLICT','handleInsertRangeMoveRight','m1Prime','collabStatus.offline','Module','RefRangeService','unit','filter','IURLService','_httpService','_colorAssignService','_updateLocalCursor','_cursors','history','CollaborationEvent','WECHAT_HAS_BEEN_BOUND','selection','unitID','useDependency','InsertRangeMoveDownCommandId','fill','ThemeService','getConfig','black','APPLY_REVISION_CONFILICT','newValue','length','setShapeProps','BuiltInUIPart','triggerDblclick','RemoveRowCommandId','addObjects','Rect','SOCKET_FAILED','TEXT','Unknown\x20user','20yrzAjT','red.300','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UNRECOGNIZED','translate(.97)','stringify','_dataLoaderService','getCurrentUnitForType','ranges','session.collaboration-timeout','div','loadOfflineData','unitId','backgroundColor','[CollaborationDataLoaderController]','EffectRefRangId','_init','INTERNAL_ERROR','LICENSE_MAX_UNITS_EXCEEDED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','pushState','next','getMember','font','onPointerLeave$','size','Error','registerBeforeClose','_registerRenderDependencies','PENDING','_updateSubUnitFromURLParams','_localeService','ILocalStorageService','color','name','collaboration.closeRoom','post','LocaleService','RemoveColCommandId','_docClipboardService','jsx','enableLocalCache','setItem','0\x200\x2016\x2016','flatMap','Warning','_collaborationUIEventService','getStateCache','IUniverInstanceService','UnitStatus','runRefRangeMutations','jsxs','max','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sessionStatus$','_getAnchorBounding','IRemoteInstanceService','subunit','_hover','_configService','_clearOtherTimers','unload','resize','_draw','_refRangeService','setAlpha','with','min','measureText','handleInsertRow','_toggleOnline','throttleTime','getOwnPropertySymbols','TEXT_RANGE_LAYER_INDEX','_color','OffLineIcon','moveTo','add','_instanceService','isTransformMutationFailure','saveOfflineData','_getMergeRange','_transformPreviousActiveRange','585584ZgGVGB','_scheduleClearOtherTimer','_transformService','IBeforeCloseService','getTypeOfUnitDisposed$','includes','forwardRef','getLocalCacheKey','type','INVITE_CODE_HAS_BEEN_UES','univer-flex\x20univer-items-center','_context','mutations','_docSkeleton','generateRandomId','Injector','univerjs-icon\x20univerjs-icon-','text','takeUntil','_getSessionTicket','getRelativeToViewportCoord','SHEET_VIEWPORT_KEY','ACTIVE_UNIT_EVENT_CHANNEL','svg','_send','MemberService','BrowserCollaborationSocketService','COLORS','872887PpSEyi','getSheetId','getParam','location','url(#$1','source','getUndoRedoMutationParamsCache','column','_transformUndoRedoStack','_updateURLWithCurrentState','_shapes','#FFF','_scheduleSaving','init','ICommandService','Rectangle','handleInsertCol','Optional','getColorFromTheme','_initResize','MOBILE_VERIFY_CODE_MISMATCH','onRendered','createSocket','transformMutation','YUUMI_URL_COL_OUT_OF_RANGE','row','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','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','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','useRef','_saveTaskMap','drawWith','_startSheetCollabCursor','_registerDependencies','m2Prime','CollaborationSessionService','href','send','_entityInit$','yellow.400','CollaborationController','5547207JCYAib','InsertRowCommandId','OTHER_CLIENT_EDITING','extend','clipPath','_onCursorDelete','session.connection-failed','YUUMI_AI_RUN_FAILED','_getSaveTimeout','YUUMI_UNABLE_LOAD_URL','concat','FromArray','addClipboardHook','width','_beforeCloseService','_colorIndex','IUIPartsService','cursorInfo','onLocalMutation','idSuffix','collabStatus.fetchMiss','INVALID_ARGUMENT','push','combineLatest','replace','_localStorageService','WebSocketService','forEach','startRow','UniverInstanceType','debug','_entities','_session','_setupBeforeClosingHandler','code','trim','transformIMECache','function','unshift','string','getCurrent','_disabled','getSkeleton','OTHER_CLIENTS_EDITING','_themeService','AWAITING','UNIVER_DOC','MessageType','makeDirty','_messageService','none','collaboration-client.offline-data-not-saved','substring','APPLY_PERMISSION_DENIED','getCurrentRevOfUnit','endColumn','_document','wsSessionTicketUrl','delete','clsx','permission.content','runOnServer','cursorInfo$','Tools','getVpScrollXYInfoByPosToVp','RxDisposable','getUniverSheetInstance','_scene','onTransformChange$','dispose','evenodd','WebBrowserSingleActiveUnitService','43836bhRvCE','_updateCollabCursors','then','UPDATE_CURSOR','subUnitId','search','DocIMEInputManagerService','SetWorksheetActivateCommand','uni.network.url-service','IDocClipboardService','endRow','map','registerRefRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','RemoteUniscriptService','RichTextEditingMutation','IRenderManagerService','ALREADY_EXISTS','useObservable','bottom','16461sUPqFs','save','off-line-icon_clip0_910_343','_commandService','updateOfflineData','event$','_univerInstanceService','ITransformService','values','collaboration-client-ui.config','getUnitStatus$','colorChannel1','find','_handleJoinEvent','transformByState','IImageIoService','_anchor','indexOf','on-line-icon_clip0_910_349','disableLocalCache','_getSheetObject','ILocalCacheService','eventID','ISocketService','transformSelections','rgba(255,\x20255,\x20255,\x200.01)','_docStateChangeManagerService','isArray','HTTPService','jiqing.500','getDocRanges','IConfigService','getCoordByCell','RECT','deepClone','pluginName','_eventUnsubscribe','defs','collabCursorState$','_startDocCollabCursor','LICENSE_IMPORT_SIZE_EXCEEDED','entries','redoState','_textBubble','_injector','prototype','getCurrentSelections','startColumn','SessionStatus','_selfUnitIDs','engine','startsWith','Disposable','Plugin','APPLY_DUPLICATED','collab-rect-range-','USER_NOT_INVITED_CODE','SheetCollabCursorShape','from','_hovered','3290getOPL','_syncEditingCollabCursorService','status$','_initCommandExecutedListener','INVITE_CODE_ALREADY_BOUND','disposeUnit','getMergeData','connectInjector','_memberService','_docSyncEditingCollabCursorService','collab-text-range-','DocCollaborationEntity','_getScale','white','UniverIcon','ENSURE_SNAPSHOT_EXECUTION','handleIRemoveCol','lineTo','toRgbString','serializeRangeWithSheet','has','shareReplay','pipe','override','INVALID_INVITE_CODE','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_CONNECTOR_URL_NOT_FOUND','SetSelectionsOperation','Vector2','ticket','_labelPosition','HEADER_MENU','CollaborationStatus','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','debounceTime','show','http://www.w3.org/2000/svg','body','_initDependencies','random','getOwnPropertyDescriptor','hide','fillText','_removeCollabCursors','undoState','_renderManagerService','touchDependencies','collabStatus.synced','transformStateCache','_unitOnClients','registerRenderModule','M0\x200H16V16H0z','some','handleDeleteRangeMoveLeft','getOffsetConfig','getColor','getCollabCursors$','_uiPartsService','_online','all','saveTaskMap','currentColor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ONLINE','currentSkeleton$','NO_OTHER_CLIENTS_EDITING','collab-client.tooltip.reconnect','_toggleOffline','getActiveRange','tag','params','_collaborationController','_drawAnchor','_onRefRangeChange','range','_heartbeatTimer','_unitStatus','_logService','addObject','unsubscribe','UniverCollaborationClientUIPlugin','UNAUTHENTICATED','icon','removeParam','path','_notificationService','NodePositionConvertToRectRange','...','DesktopCollaborationStatusDisplayController','round','YUUMI_ASYNCIO_CANCELLED','getSheetBySheetId','RegularPolygon','591376GjlftT','runId','_docTransformStateCacheService','xlink:href','addEventListener','ILogService','registerDependencies','/run/','_saveCache','FETCH_MISS','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','assign','CollaborationSocketService','_handleHeartbeatEvent','memberID','getRangePointData','_handleLeaveEvent','_cursorInfo$','Subject','setUndoRedoMutationParamsCache','transformMutationsWithChangeset','_initStatusComponent','ColorKit','NodePositionConvertToCursor','EMAIL_VERIFY_CODE_MISMATCH','setStateCache','EMAIL_HAS_BEEN_BOUND','currentTheme$','CollaborationUIEventService','_removeClearOtherTimer','_imageIoService','LOGIN_FAILED','subscribeEvent','error','YUUMI_TABLE_NOT_FOUND_IN_UNIT','toString','parse','closePath','_sheetSkeletonManagerService','_config','merge','_docTransformSelectionsService','setInterval','SYNCED','SNAPSHOT_INVALID_SNAPSHOT','switchMap','LICENSE_EXPORT_SIZE_EXCEEDED','DOC_RANGE_TYPE','APPLY_NON_SEQUENTIAL_REVISION','getTypeOfUnitAdded$','handleInsertRangeMoveDown','collaboration.single-unit.warning','_status$','_roomMembers$','NOT_COLLAB','getFocusedUnit','SUBMIT_CHANGESET_TIMEOUT','deserializeRangeWithSheet','_refreshCollabCursors','getValue','BehaviorSubject','_cursor','MUTATION','JOIN_ROOM_FAILED','_handleEvent','propertyIsEnumerable','getItem','mergeOverrideWithDependencies','className','urlChange$','LICENSE_DISTRO_REJECTED','Shape','green.600','_hideTimer','exhaustSavingTask','getMemberID','YUUMI_SUBSCRIPTION_NOT_FOUND','arc','call','setTimeout','_ensureSubject','_range','complete','doc.mutation.rich-text-editing','onPointerEnter$','YUUMI_ALL_TABLES_IS_INVALID','dispose$','get','UNIVER_SHEET','CollaborationDataLoaderController','handleDeleteRangeMoveUp','executeCommand','DocStateChangeManagerService','children','_handleHover','_urlService','use','USERS_LEAVE','LOCAL_CACHE_INTERVAL_KEY','univer-mr-2\x20univer-flex\x20univer-text-xl','_backgroundColor','_docTransformIMECacheService','_collabSessionService','_onCursorUpdate','debounce','findNodePositionByCharIndex','storage','getActiveSheet','_createSocketURL','assignAColorForMemberID','_cachedData','INVITE_CODE_REQUIRED','_assignedColors','transformRemoteChangeset','blue.400','displayName','_revisionService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_collabCursorController','_lastPointer','attrs','TOO_MANY_REQUESTS','replaceState','SheetSkeletonManagerService','collabStatus.conflict','isTransformMutationsWithChangesetSuccess','NOT_FOUND','transform','YUUMI_RATE_OVER_LIMIT','sheetId','OFFLINE','createElement','defIds','requireSession','_id','Inject','textRanges','MoveRangeCommandId','labelPosition','isActive','fillStyle','PY_RUNTIME_SCRIPT_ERROR','Workbook','getUnitId','hovered','_localCacheService','onCommandExecuted','_scheduleHeartbeat','_drawRectRange','_cursorShapes','Failed','INotificationService','_collabCursorState$','restore','invokeId','searchParams','_initStatusListener','TRANSFORM_CHANGE_OBSERVABLE_TYPE','subscribe','mask','editingUnit','COMPLETION_FINISHED','11446270xeYSSy','sheetID','origin','[RemoteUniscriptService]:\x20no\x20focused\x20unit','split','98lHhulS','reconnect','UNDEFINED','disposeWithMe','clearTimeout','_render','CHANGESET_REVISION_CONFILICT','_docSkeletonManagerService','asObservable','APPLY_REJECT','_anchorDot','InsertRangeMoveRightCommandId','roomMembers$','whenReady','createInstance','syncEditingCollabCursor','getRenderById','selections','toDisposable','CONNECTOR_DATA_TOO_LARGE','IMessageService','set','onMouseMove','collabStatus.syncing','2xClBYS','1em','_initEntityListener','PERMISSION_DENIED','MOBILE_HAS_BEEN_BOUND','RevisionService','CollaborationUIEventId','VIEW_MAIN','_drawTextRange','clearInterval','data','sessionTicket','setParam','fromEvent','_name','_initEvent','actions','height','executionId','_setupSubUnitSync','_transformHistoryAndStateStack','setConfig','DocSkeletonManagerService'];_0x1db5=function(){return _0x2cc392;};return _0x1db5();}const Oe=['purple.300',_0x49cc92(0x167),_0x49cc92(0x22c),_0x49cc92(0x2e0),_0x49cc92(0x256),_0x49cc92(0x375)];class Ce extends a[_0x49cc92(0x17e)]{constructor(){const _0x5500ab=_0x49cc92;super(...arguments),h(this,_0x5500ab(0x254),new Map()),h(this,_0x5500ab(0x386),0x0);}[_0x49cc92(0x251)](_0x155895){const _0x1c874c=_0x49cc92;if(this[_0x1c874c(0x254)][_0x1c874c(0x19a)](_0x155895))return this['_assignedColors'][_0x1c874c(0x23b)](_0x155895);const _0x22a09e=Oe[this[_0x1c874c(0x386)]];return this[_0x1c874c(0x386)]=(this[_0x1c874c(0x386)]+0x1)%Oe[_0x1c874c(0x2d5)],this[_0x1c874c(0x254)][_0x1c874c(0x2a0)](_0x155895,_0x22a09e),_0x22a09e;}}function ye(_0x23f58e){const _0x59c088=_0x49cc92;let _0x7f921='';for(const _0x2b0473 of _0x23f58e){const {startOffset:_0x4e8f85,endOffset:_0x9f8e0d,isActive:_0x4c0e15,rangeType:_0x2fdcde,segmentId:_0x4a78f9,segmentPage:_0x1bdc45}=_0x2b0473;_0x7f921[_0x59c088(0x2d5)]&&(_0x7f921+=','),_0x7f921+=_0x4e8f85+':'+_0x9f8e0d+':'+(_0x4c0e15?'1':'0')+':'+_0x2fdcde+':'+_0x4a78f9+':'+_0x1bdc45;}return _0x7f921;}function lt(_0x6f938a){const _0x366b93=_0x49cc92,_0xeb1890=_0x6f938a[_0x366b93(0x28a)](','),_0xca67fb=[];for(const _0x585a1e of _0xeb1890){const [_0x34b891,_0xdebf92,_0x1a9b03,_0x4cfc70,_0x3bd596,_0x14b593]=_0x585a1e[_0x366b93(0x28a)](':');_0xca67fb[_0x366b93(0x38d)]({'startOffset':Number(_0x34b891),'endOffset':Number(_0xdebf92),'collapsed':_0x34b891===_0xdebf92,'isActive':_0x1a9b03==='1','rangeType':_0x4cfc70===a['DOC_RANGE_TYPE']['TEXT']?a[_0x366b93(0x213)][_0x366b93(0x2dd)]:a[_0x366b93(0x213)][_0x366b93(0x16b)],'segmentId':typeof _0x3bd596==_0x366b93(0x39e)?String(_0x3bd596):'','segmentPage':Number(_0x14b593!=null?_0x14b593:-0x1)});}return _0xca67fb[_0x366b93(0x1bb)](_0x7cebc0=>_0x7cebc0['isActive'])||(_0xca67fb[0x0][_0x366b93(0x26f)]=!0x0),_0xca67fb;}class pe extends a[_0x49cc92(0x3b8)]{constructor(){const _0x1ba157=_0x49cc92;super(...arguments),h(this,_0x1ba157(0x27c),new d[(_0x1ba157(0x220))](null)),h(this,_0x1ba157(0x170),this[_0x1ba157(0x27c)]['asObservable']());}[_0x49cc92(0x29a)](_0x6821c1){const {unitID:_0x497f22,memberID:_0x552711,textRanges:_0x45d4eb}=_0x6821c1,_0x2692c3=ye(_0x45d4eb);if(_0x2692c3==='')return;const _0x107416={'unitID':_0x497f22,'memberID':_0x552711,'selection':_0x2692c3};this['_collabCursorState$']['next'](_0x107416);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x1fc607,_0x598e9e,_0x213919,_0x58f824)=>{const _0x559b26=_0x49cc92;for(var _0x5ef416=_0x58f824>0x1?void 0x0:_0x58f824?_t(_0x598e9e,_0x213919):_0x598e9e,_0xd80f76=_0x1fc607[_0x559b26(0x2d5)]-0x1,_0x60abca;_0xd80f76>=0x0;_0xd80f76--)(_0x60abca=_0x1fc607[_0xd80f76])&&(_0x5ef416=_0x60abca(_0x5ef416)||_0x5ef416);return _0x5ef416;},L=(_0x33e22d,_0x17b073)=>(_0x3625b3,_0x5742c2)=>_0x17b073(_0x3625b3,_0x5742c2,_0x33e22d);const ut=0x12c,dt=0x64;let de=class extends a[_0x49cc92(0x3b8)]{constructor(_0x420226,_0x36d85b,_0x160db9,_0x42580c,_0x3c99fa,_0x279efc,_0xc1a91b,_0x17ff7a,_0x337efb){const _0xfe3986=_0x49cc92;super(),h(this,_0xfe3986(0x1c1),!0x1),h(this,_0xfe3986(0x2ef),!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0xfe3986(0x1f5)][_0xfe3986(0x293)]()),h(this,_0xfe3986(0x219),new d[(_0xfe3986(0x220))]([])),h(this,'roomMembers$',this['_roomMembers$']['pipe'](d[_0xfe3986(0x1a9)](ut))),h(this,_0xfe3986(0x2c6),a[_0xfe3986(0x24c)](_0x53d4cd=>{const _0xf2fbae=_0xfe3986,_0x2a66c9={'eventID':m[_0xf2fbae(0x2c9)][_0xf2fbae(0x3c2)],'data':{'unitID':this[_0xf2fbae(0x2cc)],'memberID':this[_0xf2fbae(0x397)][_0xf2fbae(0x22f)](),'selection':ye(_0x53d4cd)}};this['_session'][_0xf2fbae(0x373)](_0x2a66c9,this['unitID']);},dt)),(this[_0xfe3986(0x2cc)]=_0x420226,this[_0xfe3986(0x397)]=_0x36d85b,this[_0xfe3986(0x176)]=_0x160db9,this[_0xfe3986(0x2c5)]=_0x42580c,this[_0xfe3986(0x18e)]=_0x3c99fa,this[_0xfe3986(0x187)]=_0x279efc,this['_transformService']=_0xc1a91b,this[_0xfe3986(0x150)]=_0x17ff7a,this['_commandService']=_0x337efb);}get[_0x49cc92(0x388)](){const _0x528a12=_0x49cc92;return this[_0x528a12(0x1f5)][_0x528a12(0x21f)]();}get['roomMembers'](){const _0x23ebbd=_0x49cc92;return this[_0x23ebbd(0x219)][_0x23ebbd(0x21f)]();}[_0x49cc92(0x3bc)](){const _0x3a5ff7=_0x49cc92;super[_0x3a5ff7(0x3bc)](),this[_0x3a5ff7(0x1f5)][_0x3a5ff7(0x2f4)](new Map()),this[_0x3a5ff7(0x1f5)]['complete'](),this[_0x3a5ff7(0x219)][_0x3a5ff7(0x2f4)]([]),this['_roomMembers$'][_0x3a5ff7(0x236)]();}[_0x49cc92(0x35b)](){const _0x5f3538=_0x49cc92;this[_0x5f3538(0x2ef)]||(this[_0x5f3538(0x2ef)]=!0x0,this['_session'][_0x5f3538(0x315)]['pipe'](d[_0x5f3538(0x344)](this[_0x5f3538(0x23a)]))[_0x5f3538(0x282)](_0x80c23a=>{const _0x3f6cc4=_0x5f3538;_0x80c23a===u[_0x3f6cc4(0x17a)][_0x3f6cc4(0x1c6)]?this[_0x3f6cc4(0x325)]():this[_0x3f6cc4(0x1ca)]();}),this['_session'][_0x5f3538(0x14f)][_0x5f3538(0x19c)](d['takeUntil'](this['dispose$']))[_0x5f3538(0x282)](_0x4e7185=>{const _0x444800=_0x5f3538,_0x2c83d7=_0x4e7185['eventID'];_0x2c83d7===m[_0x444800(0x2c9)][_0x444800(0x3c2)]&&this[_0x444800(0x24b)](_0x4e7185),_0x2c83d7===m[_0x444800(0x2c9)][_0x444800(0x245)]&&this['_onCursorDelete'](_0x4e7185);}),this[_0x5f3538(0x28e)](this[_0x5f3538(0x3d6)][_0x5f3538(0x276)](_0xa34a8d=>{const _0x32fdc9=_0x5f3538,_0x32e1bf=_0xa34a8d[_0x32fdc9(0x1cd)];_0x32e1bf!=null&&this[_0x32fdc9(0x1c1)]&&_0xa34a8d['id']===Y['SetTextSelectionsOperation']['id']&&_0x32e1bf['unitId']===this[_0x32fdc9(0x2cc)]&&_0x32e1bf['isEditing']===!0x1&&_0x32e1bf[_0x32fdc9(0x2e7)][_0x32fdc9(0x2d5)]>0x0&&this[_0x32fdc9(0x2c6)](_0x32e1bf[_0x32fdc9(0x2e7)]);})),this[_0x5f3538(0x187)][_0x5f3538(0x170)]['pipe'](d[_0x5f3538(0x344)](this[_0x5f3538(0x23a)]))[_0x5f3538(0x282)](_0x7e2e1b=>{const _0x8e2028=_0x5f3538;if((_0x7e2e1b==null?void 0x0:_0x7e2e1b[_0x8e2028(0x2cc)])!==this['unitID'])return;const _0xbf4360={'eventID':m[_0x8e2028(0x2c9)][_0x8e2028(0x3c2)],'data':_0x7e2e1b};this[_0x8e2028(0x24b)](_0xbf4360);}),this['disposeWithMe'](this[_0x5f3538(0x3d6)][_0x5f3538(0x276)](_0x156d65=>{const _0x21fc0d=_0x5f3538;if(_0x156d65[_0x21fc0d(0x1cd)]==null)return;const _0x450f0c=_0x156d65[_0x21fc0d(0x1cd)];if(_0x156d65['id']!==Y[_0x21fc0d(0x3ce)]['id']||_0x450f0c[_0x21fc0d(0x2eb)]!==this[_0x21fc0d(0x2cc)])return;const _0x21d959={'id':'doc.mutation.rich-text-editing','params':_0x450f0c},_0xf2b317=this['cursorInfo'];for(const [_0x36b53c,_0xf6d7ca]of _0xf2b317){const _0x1d4399={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x21fc0d(0x2cc)],'actions':null,'textRanges':_0xf6d7ca[_0x21fc0d(0x2e7)]}},_0x427437=this['_transformService'][_0x21fc0d(0x365)](_0x21d959,_0x1d4399,!0x1);if(m['isTransformMutationFailure'](_0x427437))throw _0x427437[_0x21fc0d(0x205)];_0xf2b317[_0x21fc0d(0x2a0)](_0x36b53c,{..._0xf6d7ca,'ranges':_0x427437[_0x21fc0d(0x370)][_0x21fc0d(0x1cd)]['textRanges']});}queueMicrotask(()=>{const _0x188786=_0x21fc0d;this[_0x188786(0x1f5)][_0x188786(0x2f4)](_0xf2b317);});})));}[_0x49cc92(0x24b)](_0x155068){const _0xc8d98b=_0x49cc92;var _0x1500c0,_0x36e3e7;const {memberID:_0x5ec133,selection:_0xc53c02}=_0x155068[_0xc8d98b(0x2ad)],_0x294b0c=lt(_0xc53c02),_0x2173ad=(_0x36e3e7=(_0x1500c0=this[_0xc8d98b(0x18e)]['getMember'](this['unitID'],_0x5ec133))==null?void 0x0:_0x1500c0['name'])!=null?_0x36e3e7:_0xc8d98b(0x2de),_0x42de95={'color':this[_0xc8d98b(0x2c5)][_0xc8d98b(0x251)](_0x5ec133),'name':_0x2173ad,'ranges':_0x294b0c},_0x2fdd8a=this['cursorInfo'];_0x2fdd8a[_0xc8d98b(0x2a0)](_0x5ec133,_0x42de95),this['_cursorInfo$']['next'](_0x2fdd8a);}[_0x49cc92(0x37c)](_0x56c521){const _0x2dfd73=_0x49cc92,{memberID:_0x215b21}=_0x56c521[_0x2dfd73(0x2ad)],_0x1ce2cc=this[_0x2dfd73(0x388)];_0x1ce2cc[_0x2dfd73(0x3b1)](_0x215b21),this['_cursorInfo$']['next'](_0x1ce2cc);}[_0x49cc92(0x325)](){const _0x3cf724=_0x49cc92;var _0x136784;if(this['_online']=!0x0,((_0x136784=this[_0x3cf724(0x150)][_0x3cf724(0x21b)]())==null?void 0x0:_0x136784[_0x3cf724(0x273)]())!==this['unitID'])return;const _0x459891=this['_injector']['get'](Y['DocSelectionManagerService'])[_0x3cf724(0x168)]();Array[_0x3cf724(0x165)](_0x459891)&&_0x459891['length']>0x0&&this[_0x3cf724(0x2c6)](_0x459891);}[_0x49cc92(0x1ca)](){const _0x5a47ae=_0x49cc92;this[_0x5a47ae(0x1c1)]=!0x1;}};de=ht([L(0x2,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),L(0x3,a[_0x49cc92(0x26b)](Ce)),L(0x4,a[_0x49cc92(0x26b)](u['MemberService'])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x49cc92(0x151)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x49cc92(0x35c)])],de);var St=Object[_0x49cc92(0x1af)],ft=(_0x3f0bfc,_0x409b59,_0x489d98,_0x182cf7)=>{const _0x4e4bde=_0x49cc92;for(var _0x39323a=_0x182cf7>0x1?void 0x0:_0x182cf7?St(_0x409b59,_0x489d98):_0x409b59,_0xa0857c=_0x3f0bfc[_0x4e4bde(0x2d5)]-0x1,_0x2447a2;_0xa0857c>=0x0;_0xa0857c--)(_0x2447a2=_0x3f0bfc[_0xa0857c])&&(_0x39323a=_0x2447a2(_0x39323a)||_0x39323a);return _0x39323a;},A=(_0x3a4f91,_0x464aa2)=>(_0x7b20c5,_0x2ce629)=>_0x464aa2(_0x7b20c5,_0x2ce629,_0x3a4f91);const It=0x12c,vt=0x64,gt=()=>{let _0x51ae56=[],_0x247b80=!0x1;return _0x1e4724=>{const _0x3dc122=_0x381d;_0x51ae56[_0x3dc122(0x38d)](_0x1e4724),_0x247b80||(_0x247b80=!0x0,setTimeout(()=>{_0x51ae56['forEach'](_0x58fb40=>_0x58fb40()),_0x51ae56=[],_0x247b80=!0x1;}));};};let Se=class extends a[_0x49cc92(0x3b8)]{constructor(_0x8d05ba,_0x35b617,_0x30e05c,_0x4773c5,_0x21d8cb,_0x21b51d,_0x5eb99c,_0x178589){const _0x3c16d3=_0x49cc92;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x3c16d3(0x1f5),new d[(_0x3c16d3(0x220))](new Map())),h(this,'cursorInfo$',this[_0x3c16d3(0x1f5)][_0x3c16d3(0x293)]()),h(this,_0x3c16d3(0x219),new d[(_0x3c16d3(0x220))]([])),h(this,_0x3c16d3(0x297),this[_0x3c16d3(0x219)][_0x3c16d3(0x19c)](d['debounceTime'](It))),h(this,_0x3c16d3(0x2c6),a[_0x3c16d3(0x24c)]((_0x3c9f35,_0x50d52a)=>{const _0x2fc016=_0x3c16d3,_0x262c07={'eventID':m[_0x2fc016(0x2c9)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2fc016(0x2cc)],'memberID':this[_0x2fc016(0x397)][_0x2fc016(0x22f)](),'selection':Ee[_0x2fc016(0x199)](_0x3c9f35,_0x50d52a[_0x2fc016(0x1d1)])}};this['_session']['send'](_0x262c07,this['unitID']);},vt)),(this['unitID']=_0x8d05ba,this[_0x3c16d3(0x397)]=_0x35b617,this[_0x3c16d3(0x176)]=_0x30e05c,this[_0x3c16d3(0x2c5)]=_0x4773c5,this['_memberService']=_0x21d8cb,this[_0x3c16d3(0x150)]=_0x21b51d,this['_commandService']=_0x5eb99c,this[_0x3c16d3(0x31f)]=_0x178589);}get[_0x49cc92(0x388)](){const _0x198ca9=_0x49cc92;return this[_0x198ca9(0x1f5)][_0x198ca9(0x21f)]();}get['roomMembers'](){const _0x204362=_0x49cc92;return this[_0x204362(0x219)][_0x204362(0x21f)]();}[_0x49cc92(0x3bc)](){const _0x2c1242=_0x49cc92;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x2c1242(0x236)](),this['_roomMembers$'][_0x2c1242(0x2f4)]([]),this[_0x2c1242(0x219)][_0x2c1242(0x236)]();}['init'](){const _0x26f6e1=_0x49cc92;this['_init']||(this['_init']=!0x0,this[_0x26f6e1(0x397)]['sessionStatus$'][_0x26f6e1(0x19c)](d[_0x26f6e1(0x344)](this['dispose$']))['subscribe'](_0x5b8847=>{const _0x379998=_0x26f6e1;_0x5b8847===u[_0x379998(0x17a)][_0x379998(0x1c6)]?this['_toggleOnline']():this[_0x379998(0x1ca)]();}),this['_session'][_0x26f6e1(0x14f)][_0x26f6e1(0x19c)](d['takeUntil'](this[_0x26f6e1(0x23a)]))[_0x26f6e1(0x282)](_0x125f34=>{const _0x5d5985=_0x26f6e1,_0x535dd9=_0x125f34[_0x5d5985(0x160)];_0x535dd9===m[_0x5d5985(0x2c9)][_0x5d5985(0x3c2)]&&this['_onCursorUpdate'](_0x125f34),_0x535dd9===m['CollaborationEvent'][_0x5d5985(0x245)]&&this['_onCursorDelete'](_0x125f34);}),this[_0x26f6e1(0x1d0)](),this[_0x26f6e1(0x28e)](this[_0x26f6e1(0x3d6)][_0x26f6e1(0x276)](_0x3e0ea6=>{const _0x177a8e=_0x26f6e1;if(this[_0x177a8e(0x1c1)]&&_0x3e0ea6['id']===g[_0x177a8e(0x1a2)]['id']&&_0x3e0ea6[_0x177a8e(0x1cd)][_0x177a8e(0x2eb)]===this['unitID']){const _0x38dc72=_0x3e0ea6['params'];this[_0x177a8e(0x2c6)](_0x38dc72[_0x177a8e(0x3c3)],_0x38dc72[_0x177a8e(0x29c)][0x0]);}})));}[_0x49cc92(0x24b)](_0x37e87e){const _0x5be87d=_0x49cc92;var _0x4f5b4f,_0x1cd07b;const {memberID:_0x2624f0,selection:_0xa94499}=_0x37e87e[_0x5be87d(0x2ad)],{sheetName:_0x2c9ed7,range:_0x26d4b2}=Ee[_0x5be87d(0x21d)](_0xa94499),_0x5dea1a={'name':(_0x1cd07b=(_0x4f5b4f=this['_memberService'][_0x5be87d(0x2f5)](this[_0x5be87d(0x2cc)],_0x2624f0))==null?void 0x0:_0x4f5b4f[_0x5be87d(0x301)])!=null?_0x1cd07b:_0x5be87d(0x2de),'range':this['_getMergeRange'](_0x2c9ed7,_0x26d4b2),'sheetID':_0x2c9ed7,'color':this[_0x5be87d(0x2c5)][_0x5be87d(0x251)](_0x2624f0),'selection':_0xa94499},_0x11b418=this['cursorInfo'];_0x11b418['set'](_0x2624f0,_0x5dea1a),this[_0x5be87d(0x1f5)]['next'](_0x11b418);}[_0x49cc92(0x37c)](_0x35b46c){const _0x1ed752=_0x49cc92,{memberID:_0xea446}=_0x35b46c[_0x1ed752(0x2ad)],_0x34008c=this[_0x1ed752(0x388)];_0x34008c['delete'](_0xea446),this[_0x1ed752(0x1f5)][_0x1ed752(0x2f4)](_0x34008c);}[_0x49cc92(0x330)](_0xe0d5cc,_0x29366a){const _0x4e4425=_0x49cc92;var _0x1ec887,_0x2bf532;const _0x45ee9d=(_0x2bf532=(_0x1ec887=this['_univerInstanceService'][_0x4e4425(0x3b9)](this[_0x4e4425(0x2cc)]))==null?void 0x0:_0x1ec887['getSheetBySheetId'](_0xe0d5cc))==null?void 0x0:_0x2bf532[_0x4e4425(0x18c)]();return(_0x45ee9d==null?void 0x0:_0x45ee9d[_0x4e4425(0x156)](_0x20b157=>a[_0x4e4425(0x35d)]['contains'](_0x20b157,_0x29366a)))||_0x29366a;}[_0x49cc92(0x1d0)](){const _0x523e55=_0x49cc92,_0x109de1=new a['DisposableCollection'](),_0x2024e2=gt(),_0xdfd6b=()=>{const _0x279cdc=_0x381d;_0x109de1[_0x279cdc(0x3bc)]();const _0x2eb314=(_0x52caeb,_0x54a552,_0x355b16,_0x4de235)=>{const _0x1e771a=_0x279cdc;let _0x10075a=[];switch(_0x52caeb['id']){case g[_0x1e771a(0x2ee)]['DeleteRangeMoveLeftCommandId']:{_0x10075a=g[_0x1e771a(0x1bc)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)]['DeleteRangeMoveUpCommandId']:{_0x10075a=g[_0x1e771a(0x23e)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)]['InsertColCommandId']:{_0x10075a=g[_0x1e771a(0x35e)](_0x52caeb,_0x4de235);break;}case g['EffectRefRangId'][_0x1e771a(0x2ce)]:{_0x10075a=g[_0x1e771a(0x216)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x296)]:{_0x10075a=g[_0x1e771a(0x2bc)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x378)]:{_0x10075a=g[_0x1e771a(0x324)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x26d)]:{_0x10075a=g['handleMoveRange'](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x305)]:{_0x10075a=g[_0x1e771a(0x196)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x2d9)]:{_0x10075a=g['handleIRemoveRow'](_0x52caeb,_0x4de235);break;}}const _0x484aab=g[_0x1e771a(0x311)](_0x10075a,_0x4de235),_0x55a6c8=this[_0x1e771a(0x388)][_0x1e771a(0x23b)](_0x54a552);if(_0x55a6c8&&_0x484aab){const _0x4a998d={..._0x55a6c8,'range':_0x484aab};this[_0x1e771a(0x388)]['set'](_0x54a552,_0x4a998d),_0x2024e2(()=>{const _0x4a310f=_0x1e771a,_0x39dda9=this[_0x4a310f(0x31f)][_0x4a310f(0x3cb)](_0x484aab,_0x732ed6=>(_0x39dda9[_0x4a310f(0x3bc)](),_0x2eb314(_0x732ed6,_0x54a552,_0x355b16,_0x484aab)));_0x109de1[_0x4a310f(0x32c)](_0x39dda9);});}return{'redos':[],'undos':[]};};this[_0x279cdc(0x388)][_0x279cdc(0x392)]((_0x5428dc,_0x4bb37a)=>{const _0x2fc5cd=_0x279cdc,{range:_0x3ec054,sheetID:_0x4334ed}=_0x5428dc,_0x26ee82=this[_0x2fc5cd(0x31f)]['registerRefRange'](_0x3ec054,_0x121895=>(_0x26ee82[_0x2fc5cd(0x3bc)](),_0x2eb314(_0x121895,_0x4bb37a,_0x4334ed,_0x3ec054)));_0x109de1['add'](_0x26ee82);});};this['disposeWithMe'](a[_0x523e55(0x29d)](this[_0x523e55(0x1f5)]['subscribe'](()=>{_0xdfd6b();})));}[_0x49cc92(0x325)](){const _0xbc9aba=_0x49cc92;var _0xdc09db,_0x2ba606;if(this[_0xbc9aba(0x1c1)]=!0x0,((_0xdc09db=this[_0xbc9aba(0x150)]['getFocusedUnit']())==null?void 0x0:_0xdc09db[_0xbc9aba(0x273)]())!==this['unitID'])return;const _0x339359=(_0x2ba606=this['_injector'][_0xbc9aba(0x23b)](g['SheetsSelectionsService'])[_0xbc9aba(0x178)]())==null?void 0x0:_0x2ba606[0x0],_0x530851=this['_univerInstanceService'][_0xbc9aba(0x2e6)](a[_0xbc9aba(0x394)][_0xbc9aba(0x23c)])[_0xbc9aba(0x24f)]();_0x339359&&_0x530851&&this['_updateLocalCursor'](_0x530851['getSheetId'](),_0x339359);}['_toggleOffline'](){this['_online']=!0x1;}};Se=ft([A(0x2,a['Inject'](a[_0x49cc92(0x341)])),A(0x3,a[_0x49cc92(0x26b)](Ce)),A(0x4,a[_0x49cc92(0x26b)](u[_0x49cc92(0x34b)])),A(0x5,a[_0x49cc92(0x30f)]),A(0x6,a[_0x49cc92(0x35c)]),A(0x7,a[_0x49cc92(0x26b)](g[_0x49cc92(0x2c0)]))],Se);var mt=Object[_0x49cc92(0x1af)],Ct=(_0xc95504,_0x29babd,_0x52d347,_0x2ba15e)=>{const _0x2e1d90=_0x49cc92;for(var _0x14ec34=_0x2ba15e>0x1?void 0x0:_0x2ba15e?mt(_0x29babd,_0x52d347):_0x29babd,_0x4f4644=_0xc95504[_0x2e1d90(0x2d5)]-0x1,_0x20fda6;_0x4f4644>=0x0;_0x4f4644--)(_0x20fda6=_0xc95504[_0x4f4644])&&(_0x14ec34=_0x20fda6(_0x14ec34)||_0x14ec34);return _0x14ec34;},ie=(_0x55fa14,_0x265973)=>(_0x25c635,_0x4a6b7c)=>_0x265973(_0x25c635,_0x4a6b7c,_0x55fa14);let x=class extends a['RxDisposable']{constructor(_0x38772f,_0x502bdb,_0x3d8803){const _0x49084d=_0x49cc92;super(),h(this,_0x49084d(0x396),new Map()),h(this,_0x49084d(0x374),new d[(_0x49084d(0x1f6))]()),(this[_0x49084d(0x150)]=_0x38772f,this[_0x49084d(0x176)]=_0x502bdb,this[_0x49084d(0x24a)]=_0x3d8803,this[_0x49084d(0x2ef)]());}['dispose'](){const _0x24e208=_0x49cc92;super[_0x24e208(0x3bc)](),this[_0x24e208(0x374)][_0x24e208(0x236)](),this[_0x24e208(0x396)][_0x24e208(0x392)](_0x148c29=>_0x148c29['dispose']());}[_0x49cc92(0x1bf)](_0x1817e0){const _0x49e471=_0x49cc92;return this[_0x49e471(0x396)][_0x49e471(0x19a)](_0x1817e0)?this[_0x49e471(0x396)]['get'](_0x1817e0)[_0x49e471(0x3b5)]:this['_entityInit$'][_0x49e471(0x19c)](d[_0x49e471(0x2c2)](_0x4670da=>_0x4670da[_0x49e471(0x2cc)]===_0x1817e0),d[_0x49e471(0x211)](_0x4816e8=>_0x4816e8['cursorInfo$']));}[_0x49cc92(0x2ef)](){const _0x563a02=_0x49cc92;this[_0x563a02(0x150)][_0x563a02(0x215)](a['UniverInstanceType'][_0x563a02(0x23c)])[_0x563a02(0x19c)](d[_0x563a02(0x344)](this[_0x563a02(0x23a)]))[_0x563a02(0x282)](async _0x15db05=>{const _0x4d024e=_0x563a02,_0x5e1935=_0x15db05['getUnitId'](),_0x53e1f0=await this[_0x4d024e(0x36e)](_0x5e1935);this[_0x4d024e(0x374)][_0x4d024e(0x2f4)](_0x53e1f0),this['_entities'][_0x4d024e(0x2a0)](_0x5e1935,_0x53e1f0);}),this[_0x563a02(0x150)][_0x563a02(0x215)](a[_0x563a02(0x394)][_0x563a02(0x3a5)])[_0x563a02(0x19c)](d[_0x563a02(0x344)](this[_0x563a02(0x23a)]))[_0x563a02(0x19c)](d[_0x563a02(0x2c2)](_0xcd8809=>!_0xcd8809[_0x563a02(0x273)]()[_0x563a02(0x17d)]('__')))[_0x563a02(0x282)](async _0x405150=>{const _0x27aeae=_0x563a02,_0x24aad1=_0x405150['getUnitId'](),_0x34fd2e=await this[_0x27aeae(0x171)](_0x24aad1);this[_0x27aeae(0x374)][_0x27aeae(0x2f4)](_0x34fd2e),this[_0x27aeae(0x396)][_0x27aeae(0x2a0)](_0x24aad1,_0x34fd2e);}),d[_0x563a02(0x20c)](this[_0x563a02(0x150)][_0x563a02(0x336)](a[_0x563a02(0x394)]['UNIVER_DOC']),this[_0x563a02(0x150)][_0x563a02(0x336)](a[_0x563a02(0x394)]['UNIVER_SHEET']))[_0x563a02(0x19c)](d[_0x563a02(0x344)](this[_0x563a02(0x23a)]))[_0x563a02(0x282)](_0x1e3bee=>{const _0x336b45=_0x563a02,_0x215581=_0x1e3bee[_0x336b45(0x273)](),_0x272d7c=this[_0x336b45(0x396)][_0x336b45(0x23b)](_0x215581);_0x272d7c&&(_0x272d7c[_0x336b45(0x3bc)](),this['_entities'][_0x336b45(0x3b1)](_0x215581));});}async[_0x49cc92(0x36e)](_0x5eb17f){const _0x791e73=_0x49cc92,_0xdee19=await this['_collabSessionService']['requireSession'](_0x5eb17f),_0x2dd87b=this[_0x791e73(0x176)]['createInstance'](Se,_0x5eb17f,_0xdee19);return _0x2dd87b[_0x791e73(0x35b)](),_0x2dd87b;}async['_startDocCollabCursor'](_0xeac1ff){const _0x278205=_0x49cc92,_0x131024=await this['_collabSessionService'][_0x278205(0x269)](_0xeac1ff),_0x1e1dae=this[_0x278205(0x176)][_0x278205(0x299)](de,_0xeac1ff,_0x131024);return _0x1e1dae[_0x278205(0x35b)](),_0x1e1dae;}};x=Ct([ie(0x0,a[_0x49cc92(0x30f)]),ie(0x1,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),ie(0x2,a[_0x49cc92(0x26b)](u[_0x49cc92(0x371)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x356312,_0x1a9dd5){const _0xbbd57c=_0x49cc92;let {radius:_0xacd221,width:_0x19d798,height:_0x494bf8}=_0x1a9dd5;_0xacd221=_0xacd221!=null?_0xacd221:0x0,_0x19d798=_0x19d798!=null?_0x19d798:0x1e,_0x494bf8=_0x494bf8!=null?_0x494bf8:0x1e;let _0xb11ca4=0x0,_0x227fdf=0x0,_0x42fa06=0x0;_0xb11ca4=_0x227fdf=_0x42fa06=Math[_0xbbd57c(0x322)](_0xacd221,_0x19d798/0x2,_0x494bf8/0x2),_0x356312['beginPath'](),_0x356312[_0xbbd57c(0x32b)](_0xb11ca4,0x0),_0x356312[_0xbbd57c(0x197)](_0x19d798-_0x227fdf,0x0),_0x356312[_0xbbd57c(0x231)](_0x19d798-_0x227fdf,_0x227fdf,_0x227fdf,Math['PI']*0x3/0x2,0x0,!0x1),_0x356312[_0xbbd57c(0x197)](_0x19d798,_0x494bf8-_0x42fa06),_0x356312[_0xbbd57c(0x231)](_0x19d798-_0x42fa06,_0x494bf8-_0x42fa06,_0x42fa06,0x0,Math['PI']/0x2,!0x1),_0x356312[_0xbbd57c(0x197)](0x0,_0x494bf8),_0x356312[_0xbbd57c(0x197)](0x0,_0xb11ca4),_0x356312[_0xbbd57c(0x231)](_0xb11ca4,_0xb11ca4,_0xb11ca4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x356312[_0xbbd57c(0x209)](),_0x1a9dd5[_0xbbd57c(0x2cf)]&&(_0x356312[_0xbbd57c(0x3d4)](),_0x356312[_0xbbd57c(0x270)]=_0x1a9dd5[_0xbbd57c(0x2cf)],_0x1a9dd5['fillRule']===_0xbbd57c(0x3bd)?_0x356312['fill'](_0xbbd57c(0x3bd)):_0x356312[_0xbbd57c(0x2cf)](),_0x356312['restore']());}class ee extends p[_0x49cc92(0x22b)]{constructor(_0x1ad0b7,_0xc57607){const _0x5d8a61=_0x49cc92;super(_0x1ad0b7,_0xc57607),h(this,_0x5d8a61(0x300)),h(this,_0x5d8a61(0x343)),(this['color']=_0xc57607==null?void 0x0:_0xc57607[_0x5d8a61(0x300)],this['text']=_0xc57607==null?void 0x0:_0xc57607['text']);}static[_0x49cc92(0x36d)](_0x505bcf,_0x39189a){const _0x396e56=_0x49cc92,{text:_0x564670,color:_0x3f68e5}=_0x39189a;_0x505bcf[_0x396e56(0x3d4)](),_0x505bcf[_0x396e56(0x2f6)]=_0x396e56(0x3cc);const _0x45c17a=_0x505bcf[_0x396e56(0x323)](_0x564670)['width'],_0x47f82a=Math['min'](_0x45c17a+0x2*ne,Te);Et(_0x505bcf,{'height':W,'radius':0x4,'width':_0x47f82a,'fill':_0x3f68e5}),_0x505bcf['fillStyle']=_0x396e56(0x359);const _0x2c67e7=ne,_0x497f5d=W-pt,_0xd29342=Te-0x2*ne;if(_0x45c17a>_0xd29342){let _0x59204b='',_0xbb8222=0x0;for(const _0x559593 of _0x564670){const _0x1eabad=_0x505bcf[_0x396e56(0x323)](_0x559593)[_0x396e56(0x384)];if(_0xbb8222+_0x1eabad<=_0xd29342-_0x505bcf[_0x396e56(0x323)](_0x396e56(0x1de))[_0x396e56(0x384)])_0x59204b+=_0x559593,_0xbb8222+=_0x1eabad;else{_0x59204b+='...';break;}}_0x505bcf['fillText'](_0x59204b,_0x2c67e7,_0x497f5d);}else _0x505bcf[_0x396e56(0x1b1)](_0x564670,_0x2c67e7,_0x497f5d);_0x505bcf[_0x396e56(0x27d)]();}[_0x49cc92(0x31e)](_0x32f22){ee['drawWith'](_0x32f22,this);}}const re='collab-text-anchor-',bt=_0x49cc92(0x190),Ot=_0x49cc92(0x181),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x49cc92(0x163);class Re{constructor(_0x22ffaa,_0x3155dd,_0x4996d5,_0x14f2dc){const _0x131c44=_0x49cc92;h(this,_0x131c44(0x358),[]),h(this,_0x131c44(0x15a),null),h(this,_0x131c44(0x175),null),h(this,_0x131c44(0x295),null),h(this,_0x131c44(0x22d),null),h(this,_0x131c44(0x16e),null),(this[_0x131c44(0x221)]=_0x22ffaa,this[_0x131c44(0x3ba)]=_0x3155dd,this[_0x131c44(0x33f)]=_0x4996d5,this[_0x131c44(0x3af)]=_0x14f2dc,this[_0x131c44(0x290)]());}set[_0x49cc92(0x319)](_0x4f969e){const _0x5b767f=_0x49cc92;_0x4f969e?(this[_0x5b767f(0x295)]&&this['_anchorDot']['hide'](),this[_0x5b767f(0x175)]&&this[_0x5b767f(0x175)]['show']()):(this[_0x5b767f(0x295)]&&this[_0x5b767f(0x295)][_0x5b767f(0x1aa)](),this[_0x5b767f(0x175)]&&this[_0x5b767f(0x175)][_0x5b767f(0x1b0)]());}[_0x49cc92(0x3bc)](){const _0x4144d4=_0x49cc92;for(const _0x1e0c9e of this[_0x4144d4(0x358)])_0x1e0c9e['dispose']();this['_textBubble']&&this[_0x4144d4(0x175)][_0x4144d4(0x3bc)](),this[_0x4144d4(0x295)]&&this['_anchorDot'][_0x4144d4(0x3bc)](),this[_0x4144d4(0x15a)]&&this['_anchor'][_0x4144d4(0x3bc)](),this[_0x4144d4(0x16e)]&&this['_eventUnsubscribe']();}[_0x49cc92(0x290)](){const _0x21e5aa=_0x49cc92;var _0x243940;const {_docSkeleton:_0x13759a,_document:_0x2d95c5}=this,{color:_0x5be5c9,name:_0x12cbd3,ranges:_0x93c675}=this[_0x21e5aa(0x221)],_0x3dc975=_0x2d95c5[_0x21e5aa(0x1bd)](),{docsLeft:_0x277d64,docsTop:_0x1d8283}=_0x3dc975,_0x2892a0=new E[(_0x21e5aa(0x1fb))](_0x3dc975,_0x13759a);for(const {startOffset:_0xfd8ce2,endOffset:_0x38d094,rangeType:_0x1c7ab3,segmentId:_0x114d4a,segmentPage:_0x20ad2e,collapsed:_0x4ba8f9,isActive:_0x5cb969}of _0x93c675){const _0x1a26bb=_0x13759a[_0x21e5aa(0x24d)](_0xfd8ce2,!0x0,_0x114d4a,_0x20ad2e);let _0x149ae7=_0x13759a[_0x21e5aa(0x24d)](_0x38d094,!0x0,_0x114d4a,_0x20ad2e);if(_0x149ae7==null&&(_0x149ae7=_0x13759a[_0x21e5aa(0x24d)](_0x38d094-0x1,!0x1,_0x114d4a,_0x20ad2e)),_0x5cb969){const {contentBoxPointGroup:_0x198905}=_0x2892a0['getRangePointData'](_0x149ae7,_0x149ae7);if(_0x198905['length']===0x0)continue;this['_drawAnchor'](_0x5be5c9,_0x198905,_0x277d64,_0x1d8283,_0x12cbd3),this[_0x21e5aa(0x16e)]=this[_0x21e5aa(0x242)]();}if(_0x1a26bb&&_0x149ae7){if(_0x1c7ab3===a[_0x21e5aa(0x213)][_0x21e5aa(0x16b)]){const _0x3a89d8=new E[(_0x21e5aa(0x1dd))](_0x3dc975,_0x13759a),{pointGroup:_0x3afed5}=(_0x243940=_0x3a89d8[_0x21e5aa(0x1f3)](_0x1a26bb,_0x149ae7))!=null?_0x243940:{};if(_0x3afed5==null||_0x3afed5['length']===0x0)continue;this[_0x21e5aa(0x278)](_0x5be5c9,_0x3afed5,_0x277d64,_0x1d8283);}else{if(!_0x4ba8f9){const {borderBoxPointGroup:_0x20da63}=_0x2892a0[_0x21e5aa(0x1f3)](_0x1a26bb,_0x149ae7);if(_0x20da63[_0x21e5aa(0x2d5)]===0x0)continue;this['_drawTextRange'](_0x5be5c9,_0x20da63,_0x277d64,_0x1d8283);}}}}}[_0x49cc92(0x1cf)](_0x24829c,_0x2d358b,_0x1e18ad,_0x479f53,_0x10b71e){const _0x40be1f=_0x49cc92,_0x488a88=this['_getAnchorBounding'](_0x2d358b),{left:_0x4e1a2b,top:_0x243135,height:_0x5973a1}=_0x488a88,_0x404d4a=this[_0x40be1f(0x192)](),_0x1ca77b=Rt/_0x404d4a,_0xe1d3d2=new p[(_0x40be1f(0x2db))](re+a[_0x40be1f(0x340)](F),{'left':_0x4e1a2b+_0x1e18ad-_0x1ca77b,'top':_0x243135+_0x479f53,'height':_0x5973a1,'width':Tt,'fill':_0x24829c||p[_0x40be1f(0x1be)](a[_0x40be1f(0x34d)][_0x40be1f(0x2d2)],0x0),'strokeWidth':_0x1ca77b,'stroke':Dt,'evented':!0x0});this[_0x40be1f(0x15a)]=_0xe1d3d2,this[_0x40be1f(0x3ba)][_0x40be1f(0x1d5)](_0xe1d3d2,E[_0x40be1f(0x328)]);const _0x1ce7ea=new p[(_0x40be1f(0x2db))](re+a['generateRandomId'](F),{'left':_0x4e1a2b+_0x1e18ad-_0x1ca77b,'top':_0x243135+_0x479f53-oe/0x2,'height':oe,'width':oe,'fill':_0x24829c||p['getColor'](a[_0x40be1f(0x34d)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x24829c||p[_0x40be1f(0x1be)](a[_0x40be1f(0x34d)]['black'],0x0),'evented':!0x1});this[_0x40be1f(0x295)]=_0x1ce7ea,this[_0x40be1f(0x3ba)][_0x40be1f(0x1d5)](_0x1ce7ea,E[_0x40be1f(0x328)]);const _0x533f96=new ee(re+a['generateRandomId'](F),{'left':_0x4e1a2b+_0x1e18ad-_0x1ca77b,'top':_0x243135+_0x479f53-W,'text':_0x10b71e,'color':_0x24829c});this[_0x40be1f(0x175)]=_0x533f96,this['_scene'][_0x40be1f(0x1d5)](_0x533f96,E[_0x40be1f(0x328)]),this[_0x40be1f(0x319)]=!0x1;}[_0x49cc92(0x242)](){const _0x46c948=_0x49cc92,_0x27c648=this[_0x46c948(0x15a)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x265d51=_0x46c948;this[_0x265d51(0x319)]=!0x0;}),_0xbc2594=this[_0x46c948(0x15a)][_0x46c948(0x2f7)][_0x46c948(0x204)](()=>{const _0x4bafac=_0x46c948;this[_0x4bafac(0x22d)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0xf74715=_0x4bafac;this[_0xf74715(0x319)]=!0x1;},0x7d0);});return()=>{const _0x3c34f8=_0x46c948;_0x27c648[_0x3c34f8(0x1d6)](),_0xbc2594['unsubscribe']();};}[_0x49cc92(0x2ab)](_0xf42bc0,_0x46c5b6,_0x2c3781,_0x2462b8){const _0x291b59=_0x49cc92,_0x4f5d70=new a[(_0x291b59(0x1fa))](_0xf42bc0)[_0x291b59(0x320)](0.2)[_0x291b59(0x198)](),_0x233b15=new p[(_0x291b59(0x1e3))](bt+a[_0x291b59(0x340)](F),{'pointsGroup':_0x46c5b6,'fill':_0x4f5d70||p['getColor'](a[_0x291b59(0x34d)][_0x291b59(0x2d2)],0.2),'left':_0x2c3781,'top':_0x2462b8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x291b59(0x38d)](_0x233b15),this[_0x291b59(0x3ba)][_0x291b59(0x1d5)](_0x233b15,E[_0x291b59(0x328)]);}[_0x49cc92(0x278)](_0x481cbe,_0xc88e09,_0x4240da,_0x4e1af7){const _0x3387ee=_0x49cc92,_0x56f55d=new a[(_0x3387ee(0x1fa))](_0x481cbe)[_0x3387ee(0x320)](0.2)[_0x3387ee(0x198)](),_0x1cc193=new p['RegularPolygon'](Ot+a['generateRandomId'](F),{'pointsGroup':_0xc88e09,'fill':_0x56f55d||p[_0x3387ee(0x1be)](a[_0x3387ee(0x34d)][_0x3387ee(0x2d2)],0.2),'left':_0x4240da,'top':_0x4e1af7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3387ee(0x358)][_0x3387ee(0x38d)](_0x1cc193),this[_0x3387ee(0x3ba)]['addObject'](_0x1cc193,E[_0x3387ee(0x328)]);}[_0x49cc92(0x316)](_0xd825d7){const _0x52869f=_0xd825d7[0x0],_0x9ea7c1=_0x52869f[0x0],_0x25cedb=_0x52869f[0x2],{x:_0x4e9d56,y:_0x486763}=_0x9ea7c1,{x:_0x9f098c,y:_0x369f88}=_0x25cedb;return{'left':_0x4e9d56,'top':_0x486763,'width':_0x9f098c-_0x4e9d56,'height':_0x369f88-_0x486763};}['_getScale'](){const _0xe56eed=_0x49cc92,{scaleX:_0x5939cc,scaleY:_0x2f11c0}=this[_0xe56eed(0x3ba)][_0xe56eed(0x2ba)]();return Math[_0xe56eed(0x313)](_0x5939cc,_0x2f11c0);}}var Ut=Object[_0x49cc92(0x1af)],Nt=(_0x2a7c12,_0x4398ac,_0x3d0cfd,_0x19f63b)=>{const _0x404f72=_0x49cc92;for(var _0x1ca328=_0x19f63b>0x1?void 0x0:_0x19f63b?Ut(_0x4398ac,_0x3d0cfd):_0x4398ac,_0x2ec96f=_0x2a7c12[_0x404f72(0x2d5)]-0x1,_0x2e0890;_0x2ec96f>=0x0;_0x2ec96f--)(_0x2e0890=_0x2a7c12[_0x2ec96f])&&(_0x1ca328=_0x2e0890(_0x1ca328)||_0x1ca328);return _0x1ca328;},X=(_0x3ab283,_0xc3c3c6)=>(_0x496bad,_0x4b060a)=>_0xc3c3c6(_0x496bad,_0x4b060a,_0x3ab283);let fe=class extends a[_0x49cc92(0x3b8)]{constructor(_0x2da898,_0x4d40b5,_0x4934f8,_0x46b191,_0x2a1eb0){const _0x1b9c63=_0x49cc92;super(),h(this,_0x1b9c63(0x279),[]),h(this,_0x1b9c63(0x2c7),[]),(this[_0x1b9c63(0x33d)]=_0x2da898,this[_0x1b9c63(0x292)]=_0x4d40b5,this[_0x1b9c63(0x25a)]=_0x4934f8,this['_commandService']=_0x46b191,this[_0x1b9c63(0x3a3)]=_0x2a1eb0,this[_0x1b9c63(0x2ef)]());}[_0x49cc92(0x2ef)](){const _0x21d396=_0x49cc92,_0x42a4d0=this['_context'][_0x21d396(0x2eb)],_0x2808c5=this['_docSkeletonManagerService'];this[_0x21d396(0x28e)](d[_0x21d396(0x38e)]([this[_0x21d396(0x25a)][_0x21d396(0x1bf)](_0x42a4d0),this[_0x21d396(0x3a3)]['currentTheme$']])['pipe']($['map'](([_0x1c46ba,_0x19b38c])=>({'skeleton':_0x2808c5[_0x21d396(0x3a1)](),'cursors':[..._0x1c46ba['values']()][_0x21d396(0x30b)](_0x4a8ba1=>({..._0x4a8ba1,'color':this[_0x21d396(0x3a3)][_0x21d396(0x360)](_0x4a8ba1[_0x21d396(0x300)])}))})))[_0x21d396(0x282)](_0x1ae92b=>{const _0x112ca1=_0x21d396;if(this['_removeCollabCursors'](),_0x1ae92b){const {skeleton:_0x14ada8,cursors:_0x41d75d}=_0x1ae92b;this[_0x112ca1(0x3c0)](_0x14ada8,_0x41d75d);}})),this[_0x21d396(0x361)](),this[_0x21d396(0x189)]();}[_0x49cc92(0x3c0)](_0x53a296,_0x267d2c){const _0x44dbb6=_0x49cc92,{scene:_0x481a66,mainComponent:_0x9c152c}=this[_0x44dbb6(0x33d)],_0x55c521=_0x267d2c[_0x44dbb6(0x3ca)](_0x59de15=>new Re(_0x59de15,_0x481a66,_0x53a296,_0x9c152c));this[_0x44dbb6(0x279)]=_0x55c521,this[_0x44dbb6(0x2c7)]=_0x267d2c;}[_0x49cc92(0x21e)](){const _0x18ffd0=_0x49cc92;this[_0x18ffd0(0x1b2)]();const {scene:_0x5d0f02,mainComponent:_0x3cd17a}=this[_0x18ffd0(0x33d)],_0x4ef0bb=this[_0x18ffd0(0x292)]['getSkeleton'](),_0x8e82c0=this['_cursors'][_0x18ffd0(0x3ca)](_0x549db0=>new Re(_0x549db0,_0x5d0f02,_0x4ef0bb,_0x3cd17a));this[_0x18ffd0(0x279)]=_0x8e82c0;}[_0x49cc92(0x1b2)](){const _0x4d7a6a=_0x49cc92;this[_0x4d7a6a(0x279)]['forEach'](_0x55ac89=>_0x55ac89['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x171a63=_0x49cc92,_0x3766cd=[E['SetDocZoomRatioOperation']['id']];this[_0x171a63(0x28e)](this[_0x171a63(0x3d6)][_0x171a63(0x276)](_0x76e757=>{const _0x2f8c3d=_0x171a63;_0x3766cd[_0x2f8c3d(0x337)](_0x76e757['id'])&&_0x76e757[_0x2f8c3d(0x1cd)]['unitId']===this[_0x2f8c3d(0x33d)][_0x2f8c3d(0x2eb)]&&this[_0x2f8c3d(0x21e)]();}));}[_0x49cc92(0x361)](){const _0x26a734=_0x49cc92;this[_0x26a734(0x28e)](a['fromEventSubject'](this[_0x26a734(0x33d)][_0x26a734(0x17c)][_0x26a734(0x3bb)])[_0x26a734(0x19c)]($[_0x26a734(0x2c2)](_0x42165e=>_0x42165e[_0x26a734(0x33a)]===p[_0x26a734(0x281)][_0x26a734(0x31d)]),$[_0x26a734(0x326)](0x10))['subscribe'](()=>{const _0x2af07a=_0x26a734;this[_0x2af07a(0x21e)]();}));}};fe=Nt([X(0x1,a['Inject'](Y[_0x49cc92(0x2b9)])),X(0x2,a[_0x49cc92(0x26b)](x)),X(0x3,a[_0x49cc92(0x35c)]),X(0x4,a['Inject'](a[_0x49cc92(0x2d0)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p['Shape']{constructor(_0x4c49ef,_0x427e2a){const _0x46b6cf=_0x49cc92;super(_0x4c49ef,_0x427e2a),h(this,_0x46b6cf(0x329)),h(this,'_hovered',!0x1),h(this,_0x46b6cf(0x235)),h(this,_0x46b6cf(0x2b1),''),h(this,'_labelPosition','top'),h(this,_0x46b6cf(0x248)),(_0x427e2a&&this['setShapeProps'](_0x427e2a),this[_0x46b6cf(0x238)][_0x46b6cf(0x204)](()=>this[_0x46b6cf(0x2d6)]({'hovered':!0x0})),this[_0x46b6cf(0x2f7)][_0x46b6cf(0x204)](()=>this[_0x46b6cf(0x2d6)]({'hovered':!0x1})));}['setShapeProps'](_0x1b0fdd){const _0x52dd45=_0x49cc92;var _0xeb6aa2,_0x27d87b,_0x5aef45,_0x56559c,_0x345eff,_0x2dc059;this[_0x52dd45(0x329)]=(_0xeb6aa2=_0x1b0fdd['color'])!=null?_0xeb6aa2:this[_0x52dd45(0x329)],this['_hovered']=(_0x27d87b=_0x1b0fdd[_0x52dd45(0x274)])!=null?_0x27d87b:this[_0x52dd45(0x185)],this['_range']=(_0x5aef45=_0x1b0fdd[_0x52dd45(0x1d1)])!=null?_0x5aef45:this[_0x52dd45(0x235)],this[_0x52dd45(0x2b1)]=(_0x56559c=_0x1b0fdd['name'])!=null?_0x56559c:this['_name'],this[_0x52dd45(0x1a5)]=(_0x345eff=_0x1b0fdd[_0x52dd45(0x26e)])!=null?_0x345eff:this[_0x52dd45(0x1a5)],this[_0x52dd45(0x248)]=(_0x2dc059=_0x1b0fdd[_0x52dd45(0x2ec)])!=null?_0x2dc059:this[_0x52dd45(0x248)],this[_0x52dd45(0x158)]({'width':_0x1b0fdd['width'],'height':_0x1b0fdd[_0x52dd45(0x2b4)]});}['onMouseMove'](_0x46ee9){const _0x2142ed=_0x49cc92,{row:_0x4f63c9,column:_0x43ec07}=_0x46ee9;if(_0x4f63c9>=this[_0x2142ed(0x235)][_0x2142ed(0x393)]&&_0x4f63c9<=this['_range'][_0x2142ed(0x3c9)]&&_0x43ec07>=this[_0x2142ed(0x235)][_0x2142ed(0x179)]&&_0x43ec07<=this[_0x2142ed(0x235)][_0x2142ed(0x3ae)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2142ed(0x2d6)]({'hovered':!0x1});}[_0x49cc92(0x2d8)](_0x6648b6){return!0x1;}['_draw'](_0x58d113){const _0x12cc02=_0x49cc92;p['Rect'][_0x12cc02(0x36d)](_0x58d113,{'width':this[_0x12cc02(0x384)],'height':this['height'],'strokeWidth':Lt,'stroke':this[_0x12cc02(0x329)],'evented':!0x1,'fill':this[_0x12cc02(0x248)]}),this[_0x12cc02(0x185)]&&(_0x58d113['save'](),_0x58d113[_0x12cc02(0x263)](0x1,0x0,0x0,0x1,this[_0x12cc02(0x384)],this[_0x12cc02(0x1a5)]===_0x12cc02(0x3d2)?0x0:-W),ee[_0x12cc02(0x36d)](_0x58d113,{'text':this[_0x12cc02(0x2b1)],'color':this[_0x12cc02(0x329)]}),_0x58d113[_0x12cc02(0x27d)]());}}var Pt=Object[_0x49cc92(0x1af)],wt=(_0x27d0f6,_0x4d3ccb,_0x32e91a,_0x25bc69)=>{const _0x55ec05=_0x49cc92;for(var _0x4ca326=_0x25bc69>0x1?void 0x0:_0x25bc69?Pt(_0x4d3ccb,_0x32e91a):_0x4d3ccb,_0x43b367=_0x27d0f6[_0x55ec05(0x2d5)]-0x1,_0x2c9f02;_0x43b367>=0x0;_0x43b367--)(_0x2c9f02=_0x27d0f6[_0x43b367])&&(_0x4ca326=_0x2c9f02(_0x4ca326)||_0x4ca326);return _0x4ca326;},ae=(_0x174865,_0x5cdaf7)=>(_0x284916,_0x3780bb)=>_0x5cdaf7(_0x284916,_0x3780bb,_0x174865);const At=0x1389;let Ie=class extends a[_0x49cc92(0x3b8)]{constructor(_0x371dff,_0x537f4d,_0x80146c,_0x190f73){const _0x479856=_0x49cc92;super(),h(this,'_cursors',new Set()),h(this,_0x479856(0x25b),null),(this['_context']=_0x371dff,this[_0x479856(0x20a)]=_0x537f4d,this[_0x479856(0x25a)]=_0x80146c,this[_0x479856(0x3a3)]=_0x190f73,this[_0x479856(0x2ef)]());}[_0x49cc92(0x2ef)](){const _0x506d12=_0x49cc92;this['_sheetSkeletonManagerService'][_0x506d12(0x1c7)]['pipe']($[_0x506d12(0x344)](this[_0x506d12(0x23a)]),$[_0x506d12(0x211)](_0x2cd2f8=>{const _0x2352cd=_0x506d12;if(_0x2cd2f8){const _0x420817=_0x2cd2f8[_0x2352cd(0x265)];return d[_0x2352cd(0x38e)](this[_0x2352cd(0x25a)][_0x2352cd(0x1bf)](this[_0x2352cd(0x33d)][_0x2352cd(0x2eb)]),this[_0x2352cd(0x3a3)][_0x2352cd(0x1ff)])[_0x2352cd(0x19c)]($[_0x2352cd(0x3ca)](([_0x543377,_0x58636a])=>{const _0x13bfc7=_0x2352cd,_0x5d9501=new Map();return _0x543377[_0x13bfc7(0x392)]((_0x5ab712,_0x339c8b)=>{const _0x20151a=_0x13bfc7;if(_0x5ab712[_0x20151a(0x287)]===_0x420817){const _0x116fff={..._0x5ab712};_0x116fff[_0x20151a(0x300)]=this[_0x20151a(0x3a3)][_0x20151a(0x360)](_0x5ab712[_0x20151a(0x300)]),_0x5d9501[_0x20151a(0x2a0)](_0x339c8b,_0x116fff);}}),{'skeleton':_0x2cd2f8,'cursors':_0x5d9501};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x506d12(0x282)](({skeleton:_0xd1d794,cursors:_0x3dd2f7})=>{const _0x4a4c98=_0x506d12;this[_0x4a4c98(0x1b2)](),_0xd1d794&&this[_0x4a4c98(0x3c0)](_0xd1d794,_0x3dd2f7);}),this[_0x506d12(0x20a)][_0x506d12(0x1c7)][_0x506d12(0x282)](_0x5f3971=>{const _0x1b7e9d=_0x506d12;if(_0x5f3971==null)return;const {skeleton:_0x36ed57}=_0x5f3971,{scene:_0x4dc2fc}=this[_0x1b7e9d(0x33d)];_0x4dc2fc['onPointerMove$']['subscribeEvent'](a[_0x1b7e9d(0x24c)](_0x20e68d=>{const _0x3af250=_0x1b7e9d;var _0x4f93d5,_0x5371fb;const {offsetX:_0x1c1c74,offsetY:_0x21348d}=_0x20e68d,{x:_0x14cf91,y:_0x35e756}=_0x4dc2fc[_0x3af250(0x346)](p[_0x3af250(0x1a3)]['FromArray']([_0x1c1c74,_0x21348d])),{scaleX:_0x3177bf,scaleY:_0x14706a}=_0x4dc2fc['getAncestorScale'](),_0xdbcb1b=_0x4dc2fc['getViewport'](p[_0x3af250(0x347)][_0x3af250(0x2aa)]),_0x154af5=_0x4dc2fc[_0x3af250(0x3b7)](p[_0x3af250(0x1a3)][_0x3af250(0x382)]([_0x14cf91,_0x35e756]),_0xdbcb1b),_0x244bf7=_0x36ed57['getCellPositionByOffset'](_0x1c1c74,_0x21348d,_0x3177bf,_0x14706a,_0x154af5);((_0x4f93d5=this[_0x3af250(0x25b)])==null?void 0x0:_0x4f93d5[_0x3af250(0x355)])===_0x244bf7['column']&&((_0x5371fb=this[_0x3af250(0x25b)])==null?void 0x0:_0x5371fb[_0x3af250(0x367)])===_0x244bf7[_0x3af250(0x367)]||this[_0x3af250(0x2c7)][_0x3af250(0x392)](_0x4ef4df=>{const _0x29dc6a=_0x3af250;_0x4ef4df[_0x29dc6a(0x2a1)](_0x244bf7);});},0x64));});}[_0x49cc92(0x3c0)](_0x54e11f,_0x9a3980){const _0x28b44a=_0x49cc92;var _0x24f6a5;const _0x594a03=(_0x24f6a5=this[_0x28b44a(0x20a)][_0x28b44a(0x39f)]())==null?void 0x0:_0x24f6a5['skeleton'];if(!_0x594a03)return;const _0x3438d6=this['_getSheetObject']();if(!_0x3438d6)return;this['_cursors'][_0x28b44a(0x392)](_0x581f1a=>{const _0x336cb7=_0x28b44a;_0x581f1a[_0x336cb7(0x3a7)]();});const {scene:_0x588b4e}=_0x3438d6,_0x4fbfb4=yt(Array[_0x28b44a(0x184)](_0x9a3980[_0x28b44a(0x152)]()))[_0x28b44a(0x3ca)](_0x5881ab=>{const _0x563db8=_0x28b44a,{color:_0xb14181,range:_0x38109c,name:_0x37774a,selection:_0x12c163,sheetID:_0x57ec78}=_0x5881ab,{startColumn:_0x223a6e,startRow:_0x171dab,endColumn:_0x274fcc,endRow:_0x2d851b}=_0x38109c,_0x50b971=G[_0x563db8(0x16a)](_0x171dab,_0x223a6e,_0x588b4e,_0x594a03),_0x3c7fa3=G['getCoordByCell'](_0x2d851b,_0x274fcc,_0x588b4e,_0x594a03),{columnHeaderHeightAndMarginTop:_0x46c4f0}=_0x594a03,{startX:_0xe684f1,startY:_0x533c13}=_0x50b971,{endX:_0x1340c1,endY:_0x1dd661}=_0x3c7fa3,_0x56d759=_0x1340c1-_0xe684f1,_0x423b12=_0x1dd661-_0x533c13,_0x56c481={'labelPosition':_0x533c13-_0x46c4f0>=W?'top':_0x563db8(0x3d2),'sheetID':_0x57ec78,'range':_0x38109c,'color':_0xb14181,'name':_0x37774a,'selection':_0x12c163,'left':_0xe684f1,'top':_0x533c13,'width':_0x56d759,'height':_0x423b12,'evented':!0x1,'zIndex':At};return new $e(_0x37774a,_0x56c481);});_0x588b4e[_0x28b44a(0x2da)](_0x4fbfb4,Mt),this['_cursors']=new Set(_0x4fbfb4);}[_0x49cc92(0x1b2)](){const _0x39a160=_0x49cc92;var _0x5bbec0;(_0x5bbec0=this[_0x39a160(0x2c7)])==null||_0x5bbec0['forEach'](_0x500cd7=>_0x500cd7[_0x39a160(0x3bc)]());}[_0x49cc92(0x15e)](){const _0x4f5838=_0x49cc92;return G['getSheetObject'](this[_0x4f5838(0x33d)][_0x4f5838(0x2c1)],this[_0x4f5838(0x33d)]);}};Ie=wt([ae(0x1,a[_0x49cc92(0x26b)](G[_0x49cc92(0x25f)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x49cc92(0x26b)](a[_0x49cc92(0x2d0)]))],Ie);function yt(_0x2e4bb4){const _0x31db9f=_0x49cc92,_0x3174df=new Map();return _0x2e4bb4[_0x31db9f(0x392)](_0x54e2ea=>{const _0x5bd5a1=_0x31db9f;if(_0x3174df[_0x5bd5a1(0x19a)](_0x54e2ea['selection'])){const _0x1b86a5=_0x3174df[_0x5bd5a1(0x23b)](_0x54e2ea[_0x5bd5a1(0x2cb)]);_0x1b86a5[_0x5bd5a1(0x301)]+=',\x20'+_0x54e2ea[_0x5bd5a1(0x301)];}else _0x3174df[_0x5bd5a1(0x2a0)](_0x54e2ea[_0x5bd5a1(0x2cb)],_0x54e2ea);}),Array['from'](_0x3174df[_0x31db9f(0x152)]());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x488af6,_0x15438d,_0x3922e4,_0x71155f)=>{const _0x15917a=_0x49cc92;for(var _0x856a5d=_0x71155f>0x1?void 0x0:_0x71155f?$t(_0x15438d,_0x3922e4):_0x15438d,_0x1249e0=_0x488af6[_0x15917a(0x2d5)]-0x1,_0x22ac6f;_0x1249e0>=0x0;_0x1249e0--)(_0x22ac6f=_0x488af6[_0x1249e0])&&(_0x856a5d=_0x22ac6f(_0x856a5d)||_0x856a5d);return _0x856a5d;},y=(_0x2837ec,_0x5e8ec8)=>(_0x711820,_0x100d2a)=>_0x5e8ec8(_0x711820,_0x100d2a,_0x2837ec);let q=class extends a['Disposable']{constructor(_0x35a354,_0x5d5e8d,_0x41cacd,_0x40d244,_0x7f7957,_0x2ae860){const _0x420e9e=_0x49cc92;super(),this['_beforeCloseService']=_0x35a354,this[_0x420e9e(0x275)]=_0x5d5e8d,this[_0x420e9e(0x30d)]=_0x41cacd,this[_0x420e9e(0x3a8)]=_0x40d244,this[_0x420e9e(0x1dc)]=_0x7f7957,this[_0x420e9e(0x2fe)]=_0x2ae860,this['_setupBeforeClosingHandler'](),this[_0x420e9e(0x2b2)]();}[_0x49cc92(0x398)](){const _0x32a2ac=_0x49cc92;this[_0x32a2ac(0x28e)](this[_0x32a2ac(0x385)][_0x32a2ac(0x2fa)](()=>{const _0x5e8784=_0x32a2ac;if(this['_localCacheService'][_0x5e8784(0x1c3)][_0x5e8784(0x2f8)])return this[_0x5e8784(0x2fe)]['t'](_0x5e8784(0x3aa));}));}[_0x49cc92(0x2b2)](){const _0x21b105=_0x49cc92;this['disposeWithMe'](this['_collaborationUIEventService'][_0x21b105(0x14f)]['subscribe'](_0x2707ef=>{const _0x59cb71=_0x21b105;_0x2707ef['id']===u['CollaborationUIEventId'][_0x59cb71(0x379)]&&this[_0x59cb71(0x3a8)]['show']({'type':D[_0x59cb71(0x3a6)]['Warning'],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x217))}),_0x2707ef['id']===u[_0x59cb71(0x2a9)]['CLOSE_ROOM']&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)]['Warning'],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x302))}),_0x2707ef['id']===u['CollaborationUIEventId'][_0x59cb71(0x2a6)]&&this['_notificationService'][_0x59cb71(0x1aa)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x59cb71(0x3b3)),'type':_0x59cb71(0x205),'duration':0x0}),_0x2707ef['id']===u[_0x59cb71(0x2a9)]['CONFLICT']&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)][_0x59cb71(0x2f9)],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x302))+'('+_0x2707ef[_0x59cb71(0x2ad)]+')'}),_0x2707ef['id']===u[_0x59cb71(0x2a9)][_0x59cb71(0x223)]&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)]['Warning'],'content':this[_0x59cb71(0x2fe)]['t'](_0x2707ef['data']||'')}),_0x2707ef['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)][_0x59cb71(0x30c)],'content':this[_0x59cb71(0x2fe)]['t']('session.will-retry')}),_0x2707ef['id']===u[_0x59cb71(0x2a9)][_0x59cb71(0x2dc)]&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)][_0x59cb71(0x2f9)],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x37d))}),_0x2707ef['id']===u[_0x59cb71(0x2a9)][_0x59cb71(0x21c)]&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)][_0x59cb71(0x2f9)],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x2e8))});}));}};function _0x381d(_0x4c7356,_0x1903c2){const _0x1db502=_0x1db5();return _0x381d=function(_0x381d82,_0x3df247){_0x381d82=_0x381d82-0x14e;let _0x129e73=_0x1db502[_0x381d82];return _0x129e73;},_0x381d(_0x4c7356,_0x1903c2);}q=xt([y(0x0,O[_0x49cc92(0x335)]),y(0x1,u[_0x49cc92(0x15f)]),y(0x2,a[_0x49cc92(0x26b)](u[_0x49cc92(0x200)])),y(0x3,O[_0x49cc92(0x29f)]),y(0x4,O[_0x49cc92(0x27b)]),y(0x5,a['Inject'](a['LocaleService']))],q);const Bt=_0x49cc92(0x153),De={};var jt=Object['getOwnPropertyDescriptor'],kt=(_0x200907,_0xbd536e,_0x52e00c,_0x1ca0a9)=>{const _0x42acda=_0x49cc92;for(var _0x70472e=_0x1ca0a9>0x1?void 0x0:_0x1ca0a9?jt(_0xbd536e,_0x52e00c):_0xbd536e,_0x2174d5=_0x200907[_0x42acda(0x2d5)]-0x1,_0x5e1dbe;_0x2174d5>=0x0;_0x2174d5--)(_0x5e1dbe=_0x200907[_0x2174d5])&&(_0x70472e=_0x5e1dbe(_0x70472e)||_0x70472e);return _0x70472e;},Ue=(_0x196b15,_0x278178)=>(_0x2a836c,_0x54a1d6)=>_0x278178(_0x2a836c,_0x54a1d6,_0x196b15);let z=class{constructor(_0x19ff15,_0x310d84){const _0x34b459=_0x49cc92;this[_0x34b459(0x334)]=_0x19ff15,this[_0x34b459(0x1b4)]=_0x310d84;}[_0x49cc92(0x39b)](_0x166033){const _0x5b5f59=_0x49cc92;this[_0x5b5f59(0x356)](_0x166033),this[_0x5b5f59(0x331)](_0x166033);}['transformRemoteChangeset'](_0x12c63c){const _0x39fb46=_0x49cc92,{unitID:_0x3536d9}=_0x12c63c,_0x14e6be=this[_0x39fb46(0x1b4)][_0x39fb46(0x29b)](_0x3536d9)[_0x39fb46(0x321)](E[_0x39fb46(0x3c5)]),{redoCache:_0x3bbc21}=_0x14e6be[_0x39fb46(0x354)]();if(_0x3bbc21['length']===0x0)return _0x12c63c;let _0x580348=a[_0x39fb46(0x3b6)][_0x39fb46(0x16c)](_0x12c63c[_0x39fb46(0x33e)][0x0]);for(let _0x197606=0x0;_0x197606<_0x3bbc21[_0x39fb46(0x2d5)];_0x197606++){const _0x21c788={'id':_0x39fb46(0x237),'params':{..._0x3bbc21[_0x197606]}},_0x4dbc30=this[_0x39fb46(0x334)]['transformMutation'](_0x580348,_0x21c788,!0x1);if(m[_0x39fb46(0x32e)](_0x4dbc30))throw _0x4dbc30[_0x39fb46(0x205)];_0x580348=_0x4dbc30['m1Prime'];}return{...a[_0x39fb46(0x3b6)]['deepClone'](_0x12c63c),'mutations':[_0x580348]};}[_0x49cc92(0x356)](_0x426923){const _0x28ce9c=_0x49cc92,{unitID:_0x16a4f2}=_0x426923,_0x3f35d1=this[_0x28ce9c(0x1b4)]['getRenderById'](_0x16a4f2)[_0x28ce9c(0x321)](E[_0x28ce9c(0x3c5)]),{undoCache:_0x233352,redoCache:_0x495d50}=_0x3f35d1[_0x28ce9c(0x354)]();if(_0x233352[_0x28ce9c(0x2d5)]===0x0||_0x495d50['length']===0x0)return;const _0x2438a6=[],_0x4606f1=[];let _0x9c624a=a['Tools'][_0x28ce9c(0x16c)](_0x426923['mutations'][0x0]),_0x37544d=a[_0x28ce9c(0x3b6)][_0x28ce9c(0x16c)](_0x426923[_0x28ce9c(0x33e)][0x0]);for(let _0x12d902=_0x233352['length']-0x1;_0x12d902>=0x0;_0x12d902--){const _0x457974={'id':_0x28ce9c(0x237),'params':{..._0x233352[_0x12d902]}},_0x24333f={'id':'doc.mutation.rich-text-editing','params':{..._0x495d50[_0x12d902]}},_0x1db743=this['_transformService'][_0x28ce9c(0x365)](_0x9c624a,_0x457974,!0x1),_0x57a2dd=this[_0x28ce9c(0x334)]['transformMutation'](_0x37544d,_0x24333f,!0x1);if(m['isTransformMutationFailure'](_0x1db743))throw _0x1db743[_0x28ce9c(0x205)];if(m[_0x28ce9c(0x32e)](_0x57a2dd))throw _0x57a2dd['error'];_0x2438a6['unshift'](_0x1db743[_0x28ce9c(0x370)]['params']),_0x4606f1[_0x28ce9c(0x39d)](_0x57a2dd[_0x28ce9c(0x370)][_0x28ce9c(0x1cd)]),_0x9c624a=_0x1db743[_0x28ce9c(0x2bd)],_0x37544d=_0x57a2dd[_0x28ce9c(0x2bd)];}_0x3f35d1[_0x28ce9c(0x1f7)]({'undoCache':_0x2438a6,'redoCache':_0x4606f1});}[_0x49cc92(0x331)](_0x42b525){const _0x5c4703=_0x49cc92,{unitID:_0x2a9b46}=_0x42b525,_0x331a7d=this[_0x5c4703(0x1b4)][_0x5c4703(0x29b)](_0x2a9b46)['with'](E[_0x5c4703(0x3c5)]),_0x6f2ab1=_0x331a7d[_0x5c4703(0x1cb)]();if(_0x6f2ab1==null)return;const _0x765d6d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x42b525[_0x5c4703(0x2cc)],'actions':null,'textRanges':[_0x6f2ab1]}}],_0x6e45a1=this[_0x5c4703(0x334)][_0x5c4703(0x1f8)](_0x42b525,_0x765d6d);if(!m[_0x5c4703(0x261)](_0x6e45a1))throw _0x6e45a1['error'];const _0x9b4a9c=_0x6e45a1[_0x5c4703(0x370)][0x0][_0x5c4703(0x1cd)][_0x5c4703(0x26c)];Array[_0x5c4703(0x165)](_0x9b4a9c)&&_0x9b4a9c['length']&&_0x331a7d['setActiveRange'](_0x9b4a9c[0x0]);}};z=kt([Ue(0x0,m[_0x49cc92(0x151)]),Ue(0x1,p['IRenderManagerService'])],z);var Ft=Object[_0x49cc92(0x1af)],Ht=(_0x369538,_0x14aada,_0x3808e0,_0x106515)=>{const _0x9480db=_0x49cc92;for(var _0x3b615d=_0x106515>0x1?void 0x0:_0x106515?Ft(_0x14aada,_0x3808e0):_0x14aada,_0x2e2bc3=_0x369538[_0x9480db(0x2d5)]-0x1,_0x554f54;_0x2e2bc3>=0x0;_0x2e2bc3--)(_0x554f54=_0x369538[_0x2e2bc3])&&(_0x3b615d=_0x554f54(_0x3b615d)||_0x3b615d);return _0x3b615d;},ce=(_0xb8ce96,_0x37e452)=>(_0xfb8fb6,_0x58c7f7)=>_0x37e452(_0xfb8fb6,_0x58c7f7,_0xb8ce96);let J=class{constructor(_0x30e8ab,_0x3803a8,_0x52347e){const _0x41905d=_0x49cc92;this[_0x41905d(0x176)]=_0x30e8ab,this[_0x41905d(0x334)]=_0x3803a8,this['_docStateChangeManagerService']=_0x52347e;}[_0x49cc92(0x1b7)](_0x4ea198){this['_transformHistoryAndStateStack'](_0x4ea198);}[_0x49cc92(0x255)](_0x14fb21){const _0x1292b5=_0x49cc92,{unitID:_0x414495}=_0x14fb21,{collaboration:_0x38ca4b}=this[_0x1292b5(0x164)][_0x1292b5(0x30e)](_0x414495);if(_0x38ca4b[_0x1292b5(0x2d5)]===0x0)return _0x14fb21;let _0x438b13=a[_0x1292b5(0x3b6)][_0x1292b5(0x16c)](_0x14fb21[_0x1292b5(0x33e)][0x0]);for(let _0x3e1295=0x0;_0x3e1295<_0x38ca4b[_0x1292b5(0x2d5)];_0x3e1295++){const _0x5954c9={'id':_0x1292b5(0x237),'params':{'unitId':_0x38ca4b[_0x3e1295][_0x1292b5(0x2eb)],..._0x38ca4b[_0x3e1295][_0x1292b5(0x174)]}},_0x3a2cc5=this[_0x1292b5(0x334)]['transformMutation'](_0x438b13,_0x5954c9,!0x1);if(m[_0x1292b5(0x32e)](_0x3a2cc5))throw _0x3a2cc5['error'];_0x438b13=_0x3a2cc5[_0x1292b5(0x2bd)];}return{...a[_0x1292b5(0x3b6)][_0x1292b5(0x16c)](_0x14fb21),'mutations':[_0x438b13]};}[_0x49cc92(0x2b7)](_0x417bdb){const _0x4da699=_0x49cc92,{unitID:_0x5e01bd}=_0x417bdb,{history:_0x2d9781,collaboration:_0x16cc3c}=this[_0x4da699(0x164)][_0x4da699(0x30e)](_0x5e01bd);if(_0x2d9781[_0x4da699(0x2d5)]===0x0&&_0x16cc3c[_0x4da699(0x2d5)]===0x0)return;const _0x662289=[],_0x4a05f2=[];let _0x3b5168=a['Tools'][_0x4da699(0x16c)](_0x417bdb[_0x4da699(0x33e)][0x0]),_0x508cb7=a[_0x4da699(0x3b6)][_0x4da699(0x16c)](_0x417bdb['mutations'][0x0]);for(let _0x2ee3e3=_0x2d9781['length']-0x1;_0x2ee3e3>=0x0;_0x2ee3e3--){const _0x2a0355={'id':_0x4da699(0x237),'params':{'unitId':_0x2d9781[_0x2ee3e3]['unitId'],..._0x2d9781[_0x2ee3e3]['undoState']}},_0x223033={'id':_0x4da699(0x237),'params':{'unitId':_0x2d9781[_0x2ee3e3][_0x4da699(0x2eb)],..._0x2d9781[_0x2ee3e3]['redoState']}},_0x15d2b3=this[_0x4da699(0x334)][_0x4da699(0x365)](_0x3b5168,_0x2a0355,!0x1),_0x419ec0=this[_0x4da699(0x334)]['transformMutation'](_0x508cb7,_0x223033,!0x1);if(m[_0x4da699(0x32e)](_0x15d2b3))throw _0x15d2b3[_0x4da699(0x205)];if(m[_0x4da699(0x32e)](_0x419ec0))throw _0x419ec0[_0x4da699(0x205)];_0x662289[_0x4da699(0x39d)]({..._0x2d9781[_0x2ee3e3],'undoState':_0x15d2b3[_0x4da699(0x370)][_0x4da699(0x1cd)],'redoState':_0x419ec0['m2Prime'][_0x4da699(0x1cd)]}),_0x3b5168=_0x15d2b3[_0x4da699(0x2bd)],_0x508cb7=_0x419ec0['m1Prime'];}_0x3b5168=a[_0x4da699(0x3b6)]['deepClone'](_0x417bdb[_0x4da699(0x33e)][0x0]),_0x508cb7=a[_0x4da699(0x3b6)]['deepClone'](_0x417bdb[_0x4da699(0x33e)][0x0]);for(let _0x18e7d8=_0x16cc3c['length']-0x1;_0x18e7d8>=0x0;_0x18e7d8--){const _0x441484={'id':_0x4da699(0x237),'params':{'unitId':_0x16cc3c[_0x18e7d8]['unitId'],..._0x16cc3c[_0x18e7d8][_0x4da699(0x1b3)]}},_0x256dd3={'id':_0x4da699(0x237),'params':{'unitId':_0x16cc3c[_0x18e7d8][_0x4da699(0x2eb)],..._0x16cc3c[_0x18e7d8][_0x4da699(0x174)]}},_0x4db436=this[_0x4da699(0x334)]['transformMutation'](_0x3b5168,_0x441484,!0x1),_0x1a112b=this[_0x4da699(0x334)][_0x4da699(0x365)](_0x508cb7,_0x256dd3,!0x1);if(m[_0x4da699(0x32e)](_0x4db436))throw _0x4db436[_0x4da699(0x205)];if(m[_0x4da699(0x32e)](_0x1a112b))throw _0x1a112b[_0x4da699(0x205)];_0x4a05f2['unshift']({..._0x16cc3c[_0x18e7d8],'undoState':_0x4db436[_0x4da699(0x370)][_0x4da699(0x1cd)],'redoState':_0x1a112b['m2Prime'][_0x4da699(0x1cd)]}),_0x3b5168=_0x4db436[_0x4da699(0x2bd)],_0x508cb7=_0x1a112b[_0x4da699(0x2bd)];}this[_0x4da699(0x164)][_0x4da699(0x1fd)](_0x5e01bd,{'history':_0x662289,'collaboration':_0x4a05f2});}};J=Ht([ce(0x0,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),ce(0x1,m[_0x49cc92(0x151)]),ce(0x2,a[_0x49cc92(0x26b)](E[_0x49cc92(0x240)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x365ce5,_0x480277,_0x17adb1,_0x2b7d66)=>{for(var _0x448d7c=_0x2b7d66>0x1?void 0x0:_0x2b7d66?Yt(_0x480277,_0x17adb1):_0x480277,_0x463047=_0x365ce5['length']-0x1,_0x255144;_0x463047>=0x0;_0x463047--)(_0x255144=_0x365ce5[_0x463047])&&(_0x448d7c=_0x255144(_0x448d7c)||_0x448d7c);return _0x448d7c;},Ne=(_0xfbf082,_0x31c1ff)=>(_0x14ace3,_0x193b32)=>_0x31c1ff(_0x14ace3,_0x193b32,_0xfbf082);let Z=class{constructor(_0x5f034c,_0x228760){const _0x4b7e0e=_0x49cc92;this[_0x4b7e0e(0x176)]=_0x5f034c,this[_0x4b7e0e(0x334)]=_0x228760;}[_0x49cc92(0x162)](_0x58a640){const _0xed24e9=_0x49cc92;var _0x17915f;const _0x219bef=this['_injector'][_0xed24e9(0x23b)](Y['DocSelectionManagerService']),_0x11a99e=(_0x17915f=_0x219bef['getDocRanges']())!=null?_0x17915f:[];if(_0x11a99e[_0xed24e9(0x2d5)]===0x0)return;const _0x23853d=_0x58a640[_0xed24e9(0x2cc)],_0x40f761=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x23853d,'actions':null,'textRanges':_0x11a99e}}],_0x243834=this[_0xed24e9(0x334)]['transformMutationsWithChangeset'](_0x58a640,_0x40f761);if(!m[_0xed24e9(0x261)](_0x243834))throw _0x243834[_0xed24e9(0x205)];const _0x1fc371=_0x243834[_0xed24e9(0x370)][0x0][_0xed24e9(0x1cd)][_0xed24e9(0x26c)];Array[_0xed24e9(0x165)](_0x1fc371)&&_0x1fc371[_0xed24e9(0x2d5)]&&_0x219bef['replaceDocRanges'](_0x1fc371,{'unitId':_0x23853d,'subUnitId':_0x23853d},!0x1);}};Z=Wt([Ne(0x0,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x49cc92(0x1af)],Xt=(_0x305028,_0x2c11d9,_0x170ac8,_0x334be9)=>{const _0x5f29b8=_0x49cc92;for(var _0xfd9ec3=_0x334be9>0x1?void 0x0:_0x334be9?Vt(_0x2c11d9,_0x170ac8):_0x2c11d9,_0xa77889=_0x305028[_0x5f29b8(0x2d5)]-0x1,_0x3c774d;_0xa77889>=0x0;_0xa77889--)(_0x3c774d=_0x305028[_0xa77889])&&(_0xfd9ec3=_0x3c774d(_0xfd9ec3)||_0xfd9ec3);return _0xfd9ec3;},N=(_0x328881,_0x2fb097)=>(_0x39f32c,_0x42a696)=>_0x2fb097(_0x39f32c,_0x42a696,_0x328881);let Q=class extends a['Disposable']{constructor(_0xcf713a,_0x53d249,_0x4e62ee,_0x50a070,_0x2eb49e,_0x205c41,_0x2fbd00,_0x1a658b){const _0x5a3298=_0x49cc92;super(),h(this,_0x5a3298(0x218),new d[(_0x5a3298(0x220))](u[_0x5a3298(0x1a7)][_0x5a3298(0x21a)])),(this[_0x5a3298(0x164)]=_0xcf713a,this[_0x5a3298(0x1ce)]=_0x53d249,this[_0x5a3298(0x249)]=_0x4e62ee,this[_0x5a3298(0x1e6)]=_0x50a070,this[_0x5a3298(0x20d)]=_0x2eb49e,this[_0x5a3298(0x18f)]=_0x205c41,this[_0x5a3298(0x3a8)]=_0x2fbd00,this[_0x5a3298(0x2fe)]=_0x1a658b,this[_0x5a3298(0x2a5)]());}[_0x49cc92(0x2a5)](){const _0x20445a=_0x49cc92;this[_0x20445a(0x28e)](this[_0x20445a(0x1ce)]['entityInit$'][_0x20445a(0x282)](_0x1ba6fa=>{const _0xa503cc=_0x20445a,_0x2b5500=this[_0xa503cc(0x164)]['docStateChange$'][_0xa503cc(0x282)](_0x1b4e8e=>{const _0x30803c=_0xa503cc;if(_0x1b4e8e==null)return;const {unitId:_0x1517f8,redoState:_0x7af830,commandId:_0x142185}=_0x1b4e8e;if(_0x1517f8!==_0x1ba6fa[_0x30803c(0x2cc)])return;const _0xa545a7={'id':_0x142185,'type':a['CommandType'][_0x30803c(0x222)],'params':{'unitId':_0x1517f8,'actions':_0x7af830[_0x30803c(0x2b3)],'textRanges':null}};_0x1ba6fa[_0x30803c(0x389)](_0xa545a7);});if(_0x1ba6fa['disposeWithMe'](_0x2b5500),_0x1ba6fa instanceof u[_0xa503cc(0x191)]){const _0x7df650={'onTransformIME':_0x335c26=>this[_0xa503cc(0x249)]['transformIMECache'](_0x335c26),'onTransformState':_0x16cfc9=>this[_0xa503cc(0x1e6)][_0xa503cc(0x1b7)](_0x16cfc9),'onTransformSelections':_0x22cc3b=>this[_0xa503cc(0x20d)][_0xa503cc(0x162)](_0x22cc3b),'onSyncEditingCollabCursor':_0x5f2bb9=>this[_0xa503cc(0x18f)][_0xa503cc(0x29a)](_0x5f2bb9),'onTransformRemoteChangesetByIMECache':_0x384311=>this['_docTransformIMECacheService'][_0xa503cc(0x255)](_0x384311),'onTransformRemoteChangesetByStateCache':_0x2b4d16=>this[_0xa503cc(0x1e6)][_0xa503cc(0x255)](_0x2b4d16)};_0x1ba6fa['addHandlerCallback'](_0x7df650);}}));}};Q=Xt([N(0x0,a[_0x49cc92(0x26b)](E[_0x49cc92(0x240)])),N(0x1,a['Inject'](u[_0x49cc92(0x376)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x49cc92(0x26b)](J)),N(0x4,a[_0x49cc92(0x26b)](Z)),N(0x5,a[_0x49cc92(0x26b)](pe)),N(0x6,O['IMessageService']),N(0x7,a[_0x49cc92(0x26b)](a[_0x49cc92(0x304)]))],Q);var Gt=Object[_0x49cc92(0x1af)],Kt=(_0xb13e69,_0x55f647,_0x121672,_0x1b11c7)=>{const _0x316227=_0x49cc92;for(var _0x55c101=_0x1b11c7>0x1?void 0x0:_0x1b11c7?Gt(_0x55f647,_0x121672):_0x55f647,_0x40af3b=_0xb13e69[_0x316227(0x2d5)]-0x1,_0x3df610;_0x40af3b>=0x0;_0x40af3b--)(_0x3df610=_0xb13e69[_0x40af3b])&&(_0x55c101=_0x3df610(_0x55c101)||_0x55c101);return _0x55c101;},le=(_0x4f625f,_0x8f67be)=>(_0x37f8b6,_0x1bab1d)=>_0x8f67be(_0x37f8b6,_0x1bab1d,_0x4f625f);let ve=class extends a['Disposable']{constructor(_0x5cacf0,_0x2ec2a6,_0x5662ce){const _0x407192=_0x49cc92;super(),h(this,_0x407192(0x252),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x407192(0x3a0),!0x1),(this[_0x407192(0x31a)]=_0x5cacf0,this[_0x407192(0x390)]=_0x2ec2a6,this[_0x407192(0x258)]=_0x5662ce);}[_0x49cc92(0x15d)](){const _0xd1e126=_0x49cc92;this[_0xd1e126(0x3a0)]=!0x0;}[_0x49cc92(0x308)](){const _0xf644fd=_0x49cc92;this[_0xf644fd(0x3a0)]=!0x1;}get[_0x49cc92(0x1c3)](){const _0x1ce178=_0x49cc92;return this[_0x1ce178(0x36c)];}[_0x49cc92(0x3bc)](){const _0x39d8d7=_0x49cc92;this['exhaustSavingTask']()[_0x39d8d7(0x3c1)](()=>super['dispose']());}async[_0x49cc92(0x2ea)](_0x325ca6){const _0x10dade=_0x49cc92;return this[_0x10dade(0x3a0)]?null:this[_0x10dade(0x390)][_0x10dade(0x226)](u[_0x10dade(0x339)](_0x325ca6));}async[_0x49cc92(0x32f)](_0x162cc9,_0x3dd420){const _0x422c3c=_0x49cc92;return!!this[_0x422c3c(0x390)]['setItem'](_0x162cc9,_0x3dd420);}[_0x49cc92(0x14e)](_0x3c623b,_0x373fab,_0x3fb9d0,_0x29e017){const _0x12e8f7=_0x49cc92,_0x326771=this['_revisionService'][_0x12e8f7(0x3ad)](_0x3c623b);this['_cachedData']['set'](_0x3c623b,{'unitID':_0x3c623b,'type':_0x373fab,'awaitingChangeset':_0x3fb9d0,'mutations':_0x29e017,'rev':_0x326771}),this['_saveTaskMap'][_0x12e8f7(0x19a)](_0x3c623b)||this[_0x12e8f7(0x35a)](_0x3c623b);}[_0x49cc92(0x35a)](_0x23e88d){const _0x51177c=_0x49cc92,_0x3bf906=this[_0x51177c(0x37f)]();_0x3bf906===0x0?this[_0x51177c(0x1ec)](_0x23e88d):this[_0x51177c(0x36c)][_0x51177c(0x2a0)](_0x23e88d,setTimeout(()=>this[_0x51177c(0x1ec)](_0x23e88d),_0x3bf906));}[_0x49cc92(0x37f)](){const _0x2922e8=_0x49cc92;var _0x1c52ba;return(_0x1c52ba=this[_0x2922e8(0x31a)][_0x2922e8(0x2d1)](u[_0x2922e8(0x246)]))!=null?_0x1c52ba:u['LOCAL_CACHE_INTERVAL'];}[_0x49cc92(0x1ec)](_0x489d65){const _0x4f7cfb=_0x49cc92,_0x4d5fde=this['_saveTaskMap'][_0x4f7cfb(0x23b)](_0x489d65);return _0x4d5fde!==void 0x0&&window[_0x4f7cfb(0x28f)](_0x4d5fde),this['_localStorageService'][_0x4f7cfb(0x309)](u[_0x4f7cfb(0x339)](_0x489d65),this[_0x4f7cfb(0x252)][_0x4f7cfb(0x23b)](_0x489d65))[_0x4f7cfb(0x3c1)](()=>this[_0x4f7cfb(0x36c)]['delete'](_0x489d65));}async[_0x49cc92(0x22e)](){const _0x25ac6f=_0x49cc92,_0xd32d3=[];this[_0x25ac6f(0x36c)][_0x25ac6f(0x392)]((_0x5920d6,_0x7640ab)=>{const _0x24c799=_0x25ac6f;window['clearTimeout'](_0x5920d6),_0xd32d3[_0x24c799(0x38d)](this[_0x24c799(0x1ec)](_0x7640ab)[_0x24c799(0x3c1)](()=>{const _0x306585=_0x24c799;this[_0x306585(0x36c)]['delete'](_0x7640ab);}));}),await Promise[_0x25ac6f(0x1c2)](_0xd32d3);}};ve=Kt([le(0x0,a['IConfigService']),le(0x1,a[_0x49cc92(0x2ff)]),le(0x2,a[_0x49cc92(0x26b)](m[_0x49cc92(0x2a8)]))],ve);class xe extends a[_0x49cc92(0x3b8)]{constructor(){const _0x207e91=_0x49cc92;super(),h(this,_0x207e91(0x229)),this[_0x207e91(0x229)]=d[_0x207e91(0x2b0)](window,'popstate')[_0x207e91(0x19c)](d[_0x207e91(0x344)](this[_0x207e91(0x23a)]),d[_0x207e91(0x19b)](0x1),d['mapTo'](void 0x0));}[_0x49cc92(0x2af)](_0x2f1f9c,_0x23af79,_0x101300=!0x1){const _0x5b6e86=_0x49cc92,_0x2213be=new URL(window[_0x5b6e86(0x351)][_0x5b6e86(0x372)]);_0x2213be[_0x5b6e86(0x27f)][_0x5b6e86(0x2a0)](_0x2f1f9c,_0x23af79),_0x101300?window[_0x5b6e86(0x2c8)][_0x5b6e86(0x25e)]('','',_0x2213be[_0x5b6e86(0x207)]()):window[_0x5b6e86(0x2c8)][_0x5b6e86(0x2f3)]('','',_0x2213be[_0x5b6e86(0x207)]());}[_0x49cc92(0x1da)](_0x553ca9,_0x438acb=!0x1){const _0x562d87=_0x49cc92,_0x4c0b7=new URL(window[_0x562d87(0x351)][_0x562d87(0x372)]);_0x4c0b7[_0x562d87(0x27f)]['delete'](_0x553ca9),_0x438acb?window[_0x562d87(0x2c8)][_0x562d87(0x25e)]('','',_0x4c0b7[_0x562d87(0x207)]()):window[_0x562d87(0x2c8)][_0x562d87(0x2f3)]('','',_0x4c0b7[_0x562d87(0x207)]());}[_0x49cc92(0x350)](_0x2ed0ad){const _0x447fcb=_0x49cc92;var _0x349754;return(_0x349754=new URL(window[_0x447fcb(0x351)][_0x447fcb(0x372)])[_0x447fcb(0x27f)][_0x447fcb(0x23b)](_0x2ed0ad))!=null?_0x349754:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x49cc92(0x1af)],Jt=(_0x4ea625,_0x4c8e3f,_0x14acca)=>_0x4c8e3f in _0x4ea625?qt(_0x4ea625,_0x4c8e3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14acca}):_0x4ea625[_0x4c8e3f]=_0x14acca,Zt=(_0x3c4cb1,_0x3a4ede,_0x1fcae9,_0x77b24)=>{const _0x493191=_0x49cc92;for(var _0xd3f4eb=_0x77b24>0x1?void 0x0:_0x77b24?zt(_0x3a4ede,_0x1fcae9):_0x3a4ede,_0x363e56=_0x3c4cb1[_0x493191(0x2d5)]-0x1,_0x1caa5e;_0x363e56>=0x0;_0x363e56--)(_0x1caa5e=_0x3c4cb1[_0x363e56])&&(_0xd3f4eb=_0x1caa5e(_0xd3f4eb)||_0xd3f4eb);return _0xd3f4eb;},_e=(_0x1d861d,_0xbae205)=>(_0x222243,_0x5d6521)=>_0xbae205(_0x222243,_0x5d6521,_0x1d861d),Qt=(_0x5860a,_0x5cddfd,_0xeca1bb)=>Jt(_0x5860a,_0x5cddfd+'',_0xeca1bb);const es=_0x49cc92(0x259);exports[_0x49cc92(0x1d7)]=class extends a[_0x49cc92(0x17f)]{constructor(_0x402e33=De,_0x5ba7ee,_0x13bc30,_0x2eb6e3){const _0x15275d=_0x49cc92;super(),this[_0x15275d(0x20b)]=_0x402e33,this['_renderManagerService']=_0x5ba7ee,this[_0x15275d(0x176)]=_0x13bc30,this[_0x15275d(0x31a)]=_0x2eb6e3;const {..._0x1f948d}=a['merge']({},De,this[_0x15275d(0x20b)]);this[_0x15275d(0x31a)][_0x15275d(0x2b8)](Bt,_0x1f948d);}['onStarting'](){const _0x512a04=_0x49cc92;this['_registerDependencies'](),this[_0x512a04(0x1ad)]();}[_0x49cc92(0x363)](){const _0x56e098=_0x49cc92;this[_0x56e098(0x2fb)]();}[_0x49cc92(0x36f)](){const _0x2bd042=_0x49cc92;var _0x104ee0;const _0x3fbb99=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x2bd042(0x161)],{'useClass':K[_0x2bd042(0x391)]}],[u[_0x2bd042(0x15f)],{'useClass':ve}],[exports[_0x2bd042(0x1df)]],[Q],[q],[x],[ue],[exports[_0x2bd042(0x23d)]]];a[_0x2bd042(0x1ea)](this['_injector'],a[_0x2bd042(0x227)](_0x3fbb99,(_0x104ee0=this['_config'])==null?void 0x0:_0x104ee0[_0x2bd042(0x19d)]));}['_registerRenderDependencies'](){const _0x2a0af8=_0x49cc92;this['disposeWithMe'](this['_renderManagerService'][_0x2a0af8(0x1b9)](a[_0x2a0af8(0x394)]['UNIVER_DOC'],[fe])),this[_0x2a0af8(0x28e)](this['_renderManagerService']['registerRenderModule'](a[_0x2a0af8(0x394)][_0x2a0af8(0x23c)],[Ie]));}[_0x49cc92(0x1ad)](){const _0x403e9=_0x49cc92;a[_0x403e9(0x1b5)](this[_0x403e9(0x176)],[[x],[exports[_0x403e9(0x1df)]],[Q],[q],[exports[_0x403e9(0x23d)]]]);}},Qt(exports[_0x49cc92(0x1d7)],_0x49cc92(0x16d),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u['UniverCollaborationClientPlugin']),_e(0x1,p[_0x49cc92(0x3cf)]),_e(0x2,a[_0x49cc92(0x26b)](a['Injector'])),_e(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x49cc92(0x1af)],ss=(_0x597261,_0x5ed51a,_0x3ef870,_0xb2ded5)=>{const _0x156543=_0x49cc92;for(var _0x4ced4e=_0xb2ded5>0x1?void 0x0:_0xb2ded5?ts(_0x5ed51a,_0x3ef870):_0x5ed51a,_0x31e4ef=_0x597261[_0x156543(0x2d5)]-0x1,_0x19e059;_0x31e4ef>=0x0;_0x31e4ef--)(_0x19e059=_0x597261[_0x31e4ef])&&(_0x4ced4e=_0x19e059(_0x4ced4e)||_0x4ced4e);return _0x4ced4e;},H=(_0x4db990,_0x28f0b4)=>(_0x48d545,_0x21cd65)=>_0x28f0b4(_0x48d545,_0x21cd65,_0x4db990);exports[_0x49cc92(0x34c)]=class extends u[_0x49cc92(0x1f0)]{constructor(_0x2c8637,_0x4a42ef,_0x24bc3a,_0x5989b7,_0x1e7aab){super(_0x2c8637,_0x4a42ef,_0x24bc3a,_0x5989b7,_0x1e7aab);}async[_0x49cc92(0x364)](_0x41ec58){const _0x2d2114=_0x49cc92,_0x96b033=await this[_0x2d2114(0x345)](),_0x42088d=this[_0x2d2114(0x250)](_0x41ec58,_0x96b033);return this['_doCreateSocket'](_0x42088d);}[_0x49cc92(0x250)](_0xdf9523,_0x436a5b){const _0x3a14eb=_0x49cc92,_0x33e15=typeof window>'u'?new URL(_0xdf9523):new URL(_0xdf9523,window['location'][_0x3a14eb(0x288)]);_0x33e15[_0x3a14eb(0x27f)][_0x3a14eb(0x2a0)](_0x3a14eb(0x2ae),_0x436a5b);const _0x39633f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3a14eb(0x351)][_0x3a14eb(0x3c4)]);return _0x39633f[_0x3a14eb(0x23b)](_0x3a14eb(0x1e5))&&_0x33e15['searchParams']['set']('runId',_0x39633f['get']('runId')),_0x33e15['toString']();}async[_0x49cc92(0x345)](){const _0x1e89f9=_0x49cc92;var _0x1da334,_0x5416e5,_0x367d4e;const _0x432ba3=this['_configService'][_0x1e89f9(0x2d1)](u[_0x1e89f9(0x2f2)]),_0x32c638=(_0x1da334=_0x432ba3==null?void 0x0:_0x432ba3[_0x1e89f9(0x3b0)])!=null?_0x1da334:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x367d4e=(_0x5416e5=(await this['_httpService'][_0x1e89f9(0x23b)](_0x32c638,{'headers':{'Content-Type':'application/json'}}))[_0x1e89f9(0x1ac)])==null?void 0x0:_0x5416e5[_0x1e89f9(0x1a4)])!=null?_0x367d4e:'';}},exports[_0x49cc92(0x34c)]=ss([H(0x0,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),H(0x1,a['Inject'](K[_0x49cc92(0x166)])),H(0x2,a['IConfigService']),H(0x3,a['ILogService']),H(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var Be=(_0x3cf20c=>(_0x3cf20c[_0x3cf20c[_0x49cc92(0x28d)]=0x0]='UNDEFINED',_0x3cf20c[_0x3cf20c['OK']=0x1]='OK',_0x3cf20c[_0x3cf20c[_0x49cc92(0x2f0)]=0x2]=_0x49cc92(0x2f0),_0x3cf20c[_0x3cf20c['PERMISSION_DENIED']=0x3]=_0x49cc92(0x2a6),_0x3cf20c[_0x3cf20c['NOT_FOUND']=0x4]=_0x49cc92(0x262),_0x3cf20c[_0x3cf20c[_0x49cc92(0x1d8)]=0x5]='UNAUTHENTICATED',_0x3cf20c[_0x3cf20c[_0x49cc92(0x3d0)]=0x6]=_0x49cc92(0x3d0),_0x3cf20c[_0x3cf20c[_0x49cc92(0x38c)]=0x7]=_0x49cc92(0x38c),_0x3cf20c[_0x3cf20c[_0x49cc92(0x25d)]=0x8]=_0x49cc92(0x25d),_0x3cf20c[_0x3cf20c[_0x49cc92(0x285)]=0x9]=_0x49cc92(0x285),_0x3cf20c[_0x3cf20c[_0x49cc92(0x203)]=0xa]=_0x49cc92(0x203),_0x3cf20c[_0x3cf20c[_0x49cc92(0x362)]=0xb]=_0x49cc92(0x362),_0x3cf20c[_0x3cf20c['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3cf20c[_0x3cf20c[_0x49cc92(0x1fc)]=0xd]=_0x49cc92(0x1fc),_0x3cf20c[_0x3cf20c[_0x49cc92(0x1a8)]=0xe]=_0x49cc92(0x1a8),_0x3cf20c[_0x3cf20c[_0x49cc92(0x291)]=0x1389]=_0x49cc92(0x291),_0x3cf20c[_0x3cf20c[_0x49cc92(0x210)]=0x1771]=_0x49cc92(0x210),_0x3cf20c[_0x3cf20c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3cf20c[_0x3cf20c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x49cc92(0x195),_0x3cf20c[_0x3cf20c[_0x49cc92(0x294)]=0x1b59]=_0x49cc92(0x294),_0x3cf20c[_0x3cf20c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x49cc92(0x214),_0x3cf20c[_0x3cf20c[_0x49cc92(0x2d3)]=0x1b5b]=_0x49cc92(0x2d3),_0x3cf20c[_0x3cf20c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x49cc92(0x3ac),_0x3cf20c[_0x3cf20c[_0x49cc92(0x180)]=0x1b5d]=_0x49cc92(0x180),_0x3cf20c[_0x3cf20c[_0x49cc92(0x29e)]=0x1f41]=_0x49cc92(0x29e),_0x3cf20c[_0x3cf20c[_0x49cc92(0x2f1)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3cf20c[_0x3cf20c[_0x49cc92(0x1c5)]=0x232a]=_0x49cc92(0x1c5),_0x3cf20c[_0x3cf20c[_0x49cc92(0x172)]=0x232b]=_0x49cc92(0x172),_0x3cf20c[_0x3cf20c[_0x49cc92(0x212)]=0x232c]=_0x49cc92(0x212),_0x3cf20c[_0x3cf20c[_0x49cc92(0x22a)]=0x232d]=_0x49cc92(0x22a),_0x3cf20c[_0x3cf20c[_0x49cc92(0x380)]=0x2711]=_0x49cc92(0x380),_0x3cf20c[_0x3cf20c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x49cc92(0x366),_0x3cf20c[_0x3cf20c[_0x49cc92(0x264)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3cf20c[_0x3cf20c[_0x49cc92(0x230)]=0x2714]=_0x49cc92(0x230),_0x3cf20c[_0x3cf20c[_0x49cc92(0x1a0)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x3cf20c[_0x3cf20c['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x49cc92(0x1e1),_0x3cf20c[_0x3cf20c[_0x49cc92(0x206)]=0x271c]=_0x49cc92(0x206),_0x3cf20c[_0x3cf20c[_0x49cc92(0x239)]=0x271d]=_0x49cc92(0x239),_0x3cf20c[_0x3cf20c[_0x49cc92(0x19f)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x3cf20c[_0x3cf20c['YUUMI_AI_RUN_FAILED']=0x271f]=_0x49cc92(0x37e),_0x3cf20c[_0x3cf20c[_0x49cc92(0x1a1)]=0x2720]=_0x49cc92(0x1a1),_0x3cf20c[_0x3cf20c[_0x49cc92(0x271)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x3cf20c[_0x3cf20c[_0x49cc92(0x33b)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x3cf20c[_0x3cf20c[_0x49cc92(0x19e)]=0x2ee2]=_0x49cc92(0x19e),_0x3cf20c[_0x3cf20c['INVITE_CODE_REQUIRED']=0x2ee3]=_0x49cc92(0x253),_0x3cf20c[_0x3cf20c[_0x49cc92(0x182)]=0x2ee4]=_0x49cc92(0x182),_0x3cf20c[_0x3cf20c[_0x49cc92(0x18a)]=0x2ee5]=_0x49cc92(0x18a),_0x3cf20c[_0x3cf20c[_0x49cc92(0x2ca)]=0x32c9]=_0x49cc92(0x2ca),_0x3cf20c[_0x3cf20c[_0x49cc92(0x2a7)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x3cf20c[_0x3cf20c[_0x49cc92(0x1fe)]=0x32cb]=_0x49cc92(0x1fe),_0x3cf20c[_0x3cf20c['UNRECOGNIZED']=-0x1]=_0x49cc92(0x2e2),_0x3cf20c))(Be||{}),is=Object[_0x49cc92(0x1af)],ns=(_0x5d4d40,_0x43363d,_0x2824d1,_0xebfc43)=>{const _0x3ff604=_0x49cc92;for(var _0x111750=_0xebfc43>0x1?void 0x0:_0xebfc43?is(_0x43363d,_0x2824d1):_0x43363d,_0xc1683a=_0x5d4d40[_0x3ff604(0x2d5)]-0x1,_0x22de9b;_0xc1683a>=0x0;_0xc1683a--)(_0x22de9b=_0x5d4d40[_0xc1683a])&&(_0x111750=_0x22de9b(_0x111750)||_0x111750);return _0x111750;},he=(_0x2d2256,_0x4e900f)=>(_0xb263c4,_0x3b4fd3)=>_0x4e900f(_0xb263c4,_0x3b4fd3,_0x2d2256);exports[_0x49cc92(0x3cd)]=class extends a[_0x49cc92(0x17e)]{constructor(_0x51cdce,_0x5be598,_0x21f6bc){const _0x335e15=_0x49cc92;super(),this[_0x335e15(0x32d)]=_0x51cdce,this[_0x335e15(0x2c4)]=_0x5be598,this[_0x335e15(0x31a)]=_0x21f6bc;}async[_0x49cc92(0x3b4)](_0x375d98,_0x23222b,_0x155025,..._0x363ddb){const _0x302b10=_0x49cc92;var _0x5035e0,_0x4fb161,_0x1442e1,_0xea44d;const _0x34f0b3=this[_0x302b10(0x32d)][_0x302b10(0x21b)]();if(!_0x34f0b3)throw new Error(_0x302b10(0x289));const _0x33f00e=((_0x5035e0=this[_0x302b10(0x31a)]['getConfig'](u[_0x302b10(0x2e1)]))!=null?_0x5035e0:u[_0x302b10(0x369)])+'/'+_0x375d98+_0x302b10(0x1eb)+_0x23222b,_0x27525b=new URL(window[_0x302b10(0x351)][_0x302b10(0x372)]),_0x103b24={'scriptId':_0x375d98,'runId':(_0x4fb161=_0x27525b['searchParams'][_0x302b10(0x23b)](_0x302b10(0x1e5)))!=null?_0x4fb161:'','function':_0x23222b,'unitId':_0x34f0b3[_0x302b10(0x273)](),'argsOfFunction':JSON['stringify'](_0x363ddb),'invokeId':(_0x1442e1=_0x155025[_0x302b10(0x27e)])!=null?_0x1442e1:'','executionId':(_0xea44d=_0x155025[_0x302b10(0x2b5)])!=null?_0xea44d:''};try{const _0x43177b=await this[_0x302b10(0x2c4)][_0x302b10(0x303)](_0x33f00e,{'body':_0x103b24});return _0x43177b[_0x302b10(0x1ac)]['error']&&_0x43177b[_0x302b10(0x1ac)][_0x302b10(0x205)][_0x302b10(0x399)]!==Be['OK']?_0x302b10(0x27a):_0x43177b['body']['result'];}catch{return _0x302b10(0x27a);}}},exports[_0x49cc92(0x3cd)]=ns([he(0x0,a[_0x49cc92(0x30f)]),he(0x1,a[_0x49cc92(0x26b)](K[_0x49cc92(0x166)])),he(0x2,a[_0x49cc92(0x169)])],exports[_0x49cc92(0x3cd)]);const Me=0x7530,Le=_0x49cc92(0x348);class rs extends a['Disposable']{constructor(){const _0x151b8b=_0x49cc92;super(),h(this,_0x151b8b(0x26a),a['generateRandomId']()),h(this,_0x151b8b(0x17b),new Set()),h(this,_0x151b8b(0x1b8),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x151b8b(0x1d3),new Map()),this['_init']();}[_0x49cc92(0x3bc)](){const _0x3134d3=_0x49cc92;super['dispose'](),this[_0x3134d3(0x31b)][_0x3134d3(0x392)]((_0x305ddd,_0x23c72e)=>this[_0x3134d3(0x201)](_0x23c72e)),this[_0x3134d3(0x1d2)]&&window[_0x3134d3(0x2ac)](this[_0x3134d3(0x1d2)]);}[_0x49cc92(0x154)](_0x2a9bda){const _0x3c71a4=_0x49cc92;return this[_0x3c71a4(0x234)](_0x2a9bda)[_0x3c71a4(0x19c)](d['distinctUntilChanged']());}[_0x49cc92(0x284)](_0x415963){const _0x15ba3b=_0x49cc92;this[_0x15ba3b(0x17b)][_0x15ba3b(0x2f8)]===0x0&&this[_0x15ba3b(0x277)](),this[_0x15ba3b(0x17b)]['add'](_0x415963),this[_0x15ba3b(0x34a)]({'type':0x0,'memberID':this[_0x15ba3b(0x26a)],'unitIDs':[_0x415963],'isForwarded':!0x1});}[_0x49cc92(0x18b)](_0x5d0f24){const _0x8d50f9=_0x49cc92;this['_selfUnitIDs'][_0x8d50f9(0x3b1)](_0x5d0f24),this[_0x8d50f9(0x17b)]['size']===0x0&&this[_0x8d50f9(0x1d2)]&&window[_0x8d50f9(0x2ac)](this[_0x8d50f9(0x1d2)]);}[_0x49cc92(0x2ef)](){const _0x517de4=_0x49cc92;this['disposeWithMe'](a[_0x517de4(0x29d)](d[_0x517de4(0x2b0)](window,_0x517de4(0x24e))[_0x517de4(0x282)](_0x34bbc6=>{const _0x299678=_0x517de4;if(_0x34bbc6['key']!==Le||!_0x34bbc6['newValue'])return;const _0x484dcb=JSON[_0x299678(0x208)](_0x34bbc6[_0x299678(0x2d4)]);this['_handleEvent'](_0x484dcb);}))),window[_0x517de4(0x1e8)](_0x517de4(0x31c),()=>this[_0x517de4(0x34a)]({'type':0x1,'memberID':this[_0x517de4(0x26a)],'unitIDs':Array[_0x517de4(0x184)](this['_selfUnitIDs'])}));}[_0x49cc92(0x224)](_0x5af2b4){const _0x1b7dc4=_0x49cc92;switch(_0x5af2b4[_0x1b7dc4(0x33a)]){case 0x0:this[_0x1b7dc4(0x157)](_0x5af2b4);break;case 0x1:this[_0x1b7dc4(0x1f4)](_0x5af2b4);break;case 0x2:this[_0x1b7dc4(0x1f1)](_0x5af2b4);break;}}[_0x49cc92(0x157)](_0x4fd785){const _0xccb755=_0x49cc92,{unitIDs:_0x2380cb,memberID:_0x1dea26,isForwarded:_0x3c0055}=_0x4fd785;_0x2380cb[_0xccb755(0x392)](_0x469abf=>{const _0x3db037=_0xccb755;if(!_0x3c0055&&this['_unitOnClients']['has'](_0x469abf)&&this[_0x3db037(0x234)](_0x469abf)[_0x3db037(0x2f4)](u[_0x3db037(0x310)][_0x3db037(0x3a2)]),!this[_0x3db037(0x1b8)][_0x3db037(0x19a)](_0x469abf)||!this['_unitOnClients'][_0x3db037(0x23b)](_0x469abf)[_0x3db037(0x19a)](_0x1dea26)){const _0x203e63=this['_unitOnClients'][_0x3db037(0x23b)](_0x469abf)||new Set();_0x203e63['add'](_0x1dea26),this[_0x3db037(0x1b8)][_0x3db037(0x2a0)](_0x469abf,_0x203e63),this['_scheduleClearOtherTimer'](_0x1dea26);}}),_0x3c0055||this[_0xccb755(0x34a)]({'type':0x0,'memberID':this[_0xccb755(0x26a)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x49cc92(0x333)](_0x4dcde2){const _0x2bd91f=_0x49cc92;this['_removeClearOtherTimer'](_0x4dcde2);const _0x47802d=window[_0x2bd91f(0x233)](()=>{const _0x264464=_0x2bd91f;this[_0x264464(0x1b8)][_0x264464(0x392)](_0x79ab3=>{const _0x3debd4=_0x264464;_0x79ab3[_0x3debd4(0x3b1)](_0x4dcde2);});},Me*0x2);this[_0x2bd91f(0x31b)][_0x2bd91f(0x2a0)](_0x4dcde2,_0x47802d);}['_removeClearOtherTimer'](_0x155f7b){const _0x421d99=_0x49cc92;if(this[_0x421d99(0x31b)][_0x421d99(0x19a)](_0x155f7b)){const _0x419439=this['_clearOtherTimers'][_0x421d99(0x23b)](_0x155f7b);_0x419439&&window[_0x421d99(0x28f)](_0x419439),this[_0x421d99(0x31b)][_0x421d99(0x2a0)](_0x155f7b,null);}}['_handleLeaveEvent'](_0x41de90){const _0x18a849=_0x49cc92,{memberID:_0x2ea72e,unitIDs:_0x55f790}=_0x41de90;_0x55f790[_0x18a849(0x392)](_0x42327b=>{const _0x1e8375=_0x18a849;var _0x20b9ef;const _0x35ca03=this[_0x1e8375(0x1b8)][_0x1e8375(0x23b)](_0x42327b);_0x35ca03&&(_0x35ca03['delete'](_0x2ea72e),(_0x20b9ef=this[_0x1e8375(0x234)](_0x42327b))==null||_0x20b9ef[_0x1e8375(0x2f4)](_0x35ca03[_0x1e8375(0x2f8)]===0x0?u[_0x1e8375(0x310)][_0x1e8375(0x1c8)]:u[_0x1e8375(0x310)][_0x1e8375(0x3a2)]));}),this[_0x18a849(0x201)](_0x2ea72e);}[_0x49cc92(0x1f1)](_0x497c67){const _0x18e0f7=_0x49cc92;this[_0x18e0f7(0x333)](_0x497c67[_0x18e0f7(0x1f2)]);}[_0x49cc92(0x34a)](_0x1cb095){const _0x46a735=_0x49cc92;localStorage[_0x46a735(0x309)](Le,JSON[_0x46a735(0x2e4)](_0x1cb095));}[_0x49cc92(0x277)](){const _0x1c9c77=_0x49cc92;this[_0x1c9c77(0x1d2)]=window[_0x1c9c77(0x20e)](()=>{const _0x347643=_0x1c9c77;this['_send']({'type':0x2,'memberID':this[_0x347643(0x26a)]});},Me);}['_ensureSubject'](_0x7002f6){const _0x164882=_0x49cc92;return this['_unitStatus'][_0x164882(0x19a)](_0x7002f6)||this[_0x164882(0x1d3)]['set'](_0x7002f6,new d[(_0x164882(0x220))](u[_0x164882(0x310)][_0x164882(0x1c8)])),this['_unitStatus'][_0x164882(0x23b)](_0x7002f6);}}exports[_0x49cc92(0x2c3)]=me,exports[_0x49cc92(0x183)]=$e,exports[_0x49cc92(0x3be)]=rs,exports['WebURLService']=xe;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x248a(_0x3f69c5,_0xe79906){const _0x2ecb2c=_0x2ecb();return _0x248a=function(_0x248a0c,_0x525878){_0x248a0c=_0x248a0c-0x127;let _0x2d671b=_0x2ecb2c[_0x248a0c];return _0x2d671b;},_0x248a(_0x3f69c5,_0xe79906);}const _0x24abc6=_0x248a;(function(_0x159e44,_0x13bcea){const _0x88988=_0x248a,_0x2b90fb=_0x159e44();while(!![]){try{const _0x3ff74f=-parseInt(_0x88988(0x139))/0x1+-parseInt(_0x88988(0x129))/0x2+-parseInt(_0x88988(0x12d))/0x3*(-parseInt(_0x88988(0x12f))/0x4)+parseInt(_0x88988(0x12c))/0x5+-parseInt(_0x88988(0x132))/0x6+parseInt(_0x88988(0x128))/0x7*(parseInt(_0x88988(0x12a))/0x8)+-parseInt(_0x88988(0x13b))/0x9*(-parseInt(_0x88988(0x13c))/0xa);if(_0x3ff74f===_0x13bcea)break;else _0x2b90fb['push'](_0x2b90fb['shift']());}catch(_0xe00e2c){_0x2b90fb['push'](_0x2b90fb['shift']());}}}(_0x2ecb,0xa83b3));const e={'collab-client':{'tooltip':{'reconnect':_0x24abc6(0x133)}},'collabStatus':{'fetchMiss':_0x24abc6(0x136),'conflict':'Edit\x20conflicts','notCollab':_0x24abc6(0x127),'synced':_0x24abc6(0x131),'syncing':'Syncing...','offline':_0x24abc6(0x137)},'session':{'connection-failed':_0x24abc6(0x13a),'will-retry':_0x24abc6(0x135),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x24abc6(0x12b)},'conflict':{'title':_0x24abc6(0x130),'content':_0x24abc6(0x138)},'permission':{'title':_0x24abc6(0x13d),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x24abc6(0x13e)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x24abc6(0x12e)}},o=e;function _0x2ecb(){const _0x232723=['96270bYCcPs','4971ZTnoBH','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','188WoTpjH','Collaboration\x20Conflict','Synced','4825566eRlmQd','Click\x20to\x20Reconnect','exports','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing\x20server\x20data...','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','1235378XYGlKz','Connection\x20failed,\x20please\x20check\x20your\x20network.','158085IcsAyF','1480JtNhbq','Authentication\x20Error','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Local\x20file','7YYBLdX','194442JXAbbG','1033456HkHWSO','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0x2ecb=function(){return _0x232723;};return _0x2ecb();}module[_0x24abc6(0x134)]=o;
|