@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505131607 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x800c(_0x33c24a,_0x2d3dac){const _0x16df73=_0x16df();return _0x800c=function(_0x800c42,_0x5caec1){_0x800c42=_0x800c42-0x1c2;let _0x42ff23=_0x16df73[_0x800c42];return _0x42ff23;},_0x800c(_0x33c24a,_0x2d3dac);}function _0x16df(){const _0xf493a2=['1210590qQpPRI','RemoteUniscriptService','get','518158fqDmVN','_injector','1091764ABqEDx','@univerjs/core/facade','203550CQMyRJ','@univerjs-pro/collaboration-client-ui','14898506iANMpk','runOnServer','1688735FzImvd','3140636OUKlQN'];_0x16df=function(){return _0xf493a2;};return _0x16df();}const _0x125d3a=_0x800c;(function(_0x5eb567,_0x7f379e){const _0xd2b320=_0x800c,_0x138b90=_0x5eb567();while(!![]){try{const _0x55b492=-parseInt(_0xd2b320(0x1c5))/0x1+-parseInt(_0xd2b320(0x1c7))/0x2+parseInt(_0xd2b320(0x1c9))/0x3+-parseInt(_0xd2b320(0x1ce))/0x4+parseInt(_0xd2b320(0x1cd))/0x5+-parseInt(_0xd2b320(0x1c2))/0x6+parseInt(_0xd2b320(0x1cb))/0x7;if(_0x55b492===_0x7f379e)break;else _0x138b90['push'](_0x138b90['shift']());}catch(_0x462b63){_0x138b90['push'](_0x138b90['shift']());}}}(_0x16df,0x75eaf));const t=require(_0x125d3a(0x1ca)),e=require(_0x125d3a(0x1c8));class c extends e['FUniver']{[_0x125d3a(0x1cc)](_0x25ca9f,_0x4bbd50,..._0x1fc245){const _0x328956=_0x125d3a;return this[_0x328956(0x1c6)][_0x328956(0x1c4)](t[_0x328956(0x1c3)])[_0x328956(0x1cc)](_0x25ca9f,_0x4bbd50,{},..._0x1fc245);}}e['FUniver']['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x57a25a=_0x1cac;(function(_0x56d9d8,_0x26bc1e){const _0x529a2b=_0x1cac,_0x3081c4=_0x56d9d8();while(!![]){try{const _0x4f1897=parseInt(_0x529a2b(0x213))/0x1*(-parseInt(_0x529a2b(0x1e7))/0x2)+parseInt(_0x529a2b(0x281))/0x3+parseInt(_0x529a2b(0x2bf))/0x4+parseInt(_0x529a2b(0x116))/0x5*(parseInt(_0x529a2b(0x152))/0x6)+parseInt(_0x529a2b(0x2d2))/0x7*(parseInt(_0x529a2b(0x271))/0x8)+-parseInt(_0x529a2b(0x2ad))/0x9*(parseInt(_0x529a2b(0x2e7))/0xa)+parseInt(_0x529a2b(0xe2))/0xb;if(_0x4f1897===_0x26bc1e)break;else _0x3081c4['push'](_0x3081c4['shift']());}catch(_0xcc4580){_0x3081c4['push'](_0x3081c4['shift']());}}}(_0x475f,0xa66cc));var Ve=Object['defineProperty'],Xe=(_0x47f5b9,_0x502aae,_0x14a1b8)=>_0x502aae in _0x47f5b9?Ve(_0x47f5b9,_0x502aae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14a1b8}):_0x47f5b9[_0x502aae]=_0x14a1b8,h=(_0x371be2,_0x5c40a0,_0x2293ee)=>Xe(_0x371be2,typeof _0x5c40a0!='symbol'?_0x5c40a0+'':_0x5c40a0,_0x2293ee);Object[_0x57a25a(0x106)](exports,Symbol['toStringTag'],{'value':_0x57a25a(0x113)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x57a25a(0x1ec)),p=require(_0x57a25a(0x10a)),G=require(_0x57a25a(0x223)),b=require(_0x57a25a(0x246)),Ge=require(_0x57a25a(0x191)),d=require(_0x57a25a(0x244)),Y=require('@univerjs/docs'),m=require(_0x57a25a(0xc1)),Ee=require(_0x57a25a(0x144)),g=require(_0x57a25a(0xc6)),$=require('rxjs/operators'),X=require(_0x57a25a(0x283)),P=require(_0x57a25a(0x270)),T=require(_0x57a25a(0x326)),D=require('@univerjs/design'),M=require(_0x57a25a(0x186)),Ke=require('@univerjs/rpc');var qe=Object[_0x57a25a(0xbe)],ze=(_0xdadee,_0x313a03,_0x2b148e,_0x533dc1)=>{const _0x3b2e64=_0x57a25a;for(var _0x56cf56=_0x533dc1>0x1?void 0x0:_0x533dc1?qe(_0x313a03,_0x2b148e):_0x313a03,_0xe46ef8=_0xdadee[_0x3b2e64(0x25f)]-0x1,_0x3a9b2b;_0xe46ef8>=0x0;_0xe46ef8--)(_0x3a9b2b=_0xdadee[_0xe46ef8])&&(_0x56cf56=_0x3a9b2b(_0x56cf56)||_0x56cf56);return _0x56cf56;},Te=(_0x4ba3bc,_0x53b79d)=>(_0x563998,_0x1e2e4d)=>_0x53b79d(_0x563998,_0x1e2e4d,_0x4ba3bc);let de=class extends a[_0x57a25a(0x1c0)]{constructor(_0x35b61f,_0x32b62d){const _0x501938=_0x57a25a;super(),this['_docClipboardService']=_0x35b61f,this[_0x501938(0x325)]=_0x32b62d,this[_0x501938(0x170)]();}[_0x57a25a(0x170)](){const _0x9146a8=_0x57a25a,_0x2bd4ee=this;this[_0x9146a8(0x293)](this['_docClipboardService'][_0x9146a8(0x267)]({'onBeforePasteImage':async _0x176729=>{const _0x1a5c45=_0x9146a8,_0x2ce67b=await _0x2bd4ee[_0x1a5c45(0x325)][_0x1a5c45(0x2c2)](_0x176729);return _0x2ce67b?{'source':_0x2ce67b['source'],'imageSourceType':_0x2ce67b[_0x1a5c45(0x1ea)]}:null;}}));}};de=ze([Te(0x0,b[_0x57a25a(0x2ae)]),Te(0x1,Ge[_0x57a25a(0x23c)])],de);const Oe=[_0x57a25a(0x25d),_0x57a25a(0x30c),_0x57a25a(0xe0),_0x57a25a(0x1f8),_0x57a25a(0x307),_0x57a25a(0x31a)];class me extends a[_0x57a25a(0xe9)]{constructor(){const _0x68308e=_0x57a25a;super(...arguments),h(this,_0x68308e(0x1ac),new Map()),h(this,_0x68308e(0x2b8),0x0);}[_0x57a25a(0x119)](_0x55d4fc){const _0x298dce=_0x57a25a;if(this[_0x298dce(0x1ac)]['has'](_0x55d4fc))return this[_0x298dce(0x1ac)]['get'](_0x55d4fc);const _0x4ede57=Oe[this[_0x298dce(0x2b8)]];return this[_0x298dce(0x2b8)]=(this['_colorIndex']+0x1)%Oe['length'],this[_0x298dce(0x1ac)][_0x298dce(0xb9)](_0x55d4fc,_0x4ede57),_0x4ede57;}}function Pe(_0x1e11e6){const _0x54ef15=_0x57a25a;let _0x1195b5='';for(const _0x5e394f of _0x1e11e6){const {startOffset:_0x54c85f,endOffset:_0x53d102,isActive:_0x5102f9,rangeType:_0x710f03,segmentId:_0x56283a,segmentPage:_0x1b62aa}=_0x5e394f;_0x1195b5[_0x54ef15(0x25f)]&&(_0x1195b5+=','),_0x1195b5+=_0x54c85f+':'+_0x53d102+':'+(_0x5102f9?'1':'0')+':'+_0x710f03+':'+_0x56283a+':'+_0x1b62aa;}return _0x1195b5;}function Je(_0x49df4f){const _0x35bb7d=_0x57a25a,_0x44c9a6=_0x49df4f[_0x35bb7d(0x1d6)](','),_0xfe44f3=[];for(const _0x499dff of _0x44c9a6){const [_0x458662,_0x37073e,_0x305fc8,_0x526dc0,_0x954898,_0x5832da]=_0x499dff[_0x35bb7d(0x1d6)](':');_0xfe44f3[_0x35bb7d(0x11f)]({'startOffset':Number(_0x458662),'endOffset':Number(_0x37073e),'collapsed':_0x458662===_0x37073e,'isActive':_0x305fc8==='1','rangeType':_0x526dc0===a[_0x35bb7d(0x20f)]['TEXT']?a[_0x35bb7d(0x20f)][_0x35bb7d(0x126)]:a['DOC_RANGE_TYPE'][_0x35bb7d(0x272)],'segmentId':typeof _0x954898==_0x35bb7d(0x320)?String(_0x954898):'','segmentPage':Number(_0x5832da!=null?_0x5832da:-0x1)});}return _0xfe44f3[_0x35bb7d(0x142)](_0x354ddf=>_0x354ddf[_0x35bb7d(0x18e)])||(_0xfe44f3[0x0][_0x35bb7d(0x18e)]=!0x0),_0xfe44f3;}class Ce extends a[_0x57a25a(0x1c0)]{constructor(){const _0x1ca13c=_0x57a25a;super(...arguments),h(this,_0x1ca13c(0x2fa),new d['BehaviorSubject'](null)),h(this,_0x1ca13c(0x2f2),this[_0x1ca13c(0x2fa)][_0x1ca13c(0x13f)]());}['syncEditingCollabCursor'](_0x2df52a){const _0x5d0482=_0x57a25a,{unitID:_0x555652,memberID:_0x3f720b,textRanges:_0x386020}=_0x2df52a,_0x362f66=Pe(_0x386020);if(_0x362f66==='')return;const _0x5ad329={'unitID':_0x555652,'memberID':_0x3f720b,'selection':_0x362f66};this[_0x5d0482(0x2fa)][_0x5d0482(0x28d)](_0x5ad329);}}function _0x1cac(_0x26b665,_0x8b7cbd){const _0x475f51=_0x475f();return _0x1cac=function(_0x1caccb,_0x2ec98a){_0x1caccb=_0x1caccb-0xb0;let _0x1473a2=_0x475f51[_0x1caccb];return _0x1473a2;},_0x1cac(_0x26b665,_0x8b7cbd);}var Ze=Object[_0x57a25a(0xbe)],Qe=(_0x59af1b,_0x14953c,_0x47919f,_0x38638a)=>{for(var _0x3070f4=_0x38638a>0x1?void 0x0:_0x38638a?Ze(_0x14953c,_0x47919f):_0x14953c,_0x8700e6=_0x59af1b['length']-0x1,_0x118fc2;_0x8700e6>=0x0;_0x8700e6--)(_0x118fc2=_0x59af1b[_0x8700e6])&&(_0x3070f4=_0x118fc2(_0x3070f4)||_0x3070f4);return _0x3070f4;},L=(_0x57c89c,_0x5e4e54)=>(_0x20cea5,_0xbb4fda)=>_0x5e4e54(_0x20cea5,_0xbb4fda,_0x57c89c);const et=0x12c,tt=0x64;let fe=class extends a[_0x57a25a(0x1c0)]{constructor(_0x3bc2b5,_0x3a034b,_0x451162,_0x132c1a,_0x3f19aa,_0x368a73,_0x54bf87,_0x5dcd77,_0x24fdd3){const _0x3b1940=_0x57a25a;super(),h(this,_0x3b1940(0xdf),!0x1),h(this,'_init',!0x1),h(this,_0x3b1940(0x12c),new d[(_0x3b1940(0x290))](new Map())),h(this,_0x3b1940(0x313),this[_0x3b1940(0x12c)][_0x3b1940(0x13f)]()),h(this,_0x3b1940(0x14e),new d['BehaviorSubject']([])),h(this,_0x3b1940(0x2c4),this[_0x3b1940(0x14e)][_0x3b1940(0x25e)](d[_0x3b1940(0x27d)](et))),h(this,'_updateLocalCursor',a[_0x3b1940(0x2fc)](_0x462b8a=>{const _0x899a04=_0x3b1940,_0x12f90b={'eventID':m[_0x899a04(0x1db)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x899a04(0x230)],'memberID':this[_0x899a04(0x287)][_0x899a04(0x2a2)](),'selection':Pe(_0x462b8a)}};this[_0x899a04(0x287)][_0x899a04(0x1f4)](_0x12f90b,this[_0x899a04(0x230)]);},tt)),(this[_0x3b1940(0x230)]=_0x3bc2b5,this[_0x3b1940(0x287)]=_0x3a034b,this[_0x3b1940(0x24d)]=_0x451162,this[_0x3b1940(0x2c6)]=_0x132c1a,this[_0x3b1940(0x1fb)]=_0x3f19aa,this[_0x3b1940(0xf6)]=_0x368a73,this[_0x3b1940(0xf1)]=_0x54bf87,this[_0x3b1940(0x265)]=_0x5dcd77,this[_0x3b1940(0x2d0)]=_0x24fdd3);}get['cursorInfo'](){const _0x204ed0=_0x57a25a;return this[_0x204ed0(0x12c)]['getValue']();}get['roomMembers'](){const _0x275518=_0x57a25a;return this[_0x275518(0x14e)]['getValue']();}[_0x57a25a(0x1eb)](){const _0xa00743=_0x57a25a;super[_0xa00743(0x1eb)](),this[_0xa00743(0x12c)][_0xa00743(0x28d)](new Map()),this['_cursorInfo$'][_0xa00743(0xec)](),this['_roomMembers$'][_0xa00743(0x28d)]([]),this[_0xa00743(0x14e)][_0xa00743(0xec)]();}[_0x57a25a(0x23d)](){const _0x995346=_0x57a25a;this[_0x995346(0x170)]||(this[_0x995346(0x170)]=!0x0,this[_0x995346(0x287)][_0x995346(0x23e)]['pipe'](d['takeUntil'](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x2f1d6d=>{const _0x58ecec=_0x995346;_0x2f1d6d===u['SessionStatus'][_0x58ecec(0x14a)]?this[_0x58ecec(0x2c1)]():this['_toggleOffline']();}),this[_0x995346(0x287)]['event$'][_0x995346(0x25e)](d[_0x995346(0x13c)](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x43fe0f=>{const _0x455e4f=_0x995346,_0x2c3f81=_0x43fe0f[_0x455e4f(0x31c)];_0x2c3f81===m[_0x455e4f(0x1db)][_0x455e4f(0x217)]&&this[_0x455e4f(0x165)](_0x43fe0f),_0x2c3f81===m[_0x455e4f(0x1db)][_0x455e4f(0x1aa)]&&this[_0x455e4f(0x2e0)](_0x43fe0f);}),this[_0x995346(0x293)](this[_0x995346(0x2d0)]['onCommandExecuted'](_0x1fab2f=>{const _0x334cc2=_0x995346,_0x250b7c=_0x1fab2f[_0x334cc2(0x310)];_0x250b7c!=null&&this[_0x334cc2(0xdf)]&&_0x1fab2f['id']===Y[_0x334cc2(0x2a1)]['id']&&_0x250b7c[_0x334cc2(0x110)]===this[_0x334cc2(0x230)]&&_0x250b7c['isEditing']===!0x1&&_0x250b7c[_0x334cc2(0x1b6)][_0x334cc2(0x25f)]>0x0&&this[_0x334cc2(0x304)](_0x250b7c[_0x334cc2(0x1b6)]);})),this[_0x995346(0xf6)][_0x995346(0x2f2)]['pipe'](d[_0x995346(0x13c)](this[_0x995346(0x2ed)]))[_0x995346(0x305)](_0x1c84eb=>{const _0x5c710d=_0x995346;if((_0x1c84eb==null?void 0x0:_0x1c84eb[_0x5c710d(0x230)])!==this[_0x5c710d(0x230)])return;const _0x14a587={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1c84eb};this[_0x5c710d(0x165)](_0x14a587);}),this[_0x995346(0x293)](this['_commandService']['onCommandExecuted'](_0x4df000=>{const _0x3d6c86=_0x995346;if(_0x4df000[_0x3d6c86(0x310)]==null)return;const _0x4ef657=_0x4df000['params'];if(_0x4df000['id']!==Y['RichTextEditingMutation']['id']||_0x4ef657[_0x3d6c86(0x110)]!==this[_0x3d6c86(0x230)])return;const _0x2c3048={'id':_0x3d6c86(0x190),'params':_0x4ef657},_0x167b58=this[_0x3d6c86(0xeb)];for(const [_0x228f15,_0x133065]of _0x167b58){const _0x1fab5d={'id':_0x3d6c86(0x190),'params':{'unitId':this[_0x3d6c86(0x230)],'actions':null,'textRanges':_0x133065[_0x3d6c86(0x1b6)]}},_0x510d0f=this[_0x3d6c86(0xf1)]['transformMutation'](_0x2c3048,_0x1fab5d,!0x1);if(m[_0x3d6c86(0x251)](_0x510d0f))throw _0x510d0f[_0x3d6c86(0x201)];_0x167b58[_0x3d6c86(0xb9)](_0x228f15,{..._0x133065,'ranges':_0x510d0f[_0x3d6c86(0x2e9)][_0x3d6c86(0x310)][_0x3d6c86(0x185)]});}queueMicrotask(()=>{const _0x9964f0=_0x3d6c86;this[_0x9964f0(0x12c)][_0x9964f0(0x28d)](_0x167b58);});})));}[_0x57a25a(0x165)](_0x466571){const _0x2c661=_0x57a25a;var _0x2094f,_0x4e0650;const {memberID:_0x218068,selection:_0x30c590}=_0x466571['data'],_0x2e460c=Je(_0x30c590),_0xd87643=(_0x4e0650=(_0x2094f=this[_0x2c661(0x1fb)][_0x2c661(0x1de)](this[_0x2c661(0x230)],_0x218068))==null?void 0x0:_0x2094f[_0x2c661(0x21e)])!=null?_0x4e0650:_0x2c661(0x26c),_0x86161c={'color':this[_0x2c661(0x2c6)][_0x2c661(0x119)](_0x218068),'name':_0xd87643,'ranges':_0x2e460c},_0x637b52=this[_0x2c661(0xeb)];_0x637b52[_0x2c661(0xb9)](_0x218068,_0x86161c),this[_0x2c661(0x12c)][_0x2c661(0x28d)](_0x637b52);}['_onCursorDelete'](_0x39e066){const _0x360469=_0x57a25a,{memberID:_0x161fda}=_0x39e066[_0x360469(0xe5)],_0x3f9194=this[_0x360469(0xeb)];_0x3f9194[_0x360469(0x234)](_0x161fda),this['_cursorInfo$'][_0x360469(0x28d)](_0x3f9194);}['_toggleOnline'](){const _0x3aaf3e=_0x57a25a;var _0x547ffa;if(this[_0x3aaf3e(0xdf)]=!0x0,((_0x547ffa=this['_univerInstanceService'][_0x3aaf3e(0x171)]())==null?void 0x0:_0x547ffa[_0x3aaf3e(0x15c)]())!==this[_0x3aaf3e(0x230)])return;const _0x22d73e=this['_injector'][_0x3aaf3e(0x1dd)](Y[_0x3aaf3e(0x241)])[_0x3aaf3e(0x289)]();Array[_0x3aaf3e(0x20a)](_0x22d73e)&&_0x22d73e[_0x3aaf3e(0x25f)]>0x0&&this['_updateLocalCursor'](_0x22d73e);}[_0x57a25a(0x323)](){const _0x46ae86=_0x57a25a;this[_0x46ae86(0xdf)]=!0x1;}};fe=Qe([L(0x2,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),L(0x3,a[_0x57a25a(0x17f)](me)),L(0x4,a[_0x57a25a(0x17f)](u[_0x57a25a(0x114)])),L(0x5,a[_0x57a25a(0x17f)](Ce)),L(0x6,m[_0x57a25a(0x26e)]),L(0x7,a[_0x57a25a(0x2d5)]),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x2f1df3,_0x56700b,_0x432ac4,_0x2de6f1)=>{const _0x59be52=_0x57a25a;for(var _0x5a43d5=_0x2de6f1>0x1?void 0x0:_0x2de6f1?st(_0x56700b,_0x432ac4):_0x56700b,_0xfefe52=_0x2f1df3[_0x59be52(0x25f)]-0x1,_0x404cc9;_0xfefe52>=0x0;_0xfefe52--)(_0x404cc9=_0x2f1df3[_0xfefe52])&&(_0x5a43d5=_0x404cc9(_0x5a43d5)||_0x5a43d5);return _0x5a43d5;},w=(_0xcfbe5e,_0x44c93f)=>(_0x122071,_0x540e0d)=>_0x44c93f(_0x122071,_0x540e0d,_0xcfbe5e);const nt=0x12c,rt=0x64,ot=()=>{let _0x1d784a=[],_0x29e2fc=!0x1;return _0xea47ba=>{const _0x58d29f=_0x1cac;_0x1d784a[_0x58d29f(0x11f)](_0xea47ba),_0x29e2fc||(_0x29e2fc=!0x0,setTimeout(()=>{const _0x34fda5=_0x58d29f;_0x1d784a[_0x34fda5(0x2ef)](_0x2b0f0f=>_0x2b0f0f()),_0x1d784a=[],_0x29e2fc=!0x1;}));};};function _0x475f(){const _0x329b7f=['registerRefRange','CollaborationSocketService','_drawTextRange','YUUMI_RATE_OVER_LIMIT','YUUMI_SUBSCRIPTION_NOT_FOUND','addObject','_entities','isArray','getCoordByCell','executeCommand','_initResize','INVITE_CODE_REQUIRED','DOC_RANGE_TYPE','LICENSE_DISTRO_REJECTED','ENSURE_SNAPSHOT_EXECUTION','transformIMECache','382216qJqwzw','fromEvent','tag','_initDependencies','UPDATE_CURSOR','_configService','_collabCursorController','_color','PY_RUNTIME_SCRIPT_ERROR','CLOSE_ROOM','merge','name','triggerDblclick','collab-rect-range-','url(#off-line-single_clip0_910_343)','InsertRangeMoveRightCommandId','@univerjs/network','row','Tools','createIdentifier','_initEvent','location','toString','collab-text-range-','rgba(255,\x20255,\x20255,\x200.01)','prototype','_handleHeartbeatEvent','INVALID_INVITE_CODE','OTHER_CLIENTS_EDITING','unitID','WECHAT_HAS_BEEN_BOUND','_unitStatus','RefRangeService','delete','COMPLETION_FINISHED','ISocketService','_onRefRangeChange','IRenderManagerService','_dataLoaderService','bottom','_themeService','IImageIoService','init','sessionStatus$','runRefRangeMutations','extend','DocSelectionManagerService','ILogService','Rectangle','rxjs','runOnServer','@univerjs/docs-ui','_saveTaskMap','UNIVER_SHEET','setTimeout','startRow','collabStatus.offline','setStateCache','_injector','fillStyle','startsWith','_drawAnchor','isTransformMutationFailure','_anchorDot','getAncestorScale','_send','assign','useCallback','SOCKET_FAILED','type','height','addHandlerCallback','icon','getCollabEntity$','purple.300','pipe','length','subunit','focused$','_updateSubUnitFromURLParams','values','IUIPartsService','_univerInstanceService','drawWith','addClipboardHook','setShapeProps','currentSkeleton$','DocCollaborationEntity','getMergeData','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','ITransformService','handleInsertRangeMoveRight','react/jsx-runtime','1096VdQTet','RECT','replaceDocRanges','CollaborationController','_startDocCollabCursor','wsSessionTicketUrl','onPointerLeave$','permission.title','session.collaboration-timeout','defIds','DependentOn','onLocalMutation','debounceTime','createSocket','_cursors','CollaborationDataLoaderController','1259703UgtYVG','getViewport','@univerjs/sheets-ui','transform','ILocalCacheService','setItem','_session','INTERNAL_ERROR','getDocRanges','getCellPositionByOffset','onRendered','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','next','registerRenderModule','black','BehaviorSubject','collaboration.closeRoom','m1Prime','disposeWithMe','_transformPreviousActiveRange','getOwnPropertySymbols','range','APPLY_REJECT','_sheetSkeletonManagerService','_localStorageService','undoState','_render','off-line-single_clip0_910_343','NOT_COLLAB','_renderManagerService','throttleTime','pushState','SetTextSelectionsOperation','getMemberID','_instanceService','_setupSubUnitSync','size','_initStatusComponent','lineTo','mergeOverrideWithDependencies','UniverInstanceType','_logService','SetSelectionsOperation','top','1409571UoXqfj','IDocClipboardService','_getSaveTimeout','path','_docTransformSelectionsService','_docTransformStateCacheService','InsertColCommandId','#fff','FETCH_MISS','AWAITING_WITH_PENDING','_handleEvent','_colorIndex','CollaborationUIEventService','_getSessionTicket','_revisionService','all','hide','_eventUnsubscribe','3446036aOihqL','CollaborationUIEventId','_toggleOnline','saveImage','_cachedData','roomMembers$','LICENSE_IMPORT_SIZE_EXCEEDED','_colorAssignService','_selfUnitIDs','endRow','_notificationService','post','_collaborationUIEventService','_labelPosition','origin','isTransformMutationsWithChangesetSuccess','translate(.97)','_commandService','find','5677wjeVtJ','LocaleService','_setupBeforeClosingHandler','IUniverInstanceService','backgroundColor','_removeClearOtherTimer','map','getSheetBySheetId','on-line-single_clip0_910_349','ISnapshotServerService','startColumn','_localCacheService','onCommandExecuted','handleMoveRange','_onCursorDelete','displayName','save','Error','OnLineSingle','CONNECTOR_DATA_TOO_LARGE','from','10jeOUIO','parse','m2Prime','handleIRemoveCol','_getScale','PENDING','dispose$','url(#$1','forEach','APPLY_NON_SEQUENTIAL_REVISION','_disabled','collabCursorState$','session.connection-failed','_transformHistoryAndStateStack','getActiveRange','getColorFromTheme','_uiPartsService','clearInterval','indexOf','_collabCursorState$','1em','debounce','collabStatus.synced','selection','AWAITING','collaboration-client.offline-data-not-saved','show','MessageType','filter','_updateLocalCursor','subscribe','sessionTicket','blue.400','_hover','getCurrentSelections','getTypeOfUnitAdded$','editingUnit','jiqing.500','DeleteRangeMoveLeftCommandId','forwardRef','DocStateChangeManagerService','params','NO_OTHER_CLIENTS_EDITING','random','cursorInfo$','_initStatusListener','DeleteRangeMoveUpCommandId','SOCKET_FAILED_RETRY','mask','_entityInit$','IURLService','yellow.400','onMouseMove','eventID','sheetID','fill','MoveRangeCommandId','string','NOT_FOUND','transformByState','_toggleOffline','transformSelections','_imageIoService','@univerjs/ui','shareReplay','_initCommandExecutedListener','substring','IBeforeCloseService','toDisposable','collabStatus.notCollab','Injector','UnitStatus','_updateURLWithCurrentState','closePath','_handleLeaveEvent','getRangePointData','idSuffix','width','set','executionId','result','findNodePositionByCharIndex','_range','getOwnPropertyDescriptor','_document','apply','@univerjs-pro/collaboration','UNIVER_DOC','serializeRangeWithSheet','EffectRefRangId','DocIMEInputManagerService','@univerjs/sheets','setActiveRange','text','handleInsertRow','arc','jsx','endColumn','M0\x200H16V16H0z','generateRandomId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getParam','_drawRectRange','replaceState','collabStatus.syncing','collab-text-anchor-','INVITE_CODE_HAS_BEEN_UES','with','onTransformChange$','0\x200\x2016\x2016','getStateCache','InsertRangeMoveDownCommandId','add','createInstance','[CollaborationDataLoaderController]','APPLY_PERMISSION_DENIED','_online','green.600','_getAnchorBounding','50578PmEOnJ','/run/','_draw','data','DocSkeletonManagerService','_docSkeleton','getVpScrollXYInfoByPosToVp','Disposable','attrs','cursorInfo','complete','SetDocZoomRatioOperation','getSkeleton','RevisionService','getOffsetConfig','_transformService','INVALID_ARGUMENT','YUUMI_URL_COL_OUT_OF_RANGE','INVITE_CODE_ALREADY_BOUND','_saveCache','_syncEditingCollabCursorService','entries','_status$','color','getValue','entityInit$','DesktopCollaborationStatusDisplayController','_scene','restore','getSheetId','Tooltip','Rect','Warning','application/json','_textBubble','_registerRenderDependencies','defineProperty','then','getCurrentUnitForType','transformStateCache','@univerjs/engine-render','hasOwnProperty','DisposableCollection','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:univer-text-gray-200','actions','enableLocalCache','unitId','collaboration.single-unit.warning','touchDependencies','Module','MemberService','handleInsertRangeMoveDown','13180iDvEzX','OFFLINE','min','assignAColorForMemberID','getRelativeToViewportCoord','TOO_MANY_REQUESTS','concat','colorChannel1','fromEventSubject','push','SUBMIT_CHANGESET_TIMEOUT','includes','univer-flex\x20univer-mr-2\x20univer-text-xl','UniverCollaborationClientPlugin','LOCAL_CACHE_INTERVAL','_scheduleHeartbeat','TEXT','LOGIN_FAILED','LICENSE_EXPORT_SIZE_EXCEEDED','override','urlChange$','ThemeService','_cursorInfo$','_httpService','event$','deepClone','NodePositionConvertToRectRange','PERMISSION_DENIED','clipPath','_collaborationController','SNAPSHOT_INVALID_SNAPSHOT','_localeService','_initEntityListener','saveTaskMap','_shapes','_getMergeRange','SNAPSHOT_HAS_BEEN_REMOVED','evenodd','takeUntil','href','IRemoteInstanceService','asObservable','reconnect','APPLY_DUPLICATED','some','transformMutation','@univerjs/engine-formula','createElement','SetWorksheetActivateCommand','loadUnit','defs','beginPath','ONLINE','_transformUndoRedoStack','docStateChange$','CHANGESET_REVISION_CONFILICT','_roomMembers$','redoState','combineLatest','_anchor','1338ESuWUx','COLORS','ILocalStorageService','ACTIVE_UNIT_EVENT_CHANNEL','MUTATION','_handleHover','addEventListener','syncEditingCollabCursor','RemoteUniscriptService','_heartbeatTimer','getUnitId','getUndoRedoMutationParamsCache','getCollabCursors$','_docTransformIMECacheService','Failed','_docSkeletonManagerService','exhaustSavingTask','unsubscribe','xlink:href','_onCursorUpdate','call','clsx','handleInsertCol','ColorKit','...','_scheduleClearOtherTimer','BrowserCollaborationSocketService','Optional','setParam','RegularPolygon','_init','getFocusedUnit','_backgroundColor','Shape','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UniverCollaborationClientUIPlugin','getTypeOfUnitDisposed$','has','onPointerEnter$','runId','YUUMI_AI_RUN_FAILED','RemoveRowCommandId','getColor','makeDirty','svg','Inject','_docStateChangeManagerService','UNDEFINED','subscribeEvent','setConfig','_hovered','textRanges','react','univer-flex\x20univer-items-center','UNRECOGNIZED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','session.will-retry','IConfigService','Workbook','fillText','isActive','_refRangeService','doc.mutation.rich-text-editing','@univerjs/drawing','trim','resize','invokeId','_cursorShapes','useDependency','JOIN_ROOM_FAILED','searchParams','_scheduleSaving','0\x200\x2017\x2016','_updateCollabCursors','setUndoRedoMutationParamsCache','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','pluginName','getRenderById','_id','_messageService','ICommandService','CONFLICT','_name','WebBrowserSingleActiveUnitService','url(#on-line-single_clip0_910_349)','_cursor','EMAIL_HAS_BEEN_BOUND','_createSocketURL','USERS_LEAVE','measureText','_assignedColors','getLocalCacheKey','_unitOnClients','status$','CollaborationStatus','transformMutationsWithChangeset','YUUMI_ASYNCIO_CANCELLED','BuiltInUIPart','distinctUntilChanged','SheetSkeletonManagerService','ranges','RemoveColCommandId','mutations','body','_lastPointer','unit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ALREADY_EXISTS','max','unshift','RxDisposable','_refreshCollabCursors','_ensureSubject','APPLY_REVISION_CONFILICT','DataLoaderService','YUUMI_UNABLE_LOAD_URL','getItem','_config','SYNCED','HTTPService','_context','activeSheet$','skeleton','none','replace','_hideTimer','_startSheetCollabCursor','_getSheetObject','clearTimeout','YUUMI_TABLE_NOT_FOUND_IN_UNIT','stringify','toRgbString','split','currentTheme$','DEFAULT_WS_SESSION_TICKET_URL','CommandType','handleDeleteRangeMoveLeft','CollaborationEvent','font','get','getMember','permission.content','_removeCollabCursors','_collabSessionService','saveOfflineData','IMessageService','round','loadOfflineData','selections','6umOKYB','addObjects','TEXT_RANGE_LAYER_INDEX','imageSourceType','dispose','@univerjs/core','CollaborationSessionService','SHEET_VIEWPORT_KEY','_clearOtherTimers','history','switchMap','OffLineSingle','transformRemoteChangeset','send','children','requireSession','_beforeCloseService','red.300','_docSyncEditingCollabCursorService','getConfig','_memberService','div','collabStatus.fetchMiss','Subject','className','univerjs-icon\x20univerjs-icon-','error','_urlService'];_0x475f=function(){return _0x329b7f;};return _0x475f();}let Se=class extends a[_0x57a25a(0x1c0)]{constructor(_0xe337e3,_0x177239,_0x4b3b69,_0x238935,_0x2c6c6e,_0x468662,_0x25ac88,_0x4eec0b){const _0x78f553=_0x57a25a;super(),h(this,_0x78f553(0xdf),!0x1),h(this,_0x78f553(0x170),!0x1),h(this,_0x78f553(0x12c),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x78f553(0x12c)]['asObservable']()),h(this,_0x78f553(0x14e),new d[(_0x78f553(0x290))]([])),h(this,_0x78f553(0x2c4),this[_0x78f553(0x14e)]['pipe'](d[_0x78f553(0x27d)](nt))),h(this,_0x78f553(0x304),a['debounce']((_0x29dae7,_0x4d9bff)=>{const _0x5f563c=_0x78f553,_0xd36a33={'eventID':m[_0x5f563c(0x1db)][_0x5f563c(0x217)],'data':{'unitID':this[_0x5f563c(0x230)],'memberID':this[_0x5f563c(0x287)]['getMemberID'](),'selection':Ee[_0x5f563c(0xc3)](_0x29dae7,_0x4d9bff['range'])}};this[_0x5f563c(0x287)][_0x5f563c(0x1f4)](_0xd36a33,this['unitID']);},rt)),(this['unitID']=_0xe337e3,this[_0x78f553(0x287)]=_0x177239,this[_0x78f553(0x24d)]=_0x4b3b69,this[_0x78f553(0x2c6)]=_0x238935,this[_0x78f553(0x1fb)]=_0x2c6c6e,this[_0x78f553(0x265)]=_0x468662,this[_0x78f553(0x2d0)]=_0x25ac88,this[_0x78f553(0x18f)]=_0x4eec0b);}get[_0x57a25a(0xeb)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5b4be1=_0x57a25a;return this[_0x5b4be1(0x14e)][_0x5b4be1(0xfa)]();}[_0x57a25a(0x1eb)](){const _0x59a63f=_0x57a25a;super[_0x59a63f(0x1eb)](),this[_0x59a63f(0x12c)]['next'](new Map()),this['_cursorInfo$'][_0x59a63f(0xec)](),this[_0x59a63f(0x14e)][_0x59a63f(0x28d)]([]),this[_0x59a63f(0x14e)][_0x59a63f(0xec)]();}[_0x57a25a(0x23d)](){const _0x627817=_0x57a25a;this[_0x627817(0x170)]||(this[_0x627817(0x170)]=!0x0,this[_0x627817(0x287)][_0x627817(0x23e)][_0x627817(0x25e)](d[_0x627817(0x13c)](this[_0x627817(0x2ed)]))[_0x627817(0x305)](_0x54af8e=>{const _0x21f081=_0x627817;_0x54af8e===u['SessionStatus'][_0x21f081(0x14a)]?this['_toggleOnline']():this[_0x21f081(0x323)]();}),this['_session']['event$'][_0x627817(0x25e)](d[_0x627817(0x13c)](this[_0x627817(0x2ed)]))[_0x627817(0x305)](_0x1db538=>{const _0x407350=_0x627817,_0x135c5f=_0x1db538[_0x407350(0x31c)];_0x135c5f===m['CollaborationEvent'][_0x407350(0x217)]&&this[_0x407350(0x165)](_0x1db538),_0x135c5f===m['CollaborationEvent'][_0x407350(0x1aa)]&&this[_0x407350(0x2e0)](_0x1db538);}),this[_0x627817(0x237)](),this[_0x627817(0x293)](this[_0x627817(0x2d0)][_0x627817(0x2de)](_0xd941d2=>{const _0x2ecd34=_0x627817;if(this[_0x2ecd34(0xdf)]&&_0xd941d2['id']===g[_0x2ecd34(0x2ab)]['id']&&_0xd941d2['params']['unitId']===this[_0x2ecd34(0x230)]){const _0x45ce0b=_0xd941d2[_0x2ecd34(0x310)];this[_0x2ecd34(0x304)](_0x45ce0b['subUnitId'],_0x45ce0b[_0x2ecd34(0x1e6)][0x0]);}})));}[_0x57a25a(0x165)](_0x207292){const _0x206b6d=_0x57a25a;var _0x133411,_0x40d3c3;const {memberID:_0x18e0ca,selection:_0x4c33ba}=_0x207292[_0x206b6d(0xe5)],{sheetName:_0x27be45,range:_0x312596}=Ee['deserializeRangeWithSheet'](_0x4c33ba),_0x13bbe3={'name':(_0x40d3c3=(_0x133411=this[_0x206b6d(0x1fb)]['getMember'](this[_0x206b6d(0x230)],_0x18e0ca))==null?void 0x0:_0x133411[_0x206b6d(0x21e)])!=null?_0x40d3c3:_0x206b6d(0x26c),'range':this[_0x206b6d(0x139)](_0x27be45,_0x312596),'sheetID':_0x27be45,'color':this[_0x206b6d(0x2c6)][_0x206b6d(0x119)](_0x18e0ca),'selection':_0x4c33ba},_0x5f39f5=this['cursorInfo'];_0x5f39f5[_0x206b6d(0xb9)](_0x18e0ca,_0x13bbe3),this['_cursorInfo$'][_0x206b6d(0x28d)](_0x5f39f5);}[_0x57a25a(0x2e0)](_0x356e7f){const _0x2b60f7=_0x57a25a,{memberID:_0x21dbc2}=_0x356e7f[_0x2b60f7(0xe5)],_0x432cb1=this['cursorInfo'];_0x432cb1[_0x2b60f7(0x234)](_0x21dbc2),this[_0x2b60f7(0x12c)][_0x2b60f7(0x28d)](_0x432cb1);}[_0x57a25a(0x139)](_0xb05c60,_0x213dd2){const _0x59a894=_0x57a25a;var _0x5cb04d,_0x59679d;const _0x856125=(_0x59679d=(_0x5cb04d=this[_0x59a894(0x265)]['getUniverSheetInstance'](this[_0x59a894(0x230)]))==null?void 0x0:_0x5cb04d[_0x59a894(0x2d9)](_0xb05c60))==null?void 0x0:_0x59679d[_0x59a894(0x26b)]();return(_0x856125==null?void 0x0:_0x856125[_0x59a894(0x2d1)](_0x51fdba=>a[_0x59a894(0x243)]['contains'](_0x51fdba,_0x213dd2)))||_0x213dd2;}['_onRefRangeChange'](){const _0x1f2523=_0x57a25a,_0x45562b=new a[(_0x1f2523(0x10c))](),_0xe255c7=ot(),_0x10a9be=()=>{const _0x86e577=_0x1f2523;_0x45562b[_0x86e577(0x1eb)]();const _0x5d96ef=(_0x43080b,_0x3cb672,_0x3ec416,_0x7293a2)=>{const _0x5258cd=_0x86e577;let _0x7096c7=[];switch(_0x43080b['id']){case g[_0x5258cd(0xc4)][_0x5258cd(0x30d)]:{_0x7096c7=g[_0x5258cd(0x1da)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x315)]:{_0x7096c7=g['handleDeleteRangeMoveUp'](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x2b3)]:{_0x7096c7=g[_0x5258cd(0x168)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0xda)]:{_0x7096c7=g[_0x5258cd(0x115)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x222)]:{_0x7096c7=g[_0x5258cd(0x26f)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)]['InsertRowCommandId']:{_0x7096c7=g[_0x5258cd(0xc9)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x31f)]:{_0x7096c7=g[_0x5258cd(0x2df)](_0x43080b,_0x7293a2);break;}case g[_0x5258cd(0xc4)][_0x5258cd(0x1b7)]:{_0x7096c7=g[_0x5258cd(0x2ea)](_0x43080b,_0x7293a2);break;}case g['EffectRefRangId'][_0x5258cd(0x17b)]:{_0x7096c7=g['handleIRemoveRow'](_0x43080b,_0x7293a2);break;}}const _0x4c5210=g[_0x5258cd(0x23f)](_0x7096c7,_0x7293a2),_0x35c267=this['cursorInfo'][_0x5258cd(0x1dd)](_0x3cb672);if(_0x35c267&&_0x4c5210){const _0x470583={..._0x35c267,'range':_0x4c5210};this[_0x5258cd(0xeb)][_0x5258cd(0xb9)](_0x3cb672,_0x470583),_0xe255c7(()=>{const _0x1b2210=_0x5258cd,_0x59168a=this[_0x1b2210(0x18f)][_0x1b2210(0x203)](_0x4c5210,_0x220529=>(_0x59168a[_0x1b2210(0x1eb)](),_0x5d96ef(_0x220529,_0x3cb672,_0x3ec416,_0x4c5210)));_0x45562b[_0x1b2210(0xdb)](_0x59168a);});}return{'redos':[],'undos':[]};};this[_0x86e577(0xeb)][_0x86e577(0x2ef)]((_0x9dd3f1,_0x2827fe)=>{const _0xa8bc46=_0x86e577,{range:_0x31a87c,sheetID:_0x107181}=_0x9dd3f1,_0x1b52b4=this[_0xa8bc46(0x18f)][_0xa8bc46(0x203)](_0x31a87c,_0x3c5327=>(_0x1b52b4[_0xa8bc46(0x1eb)](),_0x5d96ef(_0x3c5327,_0x2827fe,_0x107181,_0x31a87c)));_0x45562b['add'](_0x1b52b4);});};this[_0x1f2523(0x293)](a[_0x1f2523(0x32b)](this[_0x1f2523(0x12c)][_0x1f2523(0x305)](()=>{_0x10a9be();})));}[_0x57a25a(0x2c1)](){const _0x1f021f=_0x57a25a;var _0x2f9133,_0x272ad4;if(this[_0x1f021f(0xdf)]=!0x0,((_0x2f9133=this[_0x1f021f(0x265)][_0x1f021f(0x171)]())==null?void 0x0:_0x2f9133[_0x1f021f(0x15c)]())!==this[_0x1f021f(0x230)])return;const _0x4c0bf8=(_0x272ad4=this['_injector'][_0x1f021f(0x1dd)](g['SheetsSelectionsService'])[_0x1f021f(0x309)]())==null?void 0x0:_0x272ad4[0x0],_0x5919c5=this['_univerInstanceService'][_0x1f021f(0x108)](a[_0x1f021f(0x2a9)][_0x1f021f(0x248)])['getActiveSheet']();_0x4c0bf8&&_0x5919c5&&this[_0x1f021f(0x304)](_0x5919c5[_0x1f021f(0xff)](),_0x4c0bf8);}[_0x57a25a(0x323)](){const _0x4547b7=_0x57a25a;this[_0x4547b7(0xdf)]=!0x1;}};Se=it([w(0x2,a[_0x57a25a(0x17f)](a['Injector'])),w(0x3,a['Inject'](me)),w(0x4,a[_0x57a25a(0x17f)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x57a25a(0x1a2)]),w(0x7,a['Inject'](g[_0x57a25a(0x233)]))],Se);var at=Object[_0x57a25a(0xbe)],ct=(_0x57e5ea,_0x37aa9e,_0x4fdc1a,_0x21f23d)=>{const _0x59359d=_0x57a25a;for(var _0x718f1e=_0x21f23d>0x1?void 0x0:_0x21f23d?at(_0x37aa9e,_0x4fdc1a):_0x37aa9e,_0x1b9b61=_0x57e5ea[_0x59359d(0x25f)]-0x1,_0x4e563e;_0x1b9b61>=0x0;_0x1b9b61--)(_0x4e563e=_0x57e5ea[_0x1b9b61])&&(_0x718f1e=_0x4e563e(_0x718f1e)||_0x718f1e);return _0x718f1e;},ie=(_0x596a42,_0x2a103c)=>(_0x2f0b91,_0x4582a4)=>_0x2a103c(_0x2f0b91,_0x4582a4,_0x596a42);let x=class extends a[_0x57a25a(0x1c0)]{constructor(_0x149480,_0x1bc814,_0x29c8f0){const _0x1cc7c9=_0x57a25a;super(),h(this,_0x1cc7c9(0x209),new Map()),h(this,_0x1cc7c9(0x318),new d[(_0x1cc7c9(0x1fe))]()),(this[_0x1cc7c9(0x265)]=_0x149480,this[_0x1cc7c9(0x24d)]=_0x1bc814,this[_0x1cc7c9(0x1e1)]=_0x29c8f0,this['_init']());}['dispose'](){const _0x379de6=_0x57a25a;super[_0x379de6(0x1eb)](),this[_0x379de6(0x318)][_0x379de6(0xec)](),this[_0x379de6(0x209)][_0x379de6(0x2ef)](_0x500de4=>_0x500de4['dispose']());}[_0x57a25a(0x15e)](_0x2c662b){const _0x158b70=_0x57a25a;return this['_entities'][_0x158b70(0x177)](_0x2c662b)?this[_0x158b70(0x209)]['get'](_0x2c662b)[_0x158b70(0x313)]:this[_0x158b70(0x318)][_0x158b70(0x25e)](d[_0x158b70(0x303)](_0x494d4d=>_0x494d4d[_0x158b70(0x230)]===_0x2c662b),d[_0x158b70(0x1f1)](_0x171ec8=>_0x171ec8[_0x158b70(0x313)]));}[_0x57a25a(0x170)](){const _0x50711e=_0x57a25a;this[_0x50711e(0x265)][_0x50711e(0x30a)](a[_0x50711e(0x2a9)][_0x50711e(0x248)])['pipe'](d['takeUntil'](this[_0x50711e(0x2ed)]))['subscribe'](async _0x2109fb=>{const _0x58550d=_0x50711e,_0x605b30=_0x2109fb[_0x58550d(0x15c)](),_0x5d2e2b=await this['_startSheetCollabCursor'](_0x605b30);this['_entityInit$'][_0x58550d(0x28d)](_0x5d2e2b),this['_entities'][_0x58550d(0xb9)](_0x605b30,_0x5d2e2b);}),this['_univerInstanceService'][_0x50711e(0x30a)](a[_0x50711e(0x2a9)][_0x50711e(0xc2)])[_0x50711e(0x25e)](d[_0x50711e(0x13c)](this[_0x50711e(0x2ed)]))['pipe'](d[_0x50711e(0x303)](_0x214dba=>!_0x214dba[_0x50711e(0x15c)]()[_0x50711e(0x24f)]('__')))[_0x50711e(0x305)](async _0x4ddf01=>{const _0xb562d1=_0x50711e,_0xd53a0c=_0x4ddf01[_0xb562d1(0x15c)](),_0x2db99a=await this[_0xb562d1(0x275)](_0xd53a0c);this['_entityInit$'][_0xb562d1(0x28d)](_0x2db99a),this['_entities'][_0xb562d1(0xb9)](_0xd53a0c,_0x2db99a);}),d[_0x50711e(0x21d)](this[_0x50711e(0x265)][_0x50711e(0x176)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x50711e(0x265)][_0x50711e(0x176)](a[_0x50711e(0x2a9)][_0x50711e(0x248)]))['pipe'](d[_0x50711e(0x13c)](this[_0x50711e(0x2ed)]))['subscribe'](_0x58b719=>{const _0xd7f5df=_0x50711e,_0x25c040=_0x58b719[_0xd7f5df(0x15c)](),_0x2b41e6=this['_entities'][_0xd7f5df(0x1dd)](_0x25c040);_0x2b41e6&&(_0x2b41e6[_0xd7f5df(0x1eb)](),this[_0xd7f5df(0x209)]['delete'](_0x25c040));});}async[_0x57a25a(0x1d0)](_0x4c22d9){const _0x15e3c3=_0x57a25a,_0x1a95d7=await this['_collabSessionService'][_0x15e3c3(0x1f6)](_0x4c22d9),_0x2492b4=this[_0x15e3c3(0x24d)][_0x15e3c3(0xdc)](Se,_0x4c22d9,_0x1a95d7);return _0x2492b4[_0x15e3c3(0x23d)](),_0x2492b4;}async[_0x57a25a(0x275)](_0xd1c7fe){const _0x3a0ffb=_0x57a25a,_0x2ddad8=await this[_0x3a0ffb(0x1e1)][_0x3a0ffb(0x1f6)](_0xd1c7fe),_0x1ac51b=this[_0x3a0ffb(0x24d)][_0x3a0ffb(0xdc)](fe,_0xd1c7fe,_0x2ddad8);return _0x1ac51b[_0x3a0ffb(0x23d)](),_0x1ac51b;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),ie(0x2,a[_0x57a25a(0x17f)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x459bcd,_0xb1b0dc){const _0x105209=_0x57a25a;let {radius:_0x2145a8,width:_0x18ce71,height:_0x42843a}=_0xb1b0dc;_0x2145a8=_0x2145a8!=null?_0x2145a8:0x0,_0x18ce71=_0x18ce71!=null?_0x18ce71:0x1e,_0x42843a=_0x42843a!=null?_0x42843a:0x1e;let _0x2c3d0b=0x0,_0x4055c1=0x0,_0x1f4dc3=0x0;_0x2c3d0b=_0x4055c1=_0x1f4dc3=Math[_0x105209(0x118)](_0x2145a8,_0x18ce71/0x2,_0x42843a/0x2),_0x459bcd[_0x105209(0x149)](),_0x459bcd['moveTo'](_0x2c3d0b,0x0),_0x459bcd['lineTo'](_0x18ce71-_0x4055c1,0x0),_0x459bcd['arc'](_0x18ce71-_0x4055c1,_0x4055c1,_0x4055c1,Math['PI']*0x3/0x2,0x0,!0x1),_0x459bcd['lineTo'](_0x18ce71,_0x42843a-_0x1f4dc3),_0x459bcd[_0x105209(0xca)](_0x18ce71-_0x1f4dc3,_0x42843a-_0x1f4dc3,_0x1f4dc3,0x0,Math['PI']/0x2,!0x1),_0x459bcd[_0x105209(0x2a7)](0x0,_0x42843a),_0x459bcd['lineTo'](0x0,_0x2c3d0b),_0x459bcd['arc'](_0x2c3d0b,_0x2c3d0b,_0x2c3d0b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x459bcd[_0x105209(0xb4)](),_0xb1b0dc[_0x105209(0x31e)]&&(_0x459bcd[_0x105209(0x2e2)](),_0x459bcd['fillStyle']=_0xb1b0dc['fill'],_0xb1b0dc['fillRule']===_0x105209(0x13b)?_0x459bcd[_0x105209(0x31e)](_0x105209(0x13b)):_0x459bcd['fill'](),_0x459bcd[_0x105209(0xfe)]());}class ee extends p[_0x57a25a(0x173)]{constructor(_0x850197,_0x5d65ee){const _0x3ea12e=_0x57a25a;super(_0x850197,_0x5d65ee),h(this,'color'),h(this,_0x3ea12e(0xc8)),(this[_0x3ea12e(0xf9)]=_0x5d65ee==null?void 0x0:_0x5d65ee['color'],this['text']=_0x5d65ee==null?void 0x0:_0x5d65ee[_0x3ea12e(0xc8)]);}static[_0x57a25a(0x266)](_0x3066ca,_0x158dd9){const _0x17d799=_0x57a25a,{text:_0x4d14d8,color:_0x48181d}=_0x158dd9;_0x3066ca[_0x17d799(0x2e2)](),_0x3066ca[_0x17d799(0x1dc)]=_0x17d799(0x1bc);const _0x4b91b9=_0x3066ca[_0x17d799(0x1ab)](_0x4d14d8)['width'],_0x2700ef=Math[_0x17d799(0x118)](_0x4b91b9+0x2*ne,Re);_t(_0x3066ca,{'height':K,'radius':0x4,'width':_0x2700ef,'fill':_0x48181d}),_0x3066ca[_0x17d799(0x24e)]='#FFF';const _0x13a585=ne,_0x1b0224=K-lt,_0x87f8e0=Re-0x2*ne;if(_0x4b91b9>_0x87f8e0){let _0x4d576f='',_0x437513=0x0;for(const _0x47abe1 of _0x4d14d8){const _0x24437f=_0x3066ca['measureText'](_0x47abe1)['width'];if(_0x437513+_0x24437f<=_0x87f8e0-_0x3066ca[_0x17d799(0x1ab)](_0x17d799(0x16a))['width'])_0x4d576f+=_0x47abe1,_0x437513+=_0x24437f;else{_0x4d576f+='...';break;}}_0x3066ca[_0x17d799(0x18d)](_0x4d576f,_0x13a585,_0x1b0224);}else _0x3066ca[_0x17d799(0x18d)](_0x4d14d8,_0x13a585,_0x1b0224);_0x3066ca['restore']();}[_0x57a25a(0xe4)](_0x868b6c){const _0x57e810=_0x57a25a;ee[_0x57e810(0x266)](_0x868b6c,this);}}const re=_0x57a25a(0xd4),ht=_0x57a25a(0x22a),ut=_0x57a25a(0x220),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x57a25a(0x22b);class De{constructor(_0x4e6f95,_0x1f8b37,_0x5abf19,_0xcfd34b){const _0x4ac802=_0x57a25a;h(this,_0x4ac802(0x138),[]),h(this,'_anchor',null),h(this,_0x4ac802(0x104),null),h(this,'_anchorDot',null),h(this,_0x4ac802(0x1cf),null),h(this,'_eventUnsubscribe',null),(this[_0x4ac802(0x1a7)]=_0x4e6f95,this['_scene']=_0x1f8b37,this[_0x4ac802(0xe7)]=_0x5abf19,this[_0x4ac802(0xbf)]=_0xcfd34b,this[_0x4ac802(0x29b)]());}set[_0x57a25a(0x308)](_0x222495){const _0xf57b61=_0x57a25a;_0x222495?(this[_0xf57b61(0x252)]&&this['_anchorDot']['hide'](),this[_0xf57b61(0x104)]&&this[_0xf57b61(0x104)][_0xf57b61(0x301)]()):(this['_anchorDot']&&this['_anchorDot'][_0xf57b61(0x301)](),this[_0xf57b61(0x104)]&&this['_textBubble'][_0xf57b61(0x2bd)]());}[_0x57a25a(0x1eb)](){const _0x507016=_0x57a25a;for(const _0x4ba8cd of this[_0x507016(0x138)])_0x4ba8cd[_0x507016(0x1eb)]();this[_0x507016(0x104)]&&this[_0x507016(0x104)]['dispose'](),this[_0x507016(0x252)]&&this['_anchorDot']['dispose'](),this[_0x507016(0x151)]&&this[_0x507016(0x151)][_0x507016(0x1eb)](),this['_eventUnsubscribe']&&this[_0x507016(0x2be)]();}[_0x57a25a(0x29b)](){const _0x1e01b9=_0x57a25a;var _0x4d9880;const {_docSkeleton:_0x353495,_document:_0x6a2835}=this,{color:_0x1bb0aa,name:_0x322b1d,ranges:_0x4087e7}=this[_0x1e01b9(0x1a7)],_0x2fcd85=_0x6a2835[_0x1e01b9(0xf0)](),{docsLeft:_0x3df21b,docsTop:_0x2fb3c4}=_0x2fcd85,_0x337ad3=new b['NodePositionConvertToCursor'](_0x2fcd85,_0x353495);for(const {startOffset:_0x52d012,endOffset:_0x10e1c6,rangeType:_0x1f90db,segmentId:_0x58320a,segmentPage:_0x238a75,collapsed:_0x5a90ff,isActive:_0x1f4f2b}of _0x4087e7){const _0x349ec5=_0x353495[_0x1e01b9(0xbc)](_0x52d012,!0x0,_0x58320a,_0x238a75);let _0x126c0e=_0x353495[_0x1e01b9(0xbc)](_0x10e1c6,!0x0,_0x58320a,_0x238a75);if(_0x126c0e==null&&(_0x126c0e=_0x353495['findNodePositionByCharIndex'](_0x10e1c6-0x1,!0x1,_0x58320a,_0x238a75)),_0x1f4f2b){const {contentBoxPointGroup:_0x1f260e}=_0x337ad3['getRangePointData'](_0x126c0e,_0x126c0e);if(_0x1f260e[_0x1e01b9(0x25f)]===0x0)continue;this[_0x1e01b9(0x250)](_0x1bb0aa,_0x1f260e,_0x3df21b,_0x2fb3c4,_0x322b1d),this['_eventUnsubscribe']=this[_0x1e01b9(0x157)]();}if(_0x349ec5&&_0x126c0e){if(_0x1f90db===a[_0x1e01b9(0x20f)][_0x1e01b9(0x272)]){const _0x3ca4d7=new b[(_0x1e01b9(0x130))](_0x2fcd85,_0x353495),{pointGroup:_0x1cf106}=(_0x4d9880=_0x3ca4d7[_0x1e01b9(0xb6)](_0x349ec5,_0x126c0e))!=null?_0x4d9880:{};if(_0x1cf106==null||_0x1cf106['length']===0x0)continue;this['_drawRectRange'](_0x1bb0aa,_0x1cf106,_0x3df21b,_0x2fb3c4);}else{if(!_0x5a90ff){const {borderBoxPointGroup:_0x11cb01}=_0x337ad3['getRangePointData'](_0x349ec5,_0x126c0e);if(_0x11cb01[_0x1e01b9(0x25f)]===0x0)continue;this[_0x1e01b9(0x205)](_0x1bb0aa,_0x11cb01,_0x3df21b,_0x2fb3c4);}}}}}[_0x57a25a(0x250)](_0x445553,_0x5ad1ef,_0x45d215,_0x1ffeed,_0x3da4b6){const _0x55af02=_0x57a25a,_0x41716e=this[_0x55af02(0xe1)](_0x5ad1ef),{left:_0x57babf,top:_0x13bfaf,height:_0x425fa0}=_0x41716e,_0x409f34=this['_getScale'](),_0x2ad22c=ft/_0x409f34,_0x3704ae=new p[(_0x55af02(0x101))](re+a['Tools']['generateRandomId'](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed,'height':_0x425fa0,'width':dt,'fill':_0x445553||p['getColor'](a[_0x55af02(0x153)][_0x55af02(0x28f)],0x0),'strokeWidth':_0x2ad22c,'stroke':St,'evented':!0x0});this[_0x55af02(0x151)]=_0x3704ae,this[_0x55af02(0xfd)][_0x55af02(0x208)](_0x3704ae,b[_0x55af02(0x1e9)]);const _0x37ad0b=new p[(_0x55af02(0x101))](re+a[_0x55af02(0x225)][_0x55af02(0xce)](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed-oe/0x2,'height':oe,'width':oe,'fill':_0x445553||p[_0x55af02(0x17c)](a[_0x55af02(0x153)][_0x55af02(0x28f)],0x0),'strokeWidth':0x0,'stroke':_0x445553||p[_0x55af02(0x17c)](a[_0x55af02(0x153)]['black'],0x0),'evented':!0x1});this[_0x55af02(0x252)]=_0x37ad0b,this['_scene']['addObject'](_0x37ad0b,b[_0x55af02(0x1e9)]);const _0x2f3c2a=new ee(re+a[_0x55af02(0x225)]['generateRandomId'](k),{'left':_0x57babf+_0x45d215-_0x2ad22c,'top':_0x13bfaf+_0x1ffeed-K,'text':_0x3da4b6,'color':_0x445553});this[_0x55af02(0x104)]=_0x2f3c2a,this['_scene'][_0x55af02(0x208)](_0x2f3c2a,b[_0x55af02(0x1e9)]),this['_hover']=!0x1;}[_0x57a25a(0x157)](){const _0x176120=_0x57a25a,_0x477472=this['_anchor'][_0x176120(0x178)][_0x176120(0x182)](()=>{const _0x19134b=_0x176120;this[_0x19134b(0x308)]=!0x0;}),_0x18485d=this['_anchor'][_0x176120(0x277)]['subscribeEvent'](()=>{const _0x4f216b=_0x176120;this[_0x4f216b(0x1cf)]&&clearTimeout(this[_0x4f216b(0x1cf)]),this[_0x4f216b(0x1cf)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4c6a90=_0x176120;_0x477472[_0x4c6a90(0x163)](),_0x18485d[_0x4c6a90(0x163)]();};}[_0x57a25a(0x205)](_0x5755b7,_0x3d2dcf,_0x24cda3,_0x25349f){const _0x535d74=_0x57a25a,_0x5425a0=new a[(_0x535d74(0x169))](_0x5755b7)['setAlpha'](0.2)[_0x535d74(0x1d5)](),_0x1247a3=new p[(_0x535d74(0x16f))](ht+a['Tools'][_0x535d74(0xce)](k),{'pointsGroup':_0x3d2dcf,'fill':_0x5425a0||p[_0x535d74(0x17c)](a[_0x535d74(0x153)][_0x535d74(0x28f)],0.2),'left':_0x24cda3,'top':_0x25349f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x535d74(0x138)][_0x535d74(0x11f)](_0x1247a3),this['_scene'][_0x535d74(0x208)](_0x1247a3,b['TEXT_RANGE_LAYER_INDEX']);}[_0x57a25a(0xd1)](_0x39a210,_0xfd5fe3,_0x3713c6,_0x4fccd6){const _0x26186e=_0x57a25a,_0x406f04=new a['ColorKit'](_0x39a210)['setAlpha'](0.2)['toRgbString'](),_0x50efe1=new p[(_0x26186e(0x16f))](ut+a[_0x26186e(0x225)][_0x26186e(0xce)](k),{'pointsGroup':_0xfd5fe3,'fill':_0x406f04||p[_0x26186e(0x17c)](a[_0x26186e(0x153)]['black'],0.2),'left':_0x3713c6,'top':_0x4fccd6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26186e(0x138)][_0x26186e(0x11f)](_0x50efe1),this[_0x26186e(0xfd)]['addObject'](_0x50efe1,b['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x5b718d){const _0x39e078=_0x5b718d[0x0],_0x4c28c4=_0x39e078[0x0],_0x701e0b=_0x39e078[0x2],{x:_0x4e697b,y:_0x2a84a6}=_0x4c28c4,{x:_0x3db5b8,y:_0x532a80}=_0x701e0b;return{'left':_0x4e697b,'top':_0x2a84a6,'width':_0x3db5b8-_0x4e697b,'height':_0x532a80-_0x2a84a6};}[_0x57a25a(0x2eb)](){const _0x3a0e5b=_0x57a25a,{scaleX:_0x2af1e1,scaleY:_0x458715}=this[_0x3a0e5b(0xfd)][_0x3a0e5b(0x253)]();return Math[_0x3a0e5b(0x1be)](_0x2af1e1,_0x458715);}}var It=Object[_0x57a25a(0xbe)],vt=(_0x1b4b32,_0x509524,_0x315bf8,_0x39de0d)=>{const _0x3836fa=_0x57a25a;for(var _0x24dab0=_0x39de0d>0x1?void 0x0:_0x39de0d?It(_0x509524,_0x315bf8):_0x509524,_0x504402=_0x1b4b32[_0x3836fa(0x25f)]-0x1,_0x2f6848;_0x504402>=0x0;_0x504402--)(_0x2f6848=_0x1b4b32[_0x504402])&&(_0x24dab0=_0x2f6848(_0x24dab0)||_0x24dab0);return _0x24dab0;},W=(_0x4d4529,_0x18525d)=>(_0x13a1df,_0x3eca29)=>_0x18525d(_0x13a1df,_0x3eca29,_0x4d4529);let Ie=class extends a[_0x57a25a(0x1c0)]{constructor(_0x5caa19,_0x52d953,_0x10ec18,_0x398570,_0x90c76a){const _0x2291e6=_0x57a25a;super(),h(this,_0x2291e6(0x195),[]),h(this,_0x2291e6(0x27f),[]),(this['_context']=_0x5caa19,this[_0x2291e6(0x161)]=_0x52d953,this['_collabCursorController']=_0x10ec18,this[_0x2291e6(0x2d0)]=_0x398570,this[_0x2291e6(0x23b)]=_0x90c76a,this[_0x2291e6(0x170)]());}[_0x57a25a(0x170)](){const _0x47324f=_0x57a25a,_0x516ffd=this[_0x47324f(0x1ca)][_0x47324f(0x110)],_0x5ac198=this[_0x47324f(0x161)];this[_0x47324f(0x293)](d[_0x47324f(0x150)]([this[_0x47324f(0x219)][_0x47324f(0x15e)](_0x516ffd),this[_0x47324f(0x23b)]['currentTheme$']])[_0x47324f(0x25e)]($[_0x47324f(0x2d8)](([_0x552573,_0x450532])=>({'skeleton':_0x5ac198[_0x47324f(0xee)](),'cursors':[..._0x552573[_0x47324f(0x263)]()]['flatMap'](_0x43a367=>({..._0x43a367,'color':this[_0x47324f(0x23b)][_0x47324f(0x2f6)](_0x43a367[_0x47324f(0xf9)])}))})))[_0x47324f(0x305)](_0x5793fe=>{const _0x54e442=_0x47324f;if(this[_0x54e442(0x1e0)](),_0x5793fe){const {skeleton:_0x437a0f,cursors:_0x1c96e0}=_0x5793fe;this[_0x54e442(0x19b)](_0x437a0f,_0x1c96e0);}})),this[_0x47324f(0x20d)](),this[_0x47324f(0x328)]();}[_0x57a25a(0x19b)](_0x5d03c3,_0x2d70d2){const _0x1facdb=_0x57a25a,{scene:_0x1ca724,mainComponent:_0xb53f6b}=this[_0x1facdb(0x1ca)],_0x2aa86b=_0x2d70d2[_0x1facdb(0x2d8)](_0x29a0b8=>new De(_0x29a0b8,_0x1ca724,_0x5d03c3,_0xb53f6b));this[_0x1facdb(0x195)]=_0x2aa86b,this[_0x1facdb(0x27f)]=_0x2d70d2;}[_0x57a25a(0x1c1)](){const _0x338726=_0x57a25a;this[_0x338726(0x1e0)]();const {scene:_0x54cd7b,mainComponent:_0x472458}=this[_0x338726(0x1ca)],_0x5b8dab=this[_0x338726(0x161)][_0x338726(0xee)](),_0x29de17=this[_0x338726(0x27f)]['map'](_0x5c15b2=>new De(_0x5c15b2,_0x54cd7b,_0x5b8dab,_0x472458));this['_cursorShapes']=_0x29de17;}[_0x57a25a(0x1e0)](){const _0x3f42c6=_0x57a25a;this['_cursorShapes'][_0x3f42c6(0x2ef)](_0x11d83d=>_0x11d83d[_0x3f42c6(0x1eb)]()),this[_0x3f42c6(0x195)]=[];}[_0x57a25a(0x328)](){const _0x44d865=_0x57a25a,_0x470555=[b[_0x44d865(0xed)]['id']];this[_0x44d865(0x293)](this[_0x44d865(0x2d0)][_0x44d865(0x2de)](_0x2785c0=>{const _0x47e86e=_0x44d865;_0x470555[_0x47e86e(0x121)](_0x2785c0['id'])&&_0x2785c0[_0x47e86e(0x310)][_0x47e86e(0x110)]===this[_0x47e86e(0x1ca)][_0x47e86e(0x110)]&&this['_refreshCollabCursors']();}));}[_0x57a25a(0x20d)](){const _0x3f6bd3=_0x57a25a;this['disposeWithMe'](a[_0x3f6bd3(0x11e)](this[_0x3f6bd3(0x1ca)]['engine'][_0x3f6bd3(0xd7)])['pipe']($['filter'](_0x3cb86d=>_0x3cb86d[_0x3f6bd3(0x258)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3f6bd3(0x193)]),$[_0x3f6bd3(0x29f)](0x10))['subscribe'](()=>{const _0x8b4ed6=_0x3f6bd3;this[_0x8b4ed6(0x1c1)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x57a25a(0xe6)])),W(0x2,a[_0x57a25a(0x17f)](x)),W(0x3,a[_0x57a25a(0x1a2)]),W(0x4,a[_0x57a25a(0x17f)](a[_0x57a25a(0x12b)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x57a25a(0x173)]{constructor(_0x9df7e,_0x41e3eb){const _0x56165e=_0x57a25a;super(_0x9df7e,_0x41e3eb),h(this,_0x56165e(0x21a)),h(this,_0x56165e(0x184),!0x1),h(this,_0x56165e(0xbd)),h(this,'_name',''),h(this,'_labelPosition',_0x56165e(0x2ac)),h(this,'_backgroundColor'),(_0x41e3eb&&this[_0x56165e(0x268)](_0x41e3eb),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x56165e(0x268)]({'hovered':!0x0})),this[_0x56165e(0x277)][_0x56165e(0x182)](()=>this[_0x56165e(0x268)]({'hovered':!0x1})));}[_0x57a25a(0x268)](_0x29f6f1){const _0x50fdee=_0x57a25a;var _0xa91adf,_0x9951d9,_0xcbf3aa,_0x5d9eec,_0x14db93,_0x18cbc7;this[_0x50fdee(0x21a)]=(_0xa91adf=_0x29f6f1['color'])!=null?_0xa91adf:this[_0x50fdee(0x21a)],this['_hovered']=(_0x9951d9=_0x29f6f1['hovered'])!=null?_0x9951d9:this[_0x50fdee(0x184)],this[_0x50fdee(0xbd)]=(_0xcbf3aa=_0x29f6f1[_0x50fdee(0x296)])!=null?_0xcbf3aa:this[_0x50fdee(0xbd)],this[_0x50fdee(0x1a4)]=(_0x5d9eec=_0x29f6f1[_0x50fdee(0x21e)])!=null?_0x5d9eec:this[_0x50fdee(0x1a4)],this['_labelPosition']=(_0x14db93=_0x29f6f1['labelPosition'])!=null?_0x14db93:this[_0x50fdee(0x2cc)],this['_backgroundColor']=(_0x18cbc7=_0x29f6f1[_0x50fdee(0x2d6)])!=null?_0x18cbc7:this['_backgroundColor'],this[_0x50fdee(0x322)]({'width':_0x29f6f1[_0x50fdee(0xb8)],'height':_0x29f6f1[_0x50fdee(0x259)]});}[_0x57a25a(0x31b)](_0x4b69cd){const _0x33b1eb=_0x57a25a,{row:_0x15cfba,column:_0x4274e5}=_0x4b69cd;if(_0x15cfba>=this[_0x33b1eb(0xbd)][_0x33b1eb(0x24a)]&&_0x15cfba<=this[_0x33b1eb(0xbd)][_0x33b1eb(0x2c8)]&&_0x4274e5>=this[_0x33b1eb(0xbd)][_0x33b1eb(0x2dc)]&&_0x4274e5<=this[_0x33b1eb(0xbd)][_0x33b1eb(0xcc)]){this[_0x33b1eb(0x268)]({'hovered':!0x0});return;}this[_0x33b1eb(0x268)]({'hovered':!0x1});}[_0x57a25a(0x21f)](_0x497bd8){return!0x1;}[_0x57a25a(0xe4)](_0x59fe6f){const _0xd952c2=_0x57a25a;p[_0xd952c2(0x101)]['drawWith'](_0x59fe6f,{'width':this[_0xd952c2(0xb8)],'height':this[_0xd952c2(0x259)],'strokeWidth':mt,'stroke':this[_0xd952c2(0x21a)],'evented':!0x1,'fill':this[_0xd952c2(0x172)]}),this[_0xd952c2(0x184)]&&(_0x59fe6f[_0xd952c2(0x2e2)](),_0x59fe6f[_0xd952c2(0x284)](0x1,0x0,0x0,0x1,this[_0xd952c2(0xb8)],this[_0xd952c2(0x2cc)]===_0xd952c2(0x23a)?0x0:-0x14),ee['drawWith'](_0x59fe6f,{'text':this[_0xd952c2(0x1a4)],'color':this[_0xd952c2(0x21a)]}),_0x59fe6f[_0xd952c2(0xfe)]());}}var Ct=Object[_0x57a25a(0xbe)],pt=(_0x38269a,_0x6b7814,_0x24ed23,_0x3225ba)=>{const _0xc7b2c4=_0x57a25a;for(var _0x24fbd9=_0x3225ba>0x1?void 0x0:_0x3225ba?Ct(_0x6b7814,_0x24ed23):_0x6b7814,_0x9bfec0=_0x38269a[_0xc7b2c4(0x25f)]-0x1,_0x272d5a;_0x9bfec0>=0x0;_0x9bfec0--)(_0x272d5a=_0x38269a[_0x9bfec0])&&(_0x24fbd9=_0x272d5a(_0x24fbd9)||_0x24fbd9);return _0x24fbd9;},ae=(_0x3d973f,_0x28601d)=>(_0x44993b,_0x31e8fc)=>_0x28601d(_0x44993b,_0x31e8fc,_0x3d973f);const bt=0x1389;let ve=class extends a[_0x57a25a(0x1c0)]{constructor(_0x5ce1e0,_0x3fc6f2,_0x15f4a6,_0x398864){const _0x521a1a=_0x57a25a;super(),h(this,'_cursors',new Set()),h(this,_0x521a1a(0x1ba),null),(this[_0x521a1a(0x1ca)]=_0x5ce1e0,this[_0x521a1a(0x298)]=_0x3fc6f2,this['_collabCursorController']=_0x15f4a6,this[_0x521a1a(0x23b)]=_0x398864,this[_0x521a1a(0x170)]());}[_0x57a25a(0x170)](){const _0x304ba2=_0x57a25a;this[_0x304ba2(0x298)]['currentSkeleton$'][_0x304ba2(0x25e)]($[_0x304ba2(0x13c)](this[_0x304ba2(0x2ed)]),$[_0x304ba2(0x1f1)](_0x2c2c0b=>{const _0x18d36c=_0x304ba2;if(_0x2c2c0b){const _0x6be78e=_0x2c2c0b['sheetId'];return d[_0x18d36c(0x150)](this[_0x18d36c(0x219)][_0x18d36c(0x15e)](this[_0x18d36c(0x1ca)][_0x18d36c(0x110)]),this[_0x18d36c(0x23b)][_0x18d36c(0x1d7)])[_0x18d36c(0x25e)]($['map'](([_0x464685,_0x1f9c0e])=>{const _0x3a305f=_0x18d36c,_0x34e901=new Map();return _0x464685[_0x3a305f(0x2ef)]((_0x24a907,_0x5398a1)=>{const _0x532637=_0x3a305f;if(_0x24a907[_0x532637(0x31d)]===_0x6be78e){const _0x462abb={..._0x24a907};_0x462abb[_0x532637(0xf9)]=this[_0x532637(0x23b)]['getColorFromTheme'](_0x24a907['color']),_0x34e901[_0x532637(0xb9)](_0x5398a1,_0x462abb);}}),{'skeleton':_0x2c2c0b,'cursors':_0x34e901};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x304ba2(0x305)](({skeleton:_0x16fb5f,cursors:_0x4eb1f4})=>{const _0xf6e9db=_0x304ba2;this[_0xf6e9db(0x1e0)](),_0x16fb5f&&this['_updateCollabCursors'](_0x16fb5f,_0x4eb1f4);}),this[_0x304ba2(0x298)][_0x304ba2(0x269)][_0x304ba2(0x305)](_0x296df1=>{const _0x3e10fc=_0x304ba2;if(_0x296df1==null)return;const {skeleton:_0x3f15b7}=_0x296df1,{scene:_0x1d7bf8}=this['_context'];_0x1d7bf8['onPointerMove$']['subscribeEvent'](a[_0x3e10fc(0x2fc)](_0x1fca10=>{const _0x48a423=_0x3e10fc;var _0x50a045,_0x105063;const {offsetX:_0x373dab,offsetY:_0x5d2d6f}=_0x1fca10,{x:_0x55b955,y:_0x5e9979}=_0x1d7bf8[_0x48a423(0x11a)](p['Vector2']['FromArray']([_0x373dab,_0x5d2d6f])),{scaleX:_0x376280,scaleY:_0x14b2d6}=_0x1d7bf8[_0x48a423(0x253)](),_0x7b5694=_0x1d7bf8[_0x48a423(0x282)](p[_0x48a423(0x1ee)]['VIEW_MAIN']),_0x2ed601=_0x1d7bf8[_0x48a423(0xe8)](p['Vector2']['FromArray']([_0x55b955,_0x5e9979]),_0x7b5694),_0x196368=_0x3f15b7[_0x48a423(0x28a)](_0x373dab,_0x5d2d6f,_0x376280,_0x14b2d6,_0x2ed601);((_0x50a045=this[_0x48a423(0x1ba)])==null?void 0x0:_0x50a045['column'])===_0x196368['column']&&((_0x105063=this[_0x48a423(0x1ba)])==null?void 0x0:_0x105063[_0x48a423(0x224)])===_0x196368['row']||this['_cursors'][_0x48a423(0x2ef)](_0x118ba3=>{_0x118ba3['onMouseMove'](_0x196368);});},0x64));});}[_0x57a25a(0x19b)](_0xc931d4,_0x5360a9){const _0x34828a=_0x57a25a;var _0x22245b;const _0x984c65=(_0x22245b=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x22245b[_0x34828a(0x1cc)];if(!_0x984c65)return;const _0x2b9cea=this[_0x34828a(0x1d1)]();if(!_0x2b9cea)return;this[_0x34828a(0x27f)][_0x34828a(0x2ef)](_0x2ef058=>{const _0xca3fe2=_0x34828a;_0x2ef058[_0xca3fe2(0x17d)]();});const {scene:_0x4ff70d}=_0x2b9cea,_0x3e302b=Et(Array[_0x34828a(0x2e6)](_0x5360a9[_0x34828a(0x263)]()))[_0x34828a(0x2d8)](_0x3847a8=>{const _0x34ac50=_0x34828a,{color:_0x162203,range:_0x1f925e,name:_0x3d48ae,selection:_0x434e81,sheetID:_0x39dd13}=_0x3847a8,{startColumn:_0x1aa7b6,startRow:_0x140094,endColumn:_0x10aa6c,endRow:_0x5479aa}=_0x1f925e,_0x58727c=X[_0x34ac50(0x20b)](_0x140094,_0x1aa7b6,_0x4ff70d,_0x984c65),_0x2dc002=X[_0x34ac50(0x20b)](_0x5479aa,_0x10aa6c,_0x4ff70d,_0x984c65),{columnHeaderHeightAndMarginTop:_0x5282dc}=_0x984c65,{startX:_0x2ac7c0,startY:_0x677e5c}=_0x58727c,{endX:_0x483447,endY:_0xba244c}=_0x2dc002,_0x4cb6bc=_0x483447-_0x2ac7c0,_0x46fdd8=_0xba244c-_0x677e5c,_0x43427a={'labelPosition':_0x677e5c-_0x5282dc>=K?_0x34ac50(0x2ac):_0x34ac50(0x23a),'sheetID':_0x39dd13,'range':_0x1f925e,'color':_0x162203,'name':_0x3d48ae,'selection':_0x434e81,'left':_0x2ac7c0,'top':_0x677e5c,'width':_0x4cb6bc,'height':_0x46fdd8,'evented':!0x1,'zIndex':bt};return new Ae(_0x3d48ae,_0x43427a);});_0x4ff70d[_0x34828a(0x1e8)](_0x3e302b,gt),this[_0x34828a(0x27f)]=new Set(_0x3e302b);}[_0x57a25a(0x1e0)](){const _0x38a2ee=_0x57a25a;var _0x14605f;(_0x14605f=this[_0x38a2ee(0x27f)])==null||_0x14605f[_0x38a2ee(0x2ef)](_0x4bb5b4=>_0x4bb5b4[_0x38a2ee(0x1eb)]());}[_0x57a25a(0x1d1)](){const _0x41a391=_0x57a25a;return X['getSheetObject'](this[_0x41a391(0x1ca)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x57a25a(0x17f)](X[_0x57a25a(0x1b5)])),ae(0x2,a[_0x57a25a(0x17f)](x)),ae(0x3,a[_0x57a25a(0x17f)](a[_0x57a25a(0x12b)]))],ve);function Et(_0x2c14ea){const _0x2e1c53=_0x57a25a,_0x3b3789=new Map();return _0x2c14ea[_0x2e1c53(0x2ef)](_0x2f8f9d=>{const _0x112f89=_0x2e1c53;if(_0x3b3789[_0x112f89(0x177)](_0x2f8f9d[_0x112f89(0x2fe)])){const _0xe2e4c8=_0x3b3789[_0x112f89(0x1dd)](_0x2f8f9d[_0x112f89(0x2fe)]);_0xe2e4c8[_0x112f89(0x21e)]+=',\x20'+_0x2f8f9d[_0x112f89(0x21e)];}else _0x3b3789[_0x112f89(0xb9)](_0x2f8f9d['selection'],_0x2f8f9d);}),Array['from'](_0x3b3789[_0x2e1c53(0x263)]());}var E=function(){const _0x2bf30c=_0x57a25a;return E=Object[_0x2bf30c(0x255)]||function(_0x29b6f2){const _0x43d0fd=_0x2bf30c;for(var _0x212bf4,_0xf77d94=0x1,_0x5373fb=arguments[_0x43d0fd(0x25f)];_0xf77d94<_0x5373fb;_0xf77d94++){_0x212bf4=arguments[_0xf77d94];for(var _0x2ebb4e in _0x212bf4)Object[_0x43d0fd(0x22c)][_0x43d0fd(0x10b)][_0x43d0fd(0x166)](_0x212bf4,_0x2ebb4e)&&(_0x29b6f2[_0x2ebb4e]=_0x212bf4[_0x2ebb4e]);}return _0x29b6f2;},E[_0x2bf30c(0xc0)](this,arguments);},Tt=function(_0x2e6554,_0x4d17){const _0x66e914=_0x57a25a;var _0x465279={};for(var _0x1af260 in _0x2e6554)Object[_0x66e914(0x22c)][_0x66e914(0x10b)]['call'](_0x2e6554,_0x1af260)&&_0x4d17['indexOf'](_0x1af260)<0x0&&(_0x465279[_0x1af260]=_0x2e6554[_0x1af260]);if(_0x2e6554!=null&&typeof Object[_0x66e914(0x295)]=='function'){for(var _0x1426f6=0x0,_0x1af260=Object['getOwnPropertySymbols'](_0x2e6554);_0x1426f6<_0x1af260[_0x66e914(0x25f)];_0x1426f6++)_0x4d17[_0x66e914(0x2f9)](_0x1af260[_0x1426f6])<0x0&&Object[_0x66e914(0x22c)]['propertyIsEnumerable'][_0x66e914(0x166)](_0x2e6554,_0x1af260[_0x1426f6])&&(_0x465279[_0x1af260[_0x1426f6]]=_0x2e6554[_0x1af260[_0x1426f6]]);}return _0x465279;},pe=M[_0x57a25a(0x30e)](function(_0x3afd06,_0x22aff1){const _0x2d76b0=_0x57a25a;var _0x3d40c6=_0x3afd06['icon'],_0x907bf2=_0x3afd06['id'],_0x18bde0=_0x3afd06[_0x2d76b0(0x1ff)],_0x5023f8=_0x3afd06[_0x2d76b0(0x240)],_0xdf27d1=Tt(_0x3afd06,[_0x2d76b0(0x25b),'id',_0x2d76b0(0x1ff),'extend']),_0x38e923=_0x2d76b0(0x200)[_0x2d76b0(0x11c)](_0x907bf2,'\x20')[_0x2d76b0(0x11c)](_0x18bde0||'')[_0x2d76b0(0x192)](),_0x3bca07=M['useRef']('_'[_0x2d76b0(0x11c)](Dt()));return we(_0x3d40c6,''[_0x2d76b0(0x11c)](_0x907bf2),{'defIds':_0x3d40c6[_0x2d76b0(0x27a)],'idSuffix':_0x3bca07['current']},E({'ref':_0x22aff1,'className':_0x38e923},_0xdf27d1),_0x5023f8);});function we(_0x2aeeec,_0x5c3b92,_0x4ed4ad,_0x2bf199,_0x18b270){const _0x1d7f55=_0x57a25a;return M['createElement'](_0x2aeeec[_0x1d7f55(0x215)],E(E({'key':_0x5c3b92},Ot(_0x2aeeec,_0x4ed4ad,_0x18b270)),_0x2bf199),(Rt(_0x2aeeec,_0x4ed4ad)[_0x1d7f55(0x1f5)]||[])[_0x1d7f55(0x2d8)](function(_0x54a9e3,_0x51677b){const _0x6c3621=_0x1d7f55;return we(_0x54a9e3,''[_0x6c3621(0x11c)](_0x5c3b92,'-')[_0x6c3621(0x11c)](_0x2aeeec[_0x6c3621(0x215)],'-')[_0x6c3621(0x11c)](_0x51677b),_0x4ed4ad,void 0x0,_0x18b270);}));}function Ot(_0x573e64,_0xacf61f,_0xa74557){const _0x299320=_0x57a25a;var _0x166781=E({},_0x573e64[_0x299320(0xea)]);_0xa74557!=null&&_0xa74557['colorChannel1']&&_0x166781['fill']===_0x299320(0x11d)&&(_0x166781[_0x299320(0x31e)]=_0xa74557['colorChannel1']),_0x573e64[_0x299320(0x215)]===_0x299320(0x317)&&_0x166781['id']&&(_0x166781['id']=_0x166781['id']+_0xacf61f[_0x299320(0xb7)]),Object['entries'](_0x166781)[_0x299320(0x2ef)](function(_0x2719a7){const _0x4cc43e=_0x299320;var _0xcb70d1=_0x2719a7[0x0],_0x5b952c=_0x2719a7[0x1];_0xcb70d1===_0x4cc43e(0x317)&&typeof _0x5b952c==_0x4cc43e(0x320)&&(_0x166781[_0xcb70d1]=_0x5b952c[_0x4cc43e(0x1ce)](/url\(#(.*)\)/,_0x4cc43e(0x2ee)[_0x4cc43e(0x11c)](_0xacf61f['idSuffix'],')')));});var _0x43c6ba=_0xacf61f[_0x299320(0x27a)];return!_0x43c6ba||_0x43c6ba[_0x299320(0x25f)]===0x0||(_0x573e64[_0x299320(0x215)]==='use'&&_0x166781[_0x299320(0x164)]&&(_0x166781[_0x299320(0x164)]=_0x166781[_0x299320(0x164)]+_0xacf61f[_0x299320(0xb7)]),Object[_0x299320(0xf7)](_0x166781)[_0x299320(0x2ef)](function(_0x2af2b6){const _0x1e7044=_0x299320;var _0x1c8955=_0x2af2b6[0x0],_0x1f0eec=_0x2af2b6[0x1];typeof _0x1f0eec==_0x1e7044(0x320)&&(_0x166781[_0x1c8955]=_0x1f0eec[_0x1e7044(0x1ce)](/url\(#(.*)\)/,_0x1e7044(0x2ee)[_0x1e7044(0x11c)](_0xacf61f[_0x1e7044(0xb7)],')')));})),_0x166781;}function Rt(_0x446c80,_0x5d248d){const _0x5ad819=_0x57a25a;var _0x119bf8,_0x1ffa05=_0x5d248d[_0x5ad819(0x27a)];return!_0x1ffa05||_0x1ffa05[_0x5ad819(0x25f)]===0x0?_0x446c80:_0x446c80[_0x5ad819(0x215)]===_0x5ad819(0x148)&&(!((_0x119bf8=_0x446c80[_0x5ad819(0x1f5)])===null||_0x119bf8===void 0x0)&&_0x119bf8[_0x5ad819(0x25f)])?E(E({},_0x446c80),{'children':_0x446c80[_0x5ad819(0x1f5)]['map'](function(_0x2d92c5){const _0x477d46=_0x5ad819;return typeof _0x2d92c5[_0x477d46(0xea)]['id']==_0x477d46(0x320)&&_0x1ffa05&&_0x1ffa05[_0x477d46(0x2f9)](_0x2d92c5[_0x477d46(0xea)]['id'])>-0x1?E(E({},_0x2d92c5),{'attrs':E(E({},_0x2d92c5[_0x477d46(0xea)]),{'id':_0x2d92c5[_0x477d46(0xea)]['id']+_0x5d248d['idSuffix']})}):_0x2d92c5;})}):_0x446c80;}function Dt(){const _0x196678=_0x57a25a;return Math[_0x196678(0x312)]()[_0x196678(0x229)](0x24)[_0x196678(0x329)](0x2,0x8);}pe[_0x57a25a(0x2e1)]='UniverIcon';var Ut={'tag':_0x57a25a(0x17e),'attrs':{'fill':_0x57a25a(0x1cd),'viewBox':_0x57a25a(0xd8),'width':_0x57a25a(0x2fb),'height':_0x57a25a(0x2fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a25a(0x221)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x57a25a(0x1e4),'strokeWidth':1.2}}]},{'tag':_0x57a25a(0x148),'attrs':{},'children':[{'tag':_0x57a25a(0x132),'attrs':{'id':_0x57a25a(0x29c)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'fill':_0x57a25a(0x2b4),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x57a25a(0x29c)]},ye=M[_0x57a25a(0x30e)](function(_0x29795e,_0x113859){const _0x42ab1d=_0x57a25a;return M['createElement'](pe,Object[_0x42ab1d(0x255)]({},_0x29795e,{'id':'off-line-single','ref':_0x113859,'icon':Ut}));});ye[_0x57a25a(0x2e1)]=_0x57a25a(0x1f2);var Nt={'tag':'svg','attrs':{'fill':_0x57a25a(0x1cd),'viewBox':_0x57a25a(0x19a),'width':_0x57a25a(0x2fb),'height':_0x57a25a(0x2fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a25a(0x1a6)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'stroke':'currentColor','d':_0x57a25a(0x19d),'strokeLinecap':_0x57a25a(0x1e4),'strokeLinejoin':_0x57a25a(0x1e4),'strokeWidth':1.2}}]},{'tag':_0x57a25a(0x148),'attrs':{},'children':[{'tag':_0x57a25a(0x132),'attrs':{'id':_0x57a25a(0x2da)},'children':[{'tag':_0x57a25a(0x2b0),'attrs':{'fill':_0x57a25a(0x2b4),'d':_0x57a25a(0xcd),'transform':_0x57a25a(0x2cf)}}]}]}],'defIds':[_0x57a25a(0x2da)]},$e=M[_0x57a25a(0x30e)](function(_0x4062a7,_0x5a0b70){const _0x30a69e=_0x57a25a;return M[_0x30a69e(0x145)](pe,Object[_0x30a69e(0x255)]({},_0x4062a7,{'id':'on-line-single','ref':_0x5a0b70,'icon':Nt}));});$e[_0x57a25a(0x2e1)]=_0x57a25a(0x2e4);function Mt(_0x125883){const _0x40cad5=_0x57a25a;switch(_0x125883){case u[_0x40cad5(0x1b0)][_0x40cad5(0x117)]:return _0x40cad5(0x24b);case u['CollaborationStatus'][_0x40cad5(0x1a3)]:return'collabStatus.conflict';case u[_0x40cad5(0x1b0)][_0x40cad5(0x2b5)]:return _0x40cad5(0x1fd);case u[_0x40cad5(0x1b0)][_0x40cad5(0x29d)]:return _0x40cad5(0xb0);case u[_0x40cad5(0x1b0)][_0x40cad5(0x2ff)]:case u[_0x40cad5(0x1b0)][_0x40cad5(0x2b6)]:return _0x40cad5(0xd3);case u['CollaborationStatus'][_0x40cad5(0x1c8)]:case u['CollaborationStatus'][_0x40cad5(0x2ec)]:return _0x40cad5(0x2fd);}}function xe(_0x5aae25){const _0x146846=_0x57a25a,{status$:_0x4115b9}=_0x5aae25,_0x3c33d2=T['useObservable'](_0x4115b9,u['CollaborationStatus'][_0x146846(0x29d)]),_0x1b269c=T['useDependency'](a['LocaleService']),_0x1f151a=T[_0x146846(0x196)](u[_0x146846(0x1ed)]),_0x4fc8d6=_0x3c33d2!==u[_0x146846(0x1b0)][_0x146846(0x117)],_0xc25ad5=_0x1b269c['t'](Mt(_0x3c33d2)),_0x1e99b8=_0x4fc8d6?P[_0x146846(0xcb)]($e,{}):P[_0x146846(0xcb)](ye,{}),_0x570b2e=M[_0x146846(0x256)](()=>{const _0x42347f=_0x146846;_0x4fc8d6||_0x1f151a[_0x42347f(0x140)]();},[_0x4fc8d6,_0x1f151a]);function _0x59debc(){const _0x923feb=_0x146846;return P['jsxs'](_0x923feb(0x1fc),{'className':_0x923feb(0x187),'onClick':_0x570b2e,'children':[P[_0x923feb(0xcb)](_0x923feb(0x1fc),{'className':D[_0x923feb(0x167)](_0x923feb(0x122),{'univer-text-green-500':_0x4fc8d6,'univer-text-red-500':!_0x4fc8d6}),'children':_0x1e99b8}),P[_0x923feb(0xcb)](_0x923feb(0x1fc),{'className':_0x923feb(0x10d),'children':_0xc25ad5})]});}return _0x4fc8d6?_0x59debc():P[_0x146846(0xcb)](D[_0x146846(0x100)],{'title':_0x1b269c['t']('collab-client.tooltip.reconnect'),'children':_0x59debc()});}var Lt=Object[_0x57a25a(0xbe)],Pt=(_0x2cbc60,_0x1e91e0,_0x49f1cc,_0x493646)=>{for(var _0x1d9f17=_0x493646>0x1?void 0x0:_0x493646?Lt(_0x1e91e0,_0x49f1cc):_0x1e91e0,_0x4e62e1=_0x2cbc60['length']-0x1,_0x5ee241;_0x4e62e1>=0x0;_0x4e62e1--)(_0x5ee241=_0x2cbc60[_0x4e62e1])&&(_0x1d9f17=_0x5ee241(_0x1d9f17)||_0x1d9f17);return _0x1d9f17;},V=(_0x424176,_0x21ca09)=>(_0x570d8c,_0x292ed9)=>_0x21ca09(_0x570d8c,_0x292ed9,_0x424176);exports[_0x57a25a(0xfc)]=class extends a[_0x57a25a(0xe9)]{constructor(_0x46a622,_0x5d43a2,_0x243c10,_0x1b668f){const _0x194e89=_0x57a25a;super(),h(this,_0x194e89(0xf8),new d[(_0x194e89(0x290))](u[_0x194e89(0x1b0)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x46a622,this['_injector']=_0x5d43a2,this['_collaborationController']=_0x243c10,this[_0x194e89(0x2f7)]=_0x1b668f,this['_initStatusComponent'](),this[_0x194e89(0x314)]());}[_0x57a25a(0x314)](){const _0x4d0d46=_0x57a25a;this['disposeWithMe'](this[_0x4d0d46(0x265)][_0x4d0d46(0x261)][_0x4d0d46(0x25e)](d[_0x4d0d46(0x1f1)](()=>{const _0x181d38=_0x4d0d46,_0x2f377d=this[_0x181d38(0x265)][_0x181d38(0x171)]();return _0x2f377d?this[_0x181d38(0x133)][_0x181d38(0x25c)](_0x2f377d['getUnitId']()):d['of'](null);}),d['switchMap'](_0x2e18da=>_0x2e18da?_0x2e18da[_0x4d0d46(0x1af)]:d['of'](u[_0x4d0d46(0x1b0)][_0x4d0d46(0x29d)])))['subscribe'](_0x3901f6=>{const _0x4dc035=_0x4d0d46;this['_status$'][_0x4dc035(0x28d)](_0x3901f6);}));}[_0x57a25a(0x2a6)](){const _0x2fb2fb=_0x57a25a;this[_0x2fb2fb(0x293)](this['_uiPartsService']['registerComponent'](T[_0x2fb2fb(0x1b3)]['HEADER_MENU'],()=>T['connectInjector'](At({'status$':this[_0x2fb2fb(0xf8)][_0x2fb2fb(0x13f)]()}),this[_0x2fb2fb(0x24d)])));}},exports[_0x57a25a(0xfc)]=Pt([V(0x0,a[_0x57a25a(0x2d5)]),V(0x1,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),V(0x2,a['Inject'](u[_0x57a25a(0x274)])),V(0x3,T[_0x57a25a(0x264)])],exports[_0x57a25a(0xfc)]);function At(_0x242d22){const {status$:_0xad70af}=_0x242d22;return function(){const _0xa43cda=_0x1cac;return P[_0xa43cda(0xcb)](xe,{'status$':_0xad70af});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x37aa6f,_0xc05eb2,_0x3db5d0,_0x52f45a)=>{const _0x1448df=_0x57a25a;for(var _0x20382c=_0x52f45a>0x1?void 0x0:_0x52f45a?wt(_0xc05eb2,_0x3db5d0):_0xc05eb2,_0xa2ccb3=_0x37aa6f[_0x1448df(0x25f)]-0x1,_0x2c786f;_0xa2ccb3>=0x0;_0xa2ccb3--)(_0x2c786f=_0x37aa6f[_0xa2ccb3])&&(_0x20382c=_0x2c786f(_0x20382c)||_0x20382c);return _0x20382c;},y=(_0x51ee4f,_0x5c9866)=>(_0x43b781,_0x68ab1b)=>_0x5c9866(_0x43b781,_0x68ab1b,_0x51ee4f);let q=class extends a[_0x57a25a(0xe9)]{constructor(_0x38294a,_0x26806f,_0x185e72,_0x3a7f5e,_0x5ba51e,_0x2ccacd){const _0x40b9ec=_0x57a25a;super(),this[_0x40b9ec(0x1f7)]=_0x38294a,this[_0x40b9ec(0x2dd)]=_0x26806f,this['_collaborationUIEventService']=_0x185e72,this[_0x40b9ec(0x1a1)]=_0x3a7f5e,this[_0x40b9ec(0x2c9)]=_0x5ba51e,this['_localeService']=_0x2ccacd,this[_0x40b9ec(0x2d4)](),this[_0x40b9ec(0x227)]();}['_setupBeforeClosingHandler'](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0xcd0928=_0x1cac;if(this['_localCacheService']['saveTaskMap'][_0xcd0928(0x2a5)])return this['_localeService']['t'](_0xcd0928(0x300));}));}[_0x57a25a(0x227)](){const _0x4d21b3=_0x57a25a;this[_0x4d21b3(0x293)](this[_0x4d21b3(0x2cb)][_0x4d21b3(0x12e)][_0x4d21b3(0x305)](_0x52b121=>{const _0x10d976=_0x4d21b3;_0x52b121['id']===u[_0x10d976(0x2c0)]['OTHER_CLIENT_EDITING']&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this['_localeService']['t'](_0x10d976(0x111))}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x21c)]&&this['_messageService'][_0x10d976(0x301)]({'type':D['MessageType'][_0x10d976(0x102)],'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x291))}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x131)]&&this[_0x10d976(0x2c9)][_0x10d976(0x301)]({'title':this[_0x10d976(0x135)]['t'](_0x10d976(0x278)),'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x1df)),'type':_0x10d976(0x201),'duration':0x0}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x1a3)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this[_0x10d976(0x135)]['t']('collaboration.closeRoom')+'('+_0x52b121[_0x10d976(0xe5)]+')'}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x197)]&&this['_messageService'][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this[_0x10d976(0x135)]['t'](_0x52b121[_0x10d976(0xe5)]||'')}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x316)]&&this['_messageService'][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x102)],'content':this['_localeService']['t'](_0x10d976(0x18a))}),_0x52b121['id']===u[_0x10d976(0x2c0)][_0x10d976(0x257)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this[_0x10d976(0x135)]['t'](_0x10d976(0x2f3))}),_0x52b121['id']===u['CollaborationUIEventId'][_0x10d976(0x120)]&&this[_0x10d976(0x1a1)][_0x10d976(0x301)]({'type':D[_0x10d976(0x302)][_0x10d976(0x2e3)],'content':this['_localeService']['t'](_0x10d976(0x279))});}));}};q=yt([y(0x0,T[_0x57a25a(0x32a)]),y(0x1,u[_0x57a25a(0x285)]),y(0x2,a[_0x57a25a(0x17f)](u[_0x57a25a(0x2b9)])),y(0x3,T[_0x57a25a(0x1e3)]),y(0x4,T['INotificationService']),y(0x5,a[_0x57a25a(0x17f)](a['LocaleService']))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x57a25a(0x226)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x2c4f1a,_0x5dcbb5,_0x46e238,_0x1c68f6)=>{const _0x342a6d=_0x57a25a;for(var _0x356428=_0x1c68f6>0x1?void 0x0:_0x1c68f6?xt(_0x5dcbb5,_0x46e238):_0x5dcbb5,_0x8bb421=_0x2c4f1a[_0x342a6d(0x25f)]-0x1,_0x2cf6a3;_0x8bb421>=0x0;_0x8bb421--)(_0x2cf6a3=_0x2c4f1a[_0x8bb421])&&(_0x356428=_0x2cf6a3(_0x356428)||_0x356428);return _0x356428;},H=(_0x408d3c,_0x5bbe01)=>(_0x5a1018,_0x1b1cc8)=>_0x5bbe01(_0x5a1018,_0x1b1cc8,_0x408d3c);exports[_0x57a25a(0x280)]=class extends a[_0x57a25a(0x1c0)]{constructor(_0x21c7c6,_0x2978f7,_0x1c5d6a,_0x9e7920,_0x509463){const _0xcad19a=_0x57a25a;super(),this[_0xcad19a(0x202)]=_0x21c7c6,this['_logService']=_0x2978f7,this[_0xcad19a(0x2d0)]=_0x1c5d6a,this[_0xcad19a(0x239)]=_0x9e7920,_0x509463?_0x509463==null||_0x509463['whenReady']()[_0xcad19a(0x107)](()=>this['_init']()):(this[_0xcad19a(0x2aa)]['debug'](_0xcad19a(0xdd),_0xcad19a(0xcf)),this[_0xcad19a(0x170)]());}async[_0x57a25a(0x170)](){const _0x4c2480=_0x57a25a,_0xddd5b4=this[_0x4c2480(0x202)][_0x4c2480(0xd0)](_0x4c2480(0x1bb)),_0x24da11=this[_0x4c2480(0x202)][_0x4c2480(0xd0)]('type'),_0x23b70a=this['_urlService'][_0x4c2480(0xd0)](_0x4c2480(0x260));if(!_0xddd5b4||!_0x24da11){this['_logService']['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x42845e=await this[_0x4c2480(0x239)][_0x4c2480(0x147)](_0xddd5b4,Number(_0x24da11),_0x23b70a);_0x42845e&&_0x42845e instanceof a[_0x4c2480(0x18c)]&&this['_setupSubUnitSync'](_0x42845e);}async[_0x57a25a(0x2a4)](_0x500088){const _0xafa122=_0x57a25a;await this[_0xafa122(0x262)](_0x500088),_0x500088[_0xafa122(0x1cb)][_0xafa122(0x25e)](d[_0xafa122(0x13c)](this[_0xafa122(0x2ed)]))[_0xafa122(0x305)](_0x2446f2=>{_0x2446f2&&this['_updateURLWithCurrentState'](_0x2446f2);}),this[_0xafa122(0x202)][_0xafa122(0x12a)]['pipe'](d['takeUntil'](this[_0xafa122(0x2ed)]))[_0xafa122(0x305)](()=>this['_updateSubUnitFromURLParams'](_0x500088));}[_0x57a25a(0xb3)](_0x39431d,_0x3cb14a=!0x1){const _0x5c748f=_0x57a25a,_0x25877a=this[_0x5c748f(0x202)][_0x5c748f(0xd0)](_0x5c748f(0x260));_0x39431d[_0x5c748f(0xff)]()!==_0x25877a&&this['_urlService'][_0x5c748f(0x16e)](_0x5c748f(0x260),_0x39431d[_0x5c748f(0xff)](),_0x3cb14a);}async[_0x57a25a(0x262)](_0x543a22){const _0x3100bb=_0x57a25a;var _0x1dc73e;const _0x2ec23c=this['_urlService'][_0x3100bb(0xd0)]('subunit');if(!_0x2ec23c||!_0x543a22[_0x3100bb(0x2d9)](_0x2ec23c)){const _0x8721ef=_0x543a22['getUnhiddenWorksheets']()[0x0],_0xb7509d=_0x543a22[_0x3100bb(0x2d9)](_0x8721ef);if(!_0xb7509d)return;this[_0x3100bb(0xb3)](_0xb7509d,!0x0),await this[_0x3100bb(0x2d0)]['executeCommand'](g[_0x3100bb(0x146)]['id'],{'unitId':_0x543a22['getUnitId'](),'subUnitId':_0x8721ef});return;}((_0x1dc73e=_0x543a22['getActiveSheet']())==null?void 0x0:_0x1dc73e[_0x3100bb(0xff)]())!==_0x2ec23c&&await this[_0x3100bb(0x2d0)][_0x3100bb(0x20c)](g[_0x3100bb(0x146)]['id'],{'unitId':_0x543a22['getUnitId'](),'subUnitId':_0x2ec23c});}},exports[_0x57a25a(0x280)]=jt([H(0x0,be),H(0x1,a[_0x57a25a(0x242)]),H(0x2,a[_0x57a25a(0x1a2)]),H(0x3,a[_0x57a25a(0x17f)](u[_0x57a25a(0x1c4)])),H(0x4,a[_0x57a25a(0x16d)](Ke[_0x57a25a(0x13e)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x57a25a(0xbe)],kt=(_0xe0490a,_0x39b083,_0x19e814,_0x5b904a)=>{const _0x3fee43=_0x57a25a;for(var _0x20afa2=_0x5b904a>0x1?void 0x0:_0x5b904a?Bt(_0x39b083,_0x19e814):_0x39b083,_0x4edc7c=_0xe0490a[_0x3fee43(0x25f)]-0x1,_0x7e6ee3;_0x4edc7c>=0x0;_0x4edc7c--)(_0x7e6ee3=_0xe0490a[_0x4edc7c])&&(_0x20afa2=_0x7e6ee3(_0x20afa2)||_0x20afa2);return _0x20afa2;},ce=(_0x200183,_0x20d8dc)=>(_0x5653ab,_0x348265)=>_0x20d8dc(_0x5653ab,_0x348265,_0x200183);let z=class{constructor(_0x2e616b,_0x1e976c,_0x4d3e1c){const _0x386e3a=_0x57a25a;this[_0x386e3a(0x24d)]=_0x2e616b,this[_0x386e3a(0xf1)]=_0x1e976c,this['_renderManagerService']=_0x4d3e1c;}[_0x57a25a(0x212)](_0x3ec157){const _0x261bb5=_0x57a25a;this[_0x261bb5(0x14b)](_0x3ec157),this[_0x261bb5(0x294)](_0x3ec157);}[_0x57a25a(0x1f3)](_0x54e719){const _0x3ae3cd=_0x57a25a,{unitID:_0x49836e}=_0x54e719,_0x3185dc=this['_renderManagerService'][_0x3ae3cd(0x19f)](_0x49836e)[_0x3ae3cd(0xd6)](b[_0x3ae3cd(0xc5)]),{redoCache:_0x272af6}=_0x3185dc[_0x3ae3cd(0x15d)]();if(_0x272af6[_0x3ae3cd(0x25f)]===0x0)return _0x54e719;let _0x343207=a['Tools']['deepClone'](_0x54e719[_0x3ae3cd(0x1b8)][0x0]);for(let _0x163096=0x0;_0x163096<_0x272af6[_0x3ae3cd(0x25f)];_0x163096++){const _0x4cafe2={'id':_0x3ae3cd(0x190),'params':{..._0x272af6[_0x163096]}},_0x31aeca=this[_0x3ae3cd(0xf1)][_0x3ae3cd(0x143)](_0x343207,_0x4cafe2,!0x1);if(m[_0x3ae3cd(0x251)](_0x31aeca))throw _0x31aeca[_0x3ae3cd(0x201)];_0x343207=_0x31aeca[_0x3ae3cd(0x292)];}return{...a[_0x3ae3cd(0x225)][_0x3ae3cd(0x12f)](_0x54e719),'mutations':[_0x343207]};}[_0x57a25a(0x14b)](_0x2c6b47){const _0xa22775=_0x57a25a,{unitID:_0x305860}=_0x2c6b47,_0x17553f=this[_0xa22775(0x29e)][_0xa22775(0x19f)](_0x305860)['with'](b[_0xa22775(0xc5)]),{undoCache:_0x463d32,redoCache:_0x42a6b6}=_0x17553f['getUndoRedoMutationParamsCache']();if(_0x463d32[_0xa22775(0x25f)]===0x0||_0x42a6b6[_0xa22775(0x25f)]===0x0)return;const _0x58e570=[],_0x2ad999=[];let _0x2ec350=a['Tools'][_0xa22775(0x12f)](_0x2c6b47[_0xa22775(0x1b8)][0x0]),_0xf36e9e=a['Tools'][_0xa22775(0x12f)](_0x2c6b47[_0xa22775(0x1b8)][0x0]);for(let _0x1dff31=_0x463d32[_0xa22775(0x25f)]-0x1;_0x1dff31>=0x0;_0x1dff31--){const _0xe67aed={'id':_0xa22775(0x190),'params':{..._0x463d32[_0x1dff31]}},_0x1aacdd={'id':_0xa22775(0x190),'params':{..._0x42a6b6[_0x1dff31]}},_0xd15f5f=this[_0xa22775(0xf1)][_0xa22775(0x143)](_0x2ec350,_0xe67aed,!0x1),_0x49460f=this[_0xa22775(0xf1)]['transformMutation'](_0xf36e9e,_0x1aacdd,!0x1);if(m[_0xa22775(0x251)](_0xd15f5f))throw _0xd15f5f[_0xa22775(0x201)];if(m[_0xa22775(0x251)](_0x49460f))throw _0x49460f[_0xa22775(0x201)];_0x58e570[_0xa22775(0x1bf)](_0xd15f5f['m2Prime'][_0xa22775(0x310)]),_0x2ad999[_0xa22775(0x1bf)](_0x49460f[_0xa22775(0x2e9)]['params']),_0x2ec350=_0xd15f5f[_0xa22775(0x292)],_0xf36e9e=_0x49460f[_0xa22775(0x292)];}_0x17553f[_0xa22775(0x19c)]({'undoCache':_0x58e570,'redoCache':_0x2ad999});}['_transformPreviousActiveRange'](_0x55a697){const _0x3de47c=_0x57a25a,{unitID:_0x26a138}=_0x55a697,_0x17aa3e=this[_0x3de47c(0x29e)][_0x3de47c(0x19f)](_0x26a138)[_0x3de47c(0xd6)](b['DocIMEInputManagerService']),_0x24d686=_0x17aa3e[_0x3de47c(0x2f5)]();if(_0x24d686==null)return;const _0x46d9fa=[{'id':_0x3de47c(0x190),'params':{'unitId':_0x55a697['unitID'],'actions':null,'textRanges':[_0x24d686]}}],_0x1242a3=this[_0x3de47c(0xf1)][_0x3de47c(0x1b1)](_0x55a697,_0x46d9fa);if(!m[_0x3de47c(0x2ce)](_0x1242a3))throw _0x1242a3[_0x3de47c(0x201)];const _0x194483=_0x1242a3['m2Prime'][0x0][_0x3de47c(0x310)][_0x3de47c(0x185)];Array[_0x3de47c(0x20a)](_0x194483)&&_0x194483[_0x3de47c(0x25f)]&&_0x17aa3e[_0x3de47c(0xc7)](_0x194483[0x0]);}};z=kt([ce(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),ce(0x1,m[_0x57a25a(0x26e)]),ce(0x2,p[_0x57a25a(0x238)])],z);var Ht=Object[_0x57a25a(0xbe)],Ft=(_0x520ddf,_0x213a3e,_0x3b1534,_0x5412af)=>{const _0x5a29a9=_0x57a25a;for(var _0xa155a2=_0x5412af>0x1?void 0x0:_0x5412af?Ht(_0x213a3e,_0x3b1534):_0x213a3e,_0x35ff4b=_0x520ddf[_0x5a29a9(0x25f)]-0x1,_0x3f5c75;_0x35ff4b>=0x0;_0x35ff4b--)(_0x3f5c75=_0x520ddf[_0x35ff4b])&&(_0xa155a2=_0x3f5c75(_0xa155a2)||_0xa155a2);return _0xa155a2;},le=(_0x304503,_0x13930f)=>(_0x17fe64,_0x43a44c)=>_0x13930f(_0x17fe64,_0x43a44c,_0x304503);let J=class{constructor(_0x137ec6,_0x18c935,_0x260c52){const _0x3c16e9=_0x57a25a;this[_0x3c16e9(0x24d)]=_0x137ec6,this[_0x3c16e9(0xf1)]=_0x18c935,this[_0x3c16e9(0x180)]=_0x260c52;}[_0x57a25a(0x109)](_0x165aab){const _0x3a46d6=_0x57a25a;this[_0x3a46d6(0x2f4)](_0x165aab);}['transformRemoteChangeset'](_0x2b743d){const _0x395a22=_0x57a25a,{unitID:_0x11b9e6}=_0x2b743d,{collaboration:_0x332b50}=this[_0x395a22(0x180)][_0x395a22(0xd9)](_0x11b9e6);if(_0x332b50[_0x395a22(0x25f)]===0x0)return _0x2b743d;let _0x3e9949=a[_0x395a22(0x225)][_0x395a22(0x12f)](_0x2b743d[_0x395a22(0x1b8)][0x0]);for(let _0x2d97fa=0x0;_0x2d97fa<_0x332b50['length'];_0x2d97fa++){const _0x55eac1={'id':_0x395a22(0x190),'params':{'unitId':_0x332b50[_0x2d97fa][_0x395a22(0x110)],..._0x332b50[_0x2d97fa][_0x395a22(0x14f)]}},_0x11e326=this[_0x395a22(0xf1)][_0x395a22(0x143)](_0x3e9949,_0x55eac1,!0x1);if(m[_0x395a22(0x251)](_0x11e326))throw _0x11e326[_0x395a22(0x201)];_0x3e9949=_0x11e326[_0x395a22(0x292)];}return{...a[_0x395a22(0x225)]['deepClone'](_0x2b743d),'mutations':[_0x3e9949]};}[_0x57a25a(0x2f4)](_0x5eda15){const _0x3f61fd=_0x57a25a,{unitID:_0x5d014f}=_0x5eda15,{history:_0x44ede3,collaboration:_0x4d7cac}=this['_docStateChangeManagerService'][_0x3f61fd(0xd9)](_0x5d014f);if(_0x44ede3[_0x3f61fd(0x25f)]===0x0&&_0x4d7cac['length']===0x0)return;const _0x2a85ee=[],_0x1fc795=[];let _0x188cc7=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15['mutations'][0x0]),_0x3fa276=a['Tools']['deepClone'](_0x5eda15[_0x3f61fd(0x1b8)][0x0]);for(let _0x327bbc=_0x44ede3['length']-0x1;_0x327bbc>=0x0;_0x327bbc--){const _0x514915={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44ede3[_0x327bbc][_0x3f61fd(0x110)],..._0x44ede3[_0x327bbc][_0x3f61fd(0x29a)]}},_0x3b0a19={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44ede3[_0x327bbc][_0x3f61fd(0x110)],..._0x44ede3[_0x327bbc]['redoState']}},_0x19be7c=this[_0x3f61fd(0xf1)][_0x3f61fd(0x143)](_0x188cc7,_0x514915,!0x1),_0x2659d6=this[_0x3f61fd(0xf1)][_0x3f61fd(0x143)](_0x3fa276,_0x3b0a19,!0x1);if(m['isTransformMutationFailure'](_0x19be7c))throw _0x19be7c['error'];if(m[_0x3f61fd(0x251)](_0x2659d6))throw _0x2659d6[_0x3f61fd(0x201)];_0x2a85ee[_0x3f61fd(0x1bf)]({..._0x44ede3[_0x327bbc],'undoState':_0x19be7c['m2Prime']['params'],'redoState':_0x2659d6[_0x3f61fd(0x2e9)][_0x3f61fd(0x310)]}),_0x188cc7=_0x19be7c['m1Prime'],_0x3fa276=_0x2659d6[_0x3f61fd(0x292)];}_0x188cc7=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15[_0x3f61fd(0x1b8)][0x0]),_0x3fa276=a[_0x3f61fd(0x225)][_0x3f61fd(0x12f)](_0x5eda15[_0x3f61fd(0x1b8)][0x0]);for(let _0x2df0fa=_0x4d7cac[_0x3f61fd(0x25f)]-0x1;_0x2df0fa>=0x0;_0x2df0fa--){const _0x15bc29={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4d7cac[_0x2df0fa]['unitId'],..._0x4d7cac[_0x2df0fa]['undoState']}},_0x2d7012={'id':_0x3f61fd(0x190),'params':{'unitId':_0x4d7cac[_0x2df0fa][_0x3f61fd(0x110)],..._0x4d7cac[_0x2df0fa][_0x3f61fd(0x14f)]}},_0x1b456d=this[_0x3f61fd(0xf1)]['transformMutation'](_0x188cc7,_0x15bc29,!0x1),_0x485e98=this[_0x3f61fd(0xf1)]['transformMutation'](_0x3fa276,_0x2d7012,!0x1);if(m[_0x3f61fd(0x251)](_0x1b456d))throw _0x1b456d['error'];if(m[_0x3f61fd(0x251)](_0x485e98))throw _0x485e98[_0x3f61fd(0x201)];_0x1fc795[_0x3f61fd(0x1bf)]({..._0x4d7cac[_0x2df0fa],'undoState':_0x1b456d[_0x3f61fd(0x2e9)]['params'],'redoState':_0x485e98['m2Prime'][_0x3f61fd(0x310)]}),_0x188cc7=_0x1b456d[_0x3f61fd(0x292)],_0x3fa276=_0x485e98[_0x3f61fd(0x292)];}this[_0x3f61fd(0x180)][_0x3f61fd(0x24c)](_0x5d014f,{'history':_0x2a85ee,'collaboration':_0x1fc795});}};J=Ft([le(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),le(0x1,m['ITransformService']),le(0x2,a[_0x57a25a(0x17f)](b[_0x57a25a(0x30f)]))],J);var Yt=Object[_0x57a25a(0xbe)],Wt=(_0x2abd09,_0x4df005,_0x864a11,_0x5e08fb)=>{for(var _0x3078c2=_0x5e08fb>0x1?void 0x0:_0x5e08fb?Yt(_0x4df005,_0x864a11):_0x4df005,_0x2bb61a=_0x2abd09['length']-0x1,_0x585145;_0x2bb61a>=0x0;_0x2bb61a--)(_0x585145=_0x2abd09[_0x2bb61a])&&(_0x3078c2=_0x585145(_0x3078c2)||_0x3078c2);return _0x3078c2;},Ne=(_0xed5638,_0x595f7b)=>(_0x57dbf5,_0x2c4d10)=>_0x595f7b(_0x57dbf5,_0x2c4d10,_0xed5638);let Z=class{constructor(_0x213cb6,_0x36f05c){const _0x244b6d=_0x57a25a;this[_0x244b6d(0x24d)]=_0x213cb6,this[_0x244b6d(0xf1)]=_0x36f05c;}['transformSelections'](_0x415aed){const _0x5051f8=_0x57a25a;var _0x12678c;const _0xc8205b=this[_0x5051f8(0x24d)][_0x5051f8(0x1dd)](Y['DocSelectionManagerService']),_0x35b308=(_0x12678c=_0xc8205b['getDocRanges']())!=null?_0x12678c:[];if(_0x35b308['length']===0x0)return;const _0x380ce4=_0x415aed[_0x5051f8(0x230)],_0x2323d6=[{'id':_0x5051f8(0x190),'params':{'unitId':_0x380ce4,'actions':null,'textRanges':_0x35b308}}],_0x2897cb=this[_0x5051f8(0xf1)][_0x5051f8(0x1b1)](_0x415aed,_0x2323d6);if(!m[_0x5051f8(0x2ce)](_0x2897cb))throw _0x2897cb[_0x5051f8(0x201)];const _0x18d822=_0x2897cb[_0x5051f8(0x2e9)][0x0][_0x5051f8(0x310)][_0x5051f8(0x185)];Array[_0x5051f8(0x20a)](_0x18d822)&&_0x18d822[_0x5051f8(0x25f)]&&_0xc8205b[_0x5051f8(0x273)](_0x18d822,{'unitId':_0x380ce4,'subUnitId':_0x380ce4},!0x1);}};Z=Wt([Ne(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),Ne(0x1,m[_0x57a25a(0x26e)])],Z);var Vt=Object[_0x57a25a(0xbe)],Xt=(_0x5ab375,_0x2e8ceb,_0x45f1f1,_0x186b51)=>{const _0x705cbf=_0x57a25a;for(var _0x23fcc6=_0x186b51>0x1?void 0x0:_0x186b51?Vt(_0x2e8ceb,_0x45f1f1):_0x2e8ceb,_0x24eabf=_0x5ab375[_0x705cbf(0x25f)]-0x1,_0x5203e6;_0x24eabf>=0x0;_0x24eabf--)(_0x5203e6=_0x5ab375[_0x24eabf])&&(_0x23fcc6=_0x5203e6(_0x23fcc6)||_0x23fcc6);return _0x23fcc6;},N=(_0x3e514e,_0x4573ac)=>(_0x5690c9,_0x4aecec)=>_0x4573ac(_0x5690c9,_0x4aecec,_0x3e514e);let Q=class extends a[_0x57a25a(0xe9)]{constructor(_0x32f907,_0x1b18c2,_0x1be965,_0xc728b6,_0x3874cb,_0x443489,_0x170bbd,_0x2e7ec5){const _0x48c0b7=_0x57a25a;super(),h(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus']['NOT_COLLAB'])),(this[_0x48c0b7(0x180)]=_0x32f907,this['_collaborationController']=_0x1b18c2,this[_0x48c0b7(0x15f)]=_0x1be965,this[_0x48c0b7(0x2b2)]=_0xc728b6,this[_0x48c0b7(0x2b1)]=_0x3874cb,this[_0x48c0b7(0x1f9)]=_0x443489,this[_0x48c0b7(0x1a1)]=_0x170bbd,this['_localeService']=_0x2e7ec5,this[_0x48c0b7(0x136)]());}[_0x57a25a(0x136)](){const _0x11528d=_0x57a25a;this[_0x11528d(0x293)](this[_0x11528d(0x133)][_0x11528d(0xfb)][_0x11528d(0x305)](_0x1cb526=>{const _0x52eb7b=_0x11528d,_0x1aad05=this[_0x52eb7b(0x180)][_0x52eb7b(0x14c)][_0x52eb7b(0x305)](_0x19408d=>{const _0x15d3d2=_0x52eb7b;if(_0x19408d==null)return;const {unitId:_0x24bdd1,redoState:_0x54757d,commandId:_0x3001c4}=_0x19408d;if(_0x24bdd1!==_0x1cb526[_0x15d3d2(0x230)])return;const _0x3f134={'id':_0x3001c4,'type':a[_0x15d3d2(0x1d9)][_0x15d3d2(0x156)],'params':{'unitId':_0x24bdd1,'actions':_0x54757d[_0x15d3d2(0x10e)],'textRanges':null}};_0x1cb526[_0x15d3d2(0x27c)](_0x3f134);});if(_0x1cb526[_0x52eb7b(0x293)](_0x1aad05),_0x1cb526 instanceof u[_0x52eb7b(0x26a)]){const _0x5d60e5={'onTransformIME':_0x531c42=>this['_docTransformIMECacheService'][_0x52eb7b(0x212)](_0x531c42),'onTransformState':_0x58b8cd=>this[_0x52eb7b(0x2b2)][_0x52eb7b(0x109)](_0x58b8cd),'onTransformSelections':_0x8d34f5=>this[_0x52eb7b(0x2b1)][_0x52eb7b(0x324)](_0x8d34f5),'onSyncEditingCollabCursor':_0x25e249=>this['_docSyncEditingCollabCursorService'][_0x52eb7b(0x159)](_0x25e249),'onTransformRemoteChangesetByIMECache':_0x144c10=>this[_0x52eb7b(0x15f)][_0x52eb7b(0x1f3)](_0x144c10),'onTransformRemoteChangesetByStateCache':_0x2d0784=>this[_0x52eb7b(0x2b2)][_0x52eb7b(0x1f3)](_0x2d0784)};_0x1cb526[_0x52eb7b(0x25a)](_0x5d60e5);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x57a25a(0x30f)])),N(0x1,a[_0x57a25a(0x17f)](u[_0x57a25a(0x274)])),N(0x2,a[_0x57a25a(0x17f)](z)),N(0x3,a[_0x57a25a(0x17f)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x57a25a(0x17f)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x57a25a(0x17f)](a[_0x57a25a(0x2d3)]))],Q);var Gt=Object[_0x57a25a(0xbe)],Kt=(_0x5704e0,_0x4f35b3,_0x237374,_0x231c4d)=>{for(var _0x196a2a=_0x231c4d>0x1?void 0x0:_0x231c4d?Gt(_0x4f35b3,_0x237374):_0x4f35b3,_0x5a3cf9=_0x5704e0['length']-0x1,_0x267cd3;_0x5a3cf9>=0x0;_0x5a3cf9--)(_0x267cd3=_0x5704e0[_0x5a3cf9])&&(_0x196a2a=_0x267cd3(_0x196a2a)||_0x196a2a);return _0x196a2a;},_e=(_0x2a053a,_0x4654e8)=>(_0xd5c2b,_0x4e40da)=>_0x4654e8(_0xd5c2b,_0x4e40da,_0x2a053a);let ge=class extends a[_0x57a25a(0xe9)]{constructor(_0x19dbf0,_0xd44c70,_0x36c586){const _0x2ef1b2=_0x57a25a;super(),h(this,_0x2ef1b2(0x2c3),new Map()),h(this,_0x2ef1b2(0x247),new Map()),h(this,'_disabled',!0x1),(this[_0x2ef1b2(0x218)]=_0x19dbf0,this[_0x2ef1b2(0x299)]=_0xd44c70,this[_0x2ef1b2(0x2bb)]=_0x36c586);}['disableLocalCache'](){const _0x26a1f0=_0x57a25a;this[_0x26a1f0(0x2f1)]=!0x0;}[_0x57a25a(0x10f)](){const _0x1cea46=_0x57a25a;this[_0x1cea46(0x2f1)]=!0x1;}get[_0x57a25a(0x137)](){const _0x262b72=_0x57a25a;return this[_0x262b72(0x247)];}[_0x57a25a(0x1eb)](){const _0x32029f=_0x57a25a;this[_0x32029f(0x162)]()[_0x32029f(0x107)](()=>super[_0x32029f(0x1eb)]());}async[_0x57a25a(0x1e5)](_0x441f1c){const _0x3ee456=_0x57a25a;return this[_0x3ee456(0x2f1)]?null:this['_localStorageService'][_0x3ee456(0x1c6)](u[_0x3ee456(0x1ad)](_0x441f1c));}async[_0x57a25a(0x1e2)](_0x534ba2,_0x3800cc){const _0x14c03e=_0x57a25a;return!!this[_0x14c03e(0x299)][_0x14c03e(0x286)](_0x534ba2,_0x3800cc);}['updateOfflineData'](_0x591553,_0x350a7f,_0x1fa5c7,_0x18f5c4){const _0x155be7=_0x57a25a,_0x212136=this[_0x155be7(0x2bb)]['getCurrentRevOfUnit'](_0x591553);this['_cachedData'][_0x155be7(0xb9)](_0x591553,{'unitID':_0x591553,'type':_0x350a7f,'awaitingChangeset':_0x1fa5c7,'mutations':_0x18f5c4,'rev':_0x212136}),this[_0x155be7(0x247)][_0x155be7(0x177)](_0x591553)||this[_0x155be7(0x199)](_0x591553);}[_0x57a25a(0x199)](_0x909dd4){const _0x2bd1ca=_0x57a25a,_0x4843c8=this[_0x2bd1ca(0x2af)]();_0x4843c8===0x0?this[_0x2bd1ca(0xf5)](_0x909dd4):this['_saveTaskMap'][_0x2bd1ca(0xb9)](_0x909dd4,setTimeout(()=>this[_0x2bd1ca(0xf5)](_0x909dd4),_0x4843c8));}[_0x57a25a(0x2af)](){const _0x3311ab=_0x57a25a;var _0x1571aa;return(_0x1571aa=this[_0x3311ab(0x218)][_0x3311ab(0x1fa)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x1571aa:u[_0x3311ab(0x124)];}[_0x57a25a(0xf5)](_0x48a84a){const _0x1203b8=_0x57a25a,_0x29f658=this[_0x1203b8(0x247)][_0x1203b8(0x1dd)](_0x48a84a);return _0x29f658!==void 0x0&&window[_0x1203b8(0x1d2)](_0x29f658),this[_0x1203b8(0x299)][_0x1203b8(0x286)](u[_0x1203b8(0x1ad)](_0x48a84a),this['_cachedData'][_0x1203b8(0x1dd)](_0x48a84a))[_0x1203b8(0x107)](()=>this[_0x1203b8(0x247)][_0x1203b8(0x234)](_0x48a84a));}async[_0x57a25a(0x162)](){const _0x1eccbe=_0x57a25a,_0x107dd4=[];this[_0x1eccbe(0x247)][_0x1eccbe(0x2ef)]((_0x27f944,_0x43b7d5)=>{const _0x1768cd=_0x1eccbe;window[_0x1768cd(0x1d2)](_0x27f944),_0x107dd4[_0x1768cd(0x11f)](this[_0x1768cd(0xf5)](_0x43b7d5)[_0x1768cd(0x107)](()=>{const _0x4e9f25=_0x1768cd;this[_0x4e9f25(0x247)]['delete'](_0x43b7d5);}));}),await Promise[_0x1eccbe(0x2bc)](_0x107dd4);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x57a25a(0x154)]),_e(0x2,a[_0x57a25a(0x17f)](m[_0x57a25a(0xef)]))],ge);class je extends a[_0x57a25a(0x1c0)]{constructor(){const _0x55988c=_0x57a25a;super(),h(this,_0x55988c(0x12a)),this[_0x55988c(0x12a)]=d[_0x55988c(0x214)](window,'popstate')[_0x55988c(0x25e)](d['takeUntil'](this[_0x55988c(0x2ed)]),d[_0x55988c(0x327)](0x1),d['mapTo'](void 0x0));}[_0x57a25a(0x16e)](_0x4fdb01,_0x4d67e4,_0x5d6057=!0x1){const _0x47f882=_0x57a25a,_0x5ce939=new URL(window['location'][_0x47f882(0x13d)]);_0x5ce939[_0x47f882(0x198)][_0x47f882(0xb9)](_0x4fdb01,_0x4d67e4),_0x5d6057?window['history'][_0x47f882(0xd2)]('','',_0x5ce939['toString']()):window[_0x47f882(0x1f0)][_0x47f882(0x2a0)]('','',_0x5ce939[_0x47f882(0x229)]());}['removeParam'](_0x393107,_0x634fc4=!0x1){const _0x11f7c5=_0x57a25a,_0x210ea4=new URL(window[_0x11f7c5(0x228)]['href']);_0x210ea4[_0x11f7c5(0x198)][_0x11f7c5(0x234)](_0x393107),_0x634fc4?window['history'][_0x11f7c5(0xd2)]('','',_0x210ea4[_0x11f7c5(0x229)]()):window[_0x11f7c5(0x1f0)][_0x11f7c5(0x2a0)]('','',_0x210ea4['toString']());}[_0x57a25a(0xd0)](_0x3b9950){const _0x31d621=_0x57a25a;var _0x5d665b;return(_0x5d665b=new URL(window['location'][_0x31d621(0x13d)])[_0x31d621(0x198)]['get'](_0x3b9950))!=null?_0x5d665b:void 0x0;}}var qt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x1be4f9,_0x57fd2f,_0x1e6c80)=>_0x57fd2f in _0x1be4f9?qt(_0x1be4f9,_0x57fd2f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e6c80}):_0x1be4f9[_0x57fd2f]=_0x1e6c80,Zt=(_0x9cb9dc,_0x5684f1,_0x394a14,_0x1d7991)=>{const _0x240bb5=_0x57a25a;for(var _0x431723=_0x1d7991>0x1?void 0x0:_0x1d7991?zt(_0x5684f1,_0x394a14):_0x5684f1,_0x2c8f6f=_0x9cb9dc[_0x240bb5(0x25f)]-0x1,_0x47aa9e;_0x2c8f6f>=0x0;_0x2c8f6f--)(_0x47aa9e=_0x9cb9dc[_0x2c8f6f])&&(_0x431723=_0x47aa9e(_0x431723)||_0x431723);return _0x431723;},he=(_0x34302f,_0x392594)=>(_0x12ec1d,_0x26a6f3)=>_0x392594(_0x12ec1d,_0x26a6f3,_0x34302f),Qt=(_0x5ce339,_0x395eb0,_0x5d4e0e)=>Jt(_0x5ce339,_0x395eb0+'',_0x5d4e0e);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0xea1e1=Ue,_0x30411d,_0x352fbf,_0x4684d6){const _0x57efa6=_0x57a25a;super(),this[_0x57efa6(0x1c7)]=_0xea1e1,this[_0x57efa6(0x29e)]=_0x30411d,this[_0x57efa6(0x24d)]=_0x352fbf,this[_0x57efa6(0x218)]=_0x4684d6;const {..._0x4992e4}=a[_0x57efa6(0x21d)]({},Ue,this[_0x57efa6(0x1c7)]);this['_configService'][_0x57efa6(0x183)]($t,_0x4992e4);}['onStarting'](){const _0x42a53a=_0x57a25a;this['_registerDependencies'](),this[_0x42a53a(0x216)]();}[_0x57a25a(0x28b)](){const _0x2700fa=_0x57a25a;this[_0x2700fa(0x105)]();}['_registerDependencies'](){const _0x329a88=_0x57a25a;var _0x49e606;const _0x5f44b1=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x329a88(0x236)],{'useClass':G['WebSocketService']}],[u[_0x329a88(0x285)],{'useClass':ge}],[exports[_0x329a88(0xfc)]],[Q],[q],[x],[de],[exports[_0x329a88(0x280)]]];a['registerDependencies'](this[_0x329a88(0x24d)],a[_0x329a88(0x2a8)](_0x5f44b1,(_0x49e606=this['_config'])==null?void 0x0:_0x49e606[_0x329a88(0x129)]));}[_0x57a25a(0x105)](){const _0x37c00e=_0x57a25a;this['disposeWithMe'](this[_0x37c00e(0x29e)][_0x37c00e(0x28e)](a[_0x37c00e(0x2a9)]['UNIVER_DOC'],[Ie])),this[_0x37c00e(0x293)](this[_0x37c00e(0x29e)][_0x37c00e(0x28e)](a[_0x37c00e(0x2a9)][_0x37c00e(0x248)],[ve]));}[_0x57a25a(0x216)](){const _0x565756=_0x57a25a;a[_0x565756(0x112)](this['_injector'],[[x],[exports[_0x565756(0xfc)]],[Q],[q],[exports[_0x565756(0x280)]]]);}},Qt(exports[_0x57a25a(0x175)],_0x57a25a(0x19e),es),exports[_0x57a25a(0x175)]=Zt([a[_0x57a25a(0x27b)](u[_0x57a25a(0x123)]),he(0x1,p[_0x57a25a(0x238)]),he(0x2,a[_0x57a25a(0x17f)](a['Injector'])),he(0x3,a[_0x57a25a(0x18b)])],exports[_0x57a25a(0x175)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x53934e,_0x29473c,_0x1cdf6b,_0x1a6737)=>{for(var _0x5a6a73=_0x1a6737>0x1?void 0x0:_0x1a6737?ts(_0x29473c,_0x1cdf6b):_0x29473c,_0x1bf35e=_0x53934e['length']-0x1,_0x28b770;_0x1bf35e>=0x0;_0x1bf35e--)(_0x28b770=_0x53934e[_0x1bf35e])&&(_0x5a6a73=_0x28b770(_0x5a6a73)||_0x5a6a73);return _0x5a6a73;},F=(_0x17c36b,_0x3ad579)=>(_0x551b2d,_0x347525)=>_0x3ad579(_0x551b2d,_0x347525,_0x17c36b);exports[_0x57a25a(0x16c)]=class extends u[_0x57a25a(0x204)]{constructor(_0x15a44d,_0x37ae0c,_0x50c056,_0x1f5247,_0x1efb57){super(_0x15a44d,_0x37ae0c,_0x50c056,_0x1f5247,_0x1efb57);}async[_0x57a25a(0x27e)](_0x23ac61){const _0x282aaf=await this['_getSessionTicket'](),_0x4a4e3d=this['_createSocketURL'](_0x23ac61,_0x282aaf);return this['_doCreateSocket'](_0x4a4e3d);}[_0x57a25a(0x1a9)](_0x228ab3,_0x44cd8b){const _0x200693=_0x57a25a,_0x16e49f=typeof window>'u'?new URL(_0x228ab3):new URL(_0x228ab3,window['location'][_0x200693(0x2cd)]);_0x16e49f[_0x200693(0x198)][_0x200693(0xb9)](_0x200693(0x306),_0x44cd8b);const _0x13119c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x13119c[_0x200693(0x1dd)](_0x200693(0x179))&&_0x16e49f[_0x200693(0x198)]['set'](_0x200693(0x179),_0x13119c['get']('runId')),_0x16e49f[_0x200693(0x229)]();}async[_0x57a25a(0x2ba)](){const _0x3d7a40=_0x57a25a;var _0x2c9287,_0x20a308,_0x47d59d;const _0x3a7dac=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x8defca=(_0x2c9287=_0x3a7dac==null?void 0x0:_0x3a7dac[_0x3d7a40(0x276)])!=null?_0x2c9287:u[_0x3d7a40(0x1d8)];return(_0x47d59d=(_0x20a308=(await this['_httpService'][_0x3d7a40(0x1dd)](_0x8defca,{'headers':{'Content-Type':_0x3d7a40(0x103)}}))['body'])==null?void 0x0:_0x20a308['ticket'])!=null?_0x47d59d:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x57a25a(0x17f)](a[_0x57a25a(0xb1)])),F(0x1,a[_0x57a25a(0x17f)](G[_0x57a25a(0x1c9)])),F(0x2,a[_0x57a25a(0x18b)]),F(0x3,a[_0x57a25a(0x242)]),F(0x4,m[_0x57a25a(0x2db)])],exports[_0x57a25a(0x16c)]);const Me=0x7530,Le=_0x57a25a(0x155);class is extends a[_0x57a25a(0xe9)]{constructor(){const _0xec45d9=_0x57a25a;super(),h(this,'_id',a[_0xec45d9(0xce)]()),h(this,_0xec45d9(0x2c7),new Set()),h(this,_0xec45d9(0x1ae),new Map()),h(this,'_heartbeatTimer',null),h(this,_0xec45d9(0x1ef),new Map()),h(this,_0xec45d9(0x232),new Map()),this['_init']();}['dispose'](){const _0x5c87cf=_0x57a25a;super[_0x5c87cf(0x1eb)](),this[_0x5c87cf(0x1ef)][_0x5c87cf(0x2ef)]((_0x26e197,_0x296330)=>this[_0x5c87cf(0x2d7)](_0x296330)),this[_0x5c87cf(0x15b)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x12b766){const _0x2b8629=_0x57a25a;return this[_0x2b8629(0x1c2)](_0x12b766)['pipe'](d[_0x2b8629(0x1b4)]());}[_0x57a25a(0x30b)](_0x1f55d8){const _0x2e19ec=_0x57a25a;this[_0x2e19ec(0x2c7)][_0x2e19ec(0x2a5)]===0x0&&this[_0x2e19ec(0x125)](),this['_selfUnitIDs'][_0x2e19ec(0xdb)](_0x1f55d8),this[_0x2e19ec(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1f55d8],'isForwarded':!0x1});}['disposeUnit'](_0x36e692){const _0x20e4fb=_0x57a25a;this[_0x20e4fb(0x2c7)][_0x20e4fb(0x234)](_0x36e692),this[_0x20e4fb(0x2c7)]['size']===0x0&&this[_0x20e4fb(0x15b)]&&window[_0x20e4fb(0x2f8)](this[_0x20e4fb(0x15b)]);}[_0x57a25a(0x170)](){const _0x5ca928=_0x57a25a;this[_0x5ca928(0x293)](a[_0x5ca928(0x32b)](d['fromEvent'](window,'storage')['subscribe'](_0xa34e7f=>{const _0x5c053d=_0x5ca928;if(_0xa34e7f['key']!==Le||!_0xa34e7f['newValue'])return;const _0x2ccb61=JSON[_0x5c053d(0x2e8)](_0xa34e7f['newValue']);this[_0x5c053d(0x2b7)](_0x2ccb61);}))),window[_0x5ca928(0x158)]('unload',()=>this[_0x5ca928(0x254)]({'type':0x1,'memberID':this[_0x5ca928(0x1a0)],'unitIDs':Array[_0x5ca928(0x2e6)](this[_0x5ca928(0x2c7)])}));}[_0x57a25a(0x2b7)](_0xa404f8){const _0x277b0f=_0x57a25a;switch(_0xa404f8[_0x277b0f(0x258)]){case 0x0:this['_handleJoinEvent'](_0xa404f8);break;case 0x1:this['_handleLeaveEvent'](_0xa404f8);break;case 0x2:this[_0x277b0f(0x22d)](_0xa404f8);break;}}['_handleJoinEvent'](_0x44b703){const _0xac5d2b=_0x57a25a,{unitIDs:_0x5bc339,memberID:_0x1d0b1a,isForwarded:_0xad8e51}=_0x44b703;_0x5bc339[_0xac5d2b(0x2ef)](_0x4c69a6=>{const _0x8a8059=_0xac5d2b;if(!_0xad8e51&&this[_0x8a8059(0x1ae)]['has'](_0x4c69a6)&&this[_0x8a8059(0x1c2)](_0x4c69a6)[_0x8a8059(0x28d)](u[_0x8a8059(0xb2)][_0x8a8059(0x22f)]),!this[_0x8a8059(0x1ae)][_0x8a8059(0x177)](_0x4c69a6)||!this[_0x8a8059(0x1ae)][_0x8a8059(0x1dd)](_0x4c69a6)[_0x8a8059(0x177)](_0x1d0b1a)){const _0x3f3a37=this[_0x8a8059(0x1ae)][_0x8a8059(0x1dd)](_0x4c69a6)||new Set();_0x3f3a37[_0x8a8059(0xdb)](_0x1d0b1a),this[_0x8a8059(0x1ae)]['set'](_0x4c69a6,_0x3f3a37),this['_scheduleClearOtherTimer'](_0x1d0b1a);}}),_0xad8e51||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xac5d2b(0x2c7)]],'isForwarded':!0x0});}[_0x57a25a(0x16b)](_0x5094b2){const _0x249c20=_0x57a25a;this['_removeClearOtherTimer'](_0x5094b2);const _0x13a64c=window[_0x249c20(0x249)](()=>{const _0x3616ea=_0x249c20;this[_0x3616ea(0x1ae)]['forEach'](_0x5ac47b=>{const _0x52ae08=_0x3616ea;_0x5ac47b[_0x52ae08(0x234)](_0x5094b2);});},Me*0x2);this['_clearOtherTimers'][_0x249c20(0xb9)](_0x5094b2,_0x13a64c);}['_removeClearOtherTimer'](_0x4e6792){const _0x2dd9c1=_0x57a25a;if(this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0x177)](_0x4e6792)){const _0x59af9b=this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0x1dd)](_0x4e6792);_0x59af9b&&window[_0x2dd9c1(0x1d2)](_0x59af9b),this[_0x2dd9c1(0x1ef)][_0x2dd9c1(0xb9)](_0x4e6792,null);}}[_0x57a25a(0xb5)](_0xae0203){const _0x219e28=_0x57a25a,{memberID:_0x14fb4d,unitIDs:_0x2f6487}=_0xae0203;_0x2f6487[_0x219e28(0x2ef)](_0x2d7c1e=>{const _0x2248af=_0x219e28;var _0x3a6146;const _0x160ba0=this[_0x2248af(0x1ae)][_0x2248af(0x1dd)](_0x2d7c1e);_0x160ba0&&(_0x160ba0[_0x2248af(0x234)](_0x14fb4d),(_0x3a6146=this[_0x2248af(0x1c2)](_0x2d7c1e))==null||_0x3a6146[_0x2248af(0x28d)](_0x160ba0[_0x2248af(0x2a5)]===0x0?u[_0x2248af(0xb2)][_0x2248af(0x311)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x219e28(0x2d7)](_0x14fb4d);}['_handleHeartbeatEvent'](_0x265b0f){const _0x3e8eb2=_0x57a25a;this[_0x3e8eb2(0x16b)](_0x265b0f['memberID']);}[_0x57a25a(0x254)](_0x33af4c){const _0x13653f=_0x57a25a;localStorage[_0x13653f(0x286)](Le,JSON[_0x13653f(0x1d4)](_0x33af4c));}[_0x57a25a(0x125)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x14f0ba=_0x1cac;this[_0x14f0ba(0x254)]({'type':0x2,'memberID':this[_0x14f0ba(0x1a0)]});},Me);}['_ensureSubject'](_0x43e1f0){const _0x4cd701=_0x57a25a;return this[_0x4cd701(0x232)][_0x4cd701(0x177)](_0x43e1f0)||this['_unitStatus'][_0x4cd701(0xb9)](_0x43e1f0,new d[(_0x4cd701(0x290))](u[_0x4cd701(0xb2)][_0x4cd701(0x311)])),this['_unitStatus'][_0x4cd701(0x1dd)](_0x43e1f0);}}var Be=(_0x843785=>(_0x843785[_0x843785[_0x57a25a(0x181)]=0x0]=_0x57a25a(0x181),_0x843785[_0x843785['OK']=0x1]='OK',_0x843785[_0x843785['INTERNAL_ERROR']=0x2]=_0x57a25a(0x288),_0x843785[_0x843785[_0x57a25a(0x131)]=0x3]=_0x57a25a(0x131),_0x843785[_0x843785[_0x57a25a(0x321)]=0x4]='NOT_FOUND',_0x843785[_0x843785['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x843785[_0x843785[_0x57a25a(0x1bd)]=0x6]=_0x57a25a(0x1bd),_0x843785[_0x843785[_0x57a25a(0xf2)]=0x7]=_0x57a25a(0xf2),_0x843785[_0x843785[_0x57a25a(0x11b)]=0x8]=_0x57a25a(0x11b),_0x843785[_0x843785[_0x57a25a(0x235)]=0x9]=_0x57a25a(0x235),_0x843785[_0x843785[_0x57a25a(0x127)]=0xa]='LOGIN_FAILED',_0x843785[_0x843785[_0x57a25a(0x14d)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x843785[_0x843785['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x57a25a(0x134),_0x843785[_0x843785[_0x57a25a(0x13a)]=0x1772]=_0x57a25a(0x13a),_0x843785[_0x843785[_0x57a25a(0x211)]=0x1773]=_0x57a25a(0x211),_0x843785[_0x843785[_0x57a25a(0x297)]=0x1b59]=_0x57a25a(0x297),_0x843785[_0x843785[_0x57a25a(0x2f0)]=0x1b5a]=_0x57a25a(0x2f0),_0x843785[_0x843785['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x57a25a(0x1c3),_0x843785[_0x843785[_0x57a25a(0xde)]=0x1b5c]=_0x57a25a(0xde),_0x843785[_0x843785[_0x57a25a(0x141)]=0x1b5d]=_0x57a25a(0x141),_0x843785[_0x843785[_0x57a25a(0x2e5)]=0x1f41]=_0x57a25a(0x2e5),_0x843785[_0x843785[_0x57a25a(0x26d)]=0x2329]=_0x57a25a(0x26d),_0x843785[_0x843785[_0x57a25a(0x28c)]=0x232a]=_0x57a25a(0x28c),_0x843785[_0x843785[_0x57a25a(0x2c5)]=0x232b]=_0x57a25a(0x2c5),_0x843785[_0x843785['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x57a25a(0x128),_0x843785[_0x843785[_0x57a25a(0x210)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x843785[_0x843785[_0x57a25a(0x1c5)]=0x2711]=_0x57a25a(0x1c5),_0x843785[_0x843785[_0x57a25a(0xf3)]=0x2712]=_0x57a25a(0xf3),_0x843785[_0x843785[_0x57a25a(0x206)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x843785[_0x843785[_0x57a25a(0x207)]=0x2714]=_0x57a25a(0x207),_0x843785[_0x843785['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x843785[_0x843785[_0x57a25a(0x1b2)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x843785[_0x843785['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x57a25a(0x1d3),_0x843785[_0x843785['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x843785[_0x843785['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x57a25a(0x189),_0x843785[_0x843785[_0x57a25a(0x17a)]=0x271f]=_0x57a25a(0x17a),_0x843785[_0x843785[_0x57a25a(0x21b)]=0x2af9]=_0x57a25a(0x21b),_0x843785[_0x843785[_0x57a25a(0xd5)]=0x2ee1]=_0x57a25a(0xd5),_0x843785[_0x843785[_0x57a25a(0x22e)]=0x2ee2]=_0x57a25a(0x22e),_0x843785[_0x843785[_0x57a25a(0x20e)]=0x2ee3]=_0x57a25a(0x20e),_0x843785[_0x843785['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x843785[_0x843785[_0x57a25a(0xf4)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x843785[_0x843785[_0x57a25a(0x231)]=0x32c9]=_0x57a25a(0x231),_0x843785[_0x843785['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x843785[_0x843785['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x57a25a(0x1a8),_0x843785[_0x843785[_0x57a25a(0x188)]=-0x1]=_0x57a25a(0x188),_0x843785))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x196172,_0x82f832,_0x17a598,_0x281e57)=>{const _0x239889=_0x57a25a;for(var _0x29150f=_0x281e57>0x1?void 0x0:_0x281e57?ns(_0x82f832,_0x17a598):_0x82f832,_0x135c0a=_0x196172[_0x239889(0x25f)]-0x1,_0x2eac87;_0x135c0a>=0x0;_0x135c0a--)(_0x2eac87=_0x196172[_0x135c0a])&&(_0x29150f=_0x2eac87(_0x29150f)||_0x29150f);return _0x29150f;},ue=(_0x2e8faa,_0x2ca760)=>(_0x2718a9,_0x58a66b)=>_0x2ca760(_0x2718a9,_0x58a66b,_0x2e8faa);exports['RemoteUniscriptService']=class extends a[_0x57a25a(0xe9)]{constructor(_0x26ca84,_0x3eae87,_0x37296b){const _0x13f91b=_0x57a25a;super(),this['_instanceService']=_0x26ca84,this[_0x13f91b(0x12d)]=_0x3eae87,this[_0x13f91b(0x218)]=_0x37296b;}async[_0x57a25a(0x245)](_0x37a283,_0x4c4cd3,_0x31749c,..._0x87c2f7){const _0x4c1da5=_0x57a25a;var _0x19f9ad,_0x5d3b27,_0x3c142f,_0x50f68d;const _0x5ab5cf=this[_0x4c1da5(0x2a3)][_0x4c1da5(0x171)]();if(!_0x5ab5cf)throw new Error(_0x4c1da5(0x174));const _0x540557=((_0x19f9ad=this['_configService'][_0x4c1da5(0x1fa)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x19f9ad:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x37a283+_0x4c1da5(0xe3)+_0x4c4cd3,_0x25ae01=new URL(window[_0x4c1da5(0x228)]['href']),_0x53819b={'scriptId':_0x37a283,'runId':(_0x5d3b27=_0x25ae01[_0x4c1da5(0x198)][_0x4c1da5(0x1dd)](_0x4c1da5(0x179)))!=null?_0x5d3b27:'','function':_0x4c4cd3,'unitId':_0x5ab5cf[_0x4c1da5(0x15c)](),'argsOfFunction':JSON[_0x4c1da5(0x1d4)](_0x87c2f7),'invokeId':(_0x3c142f=_0x31749c[_0x4c1da5(0x194)])!=null?_0x3c142f:'','executionId':(_0x50f68d=_0x31749c[_0x4c1da5(0xba)])!=null?_0x50f68d:''};try{const _0x1548ea=await this[_0x4c1da5(0x12d)][_0x4c1da5(0x2ca)](_0x540557,{'body':_0x53819b});return _0x1548ea['body'][_0x4c1da5(0x201)]&&_0x1548ea[_0x4c1da5(0x1b9)][_0x4c1da5(0x201)]['code']!==Be['OK']?_0x4c1da5(0x160):_0x1548ea['body'][_0x4c1da5(0xbb)];}catch{return _0x4c1da5(0x160);}}},exports[_0x57a25a(0x15a)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x57a25a(0x17f)](G[_0x57a25a(0x1c9)])),ue(0x2,a[_0x57a25a(0x18b)])],exports[_0x57a25a(0x15a)]),exports['CollaborationStatusDisplay']=xe,exports[_0x57a25a(0x319)]=be,exports['SheetCollabCursorShape']=Ae,exports[_0x57a25a(0x1a5)]=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x314074=_0x391f;(function(_0x6117de,_0x4208ef){const _0x401f04=_0x391f,_0x4883dc=_0x6117de();while(!![]){try{const _0x1f3b6c=parseInt(_0x401f04(0x26f))/0x1+-parseInt(_0x401f04(0x228))/0x2+-parseInt(_0x401f04(0x249))/0x3+parseInt(_0x401f04(0x1c6))/0x4*(-parseInt(_0x401f04(0x2cc))/0x5)+-parseInt(_0x401f04(0x1da))/0x6+parseInt(_0x401f04(0x177))/0x7*(parseInt(_0x401f04(0x1f4))/0x8)+-parseInt(_0x401f04(0x9b))/0x9*(-parseInt(_0x401f04(0x251))/0xa);if(_0x1f3b6c===_0x4208ef)break;else _0x4883dc['push'](_0x4883dc['shift']());}catch(_0x3b809f){_0x4883dc['push'](_0x4883dc['shift']());}}}(_0x34cf,0xaa2ce));var Ve=Object['defineProperty'],Xe=(_0x5b5e88,_0x4bd607,_0x59b5cf)=>_0x4bd607 in _0x5b5e88?Ve(_0x5b5e88,_0x4bd607,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59b5cf}):_0x5b5e88[_0x4bd607]=_0x59b5cf,h=(_0x3f5334,_0x41fb90,_0x3dde44)=>Xe(_0x3f5334,typeof _0x41fb90!=_0x314074(0x14b)?_0x41fb90+'':_0x41fb90,_0x3dde44);Object[_0x314074(0x2a0)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require(_0x314074(0x23a)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require(_0x314074(0x201)),b=require(_0x314074(0x148)),Ge=require(_0x314074(0x214)),d=require('rxjs'),Y=require(_0x314074(0x155)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x314074(0x167)),g=require(_0x314074(0x22f)),$=require(_0x314074(0x2a5)),X=require(_0x314074(0x2f1)),P=require(_0x314074(0x19b)),T=require(_0x314074(0x221)),D=require(_0x314074(0x29b)),M=require(_0x314074(0x191)),Ke=require(_0x314074(0x2b3));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x16933d,_0x45596d,_0x509ad1,_0x1915c4)=>{const _0x58dbca=_0x314074;for(var _0x1cbd1a=_0x1915c4>0x1?void 0x0:_0x1915c4?qe(_0x45596d,_0x509ad1):_0x45596d,_0x367413=_0x16933d[_0x58dbca(0xbe)]-0x1,_0x4c5da0;_0x367413>=0x0;_0x367413--)(_0x4c5da0=_0x16933d[_0x367413])&&(_0x1cbd1a=_0x4c5da0(_0x1cbd1a)||_0x1cbd1a);return _0x1cbd1a;},Te=(_0x471a43,_0x3c6ceb)=>(_0x37e286,_0x1f0aad)=>_0x3c6ceb(_0x37e286,_0x1f0aad,_0x471a43);let de=class extends a[_0x314074(0x13e)]{constructor(_0x32b079,_0x1780aa){const _0x30e0e9=_0x314074;super(),this['_docClipboardService']=_0x32b079,this[_0x30e0e9(0x2a4)]=_0x1780aa,this[_0x30e0e9(0x121)]();}[_0x314074(0x121)](){const _0x2ccb89=_0x314074,_0x75df28=this;this[_0x2ccb89(0x2af)](this[_0x2ccb89(0x157)]['addClipboardHook']({'onBeforePasteImage':async _0x4f604d=>{const _0x1dc804=await _0x75df28['_imageIoService']['saveImage'](_0x4f604d);return _0x1dc804?{'source':_0x1dc804['source'],'imageSourceType':_0x1dc804['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x314074(0x292)]),Te(0x1,Ge[_0x314074(0xd4)])],de);const Oe=[_0x314074(0x2e7),'jiqing.500','green.600',_0x314074(0x2f9),_0x314074(0x1e4),_0x314074(0xad)];class me extends a[_0x314074(0x14a)]{constructor(){const _0x358768=_0x314074;super(...arguments),h(this,_0x358768(0x24e),new Map()),h(this,_0x358768(0x2ec),0x0);}[_0x314074(0xa7)](_0xddba40){const _0xe20c7c=_0x314074;if(this['_assignedColors']['has'](_0xddba40))return this[_0xe20c7c(0x24e)][_0xe20c7c(0x176)](_0xddba40);const _0x43e84f=Oe[this[_0xe20c7c(0x2ec)]];return this['_colorIndex']=(this[_0xe20c7c(0x2ec)]+0x1)%Oe['length'],this[_0xe20c7c(0x24e)]['set'](_0xddba40,_0x43e84f),_0x43e84f;}}function Pe(_0x185af8){const _0x5ebec2=_0x314074;let _0x3fb6a5='';for(const _0x4426ff of _0x185af8){const {startOffset:_0x1e6dc3,endOffset:_0x586eb7,isActive:_0x381da7,rangeType:_0x9894df,segmentId:_0x1c1022,segmentPage:_0x1d62f5}=_0x4426ff;_0x3fb6a5[_0x5ebec2(0xbe)]&&(_0x3fb6a5+=','),_0x3fb6a5+=_0x1e6dc3+':'+_0x586eb7+':'+(_0x381da7?'1':'0')+':'+_0x9894df+':'+_0x1c1022+':'+_0x1d62f5;}return _0x3fb6a5;}function Je(_0x425ea5){const _0x3aaa1c=_0x314074,_0x29c0ed=_0x425ea5['split'](','),_0x1f2059=[];for(const _0x401260 of _0x29c0ed){const [_0x5ad741,_0x2d4eba,_0xa1c637,_0x33aa4d,_0xde6a9d,_0x5e1fdd]=_0x401260['split'](':');_0x1f2059[_0x3aaa1c(0x1fa)]({'startOffset':Number(_0x5ad741),'endOffset':Number(_0x2d4eba),'collapsed':_0x5ad741===_0x2d4eba,'isActive':_0xa1c637==='1','rangeType':_0x33aa4d===a['DOC_RANGE_TYPE'][_0x3aaa1c(0x282)]?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x3aaa1c(0x1fe)],'segmentId':typeof _0xde6a9d==_0x3aaa1c(0x10c)?String(_0xde6a9d):'','segmentPage':Number(_0x5e1fdd!=null?_0x5e1fdd:-0x1)});}return _0x1f2059['some'](_0x4c6f79=>_0x4c6f79['isActive'])||(_0x1f2059[0x0][_0x3aaa1c(0x240)]=!0x0),_0x1f2059;}class Ce extends a[_0x314074(0x13e)]{constructor(){const _0x1e448c=_0x314074;super(...arguments),h(this,'_collabCursorState$',new d[(_0x1e448c(0x1b3))](null)),h(this,_0x1e448c(0x203),this['_collabCursorState$'][_0x1e448c(0x1e9)]());}[_0x314074(0x186)](_0x4bd752){const _0x25aee4=_0x314074,{unitID:_0x3f039a,memberID:_0x563c1f,textRanges:_0x4781a5}=_0x4bd752,_0x1b50ac=Pe(_0x4781a5);if(_0x1b50ac==='')return;const _0x44204b={'unitID':_0x3f039a,'memberID':_0x563c1f,'selection':_0x1b50ac};this[_0x25aee4(0x2dd)][_0x25aee4(0x13c)](_0x44204b);}}var Ze=Object[_0x314074(0xb7)],Qe=(_0x3cc2c8,_0x519ae1,_0x5c069c,_0x3cdf67)=>{const _0x129ac7=_0x314074;for(var _0x418142=_0x3cdf67>0x1?void 0x0:_0x3cdf67?Ze(_0x519ae1,_0x5c069c):_0x519ae1,_0x2eb104=_0x3cc2c8[_0x129ac7(0xbe)]-0x1,_0x3ecad0;_0x2eb104>=0x0;_0x2eb104--)(_0x3ecad0=_0x3cc2c8[_0x2eb104])&&(_0x418142=_0x3ecad0(_0x418142)||_0x418142);return _0x418142;},L=(_0x191876,_0x53caa9)=>(_0x200472,_0x267359)=>_0x53caa9(_0x200472,_0x267359,_0x191876);const et=0x12c,tt=0x64;let fe=class extends a[_0x314074(0x13e)]{constructor(_0xe89d6c,_0x3ca576,_0x53d7a3,_0x379ccd,_0xa3ce7c,_0x1c637f,_0xb10491,_0x2f03e3,_0x42d815){const _0x1c4671=_0x314074;super(),h(this,'_online',!0x1),h(this,_0x1c4671(0x121),!0x1),h(this,_0x1c4671(0x1eb),new d['BehaviorSubject'](new Map())),h(this,_0x1c4671(0xfe),this['_cursorInfo$']['asObservable']()),h(this,'_roomMembers$',new d[(_0x1c4671(0x1b3))]([])),h(this,_0x1c4671(0x24b),this[_0x1c4671(0x16f)][_0x1c4671(0xb2)](d[_0x1c4671(0x22e)](et))),h(this,_0x1c4671(0x265),a[_0x1c4671(0xdd)](_0x1498c2=>{const _0x48f1c8=_0x1c4671,_0x424a84={'eventID':m[_0x48f1c8(0x226)][_0x48f1c8(0x19d)],'data':{'unitID':this[_0x48f1c8(0x1b9)],'memberID':this[_0x48f1c8(0x212)][_0x48f1c8(0x188)](),'selection':Pe(_0x1498c2)}};this[_0x48f1c8(0x212)][_0x48f1c8(0x285)](_0x424a84,this[_0x48f1c8(0x1b9)]);},tt)),(this[_0x1c4671(0x1b9)]=_0xe89d6c,this[_0x1c4671(0x212)]=_0x3ca576,this[_0x1c4671(0x1cf)]=_0x53d7a3,this[_0x1c4671(0x23f)]=_0x379ccd,this['_memberService']=_0xa3ce7c,this[_0x1c4671(0x2ff)]=_0x1c637f,this[_0x1c4671(0x231)]=_0xb10491,this[_0x1c4671(0x11f)]=_0x2f03e3,this[_0x1c4671(0x135)]=_0x42d815);}get[_0x314074(0x90)](){const _0x50f76=_0x314074;return this[_0x50f76(0x1eb)]['getValue']();}get[_0x314074(0xda)](){const _0x305432=_0x314074;return this[_0x305432(0x16f)][_0x305432(0x16b)]();}['dispose'](){const _0x7df62d=_0x314074;super[_0x7df62d(0x218)](),this[_0x7df62d(0x1eb)]['next'](new Map()),this[_0x7df62d(0x1eb)]['complete'](),this['_roomMembers$'][_0x7df62d(0x13c)]([]),this[_0x7df62d(0x16f)]['complete']();}[_0x314074(0x267)](){const _0x547df0=_0x314074;this[_0x547df0(0x121)]||(this[_0x547df0(0x121)]=!0x0,this[_0x547df0(0x212)][_0x547df0(0x19e)][_0x547df0(0xb2)](d[_0x547df0(0x1b7)](this['dispose$']))[_0x547df0(0x112)](_0x3376ed=>{const _0x4eed60=_0x547df0;_0x3376ed===u[_0x4eed60(0x11b)][_0x4eed60(0x2dc)]?this[_0x4eed60(0x2db)]():this[_0x4eed60(0x1ae)]();}),this[_0x547df0(0x212)][_0x547df0(0x151)][_0x547df0(0xb2)](d[_0x547df0(0x1b7)](this[_0x547df0(0xd2)]))[_0x547df0(0x112)](_0x6c4c35=>{const _0x1895b6=_0x547df0,_0x1c4fda=_0x6c4c35[_0x1895b6(0xa3)];_0x1c4fda===m['CollaborationEvent'][_0x1895b6(0x19d)]&&this[_0x1895b6(0x1d3)](_0x6c4c35),_0x1c4fda===m[_0x1895b6(0x226)][_0x1895b6(0x286)]&&this[_0x1895b6(0x24c)](_0x6c4c35);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x30b45f=>{const _0x1585a4=_0x547df0,_0x2406a1=_0x30b45f[_0x1585a4(0x239)];_0x2406a1!=null&&this[_0x1585a4(0x262)]&&_0x30b45f['id']===Y[_0x1585a4(0x259)]['id']&&_0x2406a1[_0x1585a4(0xe4)]===this[_0x1585a4(0x1b9)]&&_0x2406a1[_0x1585a4(0x1a3)]===!0x1&&_0x2406a1[_0x1585a4(0x2a9)][_0x1585a4(0xbe)]>0x0&&this[_0x1585a4(0x265)](_0x2406a1[_0x1585a4(0x2a9)]);})),this['_syncEditingCollabCursorService'][_0x547df0(0x203)]['pipe'](d[_0x547df0(0x1b7)](this[_0x547df0(0xd2)]))[_0x547df0(0x112)](_0x486c20=>{const _0x4dc02d=_0x547df0;if((_0x486c20==null?void 0x0:_0x486c20['unitID'])!==this[_0x4dc02d(0x1b9)])return;const _0x25a264={'eventID':m[_0x4dc02d(0x226)][_0x4dc02d(0x19d)],'data':_0x486c20};this[_0x4dc02d(0x1d3)](_0x25a264);}),this[_0x547df0(0x2af)](this[_0x547df0(0x135)]['onCommandExecuted'](_0x1b0802=>{const _0x183ea3=_0x547df0;if(_0x1b0802[_0x183ea3(0x239)]==null)return;const _0x42ab54=_0x1b0802['params'];if(_0x1b0802['id']!==Y[_0x183ea3(0x2d3)]['id']||_0x42ab54['unitId']!==this[_0x183ea3(0x1b9)])return;const _0x37d5c6={'id':'doc.mutation.rich-text-editing','params':_0x42ab54},_0x425d1d=this[_0x183ea3(0x90)];for(const [_0x590b2e,_0x470254]of _0x425d1d){const _0xe39f5d={'id':_0x183ea3(0x178),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x470254['ranges']}},_0x44b7f5=this[_0x183ea3(0x231)][_0x183ea3(0x1a8)](_0x37d5c6,_0xe39f5d,!0x1);if(m['isTransformMutationFailure'](_0x44b7f5))throw _0x44b7f5[_0x183ea3(0x2b5)];_0x425d1d[_0x183ea3(0x1bc)](_0x590b2e,{..._0x470254,'ranges':_0x44b7f5[_0x183ea3(0x2e4)][_0x183ea3(0x239)][_0x183ea3(0x2fe)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x425d1d);});})));}['_onCursorUpdate'](_0x2506ce){const _0x15aa57=_0x314074;var _0x4a85ab,_0x3be34c;const {memberID:_0x3c6c1c,selection:_0xad90c}=_0x2506ce[_0x15aa57(0xd1)],_0x5f417d=Je(_0xad90c),_0x1476da=(_0x3be34c=(_0x4a85ab=this[_0x15aa57(0x2ef)]['getMember'](this['unitID'],_0x3c6c1c))==null?void 0x0:_0x4a85ab['name'])!=null?_0x3be34c:_0x15aa57(0x2ea),_0x1fe788={'color':this[_0x15aa57(0x23f)][_0x15aa57(0xa7)](_0x3c6c1c),'name':_0x1476da,'ranges':_0x5f417d},_0x46b4a5=this[_0x15aa57(0x90)];_0x46b4a5['set'](_0x3c6c1c,_0x1fe788),this[_0x15aa57(0x1eb)][_0x15aa57(0x13c)](_0x46b4a5);}[_0x314074(0x24c)](_0x11b86e){const _0xaa2227=_0x314074,{memberID:_0x369076}=_0x11b86e['data'],_0x4cc54b=this[_0xaa2227(0x90)];_0x4cc54b['delete'](_0x369076),this[_0xaa2227(0x1eb)][_0xaa2227(0x13c)](_0x4cc54b);}['_toggleOnline'](){const _0x5ac1ba=_0x314074;var _0x306397;if(this['_online']=!0x0,((_0x306397=this[_0x5ac1ba(0x11f)]['getFocusedUnit']())==null?void 0x0:_0x306397['getUnitId']())!==this['unitID'])return;const _0xd52c0a=this[_0x5ac1ba(0x1cf)][_0x5ac1ba(0x176)](Y['DocSelectionManagerService'])['getDocRanges']();Array[_0x5ac1ba(0x2ab)](_0xd52c0a)&&_0xd52c0a[_0x5ac1ba(0xbe)]>0x0&&this[_0x5ac1ba(0x265)](_0xd52c0a);}[_0x314074(0x1ae)](){const _0x1cf1a5=_0x314074;this[_0x1cf1a5(0x262)]=!0x1;}};fe=Qe([L(0x2,a[_0x314074(0x1d5)](a['Injector'])),L(0x3,a[_0x314074(0x1d5)](me)),L(0x4,a[_0x314074(0x1d5)](u[_0x314074(0x130)])),L(0x5,a[_0x314074(0x1d5)](Ce)),L(0x6,m[_0x314074(0x131)]),L(0x7,a[_0x314074(0xb4)]),L(0x8,a[_0x314074(0x94)])],fe);var st=Object[_0x314074(0xb7)],it=(_0x5e366b,_0x89b749,_0x47cb8b,_0x52e719)=>{const _0x5468ec=_0x314074;for(var _0x1710bd=_0x52e719>0x1?void 0x0:_0x52e719?st(_0x89b749,_0x47cb8b):_0x89b749,_0x146df9=_0x5e366b[_0x5468ec(0xbe)]-0x1,_0x20025b;_0x146df9>=0x0;_0x146df9--)(_0x20025b=_0x5e366b[_0x146df9])&&(_0x1710bd=_0x20025b(_0x1710bd)||_0x1710bd);return _0x1710bd;},w=(_0x58a52c,_0x70ecea)=>(_0x5af6ab,_0x7b1581)=>_0x70ecea(_0x5af6ab,_0x7b1581,_0x58a52c);const nt=0x12c,rt=0x64,ot=()=>{let _0x5152bf=[],_0x2355e3=!0x1;return _0x52a372=>{const _0x912594=_0x391f;_0x5152bf[_0x912594(0x1fa)](_0x52a372),_0x2355e3||(_0x2355e3=!0x0,setTimeout(()=>{const _0x287d2d=_0x912594;_0x5152bf[_0x287d2d(0x1ca)](_0x1e5100=>_0x1e5100()),_0x5152bf=[],_0x2355e3=!0x1;}));};};let Se=class extends a[_0x314074(0x13e)]{constructor(_0x37af5b,_0x3134cd,_0x3f85f4,_0x5cccde,_0x4bf770,_0x637ef5,_0x2098f1,_0x23210c){const _0x32d809=_0x314074;super(),h(this,_0x32d809(0x262),!0x1),h(this,_0x32d809(0x121),!0x1),h(this,_0x32d809(0x1eb),new d[(_0x32d809(0x1b3))](new Map())),h(this,_0x32d809(0xfe),this[_0x32d809(0x1eb)][_0x32d809(0x1e9)]()),h(this,_0x32d809(0x16f),new d[(_0x32d809(0x1b3))]([])),h(this,_0x32d809(0x24b),this[_0x32d809(0x16f)]['pipe'](d[_0x32d809(0x22e)](nt))),h(this,_0x32d809(0x265),a['debounce']((_0x31e769,_0x53fbaf)=>{const _0x2040b1=_0x32d809,_0x2c8bd7={'eventID':m[_0x2040b1(0x226)][_0x2040b1(0x19d)],'data':{'unitID':this['unitID'],'memberID':this[_0x2040b1(0x212)]['getMemberID'](),'selection':Ee[_0x2040b1(0xc8)](_0x31e769,_0x53fbaf[_0x2040b1(0xd9)])}};this[_0x2040b1(0x212)][_0x2040b1(0x285)](_0x2c8bd7,this['unitID']);},rt)),(this[_0x32d809(0x1b9)]=_0x37af5b,this['_session']=_0x3134cd,this[_0x32d809(0x1cf)]=_0x3f85f4,this['_colorAssignService']=_0x5cccde,this[_0x32d809(0x2ef)]=_0x4bf770,this[_0x32d809(0x11f)]=_0x637ef5,this[_0x32d809(0x135)]=_0x2098f1,this[_0x32d809(0x28f)]=_0x23210c);}get[_0x314074(0x90)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x39a458=_0x314074;return this[_0x39a458(0x16f)][_0x39a458(0x16b)]();}['dispose'](){const _0x4522ea=_0x314074;super[_0x4522ea(0x218)](),this[_0x4522ea(0x1eb)][_0x4522ea(0x13c)](new Map()),this['_cursorInfo$']['complete'](),this[_0x4522ea(0x16f)][_0x4522ea(0x13c)]([]),this['_roomMembers$']['complete']();}[_0x314074(0x267)](){const _0x46889d=_0x314074;this[_0x46889d(0x121)]||(this[_0x46889d(0x121)]=!0x0,this[_0x46889d(0x212)][_0x46889d(0x19e)]['pipe'](d[_0x46889d(0x1b7)](this[_0x46889d(0xd2)]))[_0x46889d(0x112)](_0x342e81=>{const _0x9a360b=_0x46889d;_0x342e81===u[_0x9a360b(0x11b)][_0x9a360b(0x2dc)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x46889d(0x212)][_0x46889d(0x151)][_0x46889d(0xb2)](d['takeUntil'](this[_0x46889d(0xd2)]))[_0x46889d(0x112)](_0x39897c=>{const _0xdf0ff4=_0x46889d,_0x273649=_0x39897c[_0xdf0ff4(0xa3)];_0x273649===m[_0xdf0ff4(0x226)][_0xdf0ff4(0x19d)]&&this[_0xdf0ff4(0x1d3)](_0x39897c),_0x273649===m[_0xdf0ff4(0x226)][_0xdf0ff4(0x286)]&&this[_0xdf0ff4(0x24c)](_0x39897c);}),this[_0x46889d(0x11e)](),this[_0x46889d(0x2af)](this[_0x46889d(0x135)]['onCommandExecuted'](_0x3e93c9=>{const _0x26e350=_0x46889d;if(this['_online']&&_0x3e93c9['id']===g[_0x26e350(0x154)]['id']&&_0x3e93c9[_0x26e350(0x239)][_0x26e350(0xe4)]===this[_0x26e350(0x1b9)]){const _0x251260=_0x3e93c9[_0x26e350(0x239)];this[_0x26e350(0x265)](_0x251260[_0x26e350(0x15f)],_0x251260[_0x26e350(0x15d)][0x0]);}})));}[_0x314074(0x1d3)](_0x3963ea){const _0x376480=_0x314074;var _0x4f9f13,_0x1e5f29;const {memberID:_0x50fc10,selection:_0x6a1a3f}=_0x3963ea[_0x376480(0xd1)],{sheetName:_0x2f2926,range:_0x36bc9c}=Ee['deserializeRangeWithSheet'](_0x6a1a3f),_0x32e39e={'name':(_0x1e5f29=(_0x4f9f13=this['_memberService'][_0x376480(0x160)](this['unitID'],_0x50fc10))==null?void 0x0:_0x4f9f13[_0x376480(0x2f8)])!=null?_0x1e5f29:_0x376480(0x2ea),'range':this[_0x376480(0x25a)](_0x2f2926,_0x36bc9c),'sheetID':_0x2f2926,'color':this[_0x376480(0x23f)][_0x376480(0xa7)](_0x50fc10),'selection':_0x6a1a3f},_0x23e4dd=this['cursorInfo'];_0x23e4dd[_0x376480(0x1bc)](_0x50fc10,_0x32e39e),this[_0x376480(0x1eb)][_0x376480(0x13c)](_0x23e4dd);}[_0x314074(0x24c)](_0x586fb9){const _0x2a9c02=_0x314074,{memberID:_0x3a2791}=_0x586fb9['data'],_0x1dc1f3=this['cursorInfo'];_0x1dc1f3[_0x2a9c02(0x142)](_0x3a2791),this[_0x2a9c02(0x1eb)][_0x2a9c02(0x13c)](_0x1dc1f3);}['_getMergeRange'](_0x544060,_0x198155){const _0x334f9a=_0x314074;var _0x55e60e,_0x42a840;const _0x574d94=(_0x42a840=(_0x55e60e=this[_0x334f9a(0x11f)][_0x334f9a(0xfd)](this[_0x334f9a(0x1b9)]))==null?void 0x0:_0x55e60e[_0x334f9a(0x205)](_0x544060))==null?void 0x0:_0x42a840['getMergeData']();return(_0x574d94==null?void 0x0:_0x574d94['find'](_0x333c6e=>a['Rectangle'][_0x334f9a(0x162)](_0x333c6e,_0x198155)))||_0x198155;}[_0x314074(0x11e)](){const _0x2e8c69=_0x314074,_0x29d574=new a['DisposableCollection'](),_0x1f3abb=ot(),_0x3460a6=()=>{const _0x89ffc=_0x391f;_0x29d574[_0x89ffc(0x218)]();const _0x31e916=(_0x1559a9,_0x223e6c,_0x363a1f,_0x55c305)=>{const _0x56b5e2=_0x89ffc;let _0x1d85ca=[];switch(_0x1559a9['id']){case g[_0x56b5e2(0xf5)][_0x56b5e2(0x1ec)]:{_0x1d85ca=g[_0x56b5e2(0x1be)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0xae)]:{_0x1d85ca=g['handleDeleteRangeMoveUp'](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0xba)]:{_0x1d85ca=g[_0x56b5e2(0x141)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0x16d)]:{_0x1d85ca=g[_0x56b5e2(0x1c3)](_0x1559a9,_0x55c305);break;}case g['EffectRefRangId'][_0x56b5e2(0x1bf)]:{_0x1d85ca=g[_0x56b5e2(0x2a3)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0x1e2)]:{_0x1d85ca=g[_0x56b5e2(0x290)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0x2cf)]:{_0x1d85ca=g['handleMoveRange'](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0x264)]:{_0x1d85ca=g[_0x56b5e2(0x2e5)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)]['RemoveRowCommandId']:{_0x1d85ca=g['handleIRemoveRow'](_0x1559a9,_0x55c305);break;}}const _0x2b5e31=g['runRefRangeMutations'](_0x1d85ca,_0x55c305),_0x105f5b=this['cursorInfo'][_0x56b5e2(0x176)](_0x223e6c);if(_0x105f5b&&_0x2b5e31){const _0x43d5ef={..._0x105f5b,'range':_0x2b5e31};this[_0x56b5e2(0x90)][_0x56b5e2(0x1bc)](_0x223e6c,_0x43d5ef),_0x1f3abb(()=>{const _0xc1116b=_0x56b5e2,_0x23f2c9=this['_refRangeService'][_0xc1116b(0x99)](_0x2b5e31,_0x27d28d=>(_0x23f2c9['dispose'](),_0x31e916(_0x27d28d,_0x223e6c,_0x363a1f,_0x2b5e31)));_0x29d574[_0xc1116b(0x24a)](_0x23f2c9);});}return{'redos':[],'undos':[]};};this[_0x89ffc(0x90)][_0x89ffc(0x1ca)]((_0x1790de,_0x7d43c3)=>{const _0x5aa0d0=_0x89ffc,{range:_0x11cc35,sheetID:_0x505b9f}=_0x1790de,_0x516157=this['_refRangeService'][_0x5aa0d0(0x99)](_0x11cc35,_0x553ada=>(_0x516157[_0x5aa0d0(0x218)](),_0x31e916(_0x553ada,_0x7d43c3,_0x505b9f,_0x11cc35)));_0x29d574[_0x5aa0d0(0x24a)](_0x516157);});};this['disposeWithMe'](a[_0x2e8c69(0x2f7)](this[_0x2e8c69(0x1eb)]['subscribe'](()=>{_0x3460a6();})));}[_0x314074(0x2db)](){const _0x1ae3c7=_0x314074;var _0x3fda46,_0x1a06ab;if(this[_0x1ae3c7(0x262)]=!0x0,((_0x3fda46=this[_0x1ae3c7(0x11f)]['getFocusedUnit']())==null?void 0x0:_0x3fda46[_0x1ae3c7(0x302)]())!==this[_0x1ae3c7(0x1b9)])return;const _0x397c82=(_0x1a06ab=this[_0x1ae3c7(0x1cf)][_0x1ae3c7(0x176)](g[_0x1ae3c7(0x30a)])[_0x1ae3c7(0x215)]())==null?void 0x0:_0x1a06ab[0x0],_0x45cef3=this['_univerInstanceService'][_0x1ae3c7(0x27e)](a[_0x1ae3c7(0x273)][_0x1ae3c7(0x12b)])['getActiveSheet']();_0x397c82&&_0x45cef3&&this[_0x1ae3c7(0x265)](_0x45cef3[_0x1ae3c7(0xdc)](),_0x397c82);}['_toggleOffline'](){const _0x400ee3=_0x314074;this[_0x400ee3(0x262)]=!0x1;}};Se=it([w(0x2,a['Inject'](a['Injector'])),w(0x3,a['Inject'](me)),w(0x4,a[_0x314074(0x1d5)](u['MemberService'])),w(0x5,a[_0x314074(0xb4)]),w(0x6,a[_0x314074(0x94)]),w(0x7,a['Inject'](g[_0x314074(0x2c0)]))],Se);var at=Object[_0x314074(0xb7)],ct=(_0x2fc541,_0xc6c96,_0x282996,_0x172687)=>{const _0x5a8ab5=_0x314074;for(var _0x238c50=_0x172687>0x1?void 0x0:_0x172687?at(_0xc6c96,_0x282996):_0xc6c96,_0x10c363=_0x2fc541[_0x5a8ab5(0xbe)]-0x1,_0x310410;_0x10c363>=0x0;_0x10c363--)(_0x310410=_0x2fc541[_0x10c363])&&(_0x238c50=_0x310410(_0x238c50)||_0x238c50);return _0x238c50;},ie=(_0x151e3e,_0x185092)=>(_0x2b15ff,_0x3c4f3d)=>_0x185092(_0x2b15ff,_0x3c4f3d,_0x151e3e);let x=class extends a['RxDisposable']{constructor(_0x35bc62,_0x1210eb,_0x72ee63){const _0x7ee506=_0x314074;super(),h(this,'_entities',new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x7ee506(0x11f)]=_0x35bc62,this['_injector']=_0x1210eb,this['_collabSessionService']=_0x72ee63,this[_0x7ee506(0x121)]());}[_0x314074(0x218)](){const _0x16d3d8=_0x314074;super[_0x16d3d8(0x218)](),this[_0x16d3d8(0x219)][_0x16d3d8(0x1fb)](),this[_0x16d3d8(0x271)][_0x16d3d8(0x1ca)](_0x4f6a83=>_0x4f6a83[_0x16d3d8(0x218)]());}[_0x314074(0x2bb)](_0x24b59){const _0x688efe=_0x314074;return this['_entities'][_0x688efe(0x199)](_0x24b59)?this['_entities'][_0x688efe(0x176)](_0x24b59)['cursorInfo$']:this[_0x688efe(0x219)]['pipe'](d[_0x688efe(0x158)](_0x12f727=>_0x12f727[_0x688efe(0x1b9)]===_0x24b59),d[_0x688efe(0x134)](_0x23cc90=>_0x23cc90[_0x688efe(0xfe)]));}[_0x314074(0x121)](){const _0x265765=_0x314074;this[_0x265765(0x11f)][_0x265765(0x1f1)](a['UniverInstanceType'][_0x265765(0x12b)])[_0x265765(0xb2)](d[_0x265765(0x1b7)](this[_0x265765(0xd2)]))['subscribe'](async _0x186ca7=>{const _0x3841c1=_0x265765,_0x35adb6=_0x186ca7[_0x3841c1(0x302)](),_0x71f1d=await this[_0x3841c1(0x299)](_0x35adb6);this[_0x3841c1(0x219)][_0x3841c1(0x13c)](_0x71f1d),this[_0x3841c1(0x271)][_0x3841c1(0x1bc)](_0x35adb6,_0x71f1d);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x265765(0x1c2)])[_0x265765(0xb2)](d[_0x265765(0x1b7)](this[_0x265765(0xd2)]))[_0x265765(0xb2)](d[_0x265765(0x158)](_0x5ea88f=>!_0x5ea88f[_0x265765(0x302)]()['startsWith']('__')))['subscribe'](async _0x3ad335=>{const _0x6fbcd=_0x265765,_0x4cc067=_0x3ad335[_0x6fbcd(0x302)](),_0x214960=await this[_0x6fbcd(0xb8)](_0x4cc067);this[_0x6fbcd(0x219)][_0x6fbcd(0x13c)](_0x214960),this['_entities']['set'](_0x4cc067,_0x214960);}),d[_0x265765(0xa8)](this[_0x265765(0x11f)][_0x265765(0x2ae)](a[_0x265765(0x273)][_0x265765(0x1c2)]),this[_0x265765(0x11f)][_0x265765(0x2ae)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](d[_0x265765(0x1b7)](this[_0x265765(0xd2)]))[_0x265765(0x112)](_0x244c6c=>{const _0x565e10=_0x265765,_0x48de49=_0x244c6c[_0x565e10(0x302)](),_0xb4b958=this[_0x565e10(0x271)][_0x565e10(0x176)](_0x48de49);_0xb4b958&&(_0xb4b958[_0x565e10(0x218)](),this[_0x565e10(0x271)][_0x565e10(0x142)](_0x48de49));});}async[_0x314074(0x299)](_0x254788){const _0x241a75=_0x314074,_0x39b134=await this['_collabSessionService'][_0x241a75(0x182)](_0x254788),_0x237598=this[_0x241a75(0x1cf)][_0x241a75(0x2c1)](Se,_0x254788,_0x39b134);return _0x237598[_0x241a75(0x267)](),_0x237598;}async[_0x314074(0xb8)](_0x4b9516){const _0xf61e21=_0x314074,_0x406822=await this['_collabSessionService']['requireSession'](_0x4b9516),_0x1d90ed=this[_0xf61e21(0x1cf)][_0xf61e21(0x2c1)](fe,_0x4b9516,_0x406822);return _0x1d90ed[_0xf61e21(0x267)](),_0x1d90ed;}};x=ct([ie(0x0,a[_0x314074(0xb4)]),ie(0x1,a[_0x314074(0x1d5)](a['Injector'])),ie(0x2,a[_0x314074(0x1d5)](u[_0x314074(0xbb)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4190d0,_0x489337){const _0x3c7ffa=_0x314074;let {radius:_0x3dbbb6,width:_0x3a63be,height:_0x1b86b2}=_0x489337;_0x3dbbb6=_0x3dbbb6!=null?_0x3dbbb6:0x0,_0x3a63be=_0x3a63be!=null?_0x3a63be:0x1e,_0x1b86b2=_0x1b86b2!=null?_0x1b86b2:0x1e;let _0x31dbe7=0x0,_0x5dd305=0x0,_0x13bc60=0x0;_0x31dbe7=_0x5dd305=_0x13bc60=Math[_0x3c7ffa(0x1ff)](_0x3dbbb6,_0x3a63be/0x2,_0x1b86b2/0x2),_0x4190d0['beginPath'](),_0x4190d0[_0x3c7ffa(0x1ac)](_0x31dbe7,0x0),_0x4190d0['lineTo'](_0x3a63be-_0x5dd305,0x0),_0x4190d0[_0x3c7ffa(0x263)](_0x3a63be-_0x5dd305,_0x5dd305,_0x5dd305,Math['PI']*0x3/0x2,0x0,!0x1),_0x4190d0[_0x3c7ffa(0x164)](_0x3a63be,_0x1b86b2-_0x13bc60),_0x4190d0['arc'](_0x3a63be-_0x13bc60,_0x1b86b2-_0x13bc60,_0x13bc60,0x0,Math['PI']/0x2,!0x1),_0x4190d0[_0x3c7ffa(0x164)](0x0,_0x1b86b2),_0x4190d0[_0x3c7ffa(0x164)](0x0,_0x31dbe7),_0x4190d0[_0x3c7ffa(0x263)](_0x31dbe7,_0x31dbe7,_0x31dbe7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4190d0[_0x3c7ffa(0x129)](),_0x489337[_0x3c7ffa(0x123)]&&(_0x4190d0[_0x3c7ffa(0x168)](),_0x4190d0[_0x3c7ffa(0x1e6)]=_0x489337[_0x3c7ffa(0x123)],_0x489337[_0x3c7ffa(0x1f7)]===_0x3c7ffa(0x243)?_0x4190d0['fill'](_0x3c7ffa(0x243)):_0x4190d0[_0x3c7ffa(0x123)](),_0x4190d0[_0x3c7ffa(0x93)]());}class ee extends p[_0x314074(0x238)]{constructor(_0x2f34d6,_0x22ee96){const _0x36d607=_0x314074;super(_0x2f34d6,_0x22ee96),h(this,_0x36d607(0x2be)),h(this,_0x36d607(0xd3)),(this[_0x36d607(0x2be)]=_0x22ee96==null?void 0x0:_0x22ee96[_0x36d607(0x2be)],this['text']=_0x22ee96==null?void 0x0:_0x22ee96['text']);}static[_0x314074(0x181)](_0x5752a5,_0x2c2a81){const _0x20011f=_0x314074,{text:_0x22cb04,color:_0xf6ae83}=_0x2c2a81;_0x5752a5[_0x20011f(0x168)](),_0x5752a5['font']=_0x20011f(0xdf);const _0x2f1c07=_0x5752a5['measureText'](_0x22cb04)['width'],_0x2d95d6=Math[_0x20011f(0x1ff)](_0x2f1c07+0x2*ne,Re);_t(_0x5752a5,{'height':K,'radius':0x4,'width':_0x2d95d6,'fill':_0xf6ae83}),_0x5752a5['fillStyle']=_0x20011f(0x2ba);const _0x3159c8=ne,_0x2240c9=K-lt,_0x502da3=Re-0x2*ne;if(_0x2f1c07>_0x502da3){let _0x1b18c3='',_0x1bc83a=0x0;for(const _0x556ccc of _0x22cb04){const _0xbe10fb=_0x5752a5['measureText'](_0x556ccc)['width'];if(_0x1bc83a+_0xbe10fb<=_0x502da3-_0x5752a5[_0x20011f(0x104)](_0x20011f(0x1ab))['width'])_0x1b18c3+=_0x556ccc,_0x1bc83a+=_0xbe10fb;else{_0x1b18c3+='...';break;}}_0x5752a5[_0x20011f(0x12e)](_0x1b18c3,_0x3159c8,_0x2240c9);}else _0x5752a5[_0x20011f(0x12e)](_0x22cb04,_0x3159c8,_0x2240c9);_0x5752a5[_0x20011f(0x93)]();}[_0x314074(0x102)](_0x48fb12){const _0x4e285b=_0x314074;ee[_0x4e285b(0x181)](_0x48fb12,this);}}const re='collab-text-anchor-',ht='collab-text-range-',ut=_0x314074(0x2bc),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x314074(0x20c);class De{constructor(_0x239f0b,_0xee7b0a,_0x5e9017,_0x2885a0){const _0x4bc9e1=_0x314074;h(this,_0x4bc9e1(0x1fc),[]),h(this,_0x4bc9e1(0x23e),null),h(this,_0x4bc9e1(0x2b9),null),h(this,_0x4bc9e1(0x15e),null),h(this,_0x4bc9e1(0xd0),null),h(this,_0x4bc9e1(0x283),null),(this[_0x4bc9e1(0x1f6)]=_0x239f0b,this[_0x4bc9e1(0x307)]=_0xee7b0a,this[_0x4bc9e1(0xf9)]=_0x5e9017,this[_0x4bc9e1(0x1d8)]=_0x2885a0,this['_render']());}set[_0x314074(0x2d7)](_0x1e0aa0){const _0x404a5d=_0x314074;_0x1e0aa0?(this[_0x404a5d(0x15e)]&&this[_0x404a5d(0x15e)][_0x404a5d(0x28a)](),this[_0x404a5d(0x2b9)]&&this[_0x404a5d(0x2b9)]['show']()):(this[_0x404a5d(0x15e)]&&this['_anchorDot'][_0x404a5d(0x277)](),this[_0x404a5d(0x2b9)]&&this[_0x404a5d(0x2b9)][_0x404a5d(0x28a)]());}[_0x314074(0x218)](){const _0xc375de=_0x314074;for(const _0x5b0d6a of this[_0xc375de(0x1fc)])_0x5b0d6a[_0xc375de(0x218)]();this[_0xc375de(0x2b9)]&&this[_0xc375de(0x2b9)]['dispose'](),this[_0xc375de(0x15e)]&&this[_0xc375de(0x15e)][_0xc375de(0x218)](),this[_0xc375de(0x23e)]&&this[_0xc375de(0x23e)][_0xc375de(0x218)](),this[_0xc375de(0x283)]&&this[_0xc375de(0x283)]();}['_render'](){const _0x4f7bf4=_0x314074;var _0x374013;const {_docSkeleton:_0x3eb2ea,_document:_0x56c01e}=this,{color:_0x15a41d,name:_0x15ce63,ranges:_0x5b125b}=this['_cursor'],_0x327bc9=_0x56c01e[_0x4f7bf4(0x12d)](),{docsLeft:_0x4fc9ae,docsTop:_0x759e4e}=_0x327bc9,_0x3e4825=new b[(_0x4f7bf4(0x19a))](_0x327bc9,_0x3eb2ea);for(const {startOffset:_0x2a90e4,endOffset:_0x56b204,rangeType:_0x4cc08b,segmentId:_0x4d0c1f,segmentPage:_0x52db52,collapsed:_0x3ccc10,isActive:_0x3f9d77}of _0x5b125b){const _0x4e68ec=_0x3eb2ea[_0x4f7bf4(0x13b)](_0x2a90e4,!0x0,_0x4d0c1f,_0x52db52);let _0x3f8fc1=_0x3eb2ea[_0x4f7bf4(0x13b)](_0x56b204,!0x0,_0x4d0c1f,_0x52db52);if(_0x3f8fc1==null&&(_0x3f8fc1=_0x3eb2ea[_0x4f7bf4(0x13b)](_0x56b204-0x1,!0x1,_0x4d0c1f,_0x52db52)),_0x3f9d77){const {contentBoxPointGroup:_0x441ece}=_0x3e4825['getRangePointData'](_0x3f8fc1,_0x3f8fc1);if(_0x441ece[_0x4f7bf4(0xbe)]===0x0)continue;this['_drawAnchor'](_0x15a41d,_0x441ece,_0x4fc9ae,_0x759e4e,_0x15ce63),this[_0x4f7bf4(0x283)]=this[_0x4f7bf4(0x1b5)]();}if(_0x4e68ec&&_0x3f8fc1){if(_0x4cc08b===a[_0x4f7bf4(0x252)][_0x4f7bf4(0x1fe)]){const _0x55774b=new b[(_0x4f7bf4(0x2d2))](_0x327bc9,_0x3eb2ea),{pointGroup:_0x408dfa}=(_0x374013=_0x55774b[_0x4f7bf4(0xe0)](_0x4e68ec,_0x3f8fc1))!=null?_0x374013:{};if(_0x408dfa==null||_0x408dfa[_0x4f7bf4(0xbe)]===0x0)continue;this[_0x4f7bf4(0x233)](_0x15a41d,_0x408dfa,_0x4fc9ae,_0x759e4e);}else{if(!_0x3ccc10){const {borderBoxPointGroup:_0x378a5e}=_0x3e4825[_0x4f7bf4(0xe0)](_0x4e68ec,_0x3f8fc1);if(_0x378a5e[_0x4f7bf4(0xbe)]===0x0)continue;this['_drawTextRange'](_0x15a41d,_0x378a5e,_0x4fc9ae,_0x759e4e);}}}}}[_0x314074(0x253)](_0x2686ea,_0x54815d,_0x2bb900,_0x1db599,_0x18fd44){const _0x481299=_0x314074,_0x37b870=this['_getAnchorBounding'](_0x54815d),{left:_0x2809f0,top:_0x1b613e,height:_0x12afe9}=_0x37b870,_0x3f8af9=this[_0x481299(0x17a)](),_0x473f6a=ft/_0x3f8af9,_0x57ea3d=new p[(_0x481299(0x29f))](re+a['Tools'][_0x481299(0xd7)](k),{'left':_0x2809f0+_0x2bb900-_0x473f6a,'top':_0x1b613e+_0x1db599,'height':_0x12afe9,'width':dt,'fill':_0x2686ea||p[_0x481299(0x229)](a[_0x481299(0x1f3)][_0x481299(0x30d)],0x0),'strokeWidth':_0x473f6a,'stroke':St,'evented':!0x0});this[_0x481299(0x23e)]=_0x57ea3d,this[_0x481299(0x307)]['addObject'](_0x57ea3d,b[_0x481299(0x294)]);const _0x1b5499=new p[(_0x481299(0x29f))](re+a[_0x481299(0x144)][_0x481299(0xd7)](k),{'left':_0x2809f0+_0x2bb900-_0x473f6a,'top':_0x1b613e+_0x1db599-oe/0x2,'height':oe,'width':oe,'fill':_0x2686ea||p['getColor'](a['COLORS'][_0x481299(0x30d)],0x0),'strokeWidth':0x0,'stroke':_0x2686ea||p[_0x481299(0x229)](a[_0x481299(0x1f3)][_0x481299(0x30d)],0x0),'evented':!0x1});this[_0x481299(0x15e)]=_0x1b5499,this[_0x481299(0x307)][_0x481299(0x2ce)](_0x1b5499,b['TEXT_RANGE_LAYER_INDEX']);const _0x4228cd=new ee(re+a[_0x481299(0x144)][_0x481299(0xd7)](k),{'left':_0x2809f0+_0x2bb900-_0x473f6a,'top':_0x1b613e+_0x1db599-K,'text':_0x18fd44,'color':_0x2686ea});this[_0x481299(0x2b9)]=_0x4228cd,this[_0x481299(0x307)]['addObject'](_0x4228cd,b[_0x481299(0x294)]),this[_0x481299(0x2d7)]=!0x1;}[_0x314074(0x1b5)](){const _0x2f18b7=_0x314074,_0xfb7038=this[_0x2f18b7(0x23e)][_0x2f18b7(0x138)][_0x2f18b7(0x234)](()=>{this['_hover']=!0x0;}),_0x2c79fa=this['_anchor'][_0x2f18b7(0x1dc)]['subscribeEvent'](()=>{const _0x1d7a46=_0x2f18b7;this['_hideTimer']&&clearTimeout(this[_0x1d7a46(0xd0)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1e8ec9=_0x2f18b7;_0xfb7038[_0x1e8ec9(0x256)](),_0x2c79fa['unsubscribe']();};}[_0x314074(0x1e3)](_0x27df9e,_0x4ca3ec,_0xe11498,_0x10266e){const _0x8bb0b9=_0x314074,_0x587a3b=new a['ColorKit'](_0x27df9e)['setAlpha'](0.2)[_0x8bb0b9(0x2bf)](),_0x26a859=new p[(_0x8bb0b9(0x30f))](ht+a[_0x8bb0b9(0x144)][_0x8bb0b9(0xd7)](k),{'pointsGroup':_0x4ca3ec,'fill':_0x587a3b||p[_0x8bb0b9(0x229)](a[_0x8bb0b9(0x1f3)][_0x8bb0b9(0x30d)],0.2),'left':_0xe11498,'top':_0x10266e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x26a859),this['_scene'][_0x8bb0b9(0x2ce)](_0x26a859,b[_0x8bb0b9(0x294)]);}['_drawRectRange'](_0x6b94e9,_0xf7bbc0,_0xdedc94,_0x42b412){const _0x535563=_0x314074,_0x25bc19=new a[(_0x535563(0x118))](_0x6b94e9)[_0x535563(0x24f)](0.2)[_0x535563(0x2bf)](),_0x2847a0=new p[(_0x535563(0x30f))](ut+a[_0x535563(0x144)]['generateRandomId'](k),{'pointsGroup':_0xf7bbc0,'fill':_0x25bc19||p['getColor'](a[_0x535563(0x1f3)]['black'],0.2),'left':_0xdedc94,'top':_0x42b412,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x535563(0x1fc)][_0x535563(0x1fa)](_0x2847a0),this[_0x535563(0x307)][_0x535563(0x2ce)](_0x2847a0,b['TEXT_RANGE_LAYER_INDEX']);}[_0x314074(0x126)](_0x22e26d){const _0x46e555=_0x22e26d[0x0],_0x5378d8=_0x46e555[0x0],_0x4aa36a=_0x46e555[0x2],{x:_0x57ee61,y:_0x688279}=_0x5378d8,{x:_0x5a0543,y:_0x14f963}=_0x4aa36a;return{'left':_0x57ee61,'top':_0x688279,'width':_0x5a0543-_0x57ee61,'height':_0x14f963-_0x688279};}[_0x314074(0x17a)](){const _0x3a10e0=_0x314074,{scaleX:_0x10bbbb,scaleY:_0x1b6551}=this['_scene'][_0x3a10e0(0x165)]();return Math['max'](_0x10bbbb,_0x1b6551);}}var It=Object[_0x314074(0xb7)],vt=(_0x2b0fac,_0x52e811,_0x4d1cc6,_0x30d93a)=>{const _0x1083b2=_0x314074;for(var _0x38e7c2=_0x30d93a>0x1?void 0x0:_0x30d93a?It(_0x52e811,_0x4d1cc6):_0x52e811,_0x187cd5=_0x2b0fac[_0x1083b2(0xbe)]-0x1,_0x5c2be7;_0x187cd5>=0x0;_0x187cd5--)(_0x5c2be7=_0x2b0fac[_0x187cd5])&&(_0x38e7c2=_0x5c2be7(_0x38e7c2)||_0x38e7c2);return _0x38e7c2;},W=(_0x147e1d,_0x4d185b)=>(_0x36377e,_0x170788)=>_0x4d185b(_0x36377e,_0x170788,_0x147e1d);let Ie=class extends a['RxDisposable']{constructor(_0x5cefb3,_0x47c6bc,_0x2148d9,_0x54e14a,_0x23b0cc){const _0x50d673=_0x314074;super(),h(this,'_cursorShapes',[]),h(this,_0x50d673(0xe3),[]),(this[_0x50d673(0x30c)]=_0x5cefb3,this[_0x50d673(0x145)]=_0x47c6bc,this[_0x50d673(0xa9)]=_0x2148d9,this[_0x50d673(0x135)]=_0x54e14a,this['_themeService']=_0x23b0cc,this['_init']());}[_0x314074(0x121)](){const _0x34ef96=_0x314074,_0x3f5d6c=this[_0x34ef96(0x30c)][_0x34ef96(0xe4)],_0x5a75c1=this['_docSkeletonManagerService'];this[_0x34ef96(0x2af)](d[_0x34ef96(0x2fb)]([this[_0x34ef96(0xa9)][_0x34ef96(0x2bb)](_0x3f5d6c),this[_0x34ef96(0x1ce)]['currentTheme$']])[_0x34ef96(0xb2)]($[_0x34ef96(0xa5)](([_0x4cc3fd,_0x4de26e])=>({'skeleton':_0x5a75c1[_0x34ef96(0x185)](),'cursors':[..._0x4cc3fd['values']()][_0x34ef96(0x235)](_0x580d99=>({..._0x580d99,'color':this[_0x34ef96(0x1ce)][_0x34ef96(0x113)](_0x580d99[_0x34ef96(0x2be)])}))})))[_0x34ef96(0x112)](_0x1f56f7=>{if(this['_removeCollabCursors'](),_0x1f56f7){const {skeleton:_0x1da6f3,cursors:_0x316ce6}=_0x1f56f7;this['_updateCollabCursors'](_0x1da6f3,_0x316ce6);}})),this[_0x34ef96(0xe5)](),this['_initCommandExecutedListener']();}[_0x314074(0x137)](_0x2effe0,_0xa104ba){const _0x566315=_0x314074,{scene:_0xf73a92,mainComponent:_0x80ae56}=this[_0x566315(0x30c)],_0x53a17d=_0xa104ba[_0x566315(0xa5)](_0x470614=>new De(_0x470614,_0xf73a92,_0x2effe0,_0x80ae56));this[_0x566315(0x1af)]=_0x53a17d,this[_0x566315(0xe3)]=_0xa104ba;}[_0x314074(0x147)](){const _0x30a685=_0x314074;this[_0x30a685(0x17c)]();const {scene:_0x35a014,mainComponent:_0x15ebb3}=this[_0x30a685(0x30c)],_0x24451e=this[_0x30a685(0x145)]['getSkeleton'](),_0xbfee61=this[_0x30a685(0xe3)][_0x30a685(0xa5)](_0x392a9d=>new De(_0x392a9d,_0x35a014,_0x24451e,_0x15ebb3));this['_cursorShapes']=_0xbfee61;}[_0x314074(0x17c)](){const _0x4ff10=_0x314074;this['_cursorShapes'][_0x4ff10(0x1ca)](_0x4fa4f6=>_0x4fa4f6[_0x4ff10(0x218)]()),this[_0x4ff10(0x1af)]=[];}[_0x314074(0x224)](){const _0x4188fa=_0x314074,_0x2482a0=[b[_0x4188fa(0x28b)]['id']];this[_0x4188fa(0x2af)](this[_0x4188fa(0x135)][_0x4188fa(0x298)](_0x6f235f=>{const _0x2e831a=_0x4188fa;_0x2482a0[_0x2e831a(0x1c1)](_0x6f235f['id'])&&_0x6f235f[_0x2e831a(0x239)]['unitId']===this[_0x2e831a(0x30c)]['unitId']&&this[_0x2e831a(0x147)]();}));}[_0x314074(0xe5)](){const _0x549b2c=_0x314074;this['disposeWithMe'](a[_0x549b2c(0x2e2)](this[_0x549b2c(0x30c)][_0x549b2c(0x2de)][_0x549b2c(0x21f)])[_0x549b2c(0xb2)]($[_0x549b2c(0x158)](_0x50cad7=>_0x50cad7[_0x549b2c(0x269)]===p[_0x549b2c(0x2eb)][_0x549b2c(0xc6)]),$[_0x549b2c(0x297)](0x10))[_0x549b2c(0x112)](()=>{const _0x5e62a8=_0x549b2c;this[_0x5e62a8(0x147)]();}));}};Ie=vt([W(0x1,a[_0x314074(0x1d5)](Y[_0x314074(0x2c6)])),W(0x2,a[_0x314074(0x1d5)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x314074(0x1d5)](a[_0x314074(0x169)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x314074(0x238)]{constructor(_0x148e29,_0x326f42){const _0x1f1530=_0x314074;super(_0x148e29,_0x326f42),h(this,'_color'),h(this,_0x1f1530(0x12a),!0x1),h(this,'_range'),h(this,_0x1f1530(0x1d6),''),h(this,_0x1f1530(0x9d),_0x1f1530(0xed)),h(this,_0x1f1530(0x211)),(_0x326f42&&this[_0x1f1530(0x2c7)](_0x326f42),this[_0x1f1530(0x138)]['subscribeEvent'](()=>this[_0x1f1530(0x2c7)]({'hovered':!0x0})),this[_0x1f1530(0x1dc)][_0x1f1530(0x234)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x314074(0x2c7)](_0x3fae5c){const _0x44e7df=_0x314074;var _0x99dd7,_0x4b0cc5,_0x2318b3,_0x2ff357,_0xf3dcbb,_0x500571;this[_0x44e7df(0x1b6)]=(_0x99dd7=_0x3fae5c[_0x44e7df(0x2be)])!=null?_0x99dd7:this[_0x44e7df(0x1b6)],this[_0x44e7df(0x12a)]=(_0x4b0cc5=_0x3fae5c[_0x44e7df(0x2a2)])!=null?_0x4b0cc5:this[_0x44e7df(0x12a)],this[_0x44e7df(0x258)]=(_0x2318b3=_0x3fae5c[_0x44e7df(0xd9)])!=null?_0x2318b3:this['_range'],this[_0x44e7df(0x1d6)]=(_0x2ff357=_0x3fae5c[_0x44e7df(0x2f8)])!=null?_0x2ff357:this[_0x44e7df(0x1d6)],this[_0x44e7df(0x9d)]=(_0xf3dcbb=_0x3fae5c[_0x44e7df(0xf8)])!=null?_0xf3dcbb:this[_0x44e7df(0x9d)],this[_0x44e7df(0x211)]=(_0x500571=_0x3fae5c[_0x44e7df(0x1c8)])!=null?_0x500571:this[_0x44e7df(0x211)],this[_0x44e7df(0x23c)]({'width':_0x3fae5c[_0x44e7df(0x1d1)],'height':_0x3fae5c[_0x44e7df(0x2e9)]});}[_0x314074(0x11c)](_0x5a8597){const _0x3c6369=_0x314074,{row:_0x14791d,column:_0x413d02}=_0x5a8597;if(_0x14791d>=this[_0x3c6369(0x258)][_0x3c6369(0xf2)]&&_0x14791d<=this[_0x3c6369(0x258)][_0x3c6369(0x1a0)]&&_0x413d02>=this['_range']['startColumn']&&_0x413d02<=this[_0x3c6369(0x258)][_0x3c6369(0x250)]){this[_0x3c6369(0x2c7)]({'hovered':!0x0});return;}this[_0x3c6369(0x2c7)]({'hovered':!0x1});}['triggerDblclick'](_0x4eb2b5){return!0x1;}['_draw'](_0x9edbf){const _0x223402=_0x314074;p['Rect']['drawWith'](_0x9edbf,{'width':this[_0x223402(0x1d1)],'height':this[_0x223402(0x2e9)],'strokeWidth':mt,'stroke':this[_0x223402(0x1b6)],'evented':!0x1,'fill':this[_0x223402(0x211)]}),this[_0x223402(0x12a)]&&(_0x9edbf['save'](),_0x9edbf[_0x223402(0x268)](0x1,0x0,0x0,0x1,this[_0x223402(0x1d1)],this[_0x223402(0x9d)]===_0x223402(0x2e6)?0x0:-0x14),ee[_0x223402(0x181)](_0x9edbf,{'text':this[_0x223402(0x1d6)],'color':this[_0x223402(0x1b6)]}),_0x9edbf[_0x223402(0x93)]());}}var Ct=Object[_0x314074(0xb7)],pt=(_0x2d75d3,_0x1b4d1,_0x5e1164,_0x52476e)=>{const _0x34142d=_0x314074;for(var _0x14c6a0=_0x52476e>0x1?void 0x0:_0x52476e?Ct(_0x1b4d1,_0x5e1164):_0x1b4d1,_0x323505=_0x2d75d3[_0x34142d(0xbe)]-0x1,_0x3fea55;_0x323505>=0x0;_0x323505--)(_0x3fea55=_0x2d75d3[_0x323505])&&(_0x14c6a0=_0x3fea55(_0x14c6a0)||_0x14c6a0);return _0x14c6a0;},ae=(_0x2f49ef,_0x5a78d0)=>(_0x59815d,_0x22875a)=>_0x5a78d0(_0x59815d,_0x22875a,_0x2f49ef);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x36690c,_0x24d3ef,_0x10eeef,_0x45fc03){const _0x412f03=_0x314074;super(),h(this,_0x412f03(0xe3),new Set()),h(this,_0x412f03(0x196),null),(this[_0x412f03(0x30c)]=_0x36690c,this[_0x412f03(0x26a)]=_0x24d3ef,this['_collabCursorController']=_0x10eeef,this['_themeService']=_0x45fc03,this[_0x412f03(0x121)]());}['_init'](){const _0x14ce45=_0x314074;this[_0x14ce45(0x26a)][_0x14ce45(0x125)][_0x14ce45(0xb2)]($['takeUntil'](this[_0x14ce45(0xd2)]),$[_0x14ce45(0x134)](_0x5c6718=>{const _0x13198b=_0x14ce45;if(_0x5c6718){const _0x46d42b=_0x5c6718[_0x13198b(0x124)];return d['combineLatest'](this[_0x13198b(0xa9)][_0x13198b(0x2bb)](this[_0x13198b(0x30c)][_0x13198b(0xe4)]),this['_themeService']['currentTheme$'])['pipe']($[_0x13198b(0xa5)](([_0x5db7d2,_0x113da4])=>{const _0x5714e0=new Map();return _0x5db7d2['forEach']((_0x5f3db4,_0xdd0251)=>{const _0xcb3c7e=_0x391f;if(_0x5f3db4[_0xcb3c7e(0x10b)]===_0x46d42b){const _0x4e8214={..._0x5f3db4};_0x4e8214[_0xcb3c7e(0x2be)]=this[_0xcb3c7e(0x1ce)][_0xcb3c7e(0x113)](_0x5f3db4[_0xcb3c7e(0x2be)]),_0x5714e0[_0xcb3c7e(0x1bc)](_0xdd0251,_0x4e8214);}}),{'skeleton':_0x5c6718,'cursors':_0x5714e0};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x366b22,cursors:_0x5799c2})=>{const _0x17eb29=_0x14ce45;this['_removeCollabCursors'](),_0x366b22&&this[_0x17eb29(0x137)](_0x366b22,_0x5799c2);}),this[_0x14ce45(0x26a)][_0x14ce45(0x125)][_0x14ce45(0x112)](_0x91b8ee=>{const _0x127210=_0x14ce45;if(_0x91b8ee==null)return;const {skeleton:_0x4f7020}=_0x91b8ee,{scene:_0xb7e66}=this[_0x127210(0x30c)];_0xb7e66[_0x127210(0x1ad)][_0x127210(0x234)](a[_0x127210(0xdd)](_0x59f20a=>{const _0x119559=_0x127210;var _0x25bbd2,_0x8f6cbb;const {offsetX:_0x4aeb2e,offsetY:_0x3daf01}=_0x59f20a,{x:_0x20c2a6,y:_0xa406f3}=_0xb7e66[_0x119559(0x20b)](p[_0x119559(0x236)][_0x119559(0x150)]([_0x4aeb2e,_0x3daf01])),{scaleX:_0x1a2f6a,scaleY:_0x59ed50}=_0xb7e66[_0x119559(0x165)](),_0x5361aa=_0xb7e66['getViewport'](p[_0x119559(0xc4)][_0x119559(0x206)]),_0x4e5f1d=_0xb7e66['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x119559(0x150)]([_0x20c2a6,_0xa406f3]),_0x5361aa),_0x32918f=_0x4f7020[_0x119559(0xcb)](_0x4aeb2e,_0x3daf01,_0x1a2f6a,_0x59ed50,_0x4e5f1d);((_0x25bbd2=this[_0x119559(0x196)])==null?void 0x0:_0x25bbd2['column'])===_0x32918f[_0x119559(0x189)]&&((_0x8f6cbb=this[_0x119559(0x196)])==null?void 0x0:_0x8f6cbb[_0x119559(0x25d)])===_0x32918f[_0x119559(0x25d)]||this['_cursors']['forEach'](_0x2829fc=>{const _0x4f250f=_0x119559;_0x2829fc[_0x4f250f(0x11c)](_0x32918f);});},0x64));});}[_0x314074(0x137)](_0x1393e4,_0x568056){const _0x52124d=_0x314074;var _0x56e8e2;const _0x3ccf75=(_0x56e8e2=this[_0x52124d(0x26a)]['getCurrent']())==null?void 0x0:_0x56e8e2[_0x52124d(0x26d)];if(!_0x3ccf75)return;const _0x41c70b=this[_0x52124d(0x1e1)]();if(!_0x41c70b)return;this[_0x52124d(0xe3)]['forEach'](_0x360320=>{const _0x23a30f=_0x52124d;_0x360320[_0x23a30f(0x1b2)]();});const {scene:_0x218fbd}=_0x41c70b,_0x2a5eab=Et(Array[_0x52124d(0x1ef)](_0x568056[_0x52124d(0x2fd)]()))[_0x52124d(0xa5)](_0x53ad8d=>{const _0x6a649a=_0x52124d,{color:_0x519f1f,range:_0x22a45c,name:_0x2560f1,selection:_0x406549,sheetID:_0x32410b}=_0x53ad8d,{startColumn:_0x2dfc5f,startRow:_0x17dc41,endColumn:_0x32bbc9,endRow:_0x94c12f}=_0x22a45c,_0x198506=X['getCoordByCell'](_0x17dc41,_0x2dfc5f,_0x218fbd,_0x3ccf75),_0x122073=X[_0x6a649a(0x29a)](_0x94c12f,_0x32bbc9,_0x218fbd,_0x3ccf75),{columnHeaderHeightAndMarginTop:_0x5c02e5}=_0x3ccf75,{startX:_0x1b9952,startY:_0x3f0913}=_0x198506,{endX:_0x14dd46,endY:_0x13342f}=_0x122073,_0x2a47f3=_0x14dd46-_0x1b9952,_0x36bec8=_0x13342f-_0x3f0913,_0x102fb1={'labelPosition':_0x3f0913-_0x5c02e5>=K?'top':'bottom','sheetID':_0x32410b,'range':_0x22a45c,'color':_0x519f1f,'name':_0x2560f1,'selection':_0x406549,'left':_0x1b9952,'top':_0x3f0913,'width':_0x2a47f3,'height':_0x36bec8,'evented':!0x1,'zIndex':bt};return new Ae(_0x2560f1,_0x102fb1);});_0x218fbd['addObjects'](_0x2a5eab,gt),this[_0x52124d(0xe3)]=new Set(_0x2a5eab);}[_0x314074(0x17c)](){const _0x4d881b=_0x314074;var _0x3b8873;(_0x3b8873=this[_0x4d881b(0xe3)])==null||_0x3b8873[_0x4d881b(0x1ca)](_0x1eda0d=>_0x1eda0d['dispose']());}['_getSheetObject'](){const _0x5e7660=_0x314074;return X[_0x5e7660(0x21a)](this[_0x5e7660(0x30c)][_0x5e7660(0x10a)],this[_0x5e7660(0x30c)]);}};ve=pt([ae(0x1,a[_0x314074(0x1d5)](X[_0x314074(0x1df)])),ae(0x2,a[_0x314074(0x1d5)](x)),ae(0x3,a[_0x314074(0x1d5)](a[_0x314074(0x169)]))],ve);function Et(_0x5f32ec){const _0x418570=_0x314074,_0x44be1c=new Map();return _0x5f32ec[_0x418570(0x1ca)](_0x732467=>{const _0x4f4d03=_0x418570;if(_0x44be1c[_0x4f4d03(0x199)](_0x732467[_0x4f4d03(0x1d0)])){const _0x652080=_0x44be1c[_0x4f4d03(0x176)](_0x732467[_0x4f4d03(0x1d0)]);_0x652080[_0x4f4d03(0x2f8)]+=',\x20'+_0x732467[_0x4f4d03(0x2f8)];}else _0x44be1c['set'](_0x732467[_0x4f4d03(0x1d0)],_0x732467);}),Array[_0x418570(0x1ef)](_0x44be1c[_0x418570(0x2fd)]());}var E=function(){const _0x163e6c=_0x314074;return E=Object[_0x163e6c(0x103)]||function(_0x71e7df){const _0x1ed7c3=_0x163e6c;for(var _0x1cf299,_0x8eaa42=0x1,_0x5104f7=arguments[_0x1ed7c3(0xbe)];_0x8eaa42<_0x5104f7;_0x8eaa42++){_0x1cf299=arguments[_0x8eaa42];for(var _0x44f9d6 in _0x1cf299)Object['prototype'][_0x1ed7c3(0xb3)][_0x1ed7c3(0x1b4)](_0x1cf299,_0x44f9d6)&&(_0x71e7df[_0x44f9d6]=_0x1cf299[_0x44f9d6]);}return _0x71e7df;},E['apply'](this,arguments);},Tt=function(_0x179bad,_0x4ee521){const _0x7bd9c1=_0x314074;var _0x21bb79={};for(var _0x122b10 in _0x179bad)Object['prototype'][_0x7bd9c1(0xb3)][_0x7bd9c1(0x1b4)](_0x179bad,_0x122b10)&&_0x4ee521['indexOf'](_0x122b10)<0x0&&(_0x21bb79[_0x122b10]=_0x179bad[_0x122b10]);if(_0x179bad!=null&&typeof Object['getOwnPropertySymbols']==_0x7bd9c1(0x10d)){for(var _0x33a575=0x0,_0x122b10=Object[_0x7bd9c1(0x227)](_0x179bad);_0x33a575<_0x122b10[_0x7bd9c1(0xbe)];_0x33a575++)_0x4ee521[_0x7bd9c1(0x106)](_0x122b10[_0x33a575])<0x0&&Object['prototype'][_0x7bd9c1(0x1b1)][_0x7bd9c1(0x1b4)](_0x179bad,_0x122b10[_0x33a575])&&(_0x21bb79[_0x122b10[_0x33a575]]=_0x179bad[_0x122b10[_0x33a575]]);}return _0x21bb79;},pe=M[_0x314074(0x100)](function(_0x4bcaba,_0x2ac8d0){const _0x2f65a3=_0x314074;var _0x36791c=_0x4bcaba[_0x2f65a3(0x2e1)],_0x870abf=_0x4bcaba['id'],_0x5d2f4f=_0x4bcaba[_0x2f65a3(0xc1)],_0x15d63c=_0x4bcaba[_0x2f65a3(0x1aa)],_0x37f1b0=Tt(_0x4bcaba,[_0x2f65a3(0x2e1),'id',_0x2f65a3(0xc1),_0x2f65a3(0x1aa)]),_0x390eaa='univerjs-icon\x20univerjs-icon-'['concat'](_0x870abf,'\x20')[_0x2f65a3(0x242)](_0x5d2f4f||'')[_0x2f65a3(0x19c)](),_0x2fc5ed=M['useRef']('_'[_0x2f65a3(0x242)](Dt()));return we(_0x36791c,''[_0x2f65a3(0x242)](_0x870abf),{'defIds':_0x36791c[_0x2f65a3(0x23d)],'idSuffix':_0x2fc5ed[_0x2f65a3(0x96)]},E({'ref':_0x2ac8d0,'className':_0x390eaa},_0x37f1b0),_0x15d63c);});function we(_0x11ba73,_0x23600f,_0x49baf5,_0x424480,_0x54d3f7){const _0x2ced18=_0x314074;return M[_0x2ced18(0x184)](_0x11ba73[_0x2ced18(0x311)],E(E({'key':_0x23600f},Ot(_0x11ba73,_0x49baf5,_0x54d3f7)),_0x424480),(Rt(_0x11ba73,_0x49baf5)[_0x2ced18(0x248)]||[])[_0x2ced18(0xa5)](function(_0x1119d7,_0x98bd89){const _0x56e828=_0x2ced18;return we(_0x1119d7,''[_0x56e828(0x242)](_0x23600f,'-')[_0x56e828(0x242)](_0x11ba73[_0x56e828(0x311)],'-')['concat'](_0x98bd89),_0x49baf5,void 0x0,_0x54d3f7);}));}function Ot(_0x32cf8a,_0x82679,_0x4b1af7){const _0x2c569a=_0x314074;var _0x6e972b=E({},_0x32cf8a['attrs']);_0x4b1af7!=null&&_0x4b1af7[_0x2c569a(0x241)]&&_0x6e972b[_0x2c569a(0x123)]===_0x2c569a(0x241)&&(_0x6e972b[_0x2c569a(0x123)]=_0x4b1af7['colorChannel1']),_0x32cf8a[_0x2c569a(0x311)]===_0x2c569a(0x295)&&_0x6e972b['id']&&(_0x6e972b['id']=_0x6e972b['id']+_0x82679[_0x2c569a(0xc5)]),Object[_0x2c569a(0x18b)](_0x6e972b)[_0x2c569a(0x1ca)](function(_0x1f7591){const _0x5297e7=_0x2c569a;var _0xbb26bd=_0x1f7591[0x0],_0x2b6acd=_0x1f7591[0x1];_0xbb26bd===_0x5297e7(0x295)&&typeof _0x2b6acd==_0x5297e7(0x10c)&&(_0x6e972b[_0xbb26bd]=_0x2b6acd[_0x5297e7(0x101)](/url\(#(.*)\)/,_0x5297e7(0x18a)[_0x5297e7(0x242)](_0x82679[_0x5297e7(0xc5)],')')));});var _0x59372e=_0x82679['defIds'];return!_0x59372e||_0x59372e[_0x2c569a(0xbe)]===0x0||(_0x32cf8a[_0x2c569a(0x311)]==='use'&&_0x6e972b[_0x2c569a(0x225)]&&(_0x6e972b[_0x2c569a(0x225)]=_0x6e972b[_0x2c569a(0x225)]+_0x82679['idSuffix']),Object[_0x2c569a(0x18b)](_0x6e972b)[_0x2c569a(0x1ca)](function(_0x8c81f2){const _0x27b74e=_0x2c569a;var _0xcbf002=_0x8c81f2[0x0],_0x215470=_0x8c81f2[0x1];typeof _0x215470=='string'&&(_0x6e972b[_0xcbf002]=_0x215470[_0x27b74e(0x101)](/url\(#(.*)\)/,_0x27b74e(0x18a)[_0x27b74e(0x242)](_0x82679[_0x27b74e(0xc5)],')')));})),_0x6e972b;}function Rt(_0x1a8f07,_0x310730){const _0x8178d6=_0x314074;var _0x58eff7,_0x45bb53=_0x310730['defIds'];return!_0x45bb53||_0x45bb53[_0x8178d6(0xbe)]===0x0?_0x1a8f07:_0x1a8f07[_0x8178d6(0x311)]===_0x8178d6(0xec)&&(!((_0x58eff7=_0x1a8f07[_0x8178d6(0x248)])===null||_0x58eff7===void 0x0)&&_0x58eff7[_0x8178d6(0xbe)])?E(E({},_0x1a8f07),{'children':_0x1a8f07[_0x8178d6(0x248)]['map'](function(_0x5de26e){const _0x5f1406=_0x8178d6;return typeof _0x5de26e[_0x5f1406(0x300)]['id']==_0x5f1406(0x10c)&&_0x45bb53&&_0x45bb53[_0x5f1406(0x106)](_0x5de26e[_0x5f1406(0x300)]['id'])>-0x1?E(E({},_0x5de26e),{'attrs':E(E({},_0x5de26e[_0x5f1406(0x300)]),{'id':_0x5de26e[_0x5f1406(0x300)]['id']+_0x310730[_0x5f1406(0xc5)]})}):_0x5de26e;})}):_0x1a8f07;}function Dt(){const _0x18e291=_0x314074;return Math[_0x18e291(0x110)]()[_0x18e291(0x1bb)](0x24)[_0x18e291(0x187)](0x2,0x8);}pe['displayName']=_0x314074(0x190);var Ut={'tag':'svg','attrs':{'fill':_0x314074(0xe7),'viewBox':_0x314074(0x2ad),'width':_0x314074(0xe8),'height':_0x314074(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x314074(0x310),'attrs':{'stroke':_0x314074(0x107),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x314074(0x24d),'strokeLinejoin':_0x314074(0x24d),'strokeWidth':1.2}}]},{'tag':_0x314074(0xec),'attrs':{},'children':[{'tag':_0x314074(0x2f2),'attrs':{'id':_0x314074(0x28c)},'children':[{'tag':_0x314074(0x310),'attrs':{'fill':_0x314074(0x15b),'d':_0x314074(0xfb)}}]}]}],'defIds':[_0x314074(0x28c)]},ye=M[_0x314074(0x100)](function(_0x554192,_0x59c338){const _0x2d6189=_0x314074;return M[_0x2d6189(0x184)](pe,Object['assign']({},_0x554192,{'id':'off-line-single','ref':_0x59c338,'icon':Ut}));});ye['displayName']='OffLineSingle';var Nt={'tag':'svg','attrs':{'fill':_0x314074(0xe7),'viewBox':_0x314074(0x128),'width':_0x314074(0xe8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x314074(0x2e0)},'children':[{'tag':_0x314074(0x310),'attrs':{'stroke':_0x314074(0x107),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x314074(0x24d),'strokeLinejoin':_0x314074(0x24d),'strokeWidth':1.2}}]},{'tag':_0x314074(0xec),'attrs':{},'children':[{'tag':_0x314074(0x2f2),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x314074(0x310),'attrs':{'fill':_0x314074(0x15b),'d':_0x314074(0xfb),'transform':_0x314074(0xf7)}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x314074(0x100)](function(_0x285e1c,_0x300ef8){const _0x105f09=_0x314074;return M[_0x105f09(0x184)](pe,Object[_0x105f09(0x103)]({},_0x285e1c,{'id':_0x105f09(0x29c),'ref':_0x300ef8,'icon':Nt}));});$e[_0x314074(0xcd)]=_0x314074(0x132);function Mt(_0x329f60){const _0x5322d4=_0x314074;switch(_0x329f60){case u[_0x5322d4(0x21e)][_0x5322d4(0x127)]:return _0x5322d4(0x15c);case u[_0x5322d4(0x21e)][_0x5322d4(0x23b)]:return _0x5322d4(0x1cd);case u['CollaborationStatus'][_0x5322d4(0x274)]:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x5322d4(0x2a1)]:return _0x5322d4(0x266);case u[_0x5322d4(0x21e)][_0x5322d4(0x10e)]:case u[_0x5322d4(0x21e)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u['CollaborationStatus'][_0x5322d4(0x1d7)]:case u[_0x5322d4(0x21e)][_0x5322d4(0x291)]:return _0x5322d4(0x276);}}function xe(_0x42b4b4){const _0x15dc4f=_0x314074,{status$:_0x4e9f6b}=_0x42b4b4,_0xc77cf6=T['useObservable'](_0x4e9f6b,u[_0x15dc4f(0x21e)]['NOT_COLLAB']),_0x3b1f0c=T[_0x15dc4f(0x2ee)](a[_0x15dc4f(0x1a9)]),_0x56520b=T[_0x15dc4f(0x2ee)](u[_0x15dc4f(0xbb)]),_0x3cb9fd=_0xc77cf6!==u[_0x15dc4f(0x21e)][_0x15dc4f(0x127)],_0x158e8c=_0x3b1f0c['t'](Mt(_0xc77cf6)),_0x6edcb3=_0x3cb9fd?P['jsx']($e,{}):P[_0x15dc4f(0x245)](ye,{}),_0x26f854=M[_0x15dc4f(0x2f3)](()=>{_0x3cb9fd||_0x56520b['reconnect']();},[_0x3cb9fd,_0x56520b]);function _0xa4fab8(){const _0x158a2a=_0x15dc4f;return P[_0x158a2a(0x246)](_0x158a2a(0x140),{'className':'univer-flex\x20univer-items-center','onClick':_0x26f854,'children':[P['jsx']('div',{'className':D[_0x158a2a(0x198)](_0x158a2a(0x2c3),{'univer-text-green-500':_0x3cb9fd,'univer-text-red-500':!_0x3cb9fd}),'children':_0x6edcb3}),P[_0x158a2a(0x245)](_0x158a2a(0x140),{'className':_0x158a2a(0x136),'children':_0x158e8c})]});}return _0x3cb9fd?_0xa4fab8():P['jsx'](D[_0x15dc4f(0x2f4)],{'title':_0x3b1f0c['t'](_0x15dc4f(0x2d4)),'children':_0xa4fab8()});}var Lt=Object[_0x314074(0xb7)],Pt=(_0x2d0f69,_0x10d62a,_0x48babb,_0x1ead71)=>{for(var _0x29a076=_0x1ead71>0x1?void 0x0:_0x1ead71?Lt(_0x10d62a,_0x48babb):_0x10d62a,_0x38baff=_0x2d0f69['length']-0x1,_0xb15ee;_0x38baff>=0x0;_0x38baff--)(_0xb15ee=_0x2d0f69[_0x38baff])&&(_0x29a076=_0xb15ee(_0x29a076)||_0x29a076);return _0x29a076;},V=(_0x49123b,_0x465271)=>(_0x3cf9e4,_0x31cabc)=>_0x465271(_0x3cf9e4,_0x31cabc,_0x49123b);exports[_0x314074(0x14e)]=class extends a['Disposable']{constructor(_0x107e0e,_0x270595,_0x2c57f9,_0x379620){const _0x49d1bf=_0x314074;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x49d1bf(0x21e)]['NOT_COLLAB'])),(this[_0x49d1bf(0x11f)]=_0x107e0e,this[_0x49d1bf(0x1cf)]=_0x270595,this[_0x49d1bf(0x159)]=_0x2c57f9,this[_0x49d1bf(0x217)]=_0x379620,this['_initStatusComponent'](),this[_0x49d1bf(0xff)]());}[_0x314074(0xff)](){const _0xf88e39=_0x314074;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0xf88e39(0xb2)](d[_0xf88e39(0x134)](()=>{const _0x18dd5a=_0xf88e39,_0x3a4048=this[_0x18dd5a(0x11f)][_0x18dd5a(0x28d)]();return _0x3a4048?this[_0x18dd5a(0x159)][_0x18dd5a(0xea)](_0x3a4048[_0x18dd5a(0x302)]()):d['of'](null);}),d[_0xf88e39(0x134)](_0x3a060e=>_0x3a060e?_0x3a060e[_0xf88e39(0xab)]:d['of'](u[_0xf88e39(0x21e)][_0xf88e39(0x2a1)])))[_0xf88e39(0x112)](_0x2bb983=>{const _0x5509c1=_0xf88e39;this[_0x5509c1(0x1dd)][_0x5509c1(0x13c)](_0x2bb983);}));}[_0x314074(0x9f)](){const _0x824967=_0x314074;this[_0x824967(0x2af)](this[_0x824967(0x217)][_0x824967(0xbf)](T[_0x824967(0x91)][_0x824967(0x16a)],()=>T['connectInjector'](At({'status$':this[_0x824967(0x1dd)][_0x824967(0x1e9)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x314074(0xb4)]),V(0x1,a[_0x314074(0x1d5)](a['Injector'])),V(0x2,a[_0x314074(0x1d5)](u[_0x314074(0xd8)])),V(0x3,T[_0x314074(0x122)])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x280f02){const {status$:_0x1b7bfe}=_0x280f02;return function(){const _0x7ad94b=_0x391f;return P[_0x7ad94b(0x245)](xe,{'status$':_0x1b7bfe});};}var wt=Object[_0x314074(0xb7)],yt=(_0x15d1d2,_0x1316ac,_0x510a1e,_0x53c868)=>{const _0x71f7d2=_0x314074;for(var _0x204abb=_0x53c868>0x1?void 0x0:_0x53c868?wt(_0x1316ac,_0x510a1e):_0x1316ac,_0x104d47=_0x15d1d2[_0x71f7d2(0xbe)]-0x1,_0x44e7b7;_0x104d47>=0x0;_0x104d47--)(_0x44e7b7=_0x15d1d2[_0x104d47])&&(_0x204abb=_0x44e7b7(_0x204abb)||_0x204abb);return _0x204abb;},y=(_0x24ce85,_0x55dcb0)=>(_0x452ffa,_0x20b657)=>_0x55dcb0(_0x452ffa,_0x20b657,_0x24ce85);let q=class extends a[_0x314074(0x14a)]{constructor(_0xe73ab6,_0x1e247d,_0x308b3f,_0x2177d1,_0x27cb1c,_0x523184){const _0xc5732a=_0x314074;super(),this[_0xc5732a(0x1a5)]=_0xe73ab6,this[_0xc5732a(0x161)]=_0x1e247d,this[_0xc5732a(0x296)]=_0x308b3f,this[_0xc5732a(0x119)]=_0x2177d1,this[_0xc5732a(0x13a)]=_0x27cb1c,this[_0xc5732a(0x166)]=_0x523184,this[_0xc5732a(0x2ca)](),this['_initEvent']();}[_0x314074(0x2ca)](){const _0x114f19=_0x314074;this[_0x114f19(0x2af)](this[_0x114f19(0x1a5)][_0x114f19(0x16c)](()=>{const _0x3a22a8=_0x114f19;if(this[_0x3a22a8(0x161)]['saveTaskMap'][_0x3a22a8(0x152)])return this['_localeService']['t'](_0x3a22a8(0x1c7));}));}[_0x314074(0xca)](){const _0x40dbec=_0x314074;this[_0x40dbec(0x2af)](this[_0x40dbec(0x296)]['event$'][_0x40dbec(0x112)](_0x7864b0=>{const _0xfb925b=_0x40dbec;_0x7864b0['id']===u[_0xfb925b(0x1f8)]['OTHER_CLIENT_EDITING']&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)][_0xfb925b(0xf4)],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x28e))}),_0x7864b0['id']===u['CollaborationUIEventId'][_0xfb925b(0x1b0)]&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)][_0xfb925b(0xf4)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x7864b0['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this['_notificationService'][_0xfb925b(0x277)]({'title':this['_localeService']['t'](_0xfb925b(0xf6)),'content':this[_0xfb925b(0x166)]['t']('permission.content'),'type':'error','duration':0x0}),_0x7864b0['id']===u[_0xfb925b(0x1f8)]['CONFLICT']&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)]['Error'],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x2f6))+'('+_0x7864b0[_0xfb925b(0xd1)]+')'}),_0x7864b0['id']===u[_0xfb925b(0x1f8)]['JOIN_ROOM_FAILED']&&this[_0xfb925b(0x119)]['show']({'type':D['MessageType']['Warning'],'content':this[_0xfb925b(0x166)]['t'](_0x7864b0['data']||'')}),_0x7864b0['id']===u[_0xfb925b(0x1f8)]['SOCKET_FAILED_RETRY']&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)][_0xfb925b(0xf4)],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x1a6))}),_0x7864b0['id']===u[_0xfb925b(0x1f8)][_0xfb925b(0x1d2)]&&this['_messageService'][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)][_0xfb925b(0x9a)],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x304))}),_0x7864b0['id']===u[_0xfb925b(0x1f8)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)]['Error'],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x303))});}));}};q=yt([y(0x0,T[_0x314074(0x153)]),y(0x1,u[_0x314074(0x139)]),y(0x2,a['Inject'](u[_0x314074(0x1d4)])),y(0x3,T['IMessageService']),y(0x4,T['INotificationService']),y(0x5,a[_0x314074(0x1d5)](a[_0x314074(0x1a9)]))],q);const $t=_0x314074(0x2a8),Ue={},be=a[_0x314074(0x29d)]('uni.network.url-service');var xt=Object[_0x314074(0xb7)],jt=(_0x3845bb,_0x5e8c11,_0x40e376,_0x1e6ef8)=>{const _0x440846=_0x314074;for(var _0xfc93bd=_0x1e6ef8>0x1?void 0x0:_0x1e6ef8?xt(_0x5e8c11,_0x40e376):_0x5e8c11,_0x91d20a=_0x3845bb[_0x440846(0xbe)]-0x1,_0x201fd9;_0x91d20a>=0x0;_0x91d20a--)(_0x201fd9=_0x3845bb[_0x91d20a])&&(_0xfc93bd=_0x201fd9(_0xfc93bd)||_0xfc93bd);return _0xfc93bd;},H=(_0x1c7073,_0x527387)=>(_0xc7a9fc,_0x34232b)=>_0x527387(_0xc7a9fc,_0x34232b,_0x1c7073);exports[_0x314074(0x202)]=class extends a['RxDisposable']{constructor(_0x53f8b1,_0x16e5f6,_0x42a725,_0x3159a8,_0x3b0c30){const _0x3ab622=_0x314074;super(),this[_0x3ab622(0x95)]=_0x53f8b1,this['_logService']=_0x16e5f6,this[_0x3ab622(0x135)]=_0x42a725,this[_0x3ab622(0x27f)]=_0x3159a8,_0x3b0c30?_0x3b0c30==null||_0x3b0c30[_0x3ab622(0x11a)]()['then'](()=>this[_0x3ab622(0x121)]()):(this[_0x3ab622(0x19f)][_0x3ab622(0xe2)](_0x3ab622(0xbd),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x3ab622(0x121)]());}async[_0x314074(0x121)](){const _0x5efa26=_0x314074,_0x32561b=this['_urlService'][_0x5efa26(0x10f)](_0x5efa26(0x10a)),_0x544ca4=this[_0x5efa26(0x95)]['getParam']('type'),_0xc83d2a=this[_0x5efa26(0x95)]['getParam']('subunit');if(!_0x32561b||!_0x544ca4){this['_logService'][_0x5efa26(0xe2)](_0x5efa26(0xbd),_0x5efa26(0x25f));return;}const _0xb0a925=await this['_dataLoaderService']['loadUnit'](_0x32561b,Number(_0x544ca4),_0xc83d2a);_0xb0a925&&_0xb0a925 instanceof a['Workbook']&&this[_0x5efa26(0x163)](_0xb0a925);}async[_0x314074(0x163)](_0x165eb3){const _0x1486aa=_0x314074;await this[_0x1486aa(0x174)](_0x165eb3),_0x165eb3[_0x1486aa(0x2da)][_0x1486aa(0xb2)](d[_0x1486aa(0x1b7)](this[_0x1486aa(0xd2)]))[_0x1486aa(0x112)](_0x1377cb=>{_0x1377cb&&this['_updateURLWithCurrentState'](_0x1377cb);}),this['_urlService'][_0x1486aa(0x2b8)][_0x1486aa(0xb2)](d[_0x1486aa(0x1b7)](this[_0x1486aa(0xd2)]))['subscribe'](()=>this[_0x1486aa(0x174)](_0x165eb3));}[_0x314074(0xa4)](_0x14fb57,_0x521026=!0x1){const _0xc9119e=_0x314074,_0x18f928=this[_0xc9119e(0x95)][_0xc9119e(0x10f)](_0xc9119e(0x2b1));_0x14fb57[_0xc9119e(0xdc)]()!==_0x18f928&&this[_0xc9119e(0x95)][_0xc9119e(0xaa)](_0xc9119e(0x2b1),_0x14fb57[_0xc9119e(0xdc)](),_0x521026);}async[_0x314074(0x174)](_0x4d272c){const _0x515ac1=_0x314074;var _0x7177ff;const _0x338d55=this[_0x515ac1(0x95)][_0x515ac1(0x10f)](_0x515ac1(0x2b1));if(!_0x338d55||!_0x4d272c[_0x515ac1(0x205)](_0x338d55)){const _0x396b53=_0x4d272c[_0x515ac1(0x1db)]()[0x0],_0x2b1571=_0x4d272c[_0x515ac1(0x205)](_0x396b53);if(!_0x2b1571)return;this[_0x515ac1(0xa4)](_0x2b1571,!0x0),await this['_commandService']['executeCommand'](g[_0x515ac1(0x1ed)]['id'],{'unitId':_0x4d272c[_0x515ac1(0x302)](),'subUnitId':_0x396b53});return;}((_0x7177ff=_0x4d272c[_0x515ac1(0x2d1)]())==null?void 0x0:_0x7177ff[_0x515ac1(0xdc)]())!==_0x338d55&&await this[_0x515ac1(0x135)][_0x515ac1(0x2d8)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4d272c['getUnitId'](),'subUnitId':_0x338d55});}},exports[_0x314074(0x202)]=jt([H(0x0,be),H(0x1,a[_0x314074(0x15a)]),H(0x2,a[_0x314074(0x94)]),H(0x3,a[_0x314074(0x1d5)](u['DataLoaderService'])),H(0x4,a[_0x314074(0x194)](Ke[_0x314074(0x2b4)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x314074(0xb7)],kt=(_0x7957ec,_0x1652a0,_0x3a7408,_0x7bfb2)=>{const _0x59a1b2=_0x314074;for(var _0x3667aa=_0x7bfb2>0x1?void 0x0:_0x7bfb2?Bt(_0x1652a0,_0x3a7408):_0x1652a0,_0x18d816=_0x7957ec[_0x59a1b2(0xbe)]-0x1,_0x555dc7;_0x18d816>=0x0;_0x18d816--)(_0x555dc7=_0x7957ec[_0x18d816])&&(_0x3667aa=_0x555dc7(_0x3667aa)||_0x3667aa);return _0x3667aa;},ce=(_0x4381c1,_0x23515d)=>(_0x4deee2,_0x585dfe)=>_0x23515d(_0x4deee2,_0x585dfe,_0x4381c1);let z=class{constructor(_0x119cf8,_0x2148c5,_0x1c2ad3){const _0x1a5622=_0x314074;this[_0x1a5622(0x1cf)]=_0x119cf8,this[_0x1a5622(0x231)]=_0x2148c5,this[_0x1a5622(0xe1)]=_0x1c2ad3;}['transformIMECache'](_0x5646cc){const _0x4ecfed=_0x314074;this[_0x4ecfed(0x22a)](_0x5646cc),this['_transformPreviousActiveRange'](_0x5646cc);}[_0x314074(0x1c0)](_0x52f2d6){const _0x3b3b8d=_0x314074,{unitID:_0x4f1430}=_0x52f2d6,_0x2dadb3=this[_0x3b3b8d(0xe1)][_0x3b3b8d(0x17d)](_0x4f1430)[_0x3b3b8d(0xaf)](b['DocIMEInputManagerService']),{redoCache:_0x41d5a0}=_0x2dadb3[_0x3b3b8d(0x208)]();if(_0x41d5a0[_0x3b3b8d(0xbe)]===0x0)return _0x52f2d6;let _0x22c093=a['Tools'][_0x3b3b8d(0x172)](_0x52f2d6['mutations'][0x0]);for(let _0x4b595e=0x0;_0x4b595e<_0x41d5a0[_0x3b3b8d(0xbe)];_0x4b595e++){const _0x593318={'id':_0x3b3b8d(0x178),'params':{..._0x41d5a0[_0x4b595e]}},_0x54fc4b=this['_transformService']['transformMutation'](_0x22c093,_0x593318,!0x1);if(m[_0x3b3b8d(0x2fc)](_0x54fc4b))throw _0x54fc4b[_0x3b3b8d(0x2b5)];_0x22c093=_0x54fc4b['m1Prime'];}return{...a[_0x3b3b8d(0x144)][_0x3b3b8d(0x172)](_0x52f2d6),'mutations':[_0x22c093]};}[_0x314074(0x22a)](_0x521172){const _0x1de1e8=_0x314074,{unitID:_0x411b9e}=_0x521172,_0x307e11=this[_0x1de1e8(0xe1)][_0x1de1e8(0x17d)](_0x411b9e)[_0x1de1e8(0xaf)](b[_0x1de1e8(0xdb)]),{undoCache:_0x30245f,redoCache:_0x3aac8f}=_0x307e11[_0x1de1e8(0x208)]();if(_0x30245f[_0x1de1e8(0xbe)]===0x0||_0x3aac8f['length']===0x0)return;const _0x1fea42=[],_0x169c61=[];let _0x15cadd=a[_0x1de1e8(0x144)]['deepClone'](_0x521172[_0x1de1e8(0x26b)][0x0]),_0x50b90c=a[_0x1de1e8(0x144)][_0x1de1e8(0x172)](_0x521172[_0x1de1e8(0x26b)][0x0]);for(let _0x1f31e3=_0x30245f[_0x1de1e8(0xbe)]-0x1;_0x1f31e3>=0x0;_0x1f31e3--){const _0x1f0708={'id':_0x1de1e8(0x178),'params':{..._0x30245f[_0x1f31e3]}},_0x1d46cf={'id':_0x1de1e8(0x178),'params':{..._0x3aac8f[_0x1f31e3]}},_0x2db867=this[_0x1de1e8(0x231)]['transformMutation'](_0x15cadd,_0x1f0708,!0x1),_0x4ae426=this[_0x1de1e8(0x231)][_0x1de1e8(0x1a8)](_0x50b90c,_0x1d46cf,!0x1);if(m[_0x1de1e8(0x2fc)](_0x2db867))throw _0x2db867[_0x1de1e8(0x2b5)];if(m[_0x1de1e8(0x2fc)](_0x4ae426))throw _0x4ae426['error'];_0x1fea42[_0x1de1e8(0x2bd)](_0x2db867[_0x1de1e8(0x2e4)][_0x1de1e8(0x239)]),_0x169c61[_0x1de1e8(0x2bd)](_0x4ae426[_0x1de1e8(0x2e4)][_0x1de1e8(0x239)]),_0x15cadd=_0x2db867[_0x1de1e8(0x2fa)],_0x50b90c=_0x4ae426[_0x1de1e8(0x2fa)];}_0x307e11[_0x1de1e8(0x12f)]({'undoCache':_0x1fea42,'redoCache':_0x169c61});}[_0x314074(0x17b)](_0x570fe6){const _0x254661=_0x314074,{unitID:_0x10d816}=_0x570fe6,_0x255b7d=this[_0x254661(0xe1)][_0x254661(0x17d)](_0x10d816)[_0x254661(0xaf)](b['DocIMEInputManagerService']),_0x7578da=_0x255b7d[_0x254661(0x26c)]();if(_0x7578da==null)return;const _0x163cdb=[{'id':_0x254661(0x178),'params':{'unitId':_0x570fe6['unitID'],'actions':null,'textRanges':[_0x7578da]}}],_0x397335=this[_0x254661(0x231)][_0x254661(0x92)](_0x570fe6,_0x163cdb);if(!m[_0x254661(0x1cc)](_0x397335))throw _0x397335['error'];const _0x19a9d3=_0x397335[_0x254661(0x2e4)][0x0]['params']['textRanges'];Array[_0x254661(0x2ab)](_0x19a9d3)&&_0x19a9d3['length']&&_0x255b7d[_0x254661(0x216)](_0x19a9d3[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x314074(0x108)])),ce(0x1,m[_0x314074(0x131)]),ce(0x2,p[_0x314074(0xfa)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x4521a3,_0x5db84f,_0x344174,_0x2c31bd)=>{for(var _0x345223=_0x2c31bd>0x1?void 0x0:_0x2c31bd?Ht(_0x5db84f,_0x344174):_0x5db84f,_0x5003ab=_0x4521a3['length']-0x1,_0x5eb419;_0x5003ab>=0x0;_0x5003ab--)(_0x5eb419=_0x4521a3[_0x5003ab])&&(_0x345223=_0x5eb419(_0x345223)||_0x345223);return _0x345223;},le=(_0x2bcc12,_0x215732)=>(_0x432ce7,_0x68463c)=>_0x215732(_0x432ce7,_0x68463c,_0x2bcc12);let J=class{constructor(_0x5cf17e,_0x5b2e08,_0x5a1cad){const _0x5e212e=_0x314074;this[_0x5e212e(0x1cf)]=_0x5cf17e,this[_0x5e212e(0x231)]=_0x5b2e08,this[_0x5e212e(0x195)]=_0x5a1cad;}[_0x314074(0x309)](_0x20a656){const _0x4fc910=_0x314074;this[_0x4fc910(0x146)](_0x20a656);}[_0x314074(0x1c0)](_0xba733c){const _0x12eb7c=_0x314074,{unitID:_0x690ad1}=_0xba733c,{collaboration:_0x1ac3ec}=this['_docStateChangeManagerService'][_0x12eb7c(0x244)](_0x690ad1);if(_0x1ac3ec['length']===0x0)return _0xba733c;let _0x284a68=a[_0x12eb7c(0x144)][_0x12eb7c(0x172)](_0xba733c[_0x12eb7c(0x26b)][0x0]);for(let _0x5dcf35=0x0;_0x5dcf35<_0x1ac3ec[_0x12eb7c(0xbe)];_0x5dcf35++){const _0x49b3ea={'id':_0x12eb7c(0x178),'params':{'unitId':_0x1ac3ec[_0x5dcf35][_0x12eb7c(0xe4)],..._0x1ac3ec[_0x5dcf35][_0x12eb7c(0x25e)]}},_0x4b0496=this['_transformService'][_0x12eb7c(0x1a8)](_0x284a68,_0x49b3ea,!0x1);if(m['isTransformMutationFailure'](_0x4b0496))throw _0x4b0496[_0x12eb7c(0x2b5)];_0x284a68=_0x4b0496['m1Prime'];}return{...a[_0x12eb7c(0x144)][_0x12eb7c(0x172)](_0xba733c),'mutations':[_0x284a68]};}[_0x314074(0x146)](_0x10feb4){const _0x2be0f1=_0x314074,{unitID:_0x56b2d7}=_0x10feb4,{history:_0x55d545,collaboration:_0x382a14}=this[_0x2be0f1(0x195)][_0x2be0f1(0x244)](_0x56b2d7);if(_0x55d545[_0x2be0f1(0xbe)]===0x0&&_0x382a14[_0x2be0f1(0xbe)]===0x0)return;const _0x5a8081=[],_0x31bfbb=[];let _0x1bc3c4=a[_0x2be0f1(0x144)][_0x2be0f1(0x172)](_0x10feb4[_0x2be0f1(0x26b)][0x0]),_0x4f3c1d=a[_0x2be0f1(0x144)][_0x2be0f1(0x172)](_0x10feb4[_0x2be0f1(0x26b)][0x0]);for(let _0x25c797=_0x55d545['length']-0x1;_0x25c797>=0x0;_0x25c797--){const _0x2f691c={'id':_0x2be0f1(0x178),'params':{'unitId':_0x55d545[_0x25c797]['unitId'],..._0x55d545[_0x25c797]['undoState']}},_0x51e4c3={'id':_0x2be0f1(0x178),'params':{'unitId':_0x55d545[_0x25c797][_0x2be0f1(0xe4)],..._0x55d545[_0x25c797]['redoState']}},_0x3c8930=this[_0x2be0f1(0x231)][_0x2be0f1(0x1a8)](_0x1bc3c4,_0x2f691c,!0x1),_0x2236c7=this[_0x2be0f1(0x231)][_0x2be0f1(0x1a8)](_0x4f3c1d,_0x51e4c3,!0x1);if(m[_0x2be0f1(0x2fc)](_0x3c8930))throw _0x3c8930[_0x2be0f1(0x2b5)];if(m[_0x2be0f1(0x2fc)](_0x2236c7))throw _0x2236c7[_0x2be0f1(0x2b5)];_0x5a8081[_0x2be0f1(0x2bd)]({..._0x55d545[_0x25c797],'undoState':_0x3c8930[_0x2be0f1(0x2e4)][_0x2be0f1(0x239)],'redoState':_0x2236c7[_0x2be0f1(0x2e4)][_0x2be0f1(0x239)]}),_0x1bc3c4=_0x3c8930[_0x2be0f1(0x2fa)],_0x4f3c1d=_0x2236c7[_0x2be0f1(0x2fa)];}_0x1bc3c4=a[_0x2be0f1(0x144)][_0x2be0f1(0x172)](_0x10feb4[_0x2be0f1(0x26b)][0x0]),_0x4f3c1d=a[_0x2be0f1(0x144)][_0x2be0f1(0x172)](_0x10feb4[_0x2be0f1(0x26b)][0x0]);for(let _0xef8a47=_0x382a14['length']-0x1;_0xef8a47>=0x0;_0xef8a47--){const _0x20e799={'id':_0x2be0f1(0x178),'params':{'unitId':_0x382a14[_0xef8a47][_0x2be0f1(0xe4)],..._0x382a14[_0xef8a47][_0x2be0f1(0x29e)]}},_0x57ade4={'id':_0x2be0f1(0x178),'params':{'unitId':_0x382a14[_0xef8a47]['unitId'],..._0x382a14[_0xef8a47][_0x2be0f1(0x25e)]}},_0x1aff11=this[_0x2be0f1(0x231)][_0x2be0f1(0x1a8)](_0x1bc3c4,_0x20e799,!0x1),_0x24c93d=this[_0x2be0f1(0x231)][_0x2be0f1(0x1a8)](_0x4f3c1d,_0x57ade4,!0x1);if(m['isTransformMutationFailure'](_0x1aff11))throw _0x1aff11['error'];if(m[_0x2be0f1(0x2fc)](_0x24c93d))throw _0x24c93d['error'];_0x31bfbb[_0x2be0f1(0x2bd)]({..._0x382a14[_0xef8a47],'undoState':_0x1aff11[_0x2be0f1(0x2e4)][_0x2be0f1(0x239)],'redoState':_0x24c93d[_0x2be0f1(0x2e4)]['params']}),_0x1bc3c4=_0x1aff11[_0x2be0f1(0x2fa)],_0x4f3c1d=_0x24c93d['m1Prime'];}this[_0x2be0f1(0x195)][_0x2be0f1(0x20f)](_0x56b2d7,{'history':_0x5a8081,'collaboration':_0x31bfbb});}};J=Ft([le(0x0,a[_0x314074(0x1d5)](a[_0x314074(0x108)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](b[_0x314074(0x111)]))],J);var Yt=Object[_0x314074(0xb7)],Wt=(_0x3b07ae,_0x130ab5,_0x16baa9,_0x9aad0d)=>{const _0x492ef0=_0x314074;for(var _0x4430c6=_0x9aad0d>0x1?void 0x0:_0x9aad0d?Yt(_0x130ab5,_0x16baa9):_0x130ab5,_0x112d23=_0x3b07ae[_0x492ef0(0xbe)]-0x1,_0x4b0759;_0x112d23>=0x0;_0x112d23--)(_0x4b0759=_0x3b07ae[_0x112d23])&&(_0x4430c6=_0x4b0759(_0x4430c6)||_0x4430c6);return _0x4430c6;},Ne=(_0x5dd9aa,_0x5ec105)=>(_0x4d70ae,_0x247e8b)=>_0x5ec105(_0x4d70ae,_0x247e8b,_0x5dd9aa);let Z=class{constructor(_0x3f43fd,_0x3a36c9){const _0x2d75cd=_0x314074;this[_0x2d75cd(0x1cf)]=_0x3f43fd,this[_0x2d75cd(0x231)]=_0x3a36c9;}[_0x314074(0xa1)](_0x55e8c7){const _0x7050ca=_0x314074;var _0x3c62ef;const _0x3c6ed4=this[_0x7050ca(0x1cf)][_0x7050ca(0x176)](Y[_0x7050ca(0x2aa)]),_0x443dd6=(_0x3c62ef=_0x3c6ed4['getDocRanges']())!=null?_0x3c62ef:[];if(_0x443dd6['length']===0x0)return;const _0x19fb79=_0x55e8c7[_0x7050ca(0x1b9)],_0x3d10ff=[{'id':_0x7050ca(0x178),'params':{'unitId':_0x19fb79,'actions':null,'textRanges':_0x443dd6}}],_0x1ef3ce=this[_0x7050ca(0x231)][_0x7050ca(0x92)](_0x55e8c7,_0x3d10ff);if(!m[_0x7050ca(0x1cc)](_0x1ef3ce))throw _0x1ef3ce[_0x7050ca(0x2b5)];const _0x3f7a54=_0x1ef3ce[_0x7050ca(0x2e4)][0x0]['params']['textRanges'];Array[_0x7050ca(0x2ab)](_0x3f7a54)&&_0x3f7a54[_0x7050ca(0xbe)]&&_0x3c6ed4[_0x7050ca(0x30b)](_0x3f7a54,{'unitId':_0x19fb79,'subUnitId':_0x19fb79},!0x1);}};Z=Wt([Ne(0x0,a[_0x314074(0x1d5)](a['Injector'])),Ne(0x1,m[_0x314074(0x131)])],Z);var Vt=Object[_0x314074(0xb7)],Xt=(_0x2b3d08,_0x242bc1,_0x6872d2,_0x3be226)=>{const _0x3e8df=_0x314074;for(var _0x1c52de=_0x3be226>0x1?void 0x0:_0x3be226?Vt(_0x242bc1,_0x6872d2):_0x242bc1,_0x1f9cc9=_0x2b3d08[_0x3e8df(0xbe)]-0x1,_0x3485e4;_0x1f9cc9>=0x0;_0x1f9cc9--)(_0x3485e4=_0x2b3d08[_0x1f9cc9])&&(_0x1c52de=_0x3485e4(_0x1c52de)||_0x1c52de);return _0x1c52de;},N=(_0x4da38b,_0x2b8f35)=>(_0x548f11,_0x97536f)=>_0x2b8f35(_0x548f11,_0x97536f,_0x4da38b);let Q=class extends a[_0x314074(0x14a)]{constructor(_0x485bf5,_0x2dbe1f,_0x27e5c8,_0x5cf116,_0x565f77,_0xf83a93,_0x18ac2e,_0x5c8cce){const _0x197d39=_0x314074;super(),h(this,_0x197d39(0x1dd),new d[(_0x197d39(0x1b3))](u[_0x197d39(0x21e)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x485bf5,this[_0x197d39(0x159)]=_0x2dbe1f,this['_docTransformIMECacheService']=_0x27e5c8,this[_0x197d39(0x255)]=_0x5cf116,this[_0x197d39(0xeb)]=_0x565f77,this['_docSyncEditingCollabCursorService']=_0xf83a93,this[_0x197d39(0x119)]=_0x18ac2e,this[_0x197d39(0x166)]=_0x5c8cce,this[_0x197d39(0x1c5)]());}[_0x314074(0x1c5)](){const _0x5dd898=_0x314074;this[_0x5dd898(0x2af)](this[_0x5dd898(0x159)][_0x5dd898(0xee)]['subscribe'](_0x2afae3=>{const _0x15802c=_0x5dd898,_0x46b84b=this[_0x15802c(0x195)][_0x15802c(0xce)][_0x15802c(0x112)](_0x18bdf6=>{const _0xb9814c=_0x15802c;if(_0x18bdf6==null)return;const {unitId:_0x326a40,redoState:_0x4c910d,commandId:_0x540afc}=_0x18bdf6;if(_0x326a40!==_0x2afae3[_0xb9814c(0x1b9)])return;const _0x3e37af={'id':_0x540afc,'type':a[_0xb9814c(0x2df)]['MUTATION'],'params':{'unitId':_0x326a40,'actions':_0x4c910d[_0xb9814c(0x1ba)],'textRanges':null}};_0x2afae3[_0xb9814c(0xc3)](_0x3e37af);});if(_0x2afae3[_0x15802c(0x2af)](_0x46b84b),_0x2afae3 instanceof u[_0x15802c(0xd5)]){const _0xe59bf3={'onTransformIME':_0x1d4b2d=>this[_0x15802c(0x2c5)][_0x15802c(0x13d)](_0x1d4b2d),'onTransformState':_0x5c3db2=>this[_0x15802c(0x255)][_0x15802c(0x309)](_0x5c3db2),'onTransformSelections':_0x296c96=>this[_0x15802c(0xeb)][_0x15802c(0xa1)](_0x296c96),'onSyncEditingCollabCursor':_0x54fd44=>this[_0x15802c(0xde)][_0x15802c(0x186)](_0x54fd44),'onTransformRemoteChangesetByIMECache':_0x18b58d=>this[_0x15802c(0x2c5)]['transformRemoteChangeset'](_0x18b58d),'onTransformRemoteChangesetByStateCache':_0xb6f35=>this[_0x15802c(0x255)]['transformRemoteChangeset'](_0xb6f35)};_0x2afae3[_0x15802c(0xa6)](_0xe59bf3);}}));}};function _0x34cf(){const _0x1c308a=['onPointerMove$','_toggleOffline','_cursorShapes','CLOSE_ROOM','propertyIsEnumerable','makeDirty','BehaviorSubject','call','_handleHover','_color','takeUntil','_handleLeaveEvent','unitID','actions','toString','set','saveTaskMap','handleDeleteRangeMoveLeft','InsertRangeMoveRightCommandId','transformRemoteChangeset','includes','UNIVER_DOC','handleInsertRangeMoveDown','LICENSE_EXPORT_SIZE_EXCEEDED','_initEntityListener','2291964xTpsha','collaboration-client.offline-data-not-saved','backgroundColor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','forEach','editingUnit','isTransformMutationsWithChangesetSuccess','collabStatus.conflict','_themeService','_injector','selection','width','SOCKET_FAILED','_onCursorUpdate','CollaborationUIEventService','Inject','_name','SYNCED','_document','origin','682746ZLechC','getUnhiddenWorksheets','onPointerLeave$','_status$','PERMISSION_DENIED','SheetSkeletonManagerService','_scheduleHeartbeat','_getSheetObject','InsertRowCommandId','_drawTextRange','blue.400','HTTPService','fillStyle','searchParams','TOO_MANY_REQUESTS','asObservable','popstate','_cursorInfo$','DeleteRangeMoveLeftCommandId','SetWorksheetActivateCommand','LICENSE_MAX_UNITS_EXCEEDED','from','code','getTypeOfUnitAdded$','application/json','COLORS','512xYGJTC','NOT_FOUND','_cursor','fillRule','CollaborationUIEventId','parse','push','complete','_shapes','UNRECOGNIZED','RECT','min','ISocketService','@univerjs/network','CollaborationDataLoaderController','collabCursorState$','mapTo','getSheetBySheetId','VIEW_MAIN','href','getUndoRedoMutationParamsCache','INTERNAL_ERROR','executionId','getRelativeToViewportCoord','rgba(255,\x20255,\x20255,\x200.01)','_getSessionTicket','YUUMI_NO_CUBOID_FOR_QUESTION','setStateCache','UniverCollaborationClientPlugin','_backgroundColor','_session','getUnitStatus$','@univerjs/drawing','getCurrentSelections','setActiveRange','_uiPartsService','dispose','_entityInit$','getSheetObject','removeParam','getCurrentRevOfUnit','LICENSE_IMPORT_SIZE_EXCEEDED','CollaborationStatus','onTransformChange$','_configService','@univerjs/ui','CHANGESET_REVISION_CONFILICT','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_initCommandExecutedListener','xlink:href','CollaborationEvent','getOwnPropertySymbols','2183146ScVfGH','getColor','_transformUndoRedoStack','_doCreateSocket','YUUMI_ASYNCIO_CANCELLED','INVALID_ARGUMENT','debounceTime','@univerjs/sheets','ACTIVE_UNIT_EVENT_CHANNEL','_transformService','getItem','_drawRectRange','subscribeEvent','flatMap','Vector2','RevisionService','Shape','params','@univerjs-pro/collaboration-client','CONFLICT','transformByState','defIds','_anchor','_colorAssignService','isActive','colorChannel1','concat','evenodd','getStateCache','jsx','jsxs','YUUMI_TABLE_NOT_FOUND_IN_UNIT','children','3417660bEHKpm','add','roomMembers$','_onCursorDelete','round','_assignedColors','setAlpha','endColumn','29354110HFwLFR','DOC_RANGE_TYPE','_drawAnchor','LICENSE_DISTRO_REJECTED','_docTransformStateCacheService','unsubscribe','_revisionService','_range','SetTextSelectionsOperation','_getMergeRange','_initDependencies','onStarting','row','redoState','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','location','_online','arc','RemoveColCommandId','_updateLocalCursor','collabStatus.notCollab','init','transform','type','_sheetSkeletonManagerService','mutations','getActiveRange','skeleton','LOCAL_CACHE_INTERVAL','13986EpiavJ','body','_entities','_saveTaskMap','UniverInstanceType','FETCH_MISS','APPLY_NON_SEQUENTIAL_REVISION','collabStatus.synced','show','stringify','touchDependencies','Failed','UNDEFINED','YUUMI_RATE_OVER_LIMIT','disableLocalCache','getCurrentUnitForType','_dataLoaderService','getConfig','ENSURE_SNAPSHOT_EXECUTION','TEXT','_eventUnsubscribe','runId','send','USERS_LEAVE','WebBrowserSingleActiveUnitService','clearTimeout','distinctUntilChanged','hide','SetDocZoomRatioOperation','off-line-single_clip0_910_343','getFocusedUnit','collaboration.single-unit.warning','_refRangeService','handleInsertRow','PENDING','IDocClipboardService','newValue','TEXT_RANGE_LAYER_INDEX','mask','_collaborationUIEventService','throttleTime','onCommandExecuted','_startSheetCollabCursor','getCoordByCell','@univerjs/design','on-line-single','createIdentifier','undoState','Rect','defineProperty','NOT_COLLAB','hovered','handleInsertRangeMoveRight','_imageIoService','rxjs/operators','saveOfflineData','_scheduleClearOtherTimer','collaboration-client-ui.config','ranges','DocSelectionManagerService','isArray','_handleEvent','0\x200\x2016\x2016','getTypeOfUnitDisposed$','disposeWithMe','NO_OTHER_CLIENTS_EDITING','subunit','_scheduleSaving','@univerjs/rpc','IRemoteInstanceService','error','YUUMI_URL_COL_OUT_OF_RANGE','override','urlChange$','_textBubble','#FFF','getCollabCursors$','collab-rect-range-','unshift','color','toRgbString','RefRangeService','createInstance','CollaborationSocketService','univer-flex\x20univer-mr-2\x20univer-text-xl','EMAIL_HAS_BEEN_BOUND','_docTransformIMECacheService','DocSkeletonManagerService','setShapeProps','setConfig','replaceState','_setupBeforeClosingHandler','ILocalStorageService','5uTAZit','_selfUnitIDs','addObject','MoveRangeCommandId','_handleHeartbeatEvent','getActiveSheet','NodePositionConvertToRectRange','RichTextEditingMutation','collab-client.tooltip.reconnect','_send','DEFAULT_WS_SESSION_TICKET_URL','_hover','executeCommand','all','activeSheet$','_toggleOnline','ONLINE','_collabCursorState$','engine','CommandType','url(#on-line-single_clip0_910_349)','icon','fromEventSubject','addEventListener','m2Prime','handleIRemoveCol','bottom','purple.300','getLocalCacheKey','height','Unknown\x20user','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_colorIndex','_registerDependencies','useDependency','_memberService','_registerRenderDependencies','@univerjs/sheets-ui','clipPath','useCallback','Tooltip','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collaboration.closeRoom','toDisposable','name','red.300','m1Prime','combineLatest','isTransformMutationFailure','values','textRanges','_syncEditingCollabCursorService','attrs','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getUnitId','session.collaboration-timeout','session.connection-failed','RemoteUniscriptService','createSocket','_scene','enableLocalCache','transformStateCache','SheetsSelectionsService','replaceDocRanges','_context','black','INVALID_INVITE_CODE','RegularPolygon','path','tag','cursorInfo','BuiltInUIPart','transformMutationsWithChangeset','restore','ICommandService','_urlService','current','INVITE_CODE_ALREADY_BOUND','SheetCollabCursorShape','registerRefRange','Error','9RTfTrJ','sessionTicket','_labelPosition','runOnServer','_initStatusComponent','OTHER_CLIENTS_EDITING','transformSelections','_config','eventID','_updateURLWithCurrentState','map','addHandlerCallback','assignAColorForMemberID','merge','_collabCursorController','setParam','status$','then','yellow.400','DeleteRangeMoveUpCommandId','with','setItem','setInterval','pipe','hasOwnProperty','IUniverInstanceService','WECHAT_HAS_BEEN_BOUND','onRendered','getOwnPropertyDescriptor','_startDocCollabCursor','_unitOnClients','InsertColCommandId','CollaborationSessionService','_instanceService','[CollaborationDataLoaderController]','length','registerComponent','PY_RUNTIME_SCRIPT_ERROR','className','shareReplay','onLocalMutation','SHEET_VIEWPORT_KEY','idSuffix','resize','UniverCollaborationClientUIPlugin','serializeRangeWithSheet','MessageType','_initEvent','getCellPositionByOffset','_id','displayName','docStateChange$','CONNECTOR_DATA_TOO_LARGE','_hideTimer','data','dispose$','text','IImageIoService','DocCollaborationEntity','SNAPSHOT_HAS_BEEN_REMOVED','generateRandomId','CollaborationController','range','roomMembers','DocIMEInputManagerService','getSheetId','debounce','_docSyncEditingCollabCursorService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getRangePointData','_renderManagerService','debug','_cursors','unitId','_initResize','ISnapshotServerService','none','1em','IConfigService','getCollabEntity$','_docTransformSelectionsService','defs','top','entityInit$','updateOfflineData','_heartbeatTimer','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','startRow','_cachedData','Warning','EffectRefRangId','permission.title','translate(.97)','labelPosition','_docSkeleton','IRenderManagerService','M0\x200H16V16H0z','WebSocketService','getUniverSheetInstance','cursorInfo$','_initStatusListener','forwardRef','replace','_draw','assign','measureText','BrowserCollaborationSocketService','indexOf','currentColor','Injector','_getSaveTimeout','unit','sheetID','string','function','AWAITING','getParam','random','DocStateChangeManagerService','subscribe','getColorFromTheme','INVITE_CODE_REQUIRED','YUUMI_ALL_TABLES_IS_INVALID','Plugin','_clearOtherTimers','ColorKit','_messageService','whenReady','SessionStatus','onMouseMove','_unitStatus','_onRefRangeChange','_univerInstanceService','exhaustSavingTask','_init','IUIPartsService','fill','sheetId','currentSkeleton$','_getAnchorBounding','OFFLINE','0\x200\x2017\x2016','closePath','_hovered','UNIVER_SHEET','unload','getOffsetConfig','fillText','setUndoRedoMutationParamsCache','MemberService','ITransformService','OnLineSingle','APPLY_DUPLICATED','switchMap','_commandService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:univer-text-gray-200','_updateCollabCursors','onPointerEnter$','ILocalCacheService','_notificationService','findNodePositionByCharIndex','next','transformIMECache','RxDisposable','_localStorageService','div','handleInsertCol','delete','disposeUnit','Tools','_docSkeletonManagerService','_transformHistoryAndStateStack','_refreshCollabCursors','@univerjs/docs-ui','_saveCache','Disposable','symbol','COMPLETION_FINISHED','UNAUTHENTICATED','DesktopCollaborationStatusDisplayController','storage','FromArray','event$','size','IBeforeCloseService','SetSelectionsOperation','@univerjs/docs','UnitStatus','_docClipboardService','filter','_collaborationController','ILogService','#fff','collabStatus.offline','selections','_anchorDot','subUnitId','getMember','_localCacheService','contains','_setupSubUnitSync','lineTo','getAncestorScale','_localeService','@univerjs/engine-formula','save','ThemeService','HEADER_MENU','getValue','registerBeforeClose','InsertRangeMoveDownCommandId','ALREADY_EXISTS','_roomMembers$','registerDependencies','USER_NOT_INVITED_CODE','deepClone','YUUMI_AI_RUN_FAILED','_updateSubUnitFromURLParams','_ensureSubject','get','72758cIQkCK','doc.mutation.rich-text-editing','YUUMI_SUBSCRIPTION_NOT_FOUND','_getScale','_transformPreviousActiveRange','_removeCollabCursors','getRenderById','CollaborationStatusDisplay','_removeClearOtherTimer','APPLY_PERMISSION_DENIED','drawWith','requireSession','history','createElement','getSkeleton','syncEditingCollabCursor','substring','getMemberID','column','url(#$1','entries','MOBILE_HAS_BEEN_BOUND','setTimeout','APPLY_REJECT','_handleJoinEvent','UniverIcon','react','INVITE_CODE_HAS_BEEN_UES','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Optional','_docStateChangeManagerService','_lastPointer','result','clsx','has','NodePositionConvertToCursor','react/jsx-runtime','trim','UPDATE_CURSOR','sessionStatus$','_logService','endRow','_httpService','IURLService','isEditing','YUUMI_UNABLE_LOAD_URL','_beforeCloseService','session.will-retry','_disabled','transformMutation','LocaleService','extend','...','moveTo'];_0x34cf=function(){return _0x1c308a;};return _0x34cf();}Q=Xt([N(0x0,a[_0x314074(0x1d5)](b[_0x314074(0x111)])),N(0x1,a[_0x314074(0x1d5)](u[_0x314074(0xd8)])),N(0x2,a[_0x314074(0x1d5)](z)),N(0x3,a[_0x314074(0x1d5)](J)),N(0x4,a[_0x314074(0x1d5)](Z)),N(0x5,a[_0x314074(0x1d5)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x314074(0x1d5)](a[_0x314074(0x1a9)]))],Q);var Gt=Object[_0x314074(0xb7)],Kt=(_0x139ca7,_0x1fe5ae,_0x4b70ed,_0x58e776)=>{const _0x4de15b=_0x314074;for(var _0x18b059=_0x58e776>0x1?void 0x0:_0x58e776?Gt(_0x1fe5ae,_0x4b70ed):_0x1fe5ae,_0x110676=_0x139ca7[_0x4de15b(0xbe)]-0x1,_0x31ded9;_0x110676>=0x0;_0x110676--)(_0x31ded9=_0x139ca7[_0x110676])&&(_0x18b059=_0x31ded9(_0x18b059)||_0x18b059);return _0x18b059;},_e=(_0x519d9b,_0x205ee0)=>(_0x2e64c9,_0xf60c23)=>_0x205ee0(_0x2e64c9,_0xf60c23,_0x519d9b);let ge=class extends a[_0x314074(0x14a)]{constructor(_0x2ca6de,_0x102087,_0x97ab64){const _0xd38a05=_0x314074;super(),h(this,'_cachedData',new Map()),h(this,_0xd38a05(0x272),new Map()),h(this,_0xd38a05(0x1a7),!0x1),(this[_0xd38a05(0x220)]=_0x2ca6de,this['_localStorageService']=_0x102087,this[_0xd38a05(0x257)]=_0x97ab64);}[_0x314074(0x27d)](){const _0xdd0eb9=_0x314074;this[_0xdd0eb9(0x1a7)]=!0x0;}[_0x314074(0x308)](){const _0x58a36d=_0x314074;this[_0x58a36d(0x1a7)]=!0x1;}get[_0x314074(0x1bd)](){const _0x5de190=_0x314074;return this[_0x5de190(0x272)];}[_0x314074(0x218)](){const _0x4d55a9=_0x314074;this[_0x4d55a9(0x120)]()[_0x4d55a9(0xac)](()=>super[_0x4d55a9(0x218)]());}async['loadOfflineData'](_0x188b74){const _0x55f519=_0x314074;return this[_0x55f519(0x1a7)]?null:this[_0x55f519(0x13f)][_0x55f519(0x232)](u[_0x55f519(0x2e8)](_0x188b74));}async[_0x314074(0x2a6)](_0x235984,_0x2608a2){const _0x10e834=_0x314074;return!!this[_0x10e834(0x13f)][_0x10e834(0xb0)](_0x235984,_0x2608a2);}[_0x314074(0xef)](_0x6d0524,_0x36ffe4,_0x203871,_0x3435f2){const _0x51503b=_0x314074,_0x101be7=this['_revisionService'][_0x51503b(0x21c)](_0x6d0524);this[_0x51503b(0xf3)]['set'](_0x6d0524,{'unitID':_0x6d0524,'type':_0x36ffe4,'awaitingChangeset':_0x203871,'mutations':_0x3435f2,'rev':_0x101be7}),this['_saveTaskMap'][_0x51503b(0x199)](_0x6d0524)||this[_0x51503b(0x2b2)](_0x6d0524);}[_0x314074(0x2b2)](_0x49e0b8){const _0x472172=_0x314074,_0x5dcff6=this[_0x472172(0x109)]();_0x5dcff6===0x0?this[_0x472172(0x149)](_0x49e0b8):this[_0x472172(0x272)][_0x472172(0x1bc)](_0x49e0b8,setTimeout(()=>this[_0x472172(0x149)](_0x49e0b8),_0x5dcff6));}['_getSaveTimeout'](){const _0x2942d3=_0x314074;var _0x14f3c9;return(_0x14f3c9=this[_0x2942d3(0x220)][_0x2942d3(0x280)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x14f3c9:u[_0x2942d3(0x26e)];}[_0x314074(0x149)](_0x1574f1){const _0x2298e2=_0x314074,_0x320fc6=this[_0x2298e2(0x272)][_0x2298e2(0x176)](_0x1574f1);return _0x320fc6!==void 0x0&&window[_0x2298e2(0x288)](_0x320fc6),this[_0x2298e2(0x13f)][_0x2298e2(0xb0)](u[_0x2298e2(0x2e8)](_0x1574f1),this['_cachedData'][_0x2298e2(0x176)](_0x1574f1))[_0x2298e2(0xac)](()=>this[_0x2298e2(0x272)][_0x2298e2(0x142)](_0x1574f1));}async[_0x314074(0x120)](){const _0x4f46a9=_0x314074,_0xb9c43e=[];this[_0x4f46a9(0x272)][_0x4f46a9(0x1ca)]((_0x4e267f,_0x2edc2b)=>{const _0x531509=_0x4f46a9;window[_0x531509(0x288)](_0x4e267f),_0xb9c43e[_0x531509(0x1fa)](this[_0x531509(0x149)](_0x2edc2b)[_0x531509(0xac)](()=>{const _0x636033=_0x531509;this[_0x636033(0x272)]['delete'](_0x2edc2b);}));}),await Promise[_0x4f46a9(0x2d9)](_0xb9c43e);}};ge=Kt([_e(0x0,a[_0x314074(0xe9)]),_e(0x1,a[_0x314074(0x2cb)]),_e(0x2,a['Inject'](m[_0x314074(0x237)]))],ge);function _0x391f(_0xa22d20,_0x517c95){const _0x34cf13=_0x34cf();return _0x391f=function(_0x391f43,_0x28a0a3){_0x391f43=_0x391f43-0x90;let _0xfe1686=_0x34cf13[_0x391f43];return _0xfe1686;},_0x391f(_0xa22d20,_0x517c95);}class je extends a[_0x314074(0x13e)]{constructor(){const _0x42c39a=_0x314074;super(),h(this,_0x42c39a(0x2b8)),this[_0x42c39a(0x2b8)]=d['fromEvent'](window,_0x42c39a(0x1ea))[_0x42c39a(0xb2)](d[_0x42c39a(0x1b7)](this[_0x42c39a(0xd2)]),d[_0x42c39a(0xc2)](0x1),d[_0x42c39a(0x204)](void 0x0));}[_0x314074(0xaa)](_0x40240f,_0x5c59be,_0x3aacae=!0x1){const _0x318705=_0x314074,_0x3b7efa=new URL(window[_0x318705(0x261)]['href']);_0x3b7efa[_0x318705(0x1e7)][_0x318705(0x1bc)](_0x40240f,_0x5c59be),_0x3aacae?window[_0x318705(0x183)][_0x318705(0x2c9)]('','',_0x3b7efa[_0x318705(0x1bb)]()):window['history']['pushState']('','',_0x3b7efa[_0x318705(0x1bb)]());}[_0x314074(0x21b)](_0x3c4f0b,_0x1e8ef1=!0x1){const _0x35cb55=_0x314074,_0x2ad511=new URL(window['location']['href']);_0x2ad511[_0x35cb55(0x1e7)]['delete'](_0x3c4f0b),_0x1e8ef1?window[_0x35cb55(0x183)][_0x35cb55(0x2c9)]('','',_0x2ad511[_0x35cb55(0x1bb)]()):window[_0x35cb55(0x183)]['pushState']('','',_0x2ad511['toString']());}[_0x314074(0x10f)](_0x297eeb){const _0x44445d=_0x314074;var _0x2e0cfb;return(_0x2e0cfb=new URL(window['location'][_0x44445d(0x207)])[_0x44445d(0x1e7)]['get'](_0x297eeb))!=null?_0x2e0cfb:void 0x0;}}var qt=Object[_0x314074(0x2a0)],zt=Object[_0x314074(0xb7)],Jt=(_0x46a304,_0x5c9682,_0x574a0f)=>_0x5c9682 in _0x46a304?qt(_0x46a304,_0x5c9682,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x574a0f}):_0x46a304[_0x5c9682]=_0x574a0f,Zt=(_0x20b617,_0x3acb92,_0x3ad1e1,_0x248376)=>{for(var _0x2f3941=_0x248376>0x1?void 0x0:_0x248376?zt(_0x3acb92,_0x3ad1e1):_0x3acb92,_0x223cd1=_0x20b617['length']-0x1,_0x30b188;_0x223cd1>=0x0;_0x223cd1--)(_0x30b188=_0x20b617[_0x223cd1])&&(_0x2f3941=_0x30b188(_0x2f3941)||_0x2f3941);return _0x2f3941;},he=(_0x4f30d0,_0x5da9d2)=>(_0x11fc61,_0x41f347)=>_0x5da9d2(_0x11fc61,_0x41f347,_0x4f30d0),Qt=(_0x401131,_0x3b8344,_0x446799)=>Jt(_0x401131,_0x3b8344+'',_0x446799);const es=_0x314074(0x260);exports[_0x314074(0xc7)]=class extends a[_0x314074(0x116)]{constructor(_0x4a4043=Ue,_0x3eb4d9,_0x5ce426,_0x1fa68a){const _0x411179=_0x314074;super(),this[_0x411179(0xa2)]=_0x4a4043,this[_0x411179(0xe1)]=_0x3eb4d9,this[_0x411179(0x1cf)]=_0x5ce426,this[_0x411179(0x220)]=_0x1fa68a;const {..._0xad1f4}=a[_0x411179(0xa8)]({},Ue,this['_config']);this[_0x411179(0x220)][_0x411179(0x2c8)]($t,_0xad1f4);}[_0x314074(0x25c)](){const _0x56245f=_0x314074;this[_0x56245f(0x2ed)](),this[_0x56245f(0x25b)]();}[_0x314074(0xb6)](){this['_registerRenderDependencies']();}[_0x314074(0x2ed)](){const _0x3d9c15=_0x314074;var _0x1278b0;const _0x1990e4=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x3d9c15(0x200)],{'useClass':G[_0x3d9c15(0xfc)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x3d9c15(0x170)](this['_injector'],a['mergeOverrideWithDependencies'](_0x1990e4,(_0x1278b0=this[_0x3d9c15(0xa2)])==null?void 0x0:_0x1278b0[_0x3d9c15(0x2b7)]));}[_0x314074(0x2f0)](){const _0x1f1a5b=_0x314074;this[_0x1f1a5b(0x2af)](this[_0x1f1a5b(0xe1)]['registerRenderModule'](a[_0x1f1a5b(0x273)][_0x1f1a5b(0x1c2)],[Ie])),this[_0x1f1a5b(0x2af)](this[_0x1f1a5b(0xe1)]['registerRenderModule'](a[_0x1f1a5b(0x273)][_0x1f1a5b(0x12b)],[ve]));}[_0x314074(0x25b)](){const _0x1c7b02=_0x314074;a[_0x1c7b02(0x279)](this['_injector'],[[x],[exports[_0x1c7b02(0x14e)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x314074(0xc7)],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x314074(0x210)]),he(0x1,p[_0x314074(0xfa)]),he(0x2,a['Inject'](a[_0x314074(0x108)])),he(0x3,a[_0x314074(0xe9)])],exports[_0x314074(0xc7)]);var ts=Object[_0x314074(0xb7)],ss=(_0x19e345,_0x5c2c6b,_0x28bd58,_0x565e9c)=>{const _0x468444=_0x314074;for(var _0xf19204=_0x565e9c>0x1?void 0x0:_0x565e9c?ts(_0x5c2c6b,_0x28bd58):_0x5c2c6b,_0x3ab9e4=_0x19e345[_0x468444(0xbe)]-0x1,_0x1b8aae;_0x3ab9e4>=0x0;_0x3ab9e4--)(_0x1b8aae=_0x19e345[_0x3ab9e4])&&(_0xf19204=_0x1b8aae(_0xf19204)||_0xf19204);return _0xf19204;},F=(_0x54bee1,_0x5958f3)=>(_0x1bff0a,_0x3047f6)=>_0x5958f3(_0x1bff0a,_0x3047f6,_0x54bee1);exports[_0x314074(0x105)]=class extends u[_0x314074(0x2c2)]{constructor(_0x5cb936,_0x369647,_0x5d3a78,_0x4d559a,_0x4914ed){super(_0x5cb936,_0x369647,_0x5d3a78,_0x4d559a,_0x4914ed);}async[_0x314074(0x306)](_0x3ab994){const _0x49d45a=_0x314074,_0x4f2fc7=await this[_0x49d45a(0x20d)](),_0x2106e2=this['_createSocketURL'](_0x3ab994,_0x4f2fc7);return this[_0x49d45a(0x22b)](_0x2106e2);}['_createSocketURL'](_0x58c787,_0x3d78af){const _0xd758a4=_0x314074,_0x1c0f39=typeof window>'u'?new URL(_0x58c787):new URL(_0x58c787,window[_0xd758a4(0x261)][_0xd758a4(0x1d9)]);_0x1c0f39[_0xd758a4(0x1e7)][_0xd758a4(0x1bc)](_0xd758a4(0x9c),_0x3d78af);const _0x4d9cc5=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x4d9cc5[_0xd758a4(0x176)](_0xd758a4(0x284))&&_0x1c0f39['searchParams'][_0xd758a4(0x1bc)](_0xd758a4(0x284),_0x4d9cc5[_0xd758a4(0x176)](_0xd758a4(0x284))),_0x1c0f39['toString']();}async[_0x314074(0x20d)](){const _0x4abe51=_0x314074;var _0x261ba4,_0x31dfe7,_0x296736;const _0x5b6623=this[_0x4abe51(0x220)][_0x4abe51(0x280)](u[_0x4abe51(0x193)]),_0x29a1e9=(_0x261ba4=_0x5b6623==null?void 0x0:_0x5b6623['wsSessionTicketUrl'])!=null?_0x261ba4:u[_0x4abe51(0x2d6)];return(_0x296736=(_0x31dfe7=(await this[_0x4abe51(0x1a1)][_0x4abe51(0x176)](_0x29a1e9,{'headers':{'Content-Type':_0x4abe51(0x1f2)}}))[_0x4abe51(0x270)])==null?void 0x0:_0x31dfe7['ticket'])!=null?_0x296736:'';}},exports[_0x314074(0x105)]=ss([F(0x0,a[_0x314074(0x1d5)](a[_0x314074(0x108)])),F(0x1,a['Inject'](G[_0x314074(0x1e5)])),F(0x2,a[_0x314074(0xe9)]),F(0x3,a[_0x314074(0x15a)]),F(0x4,m[_0x314074(0xe6)])],exports[_0x314074(0x105)]);const Me=0x7530,Le=_0x314074(0x230);class is extends a[_0x314074(0x14a)]{constructor(){const _0x3a9af5=_0x314074;super(),h(this,_0x3a9af5(0xcc),a[_0x3a9af5(0xd7)]()),h(this,_0x3a9af5(0x2cd),new Set()),h(this,_0x3a9af5(0xb9),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x3a9af5(0x117),new Map()),h(this,_0x3a9af5(0x11d),new Map()),this['_init']();}[_0x314074(0x218)](){const _0x30d61b=_0x314074;super[_0x30d61b(0x218)](),this[_0x30d61b(0x117)][_0x30d61b(0x1ca)]((_0x19f634,_0x464df4)=>this[_0x30d61b(0x17f)](_0x464df4)),this[_0x30d61b(0xf0)]&&window['clearInterval'](this[_0x30d61b(0xf0)]);}[_0x314074(0x213)](_0x3522dd){const _0x425e06=_0x314074;return this[_0x425e06(0x175)](_0x3522dd)[_0x425e06(0xb2)](d[_0x425e06(0x289)]());}[_0x314074(0x1cb)](_0x28c959){const _0x190951=_0x314074;this['_selfUnitIDs'][_0x190951(0x152)]===0x0&&this[_0x190951(0x1e0)](),this['_selfUnitIDs'][_0x190951(0x24a)](_0x28c959),this[_0x190951(0x2d5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x28c959],'isForwarded':!0x1});}[_0x314074(0x143)](_0x3267e3){const _0x2c062d=_0x314074;this[_0x2c062d(0x2cd)][_0x2c062d(0x142)](_0x3267e3),this[_0x2c062d(0x2cd)][_0x2c062d(0x152)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x2c062d(0xf0)]);}[_0x314074(0x121)](){const _0x41da88=_0x314074;this[_0x41da88(0x2af)](a[_0x41da88(0x2f7)](d['fromEvent'](window,_0x41da88(0x14f))['subscribe'](_0x2e957a=>{const _0x2e9761=_0x41da88;if(_0x2e957a['key']!==Le||!_0x2e957a['newValue'])return;const _0x239660=JSON[_0x2e9761(0x1f9)](_0x2e957a[_0x2e9761(0x293)]);this['_handleEvent'](_0x239660);}))),window[_0x41da88(0x2e3)](_0x41da88(0x12c),()=>this['_send']({'type':0x1,'memberID':this[_0x41da88(0xcc)],'unitIDs':Array['from'](this[_0x41da88(0x2cd)])}));}[_0x314074(0x2ac)](_0x1f8c47){const _0x535af4=_0x314074;switch(_0x1f8c47[_0x535af4(0x269)]){case 0x0:this['_handleJoinEvent'](_0x1f8c47);break;case 0x1:this[_0x535af4(0x1b8)](_0x1f8c47);break;case 0x2:this[_0x535af4(0x2d0)](_0x1f8c47);break;}}[_0x314074(0x18f)](_0x207126){const _0x418dea=_0x314074,{unitIDs:_0x3cfe8a,memberID:_0x509d4e,isForwarded:_0x133050}=_0x207126;_0x3cfe8a[_0x418dea(0x1ca)](_0x3bc9bc=>{const _0x547c2a=_0x418dea;if(!_0x133050&&this[_0x547c2a(0xb9)][_0x547c2a(0x199)](_0x3bc9bc)&&this['_ensureSubject'](_0x3bc9bc)[_0x547c2a(0x13c)](u[_0x547c2a(0x156)]['OTHER_CLIENTS_EDITING']),!this[_0x547c2a(0xb9)][_0x547c2a(0x199)](_0x3bc9bc)||!this[_0x547c2a(0xb9)]['get'](_0x3bc9bc)['has'](_0x509d4e)){const _0x181d84=this[_0x547c2a(0xb9)]['get'](_0x3bc9bc)||new Set();_0x181d84[_0x547c2a(0x24a)](_0x509d4e),this[_0x547c2a(0xb9)][_0x547c2a(0x1bc)](_0x3bc9bc,_0x181d84),this[_0x547c2a(0x2a7)](_0x509d4e);}}),_0x133050||this[_0x418dea(0x2d5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x418dea(0x2cd)]],'isForwarded':!0x0});}[_0x314074(0x2a7)](_0x1d6799){const _0x543665=_0x314074;this[_0x543665(0x17f)](_0x1d6799);const _0x4aa19=window[_0x543665(0x18d)](()=>{const _0x30d1ae=_0x543665;this[_0x30d1ae(0xb9)][_0x30d1ae(0x1ca)](_0x2dea15=>{const _0x235a6b=_0x30d1ae;_0x2dea15[_0x235a6b(0x142)](_0x1d6799);});},Me*0x2);this[_0x543665(0x117)]['set'](_0x1d6799,_0x4aa19);}[_0x314074(0x17f)](_0x28bceb){const _0x95c3be=_0x314074;if(this[_0x95c3be(0x117)][_0x95c3be(0x199)](_0x28bceb)){const _0x783328=this[_0x95c3be(0x117)][_0x95c3be(0x176)](_0x28bceb);_0x783328&&window[_0x95c3be(0x288)](_0x783328),this[_0x95c3be(0x117)][_0x95c3be(0x1bc)](_0x28bceb,null);}}[_0x314074(0x1b8)](_0x4fb3ac){const _0x5c44af=_0x314074,{memberID:_0x2a1a4a,unitIDs:_0xcedeff}=_0x4fb3ac;_0xcedeff[_0x5c44af(0x1ca)](_0x4f7b85=>{const _0x27a5a0=_0x5c44af;var _0x5a095c;const _0x238956=this[_0x27a5a0(0xb9)][_0x27a5a0(0x176)](_0x4f7b85);_0x238956&&(_0x238956['delete'](_0x2a1a4a),(_0x5a095c=this[_0x27a5a0(0x175)](_0x4f7b85))==null||_0x5a095c[_0x27a5a0(0x13c)](_0x238956[_0x27a5a0(0x152)]===0x0?u[_0x27a5a0(0x156)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x27a5a0(0xa0)]));}),this[_0x5c44af(0x17f)](_0x2a1a4a);}[_0x314074(0x2d0)](_0x5337e3){const _0x28347c=_0x314074;this[_0x28347c(0x2a7)](_0x5337e3['memberID']);}[_0x314074(0x2d5)](_0x2d1ed5){const _0x28d423=_0x314074;localStorage[_0x28d423(0xb0)](Le,JSON[_0x28d423(0x278)](_0x2d1ed5));}[_0x314074(0x1e0)](){const _0x3447cb=_0x314074;this[_0x3447cb(0xf0)]=window[_0x3447cb(0xb1)](()=>{const _0x2c0f40=_0x3447cb;this[_0x2c0f40(0x2d5)]({'type':0x2,'memberID':this[_0x2c0f40(0xcc)]});},Me);}[_0x314074(0x175)](_0x8310e7){const _0x952ca4=_0x314074;return this[_0x952ca4(0x11d)][_0x952ca4(0x199)](_0x8310e7)||this[_0x952ca4(0x11d)]['set'](_0x8310e7,new d['BehaviorSubject'](u[_0x952ca4(0x156)][_0x952ca4(0x2b0)])),this[_0x952ca4(0x11d)]['get'](_0x8310e7);}}var Be=(_0x57943c=>(_0x57943c[_0x57943c[_0x314074(0x27b)]=0x0]=_0x314074(0x27b),_0x57943c[_0x57943c['OK']=0x1]='OK',_0x57943c[_0x57943c['INTERNAL_ERROR']=0x2]=_0x314074(0x209),_0x57943c[_0x57943c[_0x314074(0x1de)]=0x3]=_0x314074(0x1de),_0x57943c[_0x57943c[_0x314074(0x1f5)]=0x4]=_0x314074(0x1f5),_0x57943c[_0x57943c['UNAUTHENTICATED']=0x5]=_0x314074(0x14d),_0x57943c[_0x57943c[_0x314074(0x16e)]=0x6]=_0x314074(0x16e),_0x57943c[_0x57943c[_0x314074(0x22d)]=0x7]=_0x314074(0x22d),_0x57943c[_0x57943c[_0x314074(0x1e8)]=0x8]=_0x314074(0x1e8),_0x57943c[_0x57943c[_0x314074(0x14c)]=0x9]=_0x314074(0x14c),_0x57943c[_0x57943c['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x57943c[_0x57943c[_0x314074(0x222)]=0x1389]=_0x314074(0x222),_0x57943c[_0x57943c['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x57943c[_0x57943c[_0x314074(0xd6)]=0x1772]=_0x314074(0xd6),_0x57943c[_0x57943c[_0x314074(0x281)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x57943c[_0x57943c[_0x314074(0x18e)]=0x1b59]=_0x314074(0x18e),_0x57943c[_0x57943c[_0x314074(0x275)]=0x1b5a]=_0x314074(0x275),_0x57943c[_0x57943c['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x57943c[_0x57943c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x314074(0x180),_0x57943c[_0x57943c[_0x314074(0x133)]=0x1b5d]='APPLY_DUPLICATED',_0x57943c[_0x57943c[_0x314074(0xcf)]=0x1f41]=_0x314074(0xcf),_0x57943c[_0x57943c[_0x314074(0x1ee)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x57943c[_0x57943c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x314074(0x2f5),_0x57943c[_0x57943c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x314074(0x21d),_0x57943c[_0x57943c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x314074(0x1c4),_0x57943c[_0x57943c[_0x314074(0x254)]=0x232d]=_0x314074(0x254),_0x57943c[_0x57943c['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x314074(0x1a4),_0x57943c[_0x57943c[_0x314074(0x2b6)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x57943c[_0x57943c[_0x314074(0x27c)]=0x2713]=_0x314074(0x27c),_0x57943c[_0x57943c[_0x314074(0x179)]=0x2714]=_0x314074(0x179),_0x57943c[_0x57943c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x314074(0x20e),_0x57943c[_0x57943c[_0x314074(0x22c)]=0x271b]=_0x314074(0x22c),_0x57943c[_0x57943c[_0x314074(0x247)]=0x271c]=_0x314074(0x247),_0x57943c[_0x57943c[_0x314074(0x115)]=0x271d]=_0x314074(0x115),_0x57943c[_0x57943c[_0x314074(0x223)]=0x271e]=_0x314074(0x223),_0x57943c[_0x57943c[_0x314074(0x173)]=0x271f]=_0x314074(0x173),_0x57943c[_0x57943c[_0x314074(0xc0)]=0x2af9]=_0x314074(0xc0),_0x57943c[_0x57943c[_0x314074(0x192)]=0x2ee1]=_0x314074(0x192),_0x57943c[_0x57943c[_0x314074(0x30e)]=0x2ee2]='INVALID_INVITE_CODE',_0x57943c[_0x57943c[_0x314074(0x114)]=0x2ee3]=_0x314074(0x114),_0x57943c[_0x57943c[_0x314074(0x171)]=0x2ee4]=_0x314074(0x171),_0x57943c[_0x57943c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x314074(0x97),_0x57943c[_0x57943c[_0x314074(0xb5)]=0x32c9]=_0x314074(0xb5),_0x57943c[_0x57943c[_0x314074(0x18c)]=0x32ca]=_0x314074(0x18c),_0x57943c[_0x57943c[_0x314074(0x2c4)]=0x32cb]=_0x314074(0x2c4),_0x57943c[_0x57943c['UNRECOGNIZED']=-0x1]=_0x314074(0x1fd),_0x57943c))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x536df1,_0x354ae1,_0x183ec1,_0xe82414)=>{for(var _0x4da72a=_0xe82414>0x1?void 0x0:_0xe82414?ns(_0x354ae1,_0x183ec1):_0x354ae1,_0x14d1e3=_0x536df1['length']-0x1,_0x301c46;_0x14d1e3>=0x0;_0x14d1e3--)(_0x301c46=_0x536df1[_0x14d1e3])&&(_0x4da72a=_0x301c46(_0x4da72a)||_0x4da72a);return _0x4da72a;},ue=(_0x1b714a,_0x468fcf)=>(_0x5e4a01,_0x396c7b)=>_0x468fcf(_0x5e4a01,_0x396c7b,_0x1b714a);exports[_0x314074(0x305)]=class extends a[_0x314074(0x14a)]{constructor(_0x4dc64d,_0x4d32fd,_0x70b03f){const _0x14d946=_0x314074;super(),this[_0x14d946(0xbc)]=_0x4dc64d,this[_0x14d946(0x1a1)]=_0x4d32fd,this[_0x14d946(0x220)]=_0x70b03f;}async[_0x314074(0x9e)](_0x341bb8,_0x208f7f,_0x260bf2,..._0x138fa2){const _0x3a07bb=_0x314074;var _0x4d03aa,_0x48ce41,_0x29d7bc,_0xbb962d;const _0x5be602=this['_instanceService']['getFocusedUnit']();if(!_0x5be602)throw new Error(_0x3a07bb(0x301));const _0x5b0311=((_0x4d03aa=this['_configService'][_0x3a07bb(0x280)](u[_0x3a07bb(0xf1)]))!=null?_0x4d03aa:u[_0x3a07bb(0x1c9)])+'/'+_0x341bb8+'/run/'+_0x208f7f,_0x2b011d=new URL(window[_0x3a07bb(0x261)][_0x3a07bb(0x207)]),_0x5231f3={'scriptId':_0x341bb8,'runId':(_0x48ce41=_0x2b011d[_0x3a07bb(0x1e7)][_0x3a07bb(0x176)](_0x3a07bb(0x284)))!=null?_0x48ce41:'','function':_0x208f7f,'unitId':_0x5be602[_0x3a07bb(0x302)](),'argsOfFunction':JSON[_0x3a07bb(0x278)](_0x138fa2),'invokeId':(_0x29d7bc=_0x260bf2['invokeId'])!=null?_0x29d7bc:'','executionId':(_0xbb962d=_0x260bf2[_0x3a07bb(0x20a)])!=null?_0xbb962d:''};try{const _0x4c8245=await this['_httpService']['post'](_0x5b0311,{'body':_0x5231f3});return _0x4c8245[_0x3a07bb(0x270)][_0x3a07bb(0x2b5)]&&_0x4c8245[_0x3a07bb(0x270)]['error'][_0x3a07bb(0x1f0)]!==Be['OK']?_0x3a07bb(0x27a):_0x4c8245[_0x3a07bb(0x270)][_0x3a07bb(0x197)];}catch{return _0x3a07bb(0x27a);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x314074(0x1d5)](G[_0x314074(0x1e5)])),ue(0x2,a['IConfigService'])],exports[_0x314074(0x305)]),exports[_0x314074(0x17e)]=xe,exports[_0x314074(0x1a2)]=be,exports[_0x314074(0x98)]=Ae,exports[_0x314074(0x287)]=is,exports['WebURLService']=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x328373=_0xbd3b;(function(_0x4a87f2,_0xa262b4){const _0x4d408b=_0xbd3b,_0x4da483=_0x4a87f2();while(!![]){try{const _0x332d6f=-parseInt(_0x4d408b(0x10c))/0x1+parseInt(_0x4d408b(0x109))/0x2+-parseInt(_0x4d408b(0x10d))/0x3*(parseInt(_0x4d408b(0x11b))/0x4)+-parseInt(_0x4d408b(0x106))/0x5+-parseInt(_0x4d408b(0x11e))/0x6*(-parseInt(_0x4d408b(0x119))/0x7)+parseInt(_0x4d408b(0x115))/0x8+parseInt(_0x4d408b(0x108))/0x9*(parseInt(_0x4d408b(0x110))/0xa);if(_0x332d6f===_0xa262b4)break;else _0x4da483['push'](_0x4da483['shift']());}catch(_0x268adf){_0x4da483['push'](_0x4da483['shift']());}}}(_0x2ccc,0x8ebed));const e={'collab-client':{'tooltip':{'reconnect':_0x328373(0x10e)}},'collabStatus':{'fetchMiss':_0x328373(0x11c),'conflict':_0x328373(0x112),'notCollab':'Local\x20file','synced':_0x328373(0x113),'syncing':_0x328373(0x117),'offline':_0x328373(0x10b)},'session':{'connection-failed':_0x328373(0x105),'will-retry':_0x328373(0x116),'room-full':_0x328373(0x111),'collaboration-timeout':_0x328373(0x11d)},'conflict':{'title':_0x328373(0x118),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x328373(0x10f),'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':_0x328373(0x11a)},'closeRoom':_0x328373(0x114)},'auth':{'needGotoLoginAlert':_0x328373(0x107)}};module[_0x328373(0x10a)]=e;function _0xbd3b(_0x507596,_0x42c9b6){const _0x2cccb2=_0x2ccc();return _0xbd3b=function(_0xbd3be,_0x5f5087){_0xbd3be=_0xbd3be-0x105;let _0xd53c20=_0x2cccb2[_0xbd3be];return _0xd53c20;},_0xbd3b(_0x507596,_0x42c9b6);}function _0x2ccc(){const _0x1031ec=['9jqfUwL','2251640pRPqoS','exports','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1002139wczafk','1047OBiYfg','Click\x20to\x20Reconnect','Authentication\x20Error','697870ysXLUn','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1619488HfrxDq','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing...','Collaboration\x20Conflict','5723431fIkkxT','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2948GOqKKW','Syncing\x20server\x20data...','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','6ucaOxA','Connection\x20failed,\x20please\x20check\x20your\x20network.','1858195SlMqtn','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'];_0x2ccc=function(){return _0x1031ec;};return _0x2ccc();}
|