@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250428-261c0dd → 0.6.10-experimental.20250428-ab93895
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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x48e11b=_0x3ef4;function _0x3ef4(_0x5be6fc,_0x386ce2){const _0x332127=_0x3321();return _0x3ef4=function(_0x3ef4ac,_0xc13a86){_0x3ef4ac=_0x3ef4ac-0x1f4;let _0x1c1abf=_0x332127[_0x3ef4ac];return _0x1c1abf;},_0x3ef4(_0x5be6fc,_0x386ce2);}(function(_0x13d64f,_0x4f3524){const _0x38b8fd=_0x3ef4,_0x51257e=_0x13d64f();while(!![]){try{const _0x988ab6=-parseInt(_0x38b8fd(0x1fe))/0x1+-parseInt(_0x38b8fd(0x1f8))/0x2+-parseInt(_0x38b8fd(0x1f4))/0x3+-parseInt(_0x38b8fd(0x1f9))/0x4*(-parseInt(_0x38b8fd(0x1fc))/0x5)+-parseInt(_0x38b8fd(0x1ff))/0x6+-parseInt(_0x38b8fd(0x1fd))/0x7+parseInt(_0x38b8fd(0x1fb))/0x8;if(_0x988ab6===_0x4f3524)break;else _0x51257e['push'](_0x51257e['shift']());}catch(_0x57c13f){_0x51257e['push'](_0x51257e['shift']());}}}(_0x3321,0xe8eee));function _0x3321(){const _0xaea8e3=['runOnServer','1836846qLfCac','332DdmQCG','RemoteUniscriptService','32194296TfWWtG','104515lyKTDk','5341343OPjsNh','294396hqQzHi','7900818xNGUYV','extend','4537413bBQIpX','get','@univerjs-pro/collaboration-client-ui'];_0x3321=function(){return _0xaea8e3;};return _0x3321();}const t=require(_0x48e11b(0x1f6)),e=require('@univerjs/core/facade');class c extends e['FUniver']{['runOnServer'](_0x3c9d25,_0x4cc34d,..._0x368515){const _0x2d3df4=_0x48e11b;return this['_injector'][_0x2d3df4(0x1f5)](t[_0x2d3df4(0x1fa)])[_0x2d3df4(0x1f7)](_0x3c9d25,_0x4cc34d,{},..._0x368515);}}e['FUniver'][_0x48e11b(0x200)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x183fa5=_0x5188;(function(_0x3afa03,_0x1a4f49){const _0x2ed8fd=_0x5188,_0x22e264=_0x3afa03();while(!![]){try{const _0x270a07=-parseInt(_0x2ed8fd(0x27e))/0x1+-parseInt(_0x2ed8fd(0x2f5))/0x2*(-parseInt(_0x2ed8fd(0x1cb))/0x3)+parseInt(_0x2ed8fd(0x225))/0x4+-parseInt(_0x2ed8fd(0x395))/0x5*(-parseInt(_0x2ed8fd(0x1d5))/0x6)+-parseInt(_0x2ed8fd(0x380))/0x7+parseInt(_0x2ed8fd(0x3c5))/0x8+parseInt(_0x2ed8fd(0x382))/0x9*(-parseInt(_0x2ed8fd(0x3f5))/0xa);if(_0x270a07===_0x1a4f49)break;else _0x22e264['push'](_0x22e264['shift']());}catch(_0x32edbb){_0x22e264['push'](_0x22e264['shift']());}}}(_0x18b1,0xe4d71));var Ve=Object['defineProperty'],Xe=(_0x267b43,_0x555c16,_0x11ca67)=>_0x555c16 in _0x267b43?Ve(_0x267b43,_0x555c16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11ca67}):_0x267b43[_0x555c16]=_0x11ca67,h=(_0xbcecd,_0x55fae7,_0x374b83)=>Xe(_0xbcecd,typeof _0x55fae7!='symbol'?_0x55fae7+'':_0x55fae7,_0x374b83);Object[_0x183fa5(0x2d6)](exports,Symbol[_0x183fa5(0x32d)],{'value':_0x183fa5(0x328)});const u=require(_0x183fa5(0x1fb)),a=require('@univerjs/core'),p=require(_0x183fa5(0x217)),G=require(_0x183fa5(0x35c)),b=require(_0x183fa5(0x2b7)),Ge=require('@univerjs/drawing'),d=require(_0x183fa5(0x3aa)),W=require(_0x183fa5(0x1e0)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x183fa5(0x316)),g=require(_0x183fa5(0x277)),$=require(_0x183fa5(0x2df)),X=require(_0x183fa5(0x26f)),P=require(_0x183fa5(0x2a1)),T=require(_0x183fa5(0x2d1)),D=require(_0x183fa5(0x21d)),M=require('react'),qe=require(_0x183fa5(0x1fa));var Ke=Object[_0x183fa5(0x255)],ze=(_0x206853,_0x46e2d6,_0x6f905e,_0x4fe880)=>{for(var _0x5a67b4=_0x4fe880>0x1?void 0x0:_0x4fe880?Ke(_0x46e2d6,_0x6f905e):_0x46e2d6,_0x1c24d0=_0x206853['length']-0x1,_0x11c326;_0x1c24d0>=0x0;_0x1c24d0--)(_0x11c326=_0x206853[_0x1c24d0])&&(_0x5a67b4=_0x11c326(_0x5a67b4)||_0x5a67b4);return _0x5a67b4;},Te=(_0x4ddccd,_0x3dd271)=>(_0x5cf0c3,_0x231c1f)=>_0x3dd271(_0x5cf0c3,_0x231c1f,_0x4ddccd);let de=class extends a[_0x183fa5(0x3b8)]{constructor(_0x40e05a,_0x283318){const _0x51facb=_0x183fa5;super(),this[_0x51facb(0x1b8)]=_0x40e05a,this[_0x51facb(0x31f)]=_0x283318,this['_init']();}[_0x183fa5(0x240)](){const _0x4a3bc3=_0x183fa5,_0xe63bce=this;this['disposeWithMe'](this[_0x4a3bc3(0x1b8)]['addClipboardHook']({'onBeforePasteImage':async _0x5df793=>{const _0x30102b=_0x4a3bc3,_0x5e116b=await _0xe63bce[_0x30102b(0x31f)][_0x30102b(0x3c2)](_0x5df793);return _0x5e116b?{'source':_0x5e116b[_0x30102b(0x3fa)],'imageSourceType':_0x5e116b[_0x30102b(0x31e)]}:null;}}));}};de=ze([Te(0x0,b[_0x183fa5(0x31b)]),Te(0x1,Ge[_0x183fa5(0x1c5)])],de);const Oe=[_0x183fa5(0x2de),_0x183fa5(0x19b),'verdancy600','red300',_0x183fa5(0x3c9),_0x183fa5(0x24d)];class me extends a[_0x183fa5(0x3ec)]{constructor(){const _0x3b4b2a=_0x183fa5;super(...arguments),h(this,_0x3b4b2a(0x3cc),new Map()),h(this,_0x3b4b2a(0x1ee),0x0);}[_0x183fa5(0x35a)](_0x9efb67){const _0x64f903=_0x183fa5;if(this[_0x64f903(0x3cc)]['has'](_0x9efb67))return this[_0x64f903(0x3cc)][_0x64f903(0x2dc)](_0x9efb67);const _0x50bfbc=Oe[this[_0x64f903(0x1ee)]];return this[_0x64f903(0x1ee)]=(this[_0x64f903(0x1ee)]+0x1)%Oe[_0x64f903(0x260)],this[_0x64f903(0x3cc)][_0x64f903(0x279)](_0x9efb67,_0x50bfbc),_0x50bfbc;}}function Pe(_0x3b4528){const _0x4f1fd5=_0x183fa5;let _0x1ffd51='';for(const _0x1fe2a8 of _0x3b4528){const {startOffset:_0x486d44,endOffset:_0x33b0c1,isActive:_0x4f38b4,rangeType:_0x2ba9d2,segmentId:_0x4f4d3d,segmentPage:_0x265b2e}=_0x1fe2a8;_0x1ffd51[_0x4f1fd5(0x260)]&&(_0x1ffd51+=','),_0x1ffd51+=_0x486d44+':'+_0x33b0c1+':'+(_0x4f38b4?'1':'0')+':'+_0x2ba9d2+':'+_0x4f4d3d+':'+_0x265b2e;}return _0x1ffd51;}function Je(_0x3e9451){const _0x4c3baa=_0x183fa5,_0x2e5a03=_0x3e9451[_0x4c3baa(0x405)](','),_0x92af6e=[];for(const _0x3589b6 of _0x2e5a03){const [_0x38f1e4,_0x518a3b,_0x4b332b,_0x176133,_0x383144,_0x49769e]=_0x3589b6[_0x4c3baa(0x405)](':');_0x92af6e[_0x4c3baa(0x2a0)]({'startOffset':Number(_0x38f1e4),'endOffset':Number(_0x518a3b),'collapsed':_0x38f1e4===_0x518a3b,'isActive':_0x4b332b==='1','rangeType':_0x176133===a[_0x4c3baa(0x27b)][_0x4c3baa(0x1bc)]?a[_0x4c3baa(0x27b)][_0x4c3baa(0x1bc)]:a['DOC_RANGE_TYPE'][_0x4c3baa(0x2db)],'segmentId':typeof _0x383144==_0x4c3baa(0x2fb)?String(_0x383144):'','segmentPage':Number(_0x49769e!=null?_0x49769e:-0x1)});}return _0x92af6e[_0x4c3baa(0x3f3)](_0x48cce0=>_0x48cce0[_0x4c3baa(0x27c)])||(_0x92af6e[0x0][_0x4c3baa(0x27c)]=!0x0),_0x92af6e;}class Ce extends a['RxDisposable']{constructor(){const _0x45e724=_0x183fa5;super(...arguments),h(this,_0x45e724(0x226),new d[(_0x45e724(0x323))](null)),h(this,_0x45e724(0x2c2),this[_0x45e724(0x226)][_0x45e724(0x31c)]());}['syncEditingCollabCursor'](_0x452a61){const _0x5e118e=_0x183fa5,{unitID:_0x1c8e51,memberID:_0x3a9b03,textRanges:_0x1cee7b}=_0x452a61,_0x297f66=Pe(_0x1cee7b);if(_0x297f66==='')return;const _0x3ecb64={'unitID':_0x1c8e51,'memberID':_0x3a9b03,'selection':_0x297f66};this[_0x5e118e(0x226)][_0x5e118e(0x254)](_0x3ecb64);}}var Ze=Object[_0x183fa5(0x255)],Qe=(_0x4fc56f,_0x1a670a,_0x4153be,_0x74a6a1)=>{const _0x28adb5=_0x183fa5;for(var _0x320e8a=_0x74a6a1>0x1?void 0x0:_0x74a6a1?Ze(_0x1a670a,_0x4153be):_0x1a670a,_0x3030bb=_0x4fc56f[_0x28adb5(0x260)]-0x1,_0x6a1a34;_0x3030bb>=0x0;_0x3030bb--)(_0x6a1a34=_0x4fc56f[_0x3030bb])&&(_0x320e8a=_0x6a1a34(_0x320e8a)||_0x320e8a);return _0x320e8a;},L=(_0x4abf25,_0x3b9499)=>(_0x1f20c4,_0x50b394)=>_0x3b9499(_0x1f20c4,_0x50b394,_0x4abf25);const et=0x12c,tt=0x64;let fe=class extends a[_0x183fa5(0x3b8)]{constructor(_0x5df597,_0x4244f9,_0x71cf77,_0x3e60c6,_0x2703e7,_0x43c681,_0x39c5b1,_0x20b971,_0x270c64){const _0xaea7b7=_0x183fa5;super(),h(this,_0xaea7b7(0x2c3),!0x1),h(this,_0xaea7b7(0x240),!0x1),h(this,_0xaea7b7(0x34c),new d[(_0xaea7b7(0x323))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0xaea7b7(0x31c)]()),h(this,_0xaea7b7(0x3b5),new d[(_0xaea7b7(0x323))]([])),h(this,_0xaea7b7(0x375),this['_roomMembers$']['pipe'](d['debounceTime'](et))),h(this,_0xaea7b7(0x295),a[_0xaea7b7(0x3be)](_0x4af7e0=>{const _0x4530bc=_0xaea7b7,_0x5c6a59={'eventID':m[_0x4530bc(0x1a4)][_0x4530bc(0x3b1)],'data':{'unitID':this[_0x4530bc(0x1b7)],'memberID':this[_0x4530bc(0x383)][_0x4530bc(0x3db)](),'selection':Pe(_0x4af7e0)}};this[_0x4530bc(0x383)][_0x4530bc(0x3ee)](_0x5c6a59,this['unitID']);},tt)),(this[_0xaea7b7(0x1b7)]=_0x5df597,this[_0xaea7b7(0x383)]=_0x4244f9,this[_0xaea7b7(0x20a)]=_0x71cf77,this[_0xaea7b7(0x1ca)]=_0x3e60c6,this[_0xaea7b7(0x2e9)]=_0x2703e7,this[_0xaea7b7(0x324)]=_0x43c681,this[_0xaea7b7(0x346)]=_0x39c5b1,this[_0xaea7b7(0x28f)]=_0x20b971,this['_commandService']=_0x270c64);}get['cursorInfo'](){const _0x257ede=_0x183fa5;return this[_0x257ede(0x34c)][_0x257ede(0x3df)]();}get[_0x183fa5(0x3a2)](){const _0x428600=_0x183fa5;return this[_0x428600(0x3b5)][_0x428600(0x3df)]();}[_0x183fa5(0x2a6)](){const _0x11d0e9=_0x183fa5;super[_0x11d0e9(0x2a6)](),this['_cursorInfo$'][_0x11d0e9(0x254)](new Map()),this['_cursorInfo$'][_0x11d0e9(0x2cf)](),this[_0x11d0e9(0x3b5)][_0x11d0e9(0x254)]([]),this['_roomMembers$']['complete']();}[_0x183fa5(0x2b0)](){const _0xb4afea=_0x183fa5;this[_0xb4afea(0x240)]||(this[_0xb4afea(0x240)]=!0x0,this[_0xb4afea(0x383)][_0xb4afea(0x352)][_0xb4afea(0x213)](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0xee2feb=>{const _0x2bd33c=_0xb4afea;_0xee2feb===u[_0x2bd33c(0x32f)][_0x2bd33c(0x2bf)]?this[_0x2bd33c(0x3d9)]():this[_0x2bd33c(0x358)]();}),this[_0xb4afea(0x383)][_0xb4afea(0x2f6)]['pipe'](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0x15defa=>{const _0x2d4420=_0xb4afea,_0x4c594e=_0x15defa[_0x2d4420(0x36b)];_0x4c594e===m['CollaborationEvent'][_0x2d4420(0x3b1)]&&this['_onCursorUpdate'](_0x15defa),_0x4c594e===m[_0x2d4420(0x1a4)]['USERS_LEAVE']&&this[_0x2d4420(0x267)](_0x15defa);}),this[_0xb4afea(0x220)](this[_0xb4afea(0x210)][_0xb4afea(0x271)](_0xee0309=>{const _0x5d5e55=_0xb4afea,_0x28e535=_0xee0309['params'];_0x28e535!=null&&this[_0x5d5e55(0x2c3)]&&_0xee0309['id']===W[_0x5d5e55(0x39b)]['id']&&_0x28e535[_0x5d5e55(0x34f)]===this[_0x5d5e55(0x1b7)]&&_0x28e535['isEditing']===!0x1&&_0x28e535[_0x5d5e55(0x37e)][_0x5d5e55(0x260)]>0x0&&this['_updateLocalCursor'](_0x28e535['ranges']);})),this[_0xb4afea(0x324)][_0xb4afea(0x2c2)][_0xb4afea(0x213)](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0x3e4a06=>{const _0x1e9489=_0xb4afea;if((_0x3e4a06==null?void 0x0:_0x3e4a06[_0x1e9489(0x1b7)])!==this[_0x1e9489(0x1b7)])return;const _0x40a6d5={'eventID':m[_0x1e9489(0x1a4)][_0x1e9489(0x3b1)],'data':_0x3e4a06};this[_0x1e9489(0x1b2)](_0x40a6d5);}),this[_0xb4afea(0x220)](this[_0xb4afea(0x210)][_0xb4afea(0x271)](_0x43c2e1=>{const _0x484dbf=_0xb4afea;if(_0x43c2e1[_0x484dbf(0x1c1)]==null)return;const _0x544b96=_0x43c2e1[_0x484dbf(0x1c1)];if(_0x43c2e1['id']!==W[_0x484dbf(0x1be)]['id']||_0x544b96[_0x484dbf(0x34f)]!==this[_0x484dbf(0x1b7)])return;const _0x35f5ef={'id':_0x484dbf(0x300),'params':_0x544b96},_0x54318a=this[_0x484dbf(0x27d)];for(const [_0xf033ca,_0x2e3ff4]of _0x54318a){const _0x541003={'id':_0x484dbf(0x300),'params':{'unitId':this[_0x484dbf(0x1b7)],'actions':null,'textRanges':_0x2e3ff4[_0x484dbf(0x37e)]}},_0x43a249=this[_0x484dbf(0x346)]['transformMutation'](_0x35f5ef,_0x541003,!0x1);if(m[_0x484dbf(0x1d3)](_0x43a249))throw _0x43a249['error'];_0x54318a[_0x484dbf(0x279)](_0xf033ca,{..._0x2e3ff4,'ranges':_0x43a249['m2Prime'][_0x484dbf(0x1c1)][_0x484dbf(0x1ab)]});}queueMicrotask(()=>{const _0x3b43af=_0x484dbf;this[_0x3b43af(0x34c)][_0x3b43af(0x254)](_0x54318a);});})));}[_0x183fa5(0x1b2)](_0x5dec0b){const _0x4a9975=_0x183fa5;var _0x5b9b03,_0x1708a0;const {memberID:_0x13d4ca,selection:_0x6164ca}=_0x5dec0b[_0x4a9975(0x1ac)],_0x438afe=Je(_0x6164ca),_0x3ad1b6=(_0x1708a0=(_0x5b9b03=this['_memberService'][_0x4a9975(0x304)](this[_0x4a9975(0x1b7)],_0x13d4ca))==null?void 0x0:_0x5b9b03['name'])!=null?_0x1708a0:_0x4a9975(0x40b),_0x4f4c41={'color':this[_0x4a9975(0x1ca)][_0x4a9975(0x35a)](_0x13d4ca),'name':_0x3ad1b6,'ranges':_0x438afe},_0x5a8204=this[_0x4a9975(0x27d)];_0x5a8204[_0x4a9975(0x279)](_0x13d4ca,_0x4f4c41),this[_0x4a9975(0x34c)][_0x4a9975(0x254)](_0x5a8204);}['_onCursorDelete'](_0x5e2659){const _0x3cace5=_0x183fa5,{memberID:_0xf8234a}=_0x5e2659[_0x3cace5(0x1ac)],_0x17999e=this['cursorInfo'];_0x17999e[_0x3cace5(0x1dc)](_0xf8234a),this[_0x3cace5(0x34c)][_0x3cace5(0x254)](_0x17999e);}['_toggleOnline'](){const _0x3b1956=_0x183fa5;var _0x355f33;if(this[_0x3b1956(0x2c3)]=!0x0,((_0x355f33=this[_0x3b1956(0x28f)][_0x3b1956(0x276)]())==null?void 0x0:_0x355f33[_0x3b1956(0x3bf)]())!==this[_0x3b1956(0x1b7)])return;const _0x3df974=this['_injector'][_0x3b1956(0x2dc)](W[_0x3b1956(0x28e)])[_0x3b1956(0x268)]();Array[_0x3b1956(0x2ba)](_0x3df974)&&_0x3df974[_0x3b1956(0x260)]>0x0&&this[_0x3b1956(0x295)](_0x3df974);}[_0x183fa5(0x358)](){const _0x3ea3d9=_0x183fa5;this[_0x3ea3d9(0x2c3)]=!0x1;}};fe=Qe([L(0x2,a[_0x183fa5(0x3dc)](a['Injector'])),L(0x3,a[_0x183fa5(0x3dc)](me)),L(0x4,a[_0x183fa5(0x3dc)](u['MemberService'])),L(0x5,a[_0x183fa5(0x3dc)](Ce)),L(0x6,m[_0x183fa5(0x20b)]),L(0x7,a[_0x183fa5(0x33a)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x183fa5(0x255)],it=(_0x4a44ca,_0x33ad6d,_0x49ffc2,_0x99bf2c)=>{const _0x33699c=_0x183fa5;for(var _0x582649=_0x99bf2c>0x1?void 0x0:_0x99bf2c?st(_0x33ad6d,_0x49ffc2):_0x33ad6d,_0x4113fe=_0x4a44ca[_0x33699c(0x260)]-0x1,_0x485a91;_0x4113fe>=0x0;_0x4113fe--)(_0x485a91=_0x4a44ca[_0x4113fe])&&(_0x582649=_0x485a91(_0x582649)||_0x582649);return _0x582649;},A=(_0x569ab9,_0x1ac834)=>(_0x2e5970,_0x24f30e)=>_0x1ac834(_0x2e5970,_0x24f30e,_0x569ab9);const nt=0x12c,rt=0x64,ot=()=>{let _0x5a1615=[],_0x120472=!0x1;return _0x15bec7=>{_0x5a1615['push'](_0x15bec7),_0x120472||(_0x120472=!0x0,setTimeout(()=>{const _0x7b3828=_0x5188;_0x5a1615[_0x7b3828(0x2ae)](_0x4bfd4b=>_0x4bfd4b()),_0x5a1615=[],_0x120472=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x1f6994,_0x2a764a,_0x4aac82,_0x24981b,_0x33bb95,_0x5806da,_0x2a7add,_0x2569ef){const _0x492fc2=_0x183fa5;super(),h(this,_0x492fc2(0x2c3),!0x1),h(this,'_init',!0x1),h(this,_0x492fc2(0x34c),new d[(_0x492fc2(0x323))](new Map())),h(this,_0x492fc2(0x201),this[_0x492fc2(0x34c)][_0x492fc2(0x31c)]()),h(this,_0x492fc2(0x3b5),new d[(_0x492fc2(0x323))]([])),h(this,_0x492fc2(0x375),this[_0x492fc2(0x3b5)][_0x492fc2(0x213)](d['debounceTime'](nt))),h(this,_0x492fc2(0x295),a['debounce']((_0x4078cc,_0x4aafda)=>{const _0x5710e6=_0x492fc2,_0x30883c={'eventID':m[_0x5710e6(0x1a4)][_0x5710e6(0x3b1)],'data':{'unitID':this['unitID'],'memberID':this[_0x5710e6(0x383)][_0x5710e6(0x3db)](),'selection':Ee[_0x5710e6(0x3c8)](_0x4078cc,_0x4aafda['range'])}};this['_session']['send'](_0x30883c,this['unitID']);},rt)),(this[_0x492fc2(0x1b7)]=_0x1f6994,this[_0x492fc2(0x383)]=_0x2a764a,this[_0x492fc2(0x20a)]=_0x4aac82,this[_0x492fc2(0x1ca)]=_0x24981b,this[_0x492fc2(0x2e9)]=_0x33bb95,this[_0x492fc2(0x28f)]=_0x5806da,this['_commandService']=_0x2a7add,this['_refRangeService']=_0x2569ef);}get[_0x183fa5(0x27d)](){const _0x33c8e7=_0x183fa5;return this[_0x33c8e7(0x34c)][_0x33c8e7(0x3df)]();}get[_0x183fa5(0x3a2)](){const _0x59df38=_0x183fa5;return this['_roomMembers$'][_0x59df38(0x3df)]();}['dispose'](){const _0x12ec5a=_0x183fa5;super[_0x12ec5a(0x2a6)](),this[_0x12ec5a(0x34c)][_0x12ec5a(0x254)](new Map()),this[_0x12ec5a(0x34c)]['complete'](),this[_0x12ec5a(0x3b5)][_0x12ec5a(0x254)]([]),this[_0x12ec5a(0x3b5)][_0x12ec5a(0x2cf)]();}[_0x183fa5(0x2b0)](){const _0x15c02d=_0x183fa5;this[_0x15c02d(0x240)]||(this['_init']=!0x0,this[_0x15c02d(0x383)][_0x15c02d(0x352)][_0x15c02d(0x213)](d[_0x15c02d(0x351)](this[_0x15c02d(0x22f)]))['subscribe'](_0x53be1d=>{const _0x317c2a=_0x15c02d;_0x53be1d===u['SessionStatus'][_0x317c2a(0x2bf)]?this['_toggleOnline']():this[_0x317c2a(0x358)]();}),this[_0x15c02d(0x383)]['event$']['pipe'](d[_0x15c02d(0x351)](this['dispose$']))[_0x15c02d(0x24c)](_0x4c4001=>{const _0x1360a8=_0x15c02d,_0x188877=_0x4c4001['eventID'];_0x188877===m[_0x1360a8(0x1a4)][_0x1360a8(0x3b1)]&&this[_0x1360a8(0x1b2)](_0x4c4001),_0x188877===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x1360a8(0x267)](_0x4c4001);}),this[_0x15c02d(0x32e)](),this['disposeWithMe'](this[_0x15c02d(0x210)][_0x15c02d(0x271)](_0x2432f5=>{const _0x2e00cf=_0x15c02d;if(this[_0x2e00cf(0x2c3)]&&_0x2432f5['id']===g['SetSelectionsOperation']['id']&&_0x2432f5['params'][_0x2e00cf(0x34f)]===this[_0x2e00cf(0x1b7)]){const _0xfdfa7f=_0x2432f5[_0x2e00cf(0x1c1)];this[_0x2e00cf(0x295)](_0xfdfa7f['subUnitId'],_0xfdfa7f[_0x2e00cf(0x1bb)][0x0]);}})));}[_0x183fa5(0x1b2)](_0x1387bb){const _0x1df72b=_0x183fa5;var _0xb5a416,_0x598a65;const {memberID:_0x1755c5,selection:_0x36a4d9}=_0x1387bb[_0x1df72b(0x1ac)],{sheetName:_0x1cf954,range:_0x41743d}=Ee[_0x1df72b(0x3fd)](_0x36a4d9),_0x183ea9={'name':(_0x598a65=(_0xb5a416=this[_0x1df72b(0x2e9)]['getMember'](this['unitID'],_0x1755c5))==null?void 0x0:_0xb5a416[_0x1df72b(0x393)])!=null?_0x598a65:_0x1df72b(0x40b),'range':this[_0x1df72b(0x373)](_0x1cf954,_0x41743d),'sheetID':_0x1cf954,'color':this[_0x1df72b(0x1ca)]['assignAColorForMemberID'](_0x1755c5),'selection':_0x36a4d9},_0x28e302=this['cursorInfo'];_0x28e302[_0x1df72b(0x279)](_0x1755c5,_0x183ea9),this[_0x1df72b(0x34c)][_0x1df72b(0x254)](_0x28e302);}['_onCursorDelete'](_0x1e322d){const _0x1bb097=_0x183fa5,{memberID:_0x567c36}=_0x1e322d[_0x1bb097(0x1ac)],_0x228646=this['cursorInfo'];_0x228646[_0x1bb097(0x1dc)](_0x567c36),this['_cursorInfo$'][_0x1bb097(0x254)](_0x228646);}[_0x183fa5(0x373)](_0x3e1698,_0x178bff){const _0x413f4e=_0x183fa5;var _0x22d441,_0x38848c;const _0x461d42=(_0x38848c=(_0x22d441=this['_univerInstanceService'][_0x413f4e(0x1e7)](this[_0x413f4e(0x1b7)]))==null?void 0x0:_0x22d441[_0x413f4e(0x2ed)](_0x3e1698))==null?void 0x0:_0x38848c[_0x413f4e(0x22b)]();return(_0x461d42==null?void 0x0:_0x461d42[_0x413f4e(0x1cd)](_0x4a759c=>a['Rectangle']['contains'](_0x4a759c,_0x178bff)))||_0x178bff;}[_0x183fa5(0x32e)](){const _0x2c89cc=_0x183fa5,_0x223379=new a[(_0x2c89cc(0x38c))](),_0xa6197d=ot(),_0x1865ad=()=>{const _0x6e1791=_0x2c89cc;_0x223379[_0x6e1791(0x2a6)]();const _0x588068=(_0x2c22b0,_0x114a94,_0x2064f4,_0xf3fbe5)=>{const _0x2b3743=_0x6e1791;let _0x3427aa=[];switch(_0x2c22b0['id']){case g[_0x2b3743(0x266)][_0x2b3743(0x3dd)]:{_0x3427aa=g[_0x2b3743(0x1ec)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x3ed)]:{_0x3427aa=g[_0x2b3743(0x1a5)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x1e2)]:{_0x3427aa=g[_0x2b3743(0x3b6)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)]['InsertRangeMoveDownCommandId']:{_0x3427aa=g['handleInsertRangeMoveDown'](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x2da)]:{_0x3427aa=g[_0x2b3743(0x3f9)](_0x2c22b0,_0xf3fbe5);break;}case g['EffectRefRangId'][_0x2b3743(0x24e)]:{_0x3427aa=g[_0x2b3743(0x371)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)]['MoveRangeCommandId']:{_0x3427aa=g[_0x2b3743(0x38d)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x27f)]:{_0x3427aa=g[_0x2b3743(0x35d)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x39c)]:{_0x3427aa=g[_0x2b3743(0x309)](_0x2c22b0,_0xf3fbe5);break;}}const _0x568018=g['runRefRangeMutations'](_0x3427aa,_0xf3fbe5),_0x55c4f1=this[_0x2b3743(0x27d)][_0x2b3743(0x2dc)](_0x114a94);if(_0x55c4f1&&_0x568018){const _0x2c0bd8={..._0x55c4f1,'range':_0x568018};this[_0x2b3743(0x27d)][_0x2b3743(0x279)](_0x114a94,_0x2c0bd8),_0xa6197d(()=>{const _0x438819=_0x2b3743,_0x1987e0=this['_refRangeService']['registerRefRange'](_0x568018,_0x5b1760=>(_0x1987e0[_0x438819(0x2a6)](),_0x588068(_0x5b1760,_0x114a94,_0x2064f4,_0x568018)));_0x223379['add'](_0x1987e0);});}return{'redos':[],'undos':[]};};this[_0x6e1791(0x27d)][_0x6e1791(0x2ae)]((_0x4b6e74,_0x4df529)=>{const _0x2fef7a=_0x6e1791,{range:_0x4b7976,sheetID:_0x37a8ae}=_0x4b6e74,_0x5a544b=this['_refRangeService'][_0x2fef7a(0x19c)](_0x4b7976,_0x4c00b1=>(_0x5a544b['dispose'](),_0x588068(_0x4c00b1,_0x4df529,_0x37a8ae,_0x4b7976)));_0x223379[_0x2fef7a(0x292)](_0x5a544b);});};this[_0x2c89cc(0x220)](a[_0x2c89cc(0x29e)](this['_cursorInfo$']['subscribe'](()=>{_0x1865ad();})));}['_toggleOnline'](){const _0x76c7f0=_0x183fa5;var _0x3f598b,_0x158315;if(this['_online']=!0x0,((_0x3f598b=this[_0x76c7f0(0x28f)][_0x76c7f0(0x276)]())==null?void 0x0:_0x3f598b[_0x76c7f0(0x3bf)]())!==this[_0x76c7f0(0x1b7)])return;const _0x1a3d71=(_0x158315=this['_injector'][_0x76c7f0(0x2dc)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x158315[0x0],_0x5089b0=this[_0x76c7f0(0x28f)][_0x76c7f0(0x22c)](a[_0x76c7f0(0x2f4)][_0x76c7f0(0x407)])['getActiveSheet']();_0x1a3d71&&_0x5089b0&&this[_0x76c7f0(0x295)](_0x5089b0['getSheetId'](),_0x1a3d71);}[_0x183fa5(0x358)](){const _0x450906=_0x183fa5;this[_0x450906(0x2c3)]=!0x1;}};Se=it([A(0x2,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),A(0x3,a[_0x183fa5(0x3dc)](me)),A(0x4,a[_0x183fa5(0x3dc)](u[_0x183fa5(0x24a)])),A(0x5,a[_0x183fa5(0x33a)]),A(0x6,a[_0x183fa5(0x3fb)]),A(0x7,a[_0x183fa5(0x3dc)](g['RefRangeService']))],Se);var at=Object[_0x183fa5(0x255)],ct=(_0x4acce6,_0x3fd6f3,_0xc65d51,_0x2ab8fa)=>{const _0x14fc41=_0x183fa5;for(var _0x2e29fd=_0x2ab8fa>0x1?void 0x0:_0x2ab8fa?at(_0x3fd6f3,_0xc65d51):_0x3fd6f3,_0x38670f=_0x4acce6[_0x14fc41(0x260)]-0x1,_0x494b1b;_0x38670f>=0x0;_0x38670f--)(_0x494b1b=_0x4acce6[_0x38670f])&&(_0x2e29fd=_0x494b1b(_0x2e29fd)||_0x2e29fd);return _0x2e29fd;},ie=(_0x30ba6f,_0x559609)=>(_0x941ff,_0x4c5425)=>_0x559609(_0x941ff,_0x4c5425,_0x30ba6f);let x=class extends a[_0x183fa5(0x3b8)]{constructor(_0x44bf5c,_0x2f7ef6,_0x3a7e15){const _0x47aa67=_0x183fa5;super(),h(this,_0x47aa67(0x25a),new Map()),h(this,_0x47aa67(0x3cf),new d['Subject']()),(this['_univerInstanceService']=_0x44bf5c,this[_0x47aa67(0x20a)]=_0x2f7ef6,this['_collabSessionService']=_0x3a7e15,this[_0x47aa67(0x240)]());}[_0x183fa5(0x2a6)](){const _0x2c8b28=_0x183fa5;super[_0x2c8b28(0x2a6)](),this[_0x2c8b28(0x3cf)][_0x2c8b28(0x2cf)](),this[_0x2c8b28(0x25a)][_0x2c8b28(0x2ae)](_0x323b96=>_0x323b96[_0x2c8b28(0x2a6)]());}['getCollabCursors$'](_0x156843){const _0x1de0ed=_0x183fa5;return this[_0x1de0ed(0x25a)][_0x1de0ed(0x1e3)](_0x156843)?this['_entities'][_0x1de0ed(0x2dc)](_0x156843)[_0x1de0ed(0x201)]:this[_0x1de0ed(0x3cf)]['pipe'](d['filter'](_0x4b1920=>_0x4b1920['unitID']===_0x156843),d[_0x1de0ed(0x26c)](_0x4919b0=>_0x4919b0[_0x1de0ed(0x201)]));}[_0x183fa5(0x240)](){const _0x3fb92e=_0x183fa5;this[_0x3fb92e(0x28f)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x3fb92e(0x407)])[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))['subscribe'](async _0x2a645f=>{const _0x54a508=_0x3fb92e,_0x428603=_0x2a645f[_0x54a508(0x3bf)](),_0x1934c8=await this[_0x54a508(0x203)](_0x428603);this['_entityInit$'][_0x54a508(0x254)](_0x1934c8),this['_entities'][_0x54a508(0x279)](_0x428603,_0x1934c8);}),this[_0x3fb92e(0x28f)][_0x3fb92e(0x1f3)](a[_0x3fb92e(0x2f4)][_0x3fb92e(0x2c8)])[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))[_0x3fb92e(0x213)](d[_0x3fb92e(0x1b0)](_0x6ce48c=>!_0x6ce48c['getUnitId']()[_0x3fb92e(0x1a7)]('__')))['subscribe'](async _0x148c05=>{const _0x42c2bf=_0x3fb92e,_0x2471be=_0x148c05[_0x42c2bf(0x3bf)](),_0x2bd264=await this[_0x42c2bf(0x34a)](_0x2471be);this['_entityInit$']['next'](_0x2bd264),this[_0x42c2bf(0x25a)]['set'](_0x2471be,_0x2bd264);}),d['merge'](this[_0x3fb92e(0x28f)][_0x3fb92e(0x2a4)](a[_0x3fb92e(0x2f4)][_0x3fb92e(0x2c8)]),this[_0x3fb92e(0x28f)][_0x3fb92e(0x2a4)](a[_0x3fb92e(0x2f4)]['UNIVER_SHEET']))[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))[_0x3fb92e(0x24c)](_0x7687e8=>{const _0x58079d=_0x3fb92e,_0x52db79=_0x7687e8['getUnitId'](),_0x12624a=this[_0x58079d(0x25a)][_0x58079d(0x2dc)](_0x52db79);_0x12624a&&(_0x12624a[_0x58079d(0x2a6)](),this[_0x58079d(0x25a)]['delete'](_0x52db79));});}async[_0x183fa5(0x203)](_0x33d98f){const _0x37eb03=_0x183fa5,_0x4947fe=await this[_0x37eb03(0x2be)][_0x37eb03(0x281)](_0x33d98f),_0x370977=this[_0x37eb03(0x20a)][_0x37eb03(0x32c)](Se,_0x33d98f,_0x4947fe);return _0x370977[_0x37eb03(0x2b0)](),_0x370977;}async[_0x183fa5(0x34a)](_0x5502c7){const _0x94d5c6=_0x183fa5,_0x4cd7fd=await this[_0x94d5c6(0x2be)][_0x94d5c6(0x281)](_0x5502c7),_0x24196e=this['_injector']['createInstance'](fe,_0x5502c7,_0x4cd7fd);return _0x24196e['init'](),_0x24196e;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),ie(0x2,a[_0x183fa5(0x3dc)](u['CollaborationSessionService']))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4a7f52,_0x53e658){const _0x59ff11=_0x183fa5;let {radius:_0x1b3044,width:_0x37621c,height:_0x54de69}=_0x53e658;_0x1b3044=_0x1b3044!=null?_0x1b3044:0x0,_0x37621c=_0x37621c!=null?_0x37621c:0x1e,_0x54de69=_0x54de69!=null?_0x54de69:0x1e;let _0x2bb4a2=0x0,_0x12c839=0x0,_0x2efbee=0x0;_0x2bb4a2=_0x12c839=_0x2efbee=Math[_0x59ff11(0x250)](_0x1b3044,_0x37621c/0x2,_0x54de69/0x2),_0x4a7f52[_0x59ff11(0x235)](),_0x4a7f52[_0x59ff11(0x38b)](_0x2bb4a2,0x0),_0x4a7f52[_0x59ff11(0x1b4)](_0x37621c-_0x12c839,0x0),_0x4a7f52['arc'](_0x37621c-_0x12c839,_0x12c839,_0x12c839,Math['PI']*0x3/0x2,0x0,!0x1),_0x4a7f52['lineTo'](_0x37621c,_0x54de69-_0x2efbee),_0x4a7f52[_0x59ff11(0x3c3)](_0x37621c-_0x2efbee,_0x54de69-_0x2efbee,_0x2efbee,0x0,Math['PI']/0x2,!0x1),_0x4a7f52[_0x59ff11(0x1b4)](0x0,_0x54de69),_0x4a7f52[_0x59ff11(0x1b4)](0x0,_0x2bb4a2),_0x4a7f52['arc'](_0x2bb4a2,_0x2bb4a2,_0x2bb4a2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4a7f52['closePath'](),_0x53e658[_0x59ff11(0x3c4)]&&(_0x4a7f52[_0x59ff11(0x2fc)](),_0x4a7f52['fillStyle']=_0x53e658[_0x59ff11(0x3c4)],_0x53e658[_0x59ff11(0x368)]===_0x59ff11(0x259)?_0x4a7f52[_0x59ff11(0x3c4)]('evenodd'):_0x4a7f52['fill'](),_0x4a7f52[_0x59ff11(0x36c)]());}class ee extends p[_0x183fa5(0x384)]{constructor(_0x63a059,_0x2c7ffc){const _0x41fce9=_0x183fa5;super(_0x63a059,_0x2c7ffc),h(this,_0x41fce9(0x2af)),h(this,_0x41fce9(0x364)),(this[_0x41fce9(0x2af)]=_0x2c7ffc==null?void 0x0:_0x2c7ffc[_0x41fce9(0x2af)],this[_0x41fce9(0x364)]=_0x2c7ffc==null?void 0x0:_0x2c7ffc[_0x41fce9(0x364)]);}static[_0x183fa5(0x334)](_0x5920db,_0x6fb295){const _0x1f99f4=_0x183fa5,{text:_0x2194ac,color:_0x22ee31}=_0x6fb295;_0x5920db[_0x1f99f4(0x2fc)](),_0x5920db[_0x1f99f4(0x35b)]=_0x1f99f4(0x32b);const _0x22e99d=_0x5920db['measureText'](_0x2194ac)['width'],_0x1e52d9=Math[_0x1f99f4(0x250)](_0x22e99d+0x2*ne,Re);_t(_0x5920db,{'height':q,'radius':0x4,'width':_0x1e52d9,'fill':_0x22ee31}),_0x5920db['fillStyle']=_0x1f99f4(0x37d);const _0x1860b5=ne,_0x2b0048=q-lt,_0x5a5fcc=Re-0x2*ne;if(_0x22e99d>_0x5a5fcc){let _0x11c0b6='',_0xa765c3=0x0;for(const _0x5ca0ba of _0x2194ac){const _0x411993=_0x5920db[_0x1f99f4(0x3d7)](_0x5ca0ba)[_0x1f99f4(0x2e5)];if(_0xa765c3+_0x411993<=_0x5a5fcc-_0x5920db[_0x1f99f4(0x3d7)](_0x1f99f4(0x342))['width'])_0x11c0b6+=_0x5ca0ba,_0xa765c3+=_0x411993;else{_0x11c0b6+=_0x1f99f4(0x342);break;}}_0x5920db[_0x1f99f4(0x3c6)](_0x11c0b6,_0x1860b5,_0x2b0048);}else _0x5920db[_0x1f99f4(0x3c6)](_0x2194ac,_0x1860b5,_0x2b0048);_0x5920db[_0x1f99f4(0x36c)]();}[_0x183fa5(0x28b)](_0x3e6c6f){const _0x247058=_0x183fa5;ee[_0x247058(0x334)](_0x3e6c6f,this);}}const re=_0x183fa5(0x376),ht='collab-text-range-',ut=_0x183fa5(0x2ef),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x183fa5(0x274);class De{constructor(_0x161aa0,_0x185b64,_0x2672df,_0x43cded){const _0x3670e8=_0x183fa5;h(this,_0x3670e8(0x302),[]),h(this,'_anchor',null),h(this,_0x3670e8(0x232),null),h(this,_0x3670e8(0x38a),null),h(this,_0x3670e8(0x3b4),null),h(this,_0x3670e8(0x2f7),null),(this[_0x3670e8(0x3f0)]=_0x161aa0,this[_0x3670e8(0x3e0)]=_0x185b64,this[_0x3670e8(0x3e6)]=_0x2672df,this[_0x3670e8(0x2cc)]=_0x43cded,this[_0x3670e8(0x3d0)]());}set['_hover'](_0x1468e3){const _0x556584=_0x183fa5;_0x1468e3?(this['_anchorDot']&&this[_0x556584(0x38a)]['hide'](),this[_0x556584(0x232)]&&this['_textBubble'][_0x556584(0x19d)]()):(this[_0x556584(0x38a)]&&this[_0x556584(0x38a)][_0x556584(0x19d)](),this[_0x556584(0x232)]&&this[_0x556584(0x232)][_0x556584(0x315)]());}[_0x183fa5(0x2a6)](){const _0x41f254=_0x183fa5;for(const _0x1b6054 of this[_0x41f254(0x302)])_0x1b6054['dispose']();this[_0x41f254(0x232)]&&this['_textBubble'][_0x41f254(0x2a6)](),this[_0x41f254(0x38a)]&&this[_0x41f254(0x38a)][_0x41f254(0x2a6)](),this[_0x41f254(0x1ae)]&&this[_0x41f254(0x1ae)][_0x41f254(0x2a6)](),this[_0x41f254(0x2f7)]&&this[_0x41f254(0x2f7)]();}[_0x183fa5(0x3d0)](){const _0x12f2a9=_0x183fa5;var _0x27acfe;const {_docSkeleton:_0x1f710a,_document:_0x1b026a}=this,{color:_0x159424,name:_0x40094b,ranges:_0x540469}=this[_0x12f2a9(0x3f0)],_0x2ab85c=_0x1b026a['getOffsetConfig'](),{docsLeft:_0x598018,docsTop:_0x400408}=_0x2ab85c,_0x2cf820=new b[(_0x12f2a9(0x21f))](_0x2ab85c,_0x1f710a);for(const {startOffset:_0x30807d,endOffset:_0x320ca7,rangeType:_0x19b100,segmentId:_0x5498b6,segmentPage:_0xad840c,collapsed:_0xda4cc0,isActive:_0x23c6b8}of _0x540469){const _0x16fa40=_0x1f710a[_0x12f2a9(0x2f2)](_0x30807d,!0x0,_0x5498b6,_0xad840c);let _0x387461=_0x1f710a['findNodePositionByCharIndex'](_0x320ca7,!0x0,_0x5498b6,_0xad840c);if(_0x387461==null&&(_0x387461=_0x1f710a['findNodePositionByCharIndex'](_0x320ca7-0x1,!0x1,_0x5498b6,_0xad840c)),_0x23c6b8){const {contentBoxPointGroup:_0x4560c2}=_0x2cf820[_0x12f2a9(0x344)](_0x387461,_0x387461);if(_0x4560c2['length']===0x0)continue;this[_0x12f2a9(0x3e7)](_0x159424,_0x4560c2,_0x598018,_0x400408,_0x40094b),this[_0x12f2a9(0x2f7)]=this[_0x12f2a9(0x3e5)]();}if(_0x16fa40&&_0x387461){if(_0x19b100===a[_0x12f2a9(0x27b)][_0x12f2a9(0x2db)]){const _0x4e0a29=new b['NodePositionConvertToRectRange'](_0x2ab85c,_0x1f710a),{pointGroup:_0x321f59}=(_0x27acfe=_0x4e0a29[_0x12f2a9(0x344)](_0x16fa40,_0x387461))!=null?_0x27acfe:{};if(_0x321f59==null||_0x321f59[_0x12f2a9(0x260)]===0x0)continue;this['_drawRectRange'](_0x159424,_0x321f59,_0x598018,_0x400408);}else{if(!_0xda4cc0){const {borderBoxPointGroup:_0x4d6d6f}=_0x2cf820[_0x12f2a9(0x344)](_0x16fa40,_0x387461);if(_0x4d6d6f[_0x12f2a9(0x260)]===0x0)continue;this['_drawTextRange'](_0x159424,_0x4d6d6f,_0x598018,_0x400408);}}}}}[_0x183fa5(0x3e7)](_0x2452eb,_0x4d60a1,_0x1b4a80,_0x43cb19,_0x43bfd1){const _0x5d6624=_0x183fa5,_0x186770=this['_getAnchorBounding'](_0x4d60a1),{left:_0x1d24e6,top:_0x299aef,height:_0x2ca1ef}=_0x186770,_0x590f26=this[_0x5d6624(0x20d)](),_0x1d2cd7=ft/_0x590f26,_0x17e76e=new p[(_0x5d6624(0x3d8))](re+a[_0x5d6624(0x2e2)][_0x5d6624(0x273)](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19,'height':_0x2ca1ef,'width':dt,'fill':_0x2452eb||p[_0x5d6624(0x1dd)](a['COLORS'][_0x5d6624(0x361)],0x0),'strokeWidth':_0x1d2cd7,'stroke':St,'evented':!0x0});this[_0x5d6624(0x1ae)]=_0x17e76e,this['_scene'][_0x5d6624(0x3a5)](_0x17e76e,b[_0x5d6624(0x1ad)]);const _0x5c22a8=new p[(_0x5d6624(0x3d8))](re+a[_0x5d6624(0x2e2)]['generateRandomId'](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19-oe/0x2,'height':oe,'width':oe,'fill':_0x2452eb||p[_0x5d6624(0x1dd)](a[_0x5d6624(0x2d9)][_0x5d6624(0x361)],0x0),'strokeWidth':0x0,'stroke':_0x2452eb||p[_0x5d6624(0x1dd)](a[_0x5d6624(0x2d9)][_0x5d6624(0x361)],0x0),'evented':!0x1});this[_0x5d6624(0x38a)]=_0x5c22a8,this[_0x5d6624(0x3e0)]['addObject'](_0x5c22a8,b['TEXT_RANGE_LAYER_INDEX']);const _0x46cd0f=new ee(re+a[_0x5d6624(0x2e2)]['generateRandomId'](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19-q,'text':_0x43bfd1,'color':_0x2452eb});this[_0x5d6624(0x232)]=_0x46cd0f,this[_0x5d6624(0x3e0)][_0x5d6624(0x3a5)](_0x46cd0f,b[_0x5d6624(0x1ad)]),this['_hover']=!0x1;}[_0x183fa5(0x3e5)](){const _0xd66161=_0x183fa5,_0x5f1f8e=this[_0xd66161(0x1ae)][_0xd66161(0x37c)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x2c4ed0=this[_0xd66161(0x1ae)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x1b6561=_0xd66161;this[_0x1b6561(0x3b4)]&&clearTimeout(this[_0x1b6561(0x3b4)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x41a593=_0xd66161;_0x5f1f8e[_0x41a593(0x330)](),_0x2c4ed0[_0x41a593(0x330)]();};}[_0x183fa5(0x40a)](_0x3ce63e,_0x476152,_0x22a981,_0x18a6d7){const _0x202b82=_0x183fa5,_0x3ddbd2=new a['ColorKit'](_0x3ce63e)[_0x202b82(0x404)](0.2)['toRgbString'](),_0x3dbf63=new p[(_0x202b82(0x1d0))](ht+a['Tools'][_0x202b82(0x273)](k),{'pointsGroup':_0x476152,'fill':_0x3ddbd2||p[_0x202b82(0x1dd)](a[_0x202b82(0x2d9)][_0x202b82(0x361)],0.2),'left':_0x22a981,'top':_0x18a6d7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x3dbf63),this[_0x202b82(0x3e0)][_0x202b82(0x3a5)](_0x3dbf63,b[_0x202b82(0x1ad)]);}[_0x183fa5(0x2ca)](_0x38e819,_0x156826,_0x1c5371,_0x3bd35f){const _0x9bdb0=_0x183fa5,_0x27bd38=new a['ColorKit'](_0x38e819)['setAlpha'](0.2)[_0x9bdb0(0x40d)](),_0x284fd3=new p[(_0x9bdb0(0x1d0))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x156826,'fill':_0x27bd38||p[_0x9bdb0(0x1dd)](a[_0x9bdb0(0x2d9)][_0x9bdb0(0x361)],0.2),'left':_0x1c5371,'top':_0x3bd35f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9bdb0(0x302)][_0x9bdb0(0x2a0)](_0x284fd3),this[_0x9bdb0(0x3e0)]['addObject'](_0x284fd3,b[_0x9bdb0(0x1ad)]);}['_getAnchorBounding'](_0x5e32a6){const _0x2fa59b=_0x5e32a6[0x0],_0x27573f=_0x2fa59b[0x0],_0x300f5a=_0x2fa59b[0x2],{x:_0x43e381,y:_0x4886ee}=_0x27573f,{x:_0x1a9815,y:_0x102959}=_0x300f5a;return{'left':_0x43e381,'top':_0x4886ee,'width':_0x1a9815-_0x43e381,'height':_0x102959-_0x4886ee};}[_0x183fa5(0x20d)](){const _0x8b36f3=_0x183fa5,{scaleX:_0x424296,scaleY:_0xcd946}=this[_0x8b36f3(0x3e0)][_0x8b36f3(0x1fe)]();return Math['max'](_0x424296,_0xcd946);}}var It=Object[_0x183fa5(0x255)],vt=(_0x5da1fa,_0x52e93f,_0x417b96,_0x571ae3)=>{const _0x2461fc=_0x183fa5;for(var _0x1a12b5=_0x571ae3>0x1?void 0x0:_0x571ae3?It(_0x52e93f,_0x417b96):_0x52e93f,_0x4aa603=_0x5da1fa[_0x2461fc(0x260)]-0x1,_0x32e1b1;_0x4aa603>=0x0;_0x4aa603--)(_0x32e1b1=_0x5da1fa[_0x4aa603])&&(_0x1a12b5=_0x32e1b1(_0x1a12b5)||_0x1a12b5);return _0x1a12b5;},Y=(_0x4211d8,_0x6d77ca)=>(_0x31d653,_0x3395c5)=>_0x6d77ca(_0x31d653,_0x3395c5,_0x4211d8);let Ie=class extends a[_0x183fa5(0x3b8)]{constructor(_0x22f30f,_0x33e117,_0x54ceb0,_0x47a908,_0x163e42){const _0x38cc12=_0x183fa5;super(),h(this,_0x38cc12(0x1a8),[]),h(this,_0x38cc12(0x25c),[]),(this[_0x38cc12(0x2b2)]=_0x22f30f,this['_docSkeletonManagerService']=_0x33e117,this[_0x38cc12(0x30e)]=_0x54ceb0,this['_commandService']=_0x47a908,this['_themeService']=_0x163e42,this[_0x38cc12(0x240)]());}[_0x183fa5(0x240)](){const _0x276e52=_0x183fa5,_0x34c162=this[_0x276e52(0x2b2)][_0x276e52(0x34f)],_0x4c49f6=this[_0x276e52(0x212)];this[_0x276e52(0x220)](d[_0x276e52(0x1d9)]([this[_0x276e52(0x30e)][_0x276e52(0x1c3)](_0x34c162),this[_0x276e52(0x272)][_0x276e52(0x3a4)]])[_0x276e52(0x213)]($[_0x276e52(0x38f)](([_0x282903,_0x7c2e8d])=>({'skeleton':_0x4c49f6[_0x276e52(0x310)](),'cursors':[..._0x282903[_0x276e52(0x1f9)]()][_0x276e52(0x3b7)](_0x1cb85c=>({..._0x1cb85c,'color':_0x7c2e8d[_0x1cb85c[_0x276e52(0x2af)]]}))})))[_0x276e52(0x24c)](_0x4bcbe3=>{const _0x5253ca=_0x276e52;if(this[_0x5253ca(0x3ca)](),_0x4bcbe3){const {skeleton:_0x57dc1e,cursors:_0xac2070}=_0x4bcbe3;this[_0x5253ca(0x1e5)](_0x57dc1e,_0xac2070);}})),this[_0x276e52(0x28c)](),this[_0x276e52(0x400)]();}['_updateCollabCursors'](_0x2e78e4,_0x2e8f4d){const _0x288e08=_0x183fa5,{scene:_0x13d2e4,mainComponent:_0x1ae60a}=this[_0x288e08(0x2b2)],_0xd41fe5=_0x2e8f4d[_0x288e08(0x38f)](_0x45d9b5=>new De(_0x45d9b5,_0x13d2e4,_0x2e78e4,_0x1ae60a));this[_0x288e08(0x1a8)]=_0xd41fe5,this[_0x288e08(0x25c)]=_0x2e8f4d;}['_refreshCollabCursors'](){const _0x42ee80=_0x183fa5;this[_0x42ee80(0x3ca)]();const {scene:_0x10c567,mainComponent:_0x494e7b}=this[_0x42ee80(0x2b2)],_0x50d02=this[_0x42ee80(0x212)]['getSkeleton'](),_0x35f8c7=this[_0x42ee80(0x25c)][_0x42ee80(0x38f)](_0x438a31=>new De(_0x438a31,_0x10c567,_0x50d02,_0x494e7b));this['_cursorShapes']=_0x35f8c7;}[_0x183fa5(0x3ca)](){const _0x5b13bd=_0x183fa5;this[_0x5b13bd(0x1a8)][_0x5b13bd(0x2ae)](_0x2ee737=>_0x2ee737[_0x5b13bd(0x2a6)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1d2b1=_0x183fa5,_0x33b14b=[b['SetDocZoomRatioOperation']['id']];this[_0x1d2b1(0x220)](this[_0x1d2b1(0x210)][_0x1d2b1(0x271)](_0x4fd54c=>{const _0x3e40e2=_0x1d2b1;_0x33b14b['includes'](_0x4fd54c['id'])&&_0x4fd54c[_0x3e40e2(0x1c1)][_0x3e40e2(0x34f)]===this['_context'][_0x3e40e2(0x34f)]&&this[_0x3e40e2(0x29b)]();}));}[_0x183fa5(0x28c)](){const _0x427c93=_0x183fa5;this['disposeWithMe'](a[_0x427c93(0x1db)](this['_context'][_0x427c93(0x348)][_0x427c93(0x1b3)])[_0x427c93(0x213)]($['filter'](_0x4e8231=>_0x4e8231[_0x427c93(0x2c9)]===p[_0x427c93(0x1ea)][_0x427c93(0x322)]),$[_0x427c93(0x349)](0x10))[_0x427c93(0x24c)](()=>{const _0x77416f=_0x427c93;this[_0x77416f(0x29b)]();}));}};Ie=vt([Y(0x1,a[_0x183fa5(0x3dc)](W[_0x183fa5(0x313)])),Y(0x2,a[_0x183fa5(0x3dc)](x)),Y(0x3,a['ICommandService']),Y(0x4,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x341)]))],Ie);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x101c64,_0x5bc8c0){const _0x2e80ac=_0x183fa5;super(_0x101c64,_0x5bc8c0),h(this,_0x2e80ac(0x252)),h(this,_0x2e80ac(0x1eb),!0x1),h(this,'_range'),h(this,_0x2e80ac(0x1c0),''),h(this,'_labelPosition',_0x2e80ac(0x1a0)),h(this,_0x2e80ac(0x40e)),(_0x5bc8c0&&this[_0x2e80ac(0x399)](_0x5bc8c0),this[_0x2e80ac(0x37c)][_0x2e80ac(0x3a1)](()=>this[_0x2e80ac(0x399)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2e80ac(0x3a1)](()=>this[_0x2e80ac(0x399)]({'hovered':!0x1})));}[_0x183fa5(0x399)](_0x3c6fdb){const _0x2c8def=_0x183fa5;var _0x1ac860,_0x28ab32,_0x2cb95a,_0x39e395,_0x2086a9,_0x57982f;this[_0x2c8def(0x252)]=(_0x1ac860=_0x3c6fdb[_0x2c8def(0x2af)])!=null?_0x1ac860:this[_0x2c8def(0x252)],this[_0x2c8def(0x1eb)]=(_0x28ab32=_0x3c6fdb[_0x2c8def(0x243)])!=null?_0x28ab32:this[_0x2c8def(0x1eb)],this[_0x2c8def(0x297)]=(_0x2cb95a=_0x3c6fdb[_0x2c8def(0x332)])!=null?_0x2cb95a:this[_0x2c8def(0x297)],this[_0x2c8def(0x1c0)]=(_0x39e395=_0x3c6fdb[_0x2c8def(0x393)])!=null?_0x39e395:this[_0x2c8def(0x1c0)],this['_labelPosition']=(_0x2086a9=_0x3c6fdb['labelPosition'])!=null?_0x2086a9:this[_0x2c8def(0x221)],this['_backgroundColor']=(_0x57982f=_0x3c6fdb[_0x2c8def(0x307)])!=null?_0x57982f:this[_0x2c8def(0x40e)],this[_0x2c8def(0x1c4)]({'width':_0x3c6fdb[_0x2c8def(0x2e5)],'height':_0x3c6fdb[_0x2c8def(0x3bc)]});}[_0x183fa5(0x397)](_0x4ed643){const _0x11ea24=_0x183fa5,{row:_0x3030f9,column:_0x52d6f6}=_0x4ed643;if(_0x3030f9>=this[_0x11ea24(0x297)]['startRow']&&_0x3030f9<=this[_0x11ea24(0x297)]['endRow']&&_0x52d6f6>=this[_0x11ea24(0x297)][_0x11ea24(0x34d)]&&_0x52d6f6<=this[_0x11ea24(0x297)][_0x11ea24(0x299)]){this[_0x11ea24(0x399)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x183fa5(0x236)](_0x3fcdf6){return!0x1;}[_0x183fa5(0x28b)](_0x545844){const _0x58e7d9=_0x183fa5;p[_0x58e7d9(0x3d8)]['drawWith'](_0x545844,{'width':this['width'],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x58e7d9(0x252)],'evented':!0x1,'fill':this[_0x58e7d9(0x40e)]}),this[_0x58e7d9(0x1eb)]&&(_0x545844[_0x58e7d9(0x2fc)](),_0x545844['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x58e7d9(0x221)]===_0x58e7d9(0x331)?0x0:-0x14),ee[_0x58e7d9(0x334)](_0x545844,{'text':this[_0x58e7d9(0x1c0)],'color':this[_0x58e7d9(0x252)]}),_0x545844[_0x58e7d9(0x36c)]());}}var Ct=Object[_0x183fa5(0x255)],pt=(_0xf28422,_0x36e86d,_0x293a0c,_0x14f996)=>{const _0x49efbb=_0x183fa5;for(var _0x11480b=_0x14f996>0x1?void 0x0:_0x14f996?Ct(_0x36e86d,_0x293a0c):_0x36e86d,_0x41f8ac=_0xf28422[_0x49efbb(0x260)]-0x1,_0x4c1cc8;_0x41f8ac>=0x0;_0x41f8ac--)(_0x4c1cc8=_0xf28422[_0x41f8ac])&&(_0x11480b=_0x4c1cc8(_0x11480b)||_0x11480b);return _0x11480b;},ae=(_0x2bfe7c,_0x309ee5)=>(_0x4a8a71,_0x522d61)=>_0x309ee5(_0x4a8a71,_0x522d61,_0x2bfe7c);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x5e2abb,_0x1e6a89,_0x54b864,_0x26c140){const _0x4e01c3=_0x183fa5;super(),h(this,'_cursors',new Set()),h(this,_0x4e01c3(0x372),null),(this[_0x4e01c3(0x2b2)]=_0x5e2abb,this[_0x4e01c3(0x1fc)]=_0x1e6a89,this[_0x4e01c3(0x30e)]=_0x54b864,this['_themeService']=_0x26c140,this[_0x4e01c3(0x240)]());}[_0x183fa5(0x240)](){const _0x22f058=_0x183fa5;this['_sheetSkeletonManagerService'][_0x22f058(0x327)][_0x22f058(0x213)]($[_0x22f058(0x351)](this[_0x22f058(0x22f)]),$[_0x22f058(0x26c)](_0x5c452d=>{const _0x52cf07=_0x22f058;if(_0x5c452d){const _0x4fdcc6=_0x5c452d[_0x52cf07(0x2d0)];return d[_0x52cf07(0x1d9)](this[_0x52cf07(0x30e)][_0x52cf07(0x1c3)](this['_context'][_0x52cf07(0x34f)]),this[_0x52cf07(0x272)][_0x52cf07(0x3a4)])[_0x52cf07(0x213)]($[_0x52cf07(0x38f)](([_0x492b9c,_0x3729d6])=>{const _0x1e208a=_0x52cf07,_0x32ff73=new Map();return _0x492b9c[_0x1e208a(0x2ae)]((_0x599025,_0x2d053d)=>{const _0x1aa9b8=_0x1e208a;if(_0x599025['sheetID']===_0x4fdcc6){const _0x38ff4b={..._0x599025};_0x38ff4b[_0x1aa9b8(0x2af)]=_0x3729d6[_0x599025['color']],_0x32ff73[_0x1aa9b8(0x279)](_0x2d053d,_0x38ff4b);}}),{'skeleton':_0x5c452d,'cursors':_0x32ff73};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x22f058(0x24c)](({skeleton:_0x399246,cursors:_0x9e875f})=>{const _0x37ab67=_0x22f058;this[_0x37ab67(0x3ca)](),_0x399246&&this[_0x37ab67(0x1e5)](_0x399246,_0x9e875f);}),this[_0x22f058(0x1fc)][_0x22f058(0x327)]['subscribe'](_0x2995ce=>{const _0x5bc748=_0x22f058;if(_0x2995ce==null)return;const {skeleton:_0x4372b3}=_0x2995ce,{scene:_0x5ac7a7}=this[_0x5bc748(0x2b2)];_0x5ac7a7[_0x5bc748(0x26a)][_0x5bc748(0x3a1)](a[_0x5bc748(0x3be)](_0x5c454c=>{const _0x2cb856=_0x5bc748;var _0x3c115a,_0x58f813;const {offsetX:_0x6a2954,offsetY:_0x5befc3}=_0x5c454c,{x:_0x549ccd,y:_0x1a1863}=_0x5ac7a7['getRelativeToViewportCoord'](p[_0x2cb856(0x263)][_0x2cb856(0x253)]([_0x6a2954,_0x5befc3])),{scaleX:_0x3ba3c0,scaleY:_0x262e40}=_0x5ac7a7[_0x2cb856(0x1fe)](),_0x116d6e=_0x5ac7a7[_0x2cb856(0x389)](p[_0x2cb856(0x312)][_0x2cb856(0x231)]),_0x3f35e8=_0x5ac7a7[_0x2cb856(0x28a)](p['Vector2'][_0x2cb856(0x253)]([_0x549ccd,_0x1a1863]),_0x116d6e),_0x77fd94=_0x4372b3[_0x2cb856(0x2b6)](_0x6a2954,_0x5befc3,_0x3ba3c0,_0x262e40,_0x3f35e8);((_0x3c115a=this['_lastPointer'])==null?void 0x0:_0x3c115a[_0x2cb856(0x20f)])===_0x77fd94[_0x2cb856(0x20f)]&&((_0x58f813=this['_lastPointer'])==null?void 0x0:_0x58f813[_0x2cb856(0x3a7)])===_0x77fd94[_0x2cb856(0x3a7)]||this['_cursors'][_0x2cb856(0x2ae)](_0xd5716e=>{const _0x5f1ae0=_0x2cb856;_0xd5716e[_0x5f1ae0(0x397)](_0x77fd94);});},0x64));});}[_0x183fa5(0x1e5)](_0x528e3e,_0x5d94a1){const _0x4b3fff=_0x183fa5;var _0x3134da;const _0x6a0e45=(_0x3134da=this[_0x4b3fff(0x1fc)][_0x4b3fff(0x337)]())==null?void 0x0:_0x3134da['skeleton'];if(!_0x6a0e45)return;const _0x3a883e=this[_0x4b3fff(0x30f)]();if(!_0x3a883e)return;this[_0x4b3fff(0x25c)]['forEach'](_0xcce07d=>{const _0x5edb13=_0x4b3fff;_0xcce07d[_0x5edb13(0x298)]();});const {scene:_0xa0e30}=_0x3a883e,_0x55b995=Et(Array[_0x4b3fff(0x37b)](_0x5d94a1[_0x4b3fff(0x1f9)]()))[_0x4b3fff(0x38f)](_0x386462=>{const _0x3f2eaa=_0x4b3fff,{color:_0xa7dbd2,range:_0xf784f5,name:_0x1c9623,selection:_0x37aa41,sheetID:_0x537e9d}=_0x386462,{startColumn:_0x40509e,startRow:_0x44e9ad,endColumn:_0x45e7a1,endRow:_0x4ac308}=_0xf784f5,_0x1a38ab=X[_0x3f2eaa(0x336)](_0x44e9ad,_0x40509e,_0xa0e30,_0x6a0e45),_0x45a0cf=X[_0x3f2eaa(0x336)](_0x4ac308,_0x45e7a1,_0xa0e30,_0x6a0e45),{columnHeaderHeightAndMarginTop:_0x6ccbec}=_0x6a0e45,{startX:_0x598aaa,startY:_0x4a5371}=_0x1a38ab,{endX:_0xd7190c,endY:_0x1a9d5d}=_0x45a0cf,_0x4afb3e=_0xd7190c-_0x598aaa,_0x1ffab0=_0x1a9d5d-_0x4a5371,_0x1deda5={'labelPosition':_0x4a5371-_0x6ccbec>=q?_0x3f2eaa(0x1a0):'bottom','sheetID':_0x537e9d,'range':_0xf784f5,'color':_0xa7dbd2,'name':_0x1c9623,'selection':_0x37aa41,'left':_0x598aaa,'top':_0x4a5371,'width':_0x4afb3e,'height':_0x1ffab0,'evented':!0x1,'zIndex':bt};return new we(_0x1c9623,_0x1deda5);});_0xa0e30[_0x4b3fff(0x218)](_0x55b995,gt),this['_cursors']=new Set(_0x55b995);}[_0x183fa5(0x3ca)](){const _0x1e5d52=_0x183fa5;var _0x3c9e79;(_0x3c9e79=this[_0x1e5d52(0x25c)])==null||_0x3c9e79[_0x1e5d52(0x2ae)](_0x538503=>_0x538503['dispose']());}[_0x183fa5(0x30f)](){const _0x5cecde=_0x183fa5;return X[_0x5cecde(0x409)](this[_0x5cecde(0x2b2)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x183fa5(0x3dc)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0x183fa5(0x3dc)](x)),ae(0x3,a['Inject'](a[_0x183fa5(0x341)]))],ve);function Et(_0xe5cd0){const _0x4266ab=_0x183fa5,_0x543aa1=new Map();return _0xe5cd0[_0x4266ab(0x2ae)](_0x49b9ee=>{const _0x37e754=_0x4266ab;if(_0x543aa1[_0x37e754(0x1e3)](_0x49b9ee[_0x37e754(0x359)])){const _0x26ae6f=_0x543aa1[_0x37e754(0x2dc)](_0x49b9ee['selection']);_0x26ae6f[_0x37e754(0x393)]+=',\x20'+_0x49b9ee[_0x37e754(0x393)];}else _0x543aa1[_0x37e754(0x279)](_0x49b9ee[_0x37e754(0x359)],_0x49b9ee);}),Array[_0x4266ab(0x37b)](_0x543aa1['values']());}var E=function(){const _0x2d7cc2=_0x183fa5;return E=Object[_0x2d7cc2(0x3f7)]||function(_0x56e703){const _0x544184=_0x2d7cc2;for(var _0x1fd305,_0x4b9f36=0x1,_0xedca92=arguments['length'];_0x4b9f36<_0xedca92;_0x4b9f36++){_0x1fd305=arguments[_0x4b9f36];for(var _0x158953 in _0x1fd305)Object[_0x544184(0x1f7)][_0x544184(0x238)][_0x544184(0x24b)](_0x1fd305,_0x158953)&&(_0x56e703[_0x158953]=_0x1fd305[_0x158953]);}return _0x56e703;},E[_0x2d7cc2(0x1fd)](this,arguments);},Tt=function(_0x211fd2,_0x19bee5){const _0x1e740b=_0x183fa5;var _0x3647e7={};for(var _0x453dea in _0x211fd2)Object[_0x1e740b(0x1f7)]['hasOwnProperty'][_0x1e740b(0x24b)](_0x211fd2,_0x453dea)&&_0x19bee5[_0x1e740b(0x23d)](_0x453dea)<0x0&&(_0x3647e7[_0x453dea]=_0x211fd2[_0x453dea]);if(_0x211fd2!=null&&typeof Object[_0x1e740b(0x2f3)]==_0x1e740b(0x1e4)){for(var _0xa35888=0x0,_0x453dea=Object[_0x1e740b(0x2f3)](_0x211fd2);_0xa35888<_0x453dea[_0x1e740b(0x260)];_0xa35888++)_0x19bee5[_0x1e740b(0x23d)](_0x453dea[_0xa35888])<0x0&&Object[_0x1e740b(0x1f7)][_0x1e740b(0x289)][_0x1e740b(0x24b)](_0x211fd2,_0x453dea[_0xa35888])&&(_0x3647e7[_0x453dea[_0xa35888]]=_0x211fd2[_0x453dea[_0xa35888]]);}return _0x3647e7;},pe=M[_0x183fa5(0x356)](function(_0x3b0289,_0x1f224d){const _0x4697e8=_0x183fa5;var _0x44b79a=_0x3b0289['icon'],_0x3c88f5=_0x3b0289['id'],_0x5a9a13=_0x3b0289[_0x4697e8(0x2d5)],_0x4d040d=_0x3b0289[_0x4697e8(0x207)],_0x307df2=Tt(_0x3b0289,[_0x4697e8(0x392),'id','className',_0x4697e8(0x207)]),_0x3caa70=_0x4697e8(0x317)[_0x4697e8(0x3d5)](_0x3c88f5,'\x20')['concat'](_0x5a9a13||'')['trim'](),_0x1b7faa=M[_0x4697e8(0x261)]('_'['concat'](Dt()));return Ae(_0x44b79a,''[_0x4697e8(0x3d5)](_0x3c88f5),{'defIds':_0x44b79a[_0x4697e8(0x3cd)],'idSuffix':_0x1b7faa[_0x4697e8(0x2c4)]},E({'ref':_0x1f224d,'className':_0x3caa70},_0x307df2),_0x4d040d);});function Ae(_0x4a9edc,_0x258502,_0x4f22b8,_0x19e5fd,_0x353d52){const _0x42f0e2=_0x183fa5;return M[_0x42f0e2(0x257)](_0x4a9edc['tag'],E(E({'key':_0x258502},Ot(_0x4a9edc,_0x4f22b8,_0x353d52)),_0x19e5fd),(Rt(_0x4a9edc,_0x4f22b8)['children']||[])[_0x42f0e2(0x38f)](function(_0x12bd5f,_0x1d433d){const _0x449c85=_0x42f0e2;return Ae(_0x12bd5f,''[_0x449c85(0x3d5)](_0x258502,'-')[_0x449c85(0x3d5)](_0x4a9edc[_0x449c85(0x3a6)],'-')[_0x449c85(0x3d5)](_0x1d433d),_0x4f22b8,void 0x0,_0x353d52);}));}function Ot(_0x3cf932,_0x46fdbc,_0x48b110){const _0x566f32=_0x183fa5;var _0x343b17=E({},_0x3cf932[_0x566f32(0x385)]);_0x48b110!=null&&_0x48b110[_0x566f32(0x1ef)]&&_0x343b17['fill']===_0x566f32(0x1ef)&&(_0x343b17['fill']=_0x48b110[_0x566f32(0x1ef)]),_0x3cf932[_0x566f32(0x3a6)]===_0x566f32(0x247)&&_0x343b17['id']&&(_0x343b17['id']=_0x343b17['id']+_0x46fdbc[_0x566f32(0x35e)]),Object['entries'](_0x343b17)[_0x566f32(0x2ae)](function(_0x20c300){const _0x2f2f73=_0x566f32;var _0x477b5e=_0x20c300[0x0],_0x242a99=_0x20c300[0x1];_0x477b5e===_0x2f2f73(0x247)&&typeof _0x242a99==_0x2f2f73(0x2fb)&&(_0x343b17[_0x477b5e]=_0x242a99[_0x2f2f73(0x2a2)](/url\(#(.*)\)/,_0x2f2f73(0x3ba)[_0x2f2f73(0x3d5)](_0x46fdbc[_0x2f2f73(0x35e)],')')));});var _0x47f3f8=_0x46fdbc['defIds'];return!_0x47f3f8||_0x47f3f8[_0x566f32(0x260)]===0x0||(_0x3cf932['tag']==='use'&&_0x343b17['xlink:href']&&(_0x343b17['xlink:href']=_0x343b17['xlink:href']+_0x46fdbc['idSuffix']),Object['entries'](_0x343b17)[_0x566f32(0x2ae)](function(_0x4b920e){const _0x3fe57e=_0x566f32;var _0x59abc2=_0x4b920e[0x0],_0x3b584b=_0x4b920e[0x1];typeof _0x3b584b=='string'&&(_0x343b17[_0x59abc2]=_0x3b584b[_0x3fe57e(0x2a2)](/url\(#(.*)\)/,_0x3fe57e(0x3ba)[_0x3fe57e(0x3d5)](_0x46fdbc[_0x3fe57e(0x35e)],')')));})),_0x343b17;}function Rt(_0x27bb20,_0x5f1267){const _0x578e73=_0x183fa5;var _0x1546b6,_0x309160=_0x5f1267[_0x578e73(0x3cd)];return!_0x309160||_0x309160[_0x578e73(0x260)]===0x0?_0x27bb20:_0x27bb20[_0x578e73(0x3a6)]===_0x578e73(0x290)&&(!((_0x1546b6=_0x27bb20[_0x578e73(0x2c0)])===null||_0x1546b6===void 0x0)&&_0x1546b6[_0x578e73(0x260)])?E(E({},_0x27bb20),{'children':_0x27bb20[_0x578e73(0x2c0)][_0x578e73(0x38f)](function(_0x7dc4a){const _0x4ea5f8=_0x578e73;return typeof _0x7dc4a[_0x4ea5f8(0x385)]['id']==_0x4ea5f8(0x2fb)&&_0x309160&&_0x309160[_0x4ea5f8(0x23d)](_0x7dc4a[_0x4ea5f8(0x385)]['id'])>-0x1?E(E({},_0x7dc4a),{'attrs':E(E({},_0x7dc4a[_0x4ea5f8(0x385)]),{'id':_0x7dc4a[_0x4ea5f8(0x385)]['id']+_0x5f1267[_0x4ea5f8(0x35e)]})}):_0x7dc4a;})}):_0x27bb20;}function Dt(){const _0x10cde5=_0x183fa5;return Math[_0x10cde5(0x23c)]()[_0x10cde5(0x1c7)](0x24)[_0x10cde5(0x369)](0x2,0x8);}pe[_0x183fa5(0x3d4)]=_0x183fa5(0x27a);var Ut={'tag':_0x183fa5(0x308),'attrs':{'fill':_0x183fa5(0x256),'viewBox':'0\x200\x2016\x2016','width':_0x183fa5(0x1a9),'height':_0x183fa5(0x1a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x183fa5(0x1cf)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'stroke':_0x183fa5(0x33e),'d':_0x183fa5(0x3bd),'strokeLinecap':_0x183fa5(0x2b4),'strokeLinejoin':_0x183fa5(0x2b4),'strokeWidth':1.2}}]},{'tag':_0x183fa5(0x290),'attrs':{},'children':[{'tag':_0x183fa5(0x2bc),'attrs':{'id':_0x183fa5(0x321)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'fill':_0x183fa5(0x216),'d':_0x183fa5(0x1ba)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M[_0x183fa5(0x356)](function(_0x4bac61,_0x2954c0){const _0x41f51d=_0x183fa5;return M[_0x41f51d(0x257)](pe,Object[_0x41f51d(0x3f7)]({},_0x4bac61,{'id':_0x41f51d(0x2cb),'ref':_0x2954c0,'icon':Ut}));});ye[_0x183fa5(0x3d4)]='OffLineSingle';var Nt={'tag':_0x183fa5(0x308),'attrs':{'fill':_0x183fa5(0x256),'viewBox':_0x183fa5(0x1f6),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x183fa5(0x2f8)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'stroke':_0x183fa5(0x33e),'d':_0x183fa5(0x2f1),'strokeLinecap':_0x183fa5(0x2b4),'strokeLinejoin':_0x183fa5(0x2b4),'strokeWidth':1.2}}]},{'tag':_0x183fa5(0x290),'attrs':{},'children':[{'tag':_0x183fa5(0x2bc),'attrs':{'id':_0x183fa5(0x19e)},'children':[{'tag':'path','attrs':{'fill':_0x183fa5(0x216),'d':_0x183fa5(0x1ba),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M['forwardRef'](function(_0x501c48,_0x4bb884){const _0x556042=_0x183fa5;return M['createElement'](pe,Object[_0x556042(0x3f7)]({},_0x501c48,{'id':_0x556042(0x239),'ref':_0x4bb884,'icon':Nt}));});$e[_0x183fa5(0x3d4)]=_0x183fa5(0x19a);function Mt(_0x2318a3){const _0x1cc6da=_0x183fa5;switch(_0x2318a3){case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x386)]:return _0x1cc6da(0x1de);case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x319)]:return'collabStatus.conflict';case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x2ce)]:return'collabStatus.fetchMiss';case u[_0x1cc6da(0x3f2)]['NOT_COLLAB']:return _0x1cc6da(0x223);case u[_0x1cc6da(0x3f2)]['AWAITING']:case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x3f8)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x1cc6da(0x3c0)]:case u['CollaborationStatus'][_0x1cc6da(0x2ff)]:return'collabStatus.synced';}}function _0x5188(_0x1716af,_0x265837){const _0x18b133=_0x18b1();return _0x5188=function(_0x51889b,_0x46a687){_0x51889b=_0x51889b-0x199;let _0x13a5cb=_0x18b133[_0x51889b];return _0x13a5cb;},_0x5188(_0x1716af,_0x265837);}function xe(_0x352ed7){const _0x1edb79=_0x183fa5,{status$:_0x3056ef}=_0x352ed7,_0x25f721=T[_0x1edb79(0x1d4)](_0x3056ef,u['CollaborationStatus'][_0x1edb79(0x2d2)]),_0x518a2a=T['useDependency'](a[_0x1edb79(0x3d2)]),_0x1225d5=T['useDependency'](u[_0x1edb79(0x208)]),_0x1dff1c=_0x25f721!==u[_0x1edb79(0x3f2)][_0x1edb79(0x386)],_0x2b1838=_0x518a2a['t'](Mt(_0x25f721)),_0x1b3285=_0x1dff1c?P[_0x1edb79(0x1f0)]($e,{}):P[_0x1edb79(0x1f0)](ye,{}),_0x2ab2dd=M['useCallback'](()=>{_0x1dff1c||_0x1225d5['reconnect']();},[_0x1dff1c,_0x1225d5]);function _0x13cbd7(){const _0x3ff7d9=_0x1edb79;return P[_0x3ff7d9(0x296)]('div',{'className':_0x3ff7d9(0x1ed),'onClick':_0x2ab2dd,'children':[P[_0x3ff7d9(0x1f0)]('div',{'className':D[_0x3ff7d9(0x24f)](_0x3ff7d9(0x23a),_0x1dff1c?'univer-text-green-500':'univer-text-red-500'),'children':_0x1b3285}),P[_0x3ff7d9(0x1f0)]('div',{'className':_0x3ff7d9(0x1f5),'children':_0x2b1838})]});}return _0x1dff1c?_0x13cbd7():P[_0x1edb79(0x1f0)](D[_0x1edb79(0x2a5)],{'title':_0x518a2a['t'](_0x1edb79(0x237)),'children':_0x13cbd7()});}var Lt=Object[_0x183fa5(0x255)],Pt=(_0x5a67b2,_0x6890ab,_0x4eb9d9,_0x1e5884)=>{for(var _0x446665=_0x1e5884>0x1?void 0x0:_0x1e5884?Lt(_0x6890ab,_0x4eb9d9):_0x6890ab,_0x578cac=_0x5a67b2['length']-0x1,_0x4ab55c;_0x578cac>=0x0;_0x578cac--)(_0x4ab55c=_0x5a67b2[_0x578cac])&&(_0x446665=_0x4ab55c(_0x446665)||_0x446665);return _0x446665;},V=(_0x294b25,_0x2ffe71)=>(_0xccb1f7,_0x58d9f3)=>_0x2ffe71(_0xccb1f7,_0x58d9f3,_0x294b25);exports[_0x183fa5(0x222)]=class extends a['Disposable']{constructor(_0x5e4ea4,_0x5a57b6,_0x3d4c83,_0x4efc19){const _0x3f3f69=_0x183fa5;super(),h(this,_0x3f3f69(0x374),new d['BehaviorSubject'](u[_0x3f3f69(0x3f2)][_0x3f3f69(0x2d2)])),(this[_0x3f3f69(0x28f)]=_0x5e4ea4,this[_0x3f3f69(0x20a)]=_0x5a57b6,this[_0x3f3f69(0x293)]=_0x3d4c83,this[_0x3f3f69(0x2dd)]=_0x4efc19,this[_0x3f3f69(0x2a8)](),this[_0x3f3f69(0x2c7)]());}[_0x183fa5(0x2c7)](){const _0x5ab8ce=_0x183fa5;this[_0x5ab8ce(0x220)](this[_0x5ab8ce(0x28f)][_0x5ab8ce(0x1b9)][_0x5ab8ce(0x213)](d[_0x5ab8ce(0x26c)](()=>{const _0x21eec6=_0x5ab8ce,_0x1e2442=this['_univerInstanceService']['getFocusedUnit']();return _0x1e2442?this[_0x21eec6(0x293)]['getCollabEntity$'](_0x1e2442[_0x21eec6(0x3bf)]()):d['of'](null);}),d[_0x5ab8ce(0x26c)](_0x2e56c8=>_0x2e56c8?_0x2e56c8['status$']:d['of'](u['CollaborationStatus'][_0x5ab8ce(0x2d2)])))['subscribe'](_0x15bc06=>{const _0xd08e90=_0x5ab8ce;this[_0xd08e90(0x374)]['next'](_0x15bc06);}));}[_0x183fa5(0x2a8)](){const _0x4e69d4=_0x183fa5;this[_0x4e69d4(0x220)](this[_0x4e69d4(0x2dd)][_0x4e69d4(0x403)](T[_0x4e69d4(0x23b)][_0x4e69d4(0x26b)],()=>T[_0x4e69d4(0x362)](wt({'status$':this['_status$'][_0x4e69d4(0x31c)]()}),this[_0x4e69d4(0x20a)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x183fa5(0x33a)]),V(0x1,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),V(0x2,a['Inject'](u[_0x183fa5(0x270)])),V(0x3,T['IUIPartsService'])],exports[_0x183fa5(0x222)]);function wt(_0x5acaa7){const {status$:_0x309000}=_0x5acaa7;return function(){const _0x41dba2=_0x5188;return P[_0x41dba2(0x1f0)](xe,{'status$':_0x309000});};}var At=Object[_0x183fa5(0x255)],yt=(_0x2b2ebf,_0x273d47,_0x4311f0,_0x165b0c)=>{const _0x517755=_0x183fa5;for(var _0x250982=_0x165b0c>0x1?void 0x0:_0x165b0c?At(_0x273d47,_0x4311f0):_0x273d47,_0x3e678d=_0x2b2ebf[_0x517755(0x260)]-0x1,_0x2608d1;_0x3e678d>=0x0;_0x3e678d--)(_0x2608d1=_0x2b2ebf[_0x3e678d])&&(_0x250982=_0x2608d1(_0x250982)||_0x250982);return _0x250982;},y=(_0x9c294a,_0x55f8ff)=>(_0x3a16ef,_0x3364f2)=>_0x55f8ff(_0x3a16ef,_0x3364f2,_0x9c294a);let K=class extends a[_0x183fa5(0x3ec)]{constructor(_0x2d9b37,_0x57c88c,_0x3d4a37,_0x1b2a51,_0xa9e73,_0x4dcbb0){const _0x29dcac=_0x183fa5;super(),this[_0x29dcac(0x20e)]=_0x2d9b37,this[_0x29dcac(0x285)]=_0x57c88c,this[_0x29dcac(0x378)]=_0x3d4a37,this[_0x29dcac(0x19f)]=_0x1b2a51,this['_notificationService']=_0xa9e73,this[_0x29dcac(0x377)]=_0x4dcbb0,this[_0x29dcac(0x282)](),this[_0x29dcac(0x32a)]();}['_setupBeforeClosingHandler'](){const _0x345165=_0x183fa5;this[_0x345165(0x220)](this['_beforeCloseService'][_0x345165(0x287)](()=>{const _0x835b53=_0x345165;if(this[_0x835b53(0x285)][_0x835b53(0x2d3)][_0x835b53(0x36e)])return this[_0x835b53(0x377)]['t'](_0x835b53(0x391));}));}[_0x183fa5(0x32a)](){const _0x5eee8e=_0x183fa5;this[_0x5eee8e(0x220)](this[_0x5eee8e(0x378)][_0x5eee8e(0x2f6)][_0x5eee8e(0x24c)](_0x471384=>{const _0x5aa28b=_0x5eee8e;_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x1b5)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D['MessageType']['Warning'],'content':this[_0x5aa28b(0x377)]['t']('collaboration.single-unit.warning')}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x202)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)]['Warning'],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x1d1))}),_0x471384['id']===u[_0x5aa28b(0x2a3)]['PERMISSION_DENIED']&&this[_0x5aa28b(0x3e4)][_0x5aa28b(0x19d)]({'title':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x264)),'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x2fe)),'type':_0x5aa28b(0x1b6),'duration':0x0}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x319)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)][_0x5aa28b(0x39a)],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x1d1))+'('+_0x471384[_0x5aa28b(0x1ac)]+')'}),_0x471384['id']===u['CollaborationUIEventId'][_0x5aa28b(0x3bb)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D['MessageType'][_0x5aa28b(0x206)],'content':this[_0x5aa28b(0x377)]['t'](_0x471384[_0x5aa28b(0x1ac)]||'')}),_0x471384['id']===u['CollaborationUIEventId'][_0x5aa28b(0x3ff)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)][_0x5aa28b(0x206)],'content':this['_localeService']['t'](_0x5aa28b(0x204))}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x343)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)]['Error'],'content':this[_0x5aa28b(0x377)]['t']('session.connection-failed')}),_0x471384['id']===u[_0x5aa28b(0x2a3)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5aa28b(0x19f)]['show']({'type':D['MessageType'][_0x5aa28b(0x39a)],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x3ef))});}));}};K=yt([y(0x0,T[_0x183fa5(0x20c)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x183fa5(0x3dc)](u[_0x183fa5(0x333)])),y(0x3,T[_0x183fa5(0x200)]),y(0x4,T[_0x183fa5(0x37a)]),y(0x5,a['Inject'](a[_0x183fa5(0x3d2)]))],K);const $t=_0x183fa5(0x1a2),Ue={},be=a[_0x183fa5(0x40c)]('uni.network.url-service');var xt=Object[_0x183fa5(0x255)],jt=(_0x546ccb,_0x315d32,_0x417430,_0x4baa0e)=>{const _0x71dcff=_0x183fa5;for(var _0x132d74=_0x4baa0e>0x1?void 0x0:_0x4baa0e?xt(_0x315d32,_0x417430):_0x315d32,_0x1c92e3=_0x546ccb[_0x71dcff(0x260)]-0x1,_0x23e82f;_0x1c92e3>=0x0;_0x1c92e3--)(_0x23e82f=_0x546ccb[_0x1c92e3])&&(_0x132d74=_0x23e82f(_0x132d74)||_0x132d74);return _0x132d74;},H=(_0x44be2a,_0x244e85)=>(_0x3a1aec,_0x2729a6)=>_0x244e85(_0x3a1aec,_0x2729a6,_0x44be2a);exports[_0x183fa5(0x1c6)]=class extends a[_0x183fa5(0x3b8)]{constructor(_0x573ae7,_0x1b7ebc,_0x211daa,_0x402888,_0x26507f){const _0x315e97=_0x183fa5;super(),this[_0x315e97(0x350)]=_0x573ae7,this['_logService']=_0x1b7ebc,this['_commandService']=_0x211daa,this[_0x315e97(0x26d)]=_0x402888,_0x26507f?_0x26507f==null||_0x26507f['whenReady']()[_0x315e97(0x3eb)](()=>this[_0x315e97(0x240)]()):(this['_logService'][_0x315e97(0x37f)](_0x315e97(0x1a6),_0x315e97(0x306)),this[_0x315e97(0x240)]());}async[_0x183fa5(0x240)](){const _0x3ada59=_0x183fa5,_0x437a40=this['_urlService']['getParam'](_0x3ada59(0x3b9)),_0x2894a2=this['_urlService'][_0x3ada59(0x262)](_0x3ada59(0x2c9)),_0x5a1c0a=this[_0x3ada59(0x350)][_0x3ada59(0x262)](_0x3ada59(0x381));if(!_0x437a40||!_0x2894a2){this[_0x3ada59(0x209)][_0x3ada59(0x37f)](_0x3ada59(0x1a6),_0x3ada59(0x3ab));return;}const _0x1e6713=await this[_0x3ada59(0x26d)][_0x3ada59(0x36d)](_0x437a40,Number(_0x2894a2),_0x5a1c0a);_0x1e6713&&_0x1e6713 instanceof a['Workbook']&&this[_0x3ada59(0x31a)](_0x1e6713);}async[_0x183fa5(0x31a)](_0x568014){const _0x30279d=_0x183fa5;await this[_0x30279d(0x38e)](_0x568014),_0x568014['activeSheet$'][_0x30279d(0x213)](d[_0x30279d(0x351)](this[_0x30279d(0x22f)]))[_0x30279d(0x24c)](_0x533126=>{const _0x8826b3=_0x30279d;_0x533126&&this[_0x8826b3(0x353)](_0x533126);}),this[_0x30279d(0x350)][_0x30279d(0x2c5)][_0x30279d(0x213)](d['takeUntil'](this['dispose$']))[_0x30279d(0x24c)](()=>this[_0x30279d(0x38e)](_0x568014));}[_0x183fa5(0x353)](_0x1a8aec,_0x55828a=!0x1){const _0x1bfb32=_0x183fa5,_0x5e0b65=this[_0x1bfb32(0x350)][_0x1bfb32(0x262)](_0x1bfb32(0x381));_0x1a8aec[_0x1bfb32(0x1d2)]()!==_0x5e0b65&&this[_0x1bfb32(0x350)][_0x1bfb32(0x3a0)](_0x1bfb32(0x381),_0x1a8aec[_0x1bfb32(0x1d2)](),_0x55828a);}async[_0x183fa5(0x38e)](_0x17cf6b){const _0xbafdd1=_0x183fa5;var _0x2f63b6;const _0x4a993a=this[_0xbafdd1(0x350)][_0xbafdd1(0x262)](_0xbafdd1(0x381));if(!_0x4a993a||!_0x17cf6b['getSheetBySheetId'](_0x4a993a)){const _0x503b70=_0x17cf6b['getUnhiddenWorksheets']()[0x0],_0x1e47ab=_0x17cf6b['getSheetBySheetId'](_0x503b70);if(!_0x1e47ab)return;this['_updateURLWithCurrentState'](_0x1e47ab,!0x0),await this['_commandService'][_0xbafdd1(0x2ee)](g[_0xbafdd1(0x1e9)]['id'],{'unitId':_0x17cf6b['getUnitId'](),'subUnitId':_0x503b70});return;}((_0x2f63b6=_0x17cf6b['getActiveSheet']())==null?void 0x0:_0x2f63b6[_0xbafdd1(0x1d2)]())!==_0x4a993a&&await this['_commandService']['executeCommand'](g[_0xbafdd1(0x1e9)]['id'],{'unitId':_0x17cf6b[_0xbafdd1(0x3bf)](),'subUnitId':_0x4a993a});}},exports[_0x183fa5(0x1c6)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x183fa5(0x3fb)]),H(0x3,a['Inject'](u[_0x183fa5(0x398)])),H(0x4,a['Optional'](qe['IRemoteInstanceService']))],exports[_0x183fa5(0x1c6)]);var Bt=Object[_0x183fa5(0x255)],kt=(_0x5655c7,_0x2131f3,_0x2c6da1,_0x419846)=>{const _0x2276fd=_0x183fa5;for(var _0x534545=_0x419846>0x1?void 0x0:_0x419846?Bt(_0x2131f3,_0x2c6da1):_0x2131f3,_0x510881=_0x5655c7[_0x2276fd(0x260)]-0x1,_0x26e02f;_0x510881>=0x0;_0x510881--)(_0x26e02f=_0x5655c7[_0x510881])&&(_0x534545=_0x26e02f(_0x534545)||_0x534545);return _0x534545;},ce=(_0x4a7127,_0x162a86)=>(_0xd7365a,_0x59ce69)=>_0x162a86(_0xd7365a,_0x59ce69,_0x4a7127);let z=class{constructor(_0x11fb22,_0x313ade,_0x13bad8){const _0x4b7c8e=_0x183fa5;this[_0x4b7c8e(0x20a)]=_0x11fb22,this['_transformService']=_0x313ade,this[_0x4b7c8e(0x2ad)]=_0x13bad8;}[_0x183fa5(0x2bd)](_0x4f194b){const _0x5e02a2=_0x183fa5;this[_0x5e02a2(0x1d7)](_0x4f194b),this['_transformPreviousActiveRange'](_0x4f194b);}[_0x183fa5(0x233)](_0x212dc6){const _0x32f907=_0x183fa5,{unitID:_0x492352}=_0x212dc6,_0x4571d8=this[_0x32f907(0x2ad)][_0x32f907(0x246)](_0x492352)[_0x32f907(0x265)](b[_0x32f907(0x1a3)]),{redoCache:_0x4349d3}=_0x4571d8[_0x32f907(0x339)]();if(_0x4349d3[_0x32f907(0x260)]===0x0)return _0x212dc6;let _0x317796=a[_0x32f907(0x2e2)][_0x32f907(0x3ea)](_0x212dc6[_0x32f907(0x1ff)][0x0]);for(let _0x5ebcbc=0x0;_0x5ebcbc<_0x4349d3[_0x32f907(0x260)];_0x5ebcbc++){const _0x12e2b1={'id':_0x32f907(0x300),'params':{..._0x4349d3[_0x5ebcbc]}},_0x36579b=this['_transformService'][_0x32f907(0x2e7)](_0x317796,_0x12e2b1,!0x1);if(m['isTransformMutationFailure'](_0x36579b))throw _0x36579b['error'];_0x317796=_0x36579b[_0x32f907(0x229)];}return{...a[_0x32f907(0x2e2)][_0x32f907(0x3ea)](_0x212dc6),'mutations':[_0x317796]};}['_transformUndoRedoStack'](_0x51df0b){const _0x2c41e3=_0x183fa5,{unitID:_0x226874}=_0x51df0b,_0x5e2421=this[_0x2c41e3(0x2ad)][_0x2c41e3(0x246)](_0x226874)[_0x2c41e3(0x265)](b[_0x2c41e3(0x1a3)]),{undoCache:_0x42b3ef,redoCache:_0xa088bd}=_0x5e2421['getUndoRedoMutationParamsCache']();if(_0x42b3ef[_0x2c41e3(0x260)]===0x0||_0xa088bd[_0x2c41e3(0x260)]===0x0)return;const _0x1c7b16=[],_0x92f64=[];let _0x291dae=a[_0x2c41e3(0x2e2)][_0x2c41e3(0x3ea)](_0x51df0b['mutations'][0x0]),_0x411cf9=a[_0x2c41e3(0x2e2)][_0x2c41e3(0x3ea)](_0x51df0b[_0x2c41e3(0x1ff)][0x0]);for(let _0x5f59f9=_0x42b3ef[_0x2c41e3(0x260)]-0x1;_0x5f59f9>=0x0;_0x5f59f9--){const _0x1b7219={'id':'doc.mutation.rich-text-editing','params':{..._0x42b3ef[_0x5f59f9]}},_0x5ed917={'id':'doc.mutation.rich-text-editing','params':{..._0xa088bd[_0x5f59f9]}},_0x2bd845=this[_0x2c41e3(0x346)]['transformMutation'](_0x291dae,_0x1b7219,!0x1),_0xfeee80=this[_0x2c41e3(0x346)][_0x2c41e3(0x2e7)](_0x411cf9,_0x5ed917,!0x1);if(m[_0x2c41e3(0x1d3)](_0x2bd845))throw _0x2bd845[_0x2c41e3(0x1b6)];if(m[_0x2c41e3(0x1d3)](_0xfeee80))throw _0xfeee80[_0x2c41e3(0x1b6)];_0x1c7b16[_0x2c41e3(0x2e4)](_0x2bd845[_0x2c41e3(0x29c)][_0x2c41e3(0x1c1)]),_0x92f64[_0x2c41e3(0x2e4)](_0xfeee80['m2Prime'][_0x2c41e3(0x1c1)]),_0x291dae=_0x2bd845['m1Prime'],_0x411cf9=_0xfeee80[_0x2c41e3(0x229)];}_0x5e2421[_0x2c41e3(0x301)]({'undoCache':_0x1c7b16,'redoCache':_0x92f64});}[_0x183fa5(0x1d6)](_0x82a91e){const _0x3bd8ce=_0x183fa5,{unitID:_0x3088d0}=_0x82a91e,_0x4ad1d9=this[_0x3bd8ce(0x2ad)][_0x3bd8ce(0x246)](_0x3088d0)['with'](b[_0x3bd8ce(0x1a3)]),_0x1b8366=_0x4ad1d9[_0x3bd8ce(0x205)]();if(_0x1b8366==null)return;const _0x2c9b4f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x82a91e[_0x3bd8ce(0x1b7)],'actions':null,'textRanges':[_0x1b8366]}}],_0x15a0f9=this[_0x3bd8ce(0x346)][_0x3bd8ce(0x303)](_0x82a91e,_0x2c9b4f);if(!m['isTransformMutationsWithChangesetSuccess'](_0x15a0f9))throw _0x15a0f9[_0x3bd8ce(0x1b6)];const _0x207671=_0x15a0f9[_0x3bd8ce(0x29c)][0x0][_0x3bd8ce(0x1c1)][_0x3bd8ce(0x1ab)];Array['isArray'](_0x207671)&&_0x207671[_0x3bd8ce(0x260)]&&_0x4ad1d9['setActiveRange'](_0x207671[0x0]);}};z=kt([ce(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),ce(0x1,m[_0x183fa5(0x20b)]),ce(0x2,p[_0x183fa5(0x1ce)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x4eca99,_0x197047,_0x8f17cc,_0x5d09e3)=>{const _0x13d2c1=_0x183fa5;for(var _0x1e5c20=_0x5d09e3>0x1?void 0x0:_0x5d09e3?Ht(_0x197047,_0x8f17cc):_0x197047,_0x509795=_0x4eca99[_0x13d2c1(0x260)]-0x1,_0x4c537d;_0x509795>=0x0;_0x509795--)(_0x4c537d=_0x4eca99[_0x509795])&&(_0x1e5c20=_0x4c537d(_0x1e5c20)||_0x1e5c20);return _0x1e5c20;},le=(_0x2e99cd,_0x51f792)=>(_0x5a7b7b,_0x587e07)=>_0x51f792(_0x5a7b7b,_0x587e07,_0x2e99cd);let J=class{constructor(_0x5e8656,_0x25e3c2,_0x63c37a){const _0x2ddcd3=_0x183fa5;this['_injector']=_0x5e8656,this['_transformService']=_0x25e3c2,this[_0x2ddcd3(0x3d3)]=_0x63c37a;}['transformStateCache'](_0x2fea1f){const _0x203e84=_0x183fa5;this[_0x203e84(0x325)](_0x2fea1f);}[_0x183fa5(0x233)](_0x548817){const _0x481b08=_0x183fa5,{unitID:_0x6852ba}=_0x548817,{collaboration:_0x4fb3a0}=this[_0x481b08(0x3d3)][_0x481b08(0x1bf)](_0x6852ba);if(_0x4fb3a0[_0x481b08(0x260)]===0x0)return _0x548817;let _0x198b8d=a['Tools'][_0x481b08(0x3ea)](_0x548817['mutations'][0x0]);for(let _0x3234aa=0x0;_0x3234aa<_0x4fb3a0[_0x481b08(0x260)];_0x3234aa++){const _0x25e7cb={'id':_0x481b08(0x300),'params':{'unitId':_0x4fb3a0[_0x3234aa][_0x481b08(0x34f)],..._0x4fb3a0[_0x3234aa]['redoState']}},_0x43e0c5=this[_0x481b08(0x346)][_0x481b08(0x2e7)](_0x198b8d,_0x25e7cb,!0x1);if(m['isTransformMutationFailure'](_0x43e0c5))throw _0x43e0c5[_0x481b08(0x1b6)];_0x198b8d=_0x43e0c5['m1Prime'];}return{...a[_0x481b08(0x2e2)]['deepClone'](_0x548817),'mutations':[_0x198b8d]};}[_0x183fa5(0x325)](_0xd9b742){const _0xee88d3=_0x183fa5,{unitID:_0x3acc66}=_0xd9b742,{history:_0x258460,collaboration:_0x1ab853}=this[_0xee88d3(0x3d3)][_0xee88d3(0x1bf)](_0x3acc66);if(_0x258460[_0xee88d3(0x260)]===0x0&&_0x1ab853[_0xee88d3(0x260)]===0x0)return;const _0x229eb1=[],_0xce7456=[];let _0x3a6721=a[_0xee88d3(0x2e2)]['deepClone'](_0xd9b742['mutations'][0x0]),_0x3c45d5=a[_0xee88d3(0x2e2)][_0xee88d3(0x3ea)](_0xd9b742[_0xee88d3(0x1ff)][0x0]);for(let _0xc56861=_0x258460['length']-0x1;_0xc56861>=0x0;_0xc56861--){const _0xbf5578={'id':_0xee88d3(0x300),'params':{'unitId':_0x258460[_0xc56861][_0xee88d3(0x34f)],..._0x258460[_0xc56861][_0xee88d3(0x230)]}},_0x1758dd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x258460[_0xc56861]['unitId'],..._0x258460[_0xc56861]['redoState']}},_0x1de1c8=this['_transformService'][_0xee88d3(0x2e7)](_0x3a6721,_0xbf5578,!0x1),_0x31b385=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3c45d5,_0x1758dd,!0x1);if(m[_0xee88d3(0x1d3)](_0x1de1c8))throw _0x1de1c8[_0xee88d3(0x1b6)];if(m['isTransformMutationFailure'](_0x31b385))throw _0x31b385[_0xee88d3(0x1b6)];_0x229eb1[_0xee88d3(0x2e4)]({..._0x258460[_0xc56861],'undoState':_0x1de1c8['m2Prime'][_0xee88d3(0x1c1)],'redoState':_0x31b385[_0xee88d3(0x29c)]['params']}),_0x3a6721=_0x1de1c8[_0xee88d3(0x229)],_0x3c45d5=_0x31b385[_0xee88d3(0x229)];}_0x3a6721=a['Tools'][_0xee88d3(0x3ea)](_0xd9b742['mutations'][0x0]),_0x3c45d5=a[_0xee88d3(0x2e2)]['deepClone'](_0xd9b742['mutations'][0x0]);for(let _0x32da9b=_0x1ab853[_0xee88d3(0x260)]-0x1;_0x32da9b>=0x0;_0x32da9b--){const _0x41c577={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ab853[_0x32da9b]['unitId'],..._0x1ab853[_0x32da9b]['undoState']}},_0x5d6151={'id':_0xee88d3(0x300),'params':{'unitId':_0x1ab853[_0x32da9b][_0xee88d3(0x34f)],..._0x1ab853[_0x32da9b][_0xee88d3(0x3af)]}},_0x2ceebe=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3a6721,_0x41c577,!0x1),_0x89e0c8=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3c45d5,_0x5d6151,!0x1);if(m['isTransformMutationFailure'](_0x2ceebe))throw _0x2ceebe[_0xee88d3(0x1b6)];if(m[_0xee88d3(0x1d3)](_0x89e0c8))throw _0x89e0c8[_0xee88d3(0x1b6)];_0xce7456[_0xee88d3(0x2e4)]({..._0x1ab853[_0x32da9b],'undoState':_0x2ceebe[_0xee88d3(0x29c)][_0xee88d3(0x1c1)],'redoState':_0x89e0c8[_0xee88d3(0x29c)][_0xee88d3(0x1c1)]}),_0x3a6721=_0x2ceebe[_0xee88d3(0x229)],_0x3c45d5=_0x89e0c8[_0xee88d3(0x229)];}this[_0xee88d3(0x3d3)][_0xee88d3(0x2b1)](_0x3acc66,{'history':_0x229eb1,'collaboration':_0xce7456});}};J=Ft([le(0x0,a['Inject'](a[_0x183fa5(0x2e1)])),le(0x1,m[_0x183fa5(0x20b)]),le(0x2,a[_0x183fa5(0x3dc)](b['DocStateChangeManagerService']))],J);var Wt=Object[_0x183fa5(0x255)],Yt=(_0x810348,_0x357418,_0x5a56ab,_0x5348a5)=>{const _0x5919b1=_0x183fa5;for(var _0x36eb7b=_0x5348a5>0x1?void 0x0:_0x5348a5?Wt(_0x357418,_0x5a56ab):_0x357418,_0xb9430e=_0x810348[_0x5919b1(0x260)]-0x1,_0x53dfba;_0xb9430e>=0x0;_0xb9430e--)(_0x53dfba=_0x810348[_0xb9430e])&&(_0x36eb7b=_0x53dfba(_0x36eb7b)||_0x36eb7b);return _0x36eb7b;},Ne=(_0x3f49a9,_0x3c7190)=>(_0x54ea89,_0x539e65)=>_0x3c7190(_0x54ea89,_0x539e65,_0x3f49a9);let Z=class{constructor(_0x49868c,_0x179a7b){const _0x47d3f2=_0x183fa5;this[_0x47d3f2(0x20a)]=_0x49868c,this['_transformService']=_0x179a7b;}[_0x183fa5(0x387)](_0x5a2982){const _0x842335=_0x183fa5;var _0x2074ef;const _0x21c126=this[_0x842335(0x20a)][_0x842335(0x2dc)](W[_0x842335(0x28e)]),_0x534da0=(_0x2074ef=_0x21c126[_0x842335(0x268)]())!=null?_0x2074ef:[];if(_0x534da0[_0x842335(0x260)]===0x0)return;const _0x4ea9f6=_0x5a2982[_0x842335(0x1b7)],_0x18326e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ea9f6,'actions':null,'textRanges':_0x534da0}}],_0x152972=this[_0x842335(0x346)][_0x842335(0x303)](_0x5a2982,_0x18326e);if(!m['isTransformMutationsWithChangesetSuccess'](_0x152972))throw _0x152972[_0x842335(0x1b6)];const _0x4701b3=_0x152972[_0x842335(0x29c)][0x0][_0x842335(0x1c1)][_0x842335(0x1ab)];Array[_0x842335(0x2ba)](_0x4701b3)&&_0x4701b3[_0x842335(0x260)]&&_0x21c126[_0x842335(0x21e)](_0x4701b3,{'unitId':_0x4ea9f6,'subUnitId':_0x4ea9f6},!0x1);}};Z=Yt([Ne(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x183fa5(0x255)],Xt=(_0x5f5471,_0x97615a,_0xe7f1a4,_0x5cb861)=>{const _0x4ff2aa=_0x183fa5;for(var _0x1c1af0=_0x5cb861>0x1?void 0x0:_0x5cb861?Vt(_0x97615a,_0xe7f1a4):_0x97615a,_0x585915=_0x5f5471[_0x4ff2aa(0x260)]-0x1,_0x50a1a0;_0x585915>=0x0;_0x585915--)(_0x50a1a0=_0x5f5471[_0x585915])&&(_0x1c1af0=_0x50a1a0(_0x1c1af0)||_0x1c1af0);return _0x1c1af0;},N=(_0x4209f2,_0x4d83b3)=>(_0x5d05d3,_0x33c13d)=>_0x4d83b3(_0x5d05d3,_0x33c13d,_0x4209f2);let Q=class extends a[_0x183fa5(0x3ec)]{constructor(_0x583a9d,_0xee4e6b,_0x195537,_0x9a5cb6,_0x5b96a7,_0x5b40c5,_0x4e9f6f,_0xa9e75e){const _0x18b3eb=_0x183fa5;super(),h(this,_0x18b3eb(0x374),new d[(_0x18b3eb(0x323))](u['CollaborationStatus'][_0x18b3eb(0x2d2)])),(this['_docStateChangeManagerService']=_0x583a9d,this[_0x18b3eb(0x293)]=_0xee4e6b,this[_0x18b3eb(0x2ec)]=_0x195537,this['_docTransformStateCacheService']=_0x9a5cb6,this[_0x18b3eb(0x2e0)]=_0x5b96a7,this[_0x18b3eb(0x258)]=_0x5b40c5,this[_0x18b3eb(0x19f)]=_0x4e9f6f,this[_0x18b3eb(0x377)]=_0xa9e75e,this[_0x18b3eb(0x345)]());}[_0x183fa5(0x345)](){const _0x5e562c=_0x183fa5;this[_0x5e562c(0x220)](this['_collaborationController'][_0x5e562c(0x1e1)][_0x5e562c(0x24c)](_0x19727c=>{const _0x435e3a=_0x5e562c,_0x4cfab1=this[_0x435e3a(0x3d3)][_0x435e3a(0x29d)][_0x435e3a(0x24c)](_0x35a2d2=>{const _0x293989=_0x435e3a;if(_0x35a2d2==null)return;const {unitId:_0x4ef455,redoState:_0x1a0dcc,commandId:_0x245786}=_0x35a2d2;if(_0x4ef455!==_0x19727c[_0x293989(0x1b7)])return;const _0x63eae3={'id':_0x245786,'type':a['CommandType'][_0x293989(0x340)],'params':{'unitId':_0x4ef455,'actions':_0x1a0dcc[_0x293989(0x30c)],'textRanges':null}};_0x19727c[_0x293989(0x2c1)](_0x63eae3);});if(_0x19727c['disposeWithMe'](_0x4cfab1),_0x19727c instanceof u[_0x435e3a(0x3fc)]){const _0x1bd2b7={'onTransformIME':_0x396957=>this['_docTransformIMECacheService'][_0x435e3a(0x2bd)](_0x396957),'onTransformState':_0x1ec459=>this[_0x435e3a(0x3ae)][_0x435e3a(0x3b3)](_0x1ec459),'onTransformSelections':_0x3feb8d=>this[_0x435e3a(0x2e0)][_0x435e3a(0x387)](_0x3feb8d),'onSyncEditingCollabCursor':_0x5da266=>this['_docSyncEditingCollabCursorService'][_0x435e3a(0x248)](_0x5da266),'onTransformRemoteChangesetByIMECache':_0x4e4765=>this['_docTransformIMECacheService'][_0x435e3a(0x233)](_0x4e4765),'onTransformRemoteChangesetByStateCache':_0x1cd578=>this[_0x435e3a(0x3ae)][_0x435e3a(0x233)](_0x1cd578)};_0x19727c[_0x435e3a(0x396)](_0x1bd2b7);}}));}};function _0x18b1(){const _0x59ca43=['No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','APPLY_DUPLICATED','YUUMI_ASYNCIO_CANCELLED','_docTransformStateCacheService','redoState','popstate','UPDATE_CURSOR','_selfUnitIDs','transformStateCache','_hideTimer','_roomMembers$','handleInsertCol','flatMap','RxDisposable','unit','url(#$1','JOIN_ROOM_FAILED','height','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','debounce','getUnitId','SYNCED','runOnServer','saveImage','arc','fill','12632088ekSAkF','fillText','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','serializeRangeWithSheet','blue400','_removeCollabCursors','COMPLETION_FINISHED','_assignedColors','defIds','getUnitStatus$','_entityInit$','_render','PY_RUNTIME_SCRIPT_ERROR','LocaleService','_docStateChangeManagerService','displayName','concat','CONNECTOR_DATA_TOO_LARGE','measureText','Rect','_toggleOnline','_registerDependencies','getMemberID','Inject','DeleteRangeMoveLeftCommandId','WebSocketService','getValue','_scene','ticket','MOBILE_HAS_BEEN_BOUND','merge','_notificationService','_handleHover','_docSkeleton','_drawAnchor','APPLY_PERMISSION_DENIED','_id','deepClone','then','Disposable','DeleteRangeMoveUpCommandId','send','session.collaboration-timeout','_cursor','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','CollaborationStatus','some','disableLocalCache','30mCjnPZ','getConfig','assign','AWAITING_WITH_PENDING','handleInsertRangeMoveRight','source','ICommandService','DocCollaborationEntity','deserializeRangeWithSheet','_ensureSubject','SOCKET_FAILED_RETRY','_initCommandExecutedListener','LICENSE_IMPORT_SIZE_EXCEEDED','INVITE_CODE_REQUIRED','registerComponent','setAlpha','split','replaceState','UNIVER_SHEET','LOCAL_CACHE_INTERVAL','getSheetObject','_drawTextRange','Unknown\x20user','createIdentifier','toRgbString','_backgroundColor','invokeId','OnLineSingle','jiqing500','registerRefRange','show','on-line-single_clip0_910_349','_messageService','top','_getSaveTimeout','collaboration-client-ui.config','DocIMEInputManagerService','CollaborationEvent','handleDeleteRangeMoveUp','[CollaborationDataLoaderController]','startsWith','_cursorShapes','1em','_unitStatus','textRanges','data','TEXT_RANGE_LAYER_INDEX','_anchor','CollaborationSocketService','filter','APPLY_NON_SEQUENTIAL_REVISION','_onCursorUpdate','onTransformChange$','lineTo','OTHER_CLIENT_EDITING','error','unitID','_docClipboardService','focused$','M0\x200H16V16H0z','selections','TEXT','runId','RichTextEditingMutation','getStateCache','_name','params','clearTimeout','getCollabCursors$','transformByState','IImageIoService','CollaborationDataLoaderController','toString','CollaborationStatusDisplay','ILocalCacheService','_colorAssignService','2306769smAoWd','all','find','IRenderManagerService','url(#off-line-single_clip0_910_343)','RegularPolygon','collaboration.closeRoom','getSheetId','isTransformMutationFailure','useObservable','206478vBKOuF','_transformPreviousActiveRange','_transformUndoRedoStack','_configService','combineLatest','enableLocalCache','fromEventSubject','delete','getColor','collabStatus.offline','stringify','@univerjs/docs','entityInit$','InsertColCommandId','has','function','_updateCollabCursors','RemoteUniscriptService','getUniverSheetInstance','LICENSE_MAX_UNITS_EXCEEDED','SetWorksheetActivateCommand','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_hovered','handleDeleteRangeMoveLeft','univer-flex\x20univer-items-center','_colorIndex','colorChannel1','jsx','_handleLeaveEvent','_handleEvent','getTypeOfUnitAdded$','location','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','0\x200\x2017\x2016','prototype','clearInterval','values','@univerjs/rpc','@univerjs-pro/collaboration-client','_sheetSkeletonManagerService','apply','getAncestorScale','mutations','IMessageService','cursorInfo$','CLOSE_ROOM','_startSheetCollabCursor','session.will-retry','getActiveRange','Warning','extend','CollaborationSessionService','_logService','_injector','ITransformService','IBeforeCloseService','_getScale','_beforeCloseService','column','_commandService','UnitStatus','_docSkeletonManagerService','pipe','removeParam','_scheduleHeartbeat','#fff','@univerjs/engine-render','addObjects','_saveTaskMap','_localStorageService','INVITE_CODE_ALREADY_BOUND','LOGIN_FAILED','@univerjs/design','replaceDocRanges','NodePositionConvertToCursor','disposeWithMe','_labelPosition','DesktopCollaborationStatusDisplayController','collabStatus.notCollab','_httpService','2345880lomsdV','_collabCursorState$','path','getItem','m1Prime','DocStateChangeManagerService','getMergeData','getCurrentUnitForType','_disabled','_removeClearOtherTimer','dispose$','undoState','VIEW_MAIN','_textBubble','transformRemoteChangeset','_handleHeartbeatEvent','beginPath','triggerDblclick','collab-client.tooltip.reconnect','hasOwnProperty','on-line-single','univer-flex\x20univer-mr-2\x20univer-text-[20px]','BuiltInUIPart','random','indexOf','mapTo','APPLY_REJECT','_init','SNAPSHOT_INVALID_SNAPSHOT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','hovered','_cachedData','BrowserCollaborationSocketService','getRenderById','mask','syncEditingCollabCursor','INVITE_CODE_HAS_BEEN_UES','MemberService','call','subscribe','gold400','InsertRowCommandId','clsx','min','Failed','_color','FromArray','next','getOwnPropertyDescriptor','none','createElement','_docSyncEditingCollabCursorService','evenodd','_entities','EMAIL_HAS_BEEN_BOUND','_cursors','YUUMI_RATE_OVER_LIMIT','UNRECOGNIZED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','length','useRef','getParam','Vector2','permission.title','with','EffectRefRangId','_onCursorDelete','getDocRanges','YUUMI_NO_CUBOID_FOR_QUESTION','onPointerMove$','HEADER_MENU','switchMap','_dataLoaderService','Plugin','@univerjs/sheets-ui','CollaborationController','onCommandExecuted','_themeService','generateRandomId','rgba(255,\x20255,\x20255,\x200.01)','executionId','getFocusedUnit','@univerjs/sheets','fromEvent','set','UniverIcon','DOC_RANGE_TYPE','isActive','cursorInfo','1741631QrAmWT','RemoveColCommandId','YUUMI_UNABLE_LOAD_URL','requireSession','_setupBeforeClosingHandler','YUUMI_URL_COL_OUT_OF_RANGE','HTTPService','_localCacheService','memberID','registerBeforeClose','post','propertyIsEnumerable','getVpScrollXYInfoByPosToVp','_draw','_initResize','RevisionService','DocSelectionManagerService','_univerInstanceService','defs','UNDEFINED','add','_collaborationController','searchParams','_updateLocalCursor','jsxs','_range','makeDirty','endColumn','code','_refreshCollabCursors','m2Prime','docStateChange$','toDisposable','ISocketService','push','react/jsx-runtime','replace','CollaborationUIEventId','getTypeOfUnitDisposed$','Tooltip','dispose','YUUMI_SUBSCRIPTION_NOT_FOUND','_initStatusComponent','sessionTicket','SheetCollabCursorShape','_getSessionTicket','APPLY_REVISION_CONFILICT','_renderManagerService','forEach','color','init','setStateCache','_context','_scheduleSaving','round','_scheduleClearOtherTimer','getCellPositionByOffset','@univerjs/docs-ui','registerRenderModule','_unitOnClients','isArray','newValue','clipPath','transformIMECache','_collabSessionService','ONLINE','children','onLocalMutation','collabCursorState$','_online','current','urlChange$','ENSURE_SNAPSHOT_EXECUTION','_initStatusListener','UNIVER_DOC','type','_drawRectRange','off-line-single','_document','_heartbeatTimer','FETCH_MISS','complete','sheetId','@univerjs/ui','NOT_COLLAB','saveTaskMap','_createSocketURL','className','defineProperty','CHANGESET_REVISION_CONFILICT','NOT_FOUND','COLORS','InsertRangeMoveRightCommandId','RECT','get','_uiPartsService','purple300','rxjs/operators','_docTransformSelectionsService','Injector','Tools','touchDependencies','unshift','width','override','transformMutation','onRendered','_memberService','UNAUTHENTICATED','INVALID_INVITE_CODE','_docTransformIMECacheService','getSheetBySheetId','executeCommand','collab-rect-range-','parse','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','findNodePositionByCharIndex','getOwnPropertySymbols','UniverInstanceType','4lUANzK','event$','_eventUnsubscribe','url(#on-line-single_clip0_910_349)','OTHER_CLIENTS_EDITING','USER_NOT_INVITED_CODE','string','save','/run/','permission.content','PENDING','doc.mutation.rich-text-editing','setUndoRedoMutationParamsCache','_shapes','transformMutationsWithChangeset','getMember','LICENSE_EXPORT_SIZE_EXCEEDED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','backgroundColor','svg','handleIRemoveRow','mergeOverrideWithDependencies','UniverCollaborationClientPlugin','actions','ACTIVE_UNIT_EVENT_CHANNEL','_collabCursorController','_getSheetObject','getSkeleton','PERMISSION_DENIED','SHEET_VIEWPORT_KEY','DocSkeletonManagerService','WECHAT_HAS_BEEN_BOUND','hide','@univerjs/engine-formula','univerjs-icon\x20univerjs-icon-','wsSessionTicketUrl','CONFLICT','_setupSubUnitSync','IDocClipboardService','asObservable','application/json','imageSourceType','_imageIoService','search','off-line-single_clip0_910_343','resize','BehaviorSubject','_syncEditingCollabCursorService','_transformHistoryAndStateStack','setItem','currentSkeleton$','Module','exhaustSavingTask','_initEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','createInstance','toStringTag','_onRefRangeChange','SessionStatus','unsubscribe','bottom','range','CollaborationUIEventService','drawWith','pushState','getCoordByCell','getCurrent','IConfigService','getUndoRedoMutationParamsCache','IUniverInstanceService','NO_OTHER_CLIENTS_EDITING','href','ILocalStorageService','currentColor','key','MUTATION','ThemeService','...','SOCKET_FAILED','getRangePointData','_initEntityListener','_transformService','getCurrentRevOfUnit','engine','throttleTime','_startDocCollabCursor','_initDependencies','_cursorInfo$','startColumn','DependentOn','unitId','_urlService','takeUntil','sessionStatus$','_updateURLWithCurrentState','_send','SNAPSHOT_HAS_BEEN_REMOVED','forwardRef','body','_toggleOffline','selection','assignAColorForMemberID','font','@univerjs/network','handleIRemoveCol','idSuffix','_registerRenderDependencies','INTERNAL_ERROR','black','connectInjector','_config','text','setConfig','history','loadOfflineData','fillRule','substring','TOO_MANY_REQUESTS','eventID','restore','loadUnit','size','_handleJoinEvent','MessageType','handleInsertRow','_lastPointer','_getMergeRange','_status$','roomMembers$','collab-text-anchor-','_localeService','_collaborationUIEventService','INVALID_ARGUMENT','INotificationService','from','onPointerEnter$','#FFF','ranges','debug','1685033rdHUvz','subunit','4931919ZooWXw','_session','Shape','attrs','OFFLINE','transformSelections','ILogService','getViewport','_anchorDot','moveTo','DisposableCollection','handleMoveRange','_updateSubUnitFromURLParams','map','updateOfflineData','collaboration-client.offline-data-not-saved','icon','name','onStarting','125DCoLBL','addHandlerCallback','onMouseMove','DataLoaderService','setShapeProps','Error','SetTextSelectionsOperation','RemoveRowCommandId','_clearOtherTimers','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getLocalCacheKey','setParam','subscribeEvent','roomMembers','UniverCollaborationClientUIPlugin','currentTheme$','addObject','tag','row','_saveCache','_revisionService','rxjs'];_0x18b1=function(){return _0x59ca43;};return _0x18b1();}Q=Xt([N(0x0,a['Inject'](b[_0x183fa5(0x22a)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x183fa5(0x3dc)](z)),N(0x3,a[_0x183fa5(0x3dc)](J)),N(0x4,a[_0x183fa5(0x3dc)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],Q);var Gt=Object[_0x183fa5(0x255)],qt=(_0x367f28,_0x5de162,_0x22a27f,_0x4c373f)=>{const _0x4dacda=_0x183fa5;for(var _0x5948fa=_0x4c373f>0x1?void 0x0:_0x4c373f?Gt(_0x5de162,_0x22a27f):_0x5de162,_0x15bdd7=_0x367f28[_0x4dacda(0x260)]-0x1,_0x300923;_0x15bdd7>=0x0;_0x15bdd7--)(_0x300923=_0x367f28[_0x15bdd7])&&(_0x5948fa=_0x300923(_0x5948fa)||_0x5948fa);return _0x5948fa;},_e=(_0x16d126,_0x1262f9)=>(_0x373693,_0x16ac7c)=>_0x1262f9(_0x373693,_0x16ac7c,_0x16d126);let ge=class extends a['Disposable']{constructor(_0x5cbd89,_0x33af0d,_0x6957e9){const _0x237594=_0x183fa5;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x237594(0x22d),!0x1),(this[_0x237594(0x1d8)]=_0x5cbd89,this[_0x237594(0x21a)]=_0x33af0d,this[_0x237594(0x3a9)]=_0x6957e9);}[_0x183fa5(0x3f4)](){const _0x1af12=_0x183fa5;this[_0x1af12(0x22d)]=!0x0;}[_0x183fa5(0x1da)](){const _0x299d1a=_0x183fa5;this[_0x299d1a(0x22d)]=!0x1;}get[_0x183fa5(0x2d3)](){const _0x5afde8=_0x183fa5;return this[_0x5afde8(0x219)];}[_0x183fa5(0x2a6)](){const _0x2c011d=_0x183fa5;this[_0x2c011d(0x329)]()[_0x2c011d(0x3eb)](()=>super[_0x2c011d(0x2a6)]());}async[_0x183fa5(0x367)](_0x577e30){const _0x15caa3=_0x183fa5;return this[_0x15caa3(0x22d)]?null:this[_0x15caa3(0x21a)][_0x15caa3(0x228)](u[_0x15caa3(0x39f)](_0x577e30));}async['saveOfflineData'](_0x5e7c9f,_0x5d0c8c){const _0x446ca9=_0x183fa5;return!!this['_localStorageService'][_0x446ca9(0x326)](_0x5e7c9f,_0x5d0c8c);}[_0x183fa5(0x390)](_0x31af78,_0x5068e7,_0x4f978d,_0x1818ac){const _0x4bb949=_0x183fa5,_0x1e3a19=this[_0x4bb949(0x3a9)][_0x4bb949(0x347)](_0x31af78);this[_0x4bb949(0x244)][_0x4bb949(0x279)](_0x31af78,{'unitID':_0x31af78,'type':_0x5068e7,'awaitingChangeset':_0x4f978d,'mutations':_0x1818ac,'rev':_0x1e3a19}),this[_0x4bb949(0x219)][_0x4bb949(0x1e3)](_0x31af78)||this['_scheduleSaving'](_0x31af78);}[_0x183fa5(0x2b3)](_0x3f5b8a){const _0x3bdcc6=_0x183fa5,_0x4e35b9=this[_0x3bdcc6(0x1a1)]();_0x4e35b9===0x0?this['_saveCache'](_0x3f5b8a):this[_0x3bdcc6(0x219)][_0x3bdcc6(0x279)](_0x3f5b8a,setTimeout(()=>this[_0x3bdcc6(0x3a8)](_0x3f5b8a),_0x4e35b9));}[_0x183fa5(0x1a1)](){const _0x2fc1aa=_0x183fa5;var _0xa85910;return(_0xa85910=this[_0x2fc1aa(0x1d8)][_0x2fc1aa(0x3f6)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xa85910:u[_0x2fc1aa(0x408)];}['_saveCache'](_0x134d7d){const _0x4a1d3c=_0x183fa5,_0x5617f4=this[_0x4a1d3c(0x219)][_0x4a1d3c(0x2dc)](_0x134d7d);return _0x5617f4!==void 0x0&&window[_0x4a1d3c(0x1c2)](_0x5617f4),this['_localStorageService'][_0x4a1d3c(0x326)](u[_0x4a1d3c(0x39f)](_0x134d7d),this[_0x4a1d3c(0x244)][_0x4a1d3c(0x2dc)](_0x134d7d))['then'](()=>this[_0x4a1d3c(0x219)][_0x4a1d3c(0x1dc)](_0x134d7d));}async[_0x183fa5(0x329)](){const _0x1b3678=_0x183fa5,_0x564a31=[];this[_0x1b3678(0x219)][_0x1b3678(0x2ae)]((_0x54867b,_0x523638)=>{const _0x57c331=_0x1b3678;window[_0x57c331(0x1c2)](_0x54867b),_0x564a31[_0x57c331(0x2a0)](this[_0x57c331(0x3a8)](_0x523638)[_0x57c331(0x3eb)](()=>{const _0x4e333a=_0x57c331;this[_0x4e333a(0x219)][_0x4e333a(0x1dc)](_0x523638);}));}),await Promise[_0x1b3678(0x1cc)](_0x564a31);}};ge=qt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x183fa5(0x33d)]),_e(0x2,a[_0x183fa5(0x3dc)](m[_0x183fa5(0x28d)]))],ge);class je extends a[_0x183fa5(0x3b8)]{constructor(){const _0x12443f=_0x183fa5;super(),h(this,_0x12443f(0x2c5)),this['urlChange$']=d[_0x12443f(0x278)](window,_0x12443f(0x3b0))['pipe'](d[_0x12443f(0x351)](this[_0x12443f(0x22f)]),d['shareReplay'](0x1),d[_0x12443f(0x23e)](void 0x0));}['setParam'](_0x32b4c5,_0x278cd3,_0x4368e6=!0x1){const _0x4872d1=_0x183fa5,_0x41108c=new URL(window[_0x4872d1(0x1f4)][_0x4872d1(0x33c)]);_0x41108c['searchParams'][_0x4872d1(0x279)](_0x32b4c5,_0x278cd3),_0x4368e6?window[_0x4872d1(0x366)][_0x4872d1(0x406)]('','',_0x41108c[_0x4872d1(0x1c7)]()):window[_0x4872d1(0x366)][_0x4872d1(0x335)]('','',_0x41108c[_0x4872d1(0x1c7)]());}[_0x183fa5(0x214)](_0x375444,_0x421800=!0x1){const _0x28314b=_0x183fa5,_0xc7ccbb=new URL(window[_0x28314b(0x1f4)]['href']);_0xc7ccbb[_0x28314b(0x294)]['delete'](_0x375444),_0x421800?window[_0x28314b(0x366)][_0x28314b(0x406)]('','',_0xc7ccbb[_0x28314b(0x1c7)]()):window[_0x28314b(0x366)][_0x28314b(0x335)]('','',_0xc7ccbb[_0x28314b(0x1c7)]());}[_0x183fa5(0x262)](_0x2527d5){const _0x548385=_0x183fa5;var _0x56ce34;return(_0x56ce34=new URL(window['location'][_0x548385(0x33c)])[_0x548385(0x294)]['get'](_0x2527d5))!=null?_0x56ce34:void 0x0;}}var Kt=Object['defineProperty'],zt=Object[_0x183fa5(0x255)],Jt=(_0x313a4d,_0x2ff107,_0x132409)=>_0x2ff107 in _0x313a4d?Kt(_0x313a4d,_0x2ff107,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x132409}):_0x313a4d[_0x2ff107]=_0x132409,Zt=(_0x2e4a8f,_0x1df63b,_0x2a3dbe,_0x33f7fe)=>{for(var _0xb3e757=_0x33f7fe>0x1?void 0x0:_0x33f7fe?zt(_0x1df63b,_0x2a3dbe):_0x1df63b,_0x5186a9=_0x2e4a8f['length']-0x1,_0x1ff65b;_0x5186a9>=0x0;_0x5186a9--)(_0x1ff65b=_0x2e4a8f[_0x5186a9])&&(_0xb3e757=_0x1ff65b(_0xb3e757)||_0xb3e757);return _0xb3e757;},he=(_0x1d699e,_0x335b35)=>(_0x211060,_0x553a79)=>_0x335b35(_0x211060,_0x553a79,_0x1d699e),Qt=(_0x2f1e48,_0x3461d8,_0x18f666)=>Jt(_0x2f1e48,_0x3461d8+'',_0x18f666);const es=_0x183fa5(0x3f1);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x183fa5(0x26e)]{constructor(_0x8c9634=Ue,_0x1635d2,_0x2b7b4d,_0x332af0){const _0x44f424=_0x183fa5;super(),this[_0x44f424(0x363)]=_0x8c9634,this[_0x44f424(0x2ad)]=_0x1635d2,this[_0x44f424(0x20a)]=_0x2b7b4d,this[_0x44f424(0x1d8)]=_0x332af0;const {..._0x1e5dc5}=a[_0x44f424(0x3e3)]({},Ue,this[_0x44f424(0x363)]);this['_configService'][_0x44f424(0x365)]($t,_0x1e5dc5);}[_0x183fa5(0x394)](){const _0x2b01a4=_0x183fa5;this[_0x2b01a4(0x3da)](),this[_0x2b01a4(0x34b)]();}[_0x183fa5(0x2e8)](){const _0x1e86cf=_0x183fa5;this[_0x1e86cf(0x35f)]();}[_0x183fa5(0x3da)](){const _0x14e38f=_0x183fa5;var _0x39d7a1;const _0x397551=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x14e38f(0x29f)],{'useClass':G[_0x14e38f(0x3de)]}],[u[_0x14e38f(0x1c9)],{'useClass':ge}],[exports[_0x14e38f(0x222)]],[Q],[K],[x],[de],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x14e38f(0x20a)],a[_0x14e38f(0x30a)](_0x397551,(_0x39d7a1=this[_0x14e38f(0x363)])==null?void 0x0:_0x39d7a1[_0x14e38f(0x2e6)]));}[_0x183fa5(0x35f)](){const _0x332bf1=_0x183fa5;this[_0x332bf1(0x220)](this['_renderManagerService'][_0x332bf1(0x2b8)](a[_0x332bf1(0x2f4)][_0x332bf1(0x2c8)],[Ie])),this[_0x332bf1(0x220)](this['_renderManagerService'][_0x332bf1(0x2b8)](a[_0x332bf1(0x2f4)][_0x332bf1(0x407)],[ve]));}[_0x183fa5(0x34b)](){const _0x181e90=_0x183fa5;a[_0x181e90(0x2e3)](this[_0x181e90(0x20a)],[[x],[exports[_0x181e90(0x222)]],[Q],[K],[exports[_0x181e90(0x1c6)]]]);}},Qt(exports[_0x183fa5(0x3a3)],'pluginName',es),exports[_0x183fa5(0x3a3)]=Zt([a[_0x183fa5(0x34e)](u[_0x183fa5(0x30b)]),he(0x1,p[_0x183fa5(0x1ce)]),he(0x2,a[_0x183fa5(0x3dc)](a['Injector'])),he(0x3,a[_0x183fa5(0x338)])],exports[_0x183fa5(0x3a3)]);var ts=Object[_0x183fa5(0x255)],ss=(_0x16e4f2,_0x33cd0c,_0x591954,_0x5b558d)=>{for(var _0x356864=_0x5b558d>0x1?void 0x0:_0x5b558d?ts(_0x33cd0c,_0x591954):_0x33cd0c,_0x3cf2a5=_0x16e4f2['length']-0x1,_0x229913;_0x3cf2a5>=0x0;_0x3cf2a5--)(_0x229913=_0x16e4f2[_0x3cf2a5])&&(_0x356864=_0x229913(_0x356864)||_0x356864);return _0x356864;},F=(_0x23a3a6,_0x3cbdf9)=>(_0x4cf0fa,_0x27b8fd)=>_0x3cbdf9(_0x4cf0fa,_0x27b8fd,_0x23a3a6);exports[_0x183fa5(0x245)]=class extends u[_0x183fa5(0x1af)]{constructor(_0x567c8b,_0x10ed96,_0x1f966b,_0x4a15b1,_0x32bedb){super(_0x567c8b,_0x10ed96,_0x1f966b,_0x4a15b1,_0x32bedb);}async['createSocket'](_0x26ab40){const _0x128f3d=_0x183fa5,_0x8c2f53=await this[_0x128f3d(0x2ab)](),_0xe51891=this[_0x128f3d(0x2d4)](_0x26ab40,_0x8c2f53);return this['_doCreateSocket'](_0xe51891);}['_createSocketURL'](_0x3b4feb,_0x393f27){const _0x2bb04e=_0x183fa5,_0x39fa61=typeof window>'u'?new URL(_0x3b4feb):new URL(_0x3b4feb,window[_0x2bb04e(0x1f4)]['origin']);_0x39fa61[_0x2bb04e(0x294)][_0x2bb04e(0x279)](_0x2bb04e(0x2a9),_0x393f27);const _0x15e7ea=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2bb04e(0x1f4)][_0x2bb04e(0x320)]);return _0x15e7ea['get'](_0x2bb04e(0x1bd))&&_0x39fa61[_0x2bb04e(0x294)][_0x2bb04e(0x279)](_0x2bb04e(0x1bd),_0x15e7ea[_0x2bb04e(0x2dc)](_0x2bb04e(0x1bd))),_0x39fa61['toString']();}async[_0x183fa5(0x2ab)](){const _0x493682=_0x183fa5;var _0x51a63a,_0x468ca8,_0x433968;const _0xc96093=this[_0x493682(0x1d8)]['getConfig'](u[_0x493682(0x3c7)]),_0x5030e5=(_0x51a63a=_0xc96093==null?void 0x0:_0xc96093[_0x493682(0x318)])!=null?_0x51a63a:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x433968=(_0x468ca8=(await this['_httpService'][_0x493682(0x2dc)](_0x5030e5,{'headers':{'Content-Type':_0x493682(0x31d)}}))[_0x493682(0x357)])==null?void 0x0:_0x468ca8[_0x493682(0x3e1)])!=null?_0x433968:'';}},exports[_0x183fa5(0x245)]=ss([F(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),F(0x1,a[_0x183fa5(0x3dc)](G[_0x183fa5(0x284)])),F(0x2,a[_0x183fa5(0x338)]),F(0x3,a[_0x183fa5(0x388)]),F(0x4,m['ISnapshotServerService'])],exports[_0x183fa5(0x245)]);const Me=0x7530,Le=_0x183fa5(0x30d);class is extends a[_0x183fa5(0x3ec)]{constructor(){const _0x214a74=_0x183fa5;super(),h(this,_0x214a74(0x3e9),a['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x214a74(0x2b9),new Map()),h(this,_0x214a74(0x2cd),null),h(this,_0x214a74(0x39d),new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x183fa5(0x2a6)](){const _0x18d0c0=_0x183fa5;super[_0x18d0c0(0x2a6)](),this['_clearOtherTimers'][_0x18d0c0(0x2ae)]((_0x4cbbd8,_0xf8b501)=>this[_0x18d0c0(0x22e)](_0xf8b501)),this['_heartbeatTimer']&&window[_0x18d0c0(0x1f8)](this[_0x18d0c0(0x2cd)]);}[_0x183fa5(0x3ce)](_0x3b2331){const _0x3aecee=_0x183fa5;return this[_0x3aecee(0x3fe)](_0x3b2331)[_0x3aecee(0x213)](d['distinctUntilChanged']());}['editingUnit'](_0x1933e6){const _0x82d39c=_0x183fa5;this[_0x82d39c(0x3b2)][_0x82d39c(0x36e)]===0x0&&this[_0x82d39c(0x215)](),this['_selfUnitIDs'][_0x82d39c(0x292)](_0x1933e6),this[_0x82d39c(0x354)]({'type':0x0,'memberID':this[_0x82d39c(0x3e9)],'unitIDs':[_0x1933e6],'isForwarded':!0x1});}['disposeUnit'](_0x15492c){const _0x18b2b9=_0x183fa5;this['_selfUnitIDs'][_0x18b2b9(0x1dc)](_0x15492c),this[_0x18b2b9(0x3b2)][_0x18b2b9(0x36e)]===0x0&&this[_0x18b2b9(0x2cd)]&&window[_0x18b2b9(0x1f8)](this[_0x18b2b9(0x2cd)]);}[_0x183fa5(0x240)](){const _0x2c30c5=_0x183fa5;this['disposeWithMe'](a[_0x2c30c5(0x29e)](d['fromEvent'](window,'storage')[_0x2c30c5(0x24c)](_0x2217ae=>{const _0x205c0e=_0x2c30c5;if(_0x2217ae[_0x205c0e(0x33f)]!==Le||!_0x2217ae[_0x205c0e(0x2bb)])return;const _0x1e03a5=JSON[_0x205c0e(0x2f0)](_0x2217ae[_0x205c0e(0x2bb)]);this[_0x205c0e(0x1f2)](_0x1e03a5);}))),window['addEventListener']('unload',()=>this[_0x2c30c5(0x354)]({'type':0x1,'memberID':this[_0x2c30c5(0x3e9)],'unitIDs':Array['from'](this[_0x2c30c5(0x3b2)])}));}[_0x183fa5(0x1f2)](_0x2059ea){const _0x3f3f21=_0x183fa5;switch(_0x2059ea[_0x3f3f21(0x2c9)]){case 0x0:this[_0x3f3f21(0x36f)](_0x2059ea);break;case 0x1:this[_0x3f3f21(0x1f1)](_0x2059ea);break;case 0x2:this['_handleHeartbeatEvent'](_0x2059ea);break;}}[_0x183fa5(0x36f)](_0x3d7878){const _0x3ce74d=_0x183fa5,{unitIDs:_0x256c14,memberID:_0x501041,isForwarded:_0x235d48}=_0x3d7878;_0x256c14[_0x3ce74d(0x2ae)](_0x4829cd=>{const _0x4f1535=_0x3ce74d;if(!_0x235d48&&this[_0x4f1535(0x2b9)][_0x4f1535(0x1e3)](_0x4829cd)&&this[_0x4f1535(0x3fe)](_0x4829cd)[_0x4f1535(0x254)](u[_0x4f1535(0x211)][_0x4f1535(0x2f9)]),!this[_0x4f1535(0x2b9)]['has'](_0x4829cd)||!this[_0x4f1535(0x2b9)]['get'](_0x4829cd)[_0x4f1535(0x1e3)](_0x501041)){const _0x384c0d=this[_0x4f1535(0x2b9)]['get'](_0x4829cd)||new Set();_0x384c0d[_0x4f1535(0x292)](_0x501041),this[_0x4f1535(0x2b9)][_0x4f1535(0x279)](_0x4829cd,_0x384c0d),this[_0x4f1535(0x2b5)](_0x501041);}}),_0x235d48||this[_0x3ce74d(0x354)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3ce74d(0x3b2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x58dad2){const _0x29e471=_0x183fa5;this['_removeClearOtherTimer'](_0x58dad2);const _0x2c7bf2=window['setTimeout'](()=>{const _0x39784f=_0x5188;this[_0x39784f(0x2b9)][_0x39784f(0x2ae)](_0x4980bf=>{const _0x4c55d7=_0x39784f;_0x4980bf[_0x4c55d7(0x1dc)](_0x58dad2);});},Me*0x2);this[_0x29e471(0x39d)][_0x29e471(0x279)](_0x58dad2,_0x2c7bf2);}['_removeClearOtherTimer'](_0x3278fc){const _0x1fc79d=_0x183fa5;if(this['_clearOtherTimers'][_0x1fc79d(0x1e3)](_0x3278fc)){const _0x5ae65a=this[_0x1fc79d(0x39d)][_0x1fc79d(0x2dc)](_0x3278fc);_0x5ae65a&&window[_0x1fc79d(0x1c2)](_0x5ae65a),this['_clearOtherTimers']['set'](_0x3278fc,null);}}[_0x183fa5(0x1f1)](_0x329ec5){const _0x1566e8=_0x183fa5,{memberID:_0x4dbc48,unitIDs:_0x3f8dfe}=_0x329ec5;_0x3f8dfe[_0x1566e8(0x2ae)](_0x145a2e=>{const _0x7cf28b=_0x1566e8;var _0x53ab87;const _0x1e56df=this[_0x7cf28b(0x2b9)][_0x7cf28b(0x2dc)](_0x145a2e);_0x1e56df&&(_0x1e56df['delete'](_0x4dbc48),(_0x53ab87=this['_ensureSubject'](_0x145a2e))==null||_0x53ab87[_0x7cf28b(0x254)](_0x1e56df[_0x7cf28b(0x36e)]===0x0?u[_0x7cf28b(0x211)][_0x7cf28b(0x33b)]:u[_0x7cf28b(0x211)][_0x7cf28b(0x2f9)]));}),this[_0x1566e8(0x22e)](_0x4dbc48);}[_0x183fa5(0x234)](_0x425883){const _0x5d6147=_0x183fa5;this[_0x5d6147(0x2b5)](_0x425883[_0x5d6147(0x286)]);}[_0x183fa5(0x354)](_0xe3df1c){const _0x2d7128=_0x183fa5;localStorage[_0x2d7128(0x326)](Le,JSON[_0x2d7128(0x1df)](_0xe3df1c));}[_0x183fa5(0x215)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x4fd008=_0x5188;this[_0x4fd008(0x354)]({'type':0x2,'memberID':this[_0x4fd008(0x3e9)]});},Me);}[_0x183fa5(0x3fe)](_0x119c55){const _0x31a3e0=_0x183fa5;return this[_0x31a3e0(0x1aa)]['has'](_0x119c55)||this[_0x31a3e0(0x1aa)][_0x31a3e0(0x279)](_0x119c55,new d[(_0x31a3e0(0x323))](u[_0x31a3e0(0x211)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x31a3e0(0x2dc)](_0x119c55);}}var Be=(_0x59f251=>(_0x59f251[_0x59f251[_0x183fa5(0x291)]=0x0]=_0x183fa5(0x291),_0x59f251[_0x59f251['OK']=0x1]='OK',_0x59f251[_0x59f251[_0x183fa5(0x360)]=0x2]=_0x183fa5(0x360),_0x59f251[_0x59f251[_0x183fa5(0x311)]=0x3]=_0x183fa5(0x311),_0x59f251[_0x59f251['NOT_FOUND']=0x4]=_0x183fa5(0x2d8),_0x59f251[_0x59f251[_0x183fa5(0x2ea)]=0x5]=_0x183fa5(0x2ea),_0x59f251[_0x59f251['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x59f251[_0x59f251[_0x183fa5(0x379)]=0x7]=_0x183fa5(0x379),_0x59f251[_0x59f251[_0x183fa5(0x36a)]=0x8]=_0x183fa5(0x36a),_0x59f251[_0x59f251[_0x183fa5(0x3cb)]=0x9]='COMPLETION_FINISHED',_0x59f251[_0x59f251[_0x183fa5(0x21c)]=0xa]=_0x183fa5(0x21c),_0x59f251[_0x59f251[_0x183fa5(0x2d7)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x59f251[_0x59f251[_0x183fa5(0x241)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x59f251[_0x59f251[_0x183fa5(0x355)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x59f251[_0x59f251[_0x183fa5(0x2c6)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x59f251[_0x59f251[_0x183fa5(0x23f)]=0x1b59]='APPLY_REJECT',_0x59f251[_0x59f251[_0x183fa5(0x1b1)]=0x1b5a]=_0x183fa5(0x1b1),_0x59f251[_0x59f251[_0x183fa5(0x2ac)]=0x1b5b]=_0x183fa5(0x2ac),_0x59f251[_0x59f251['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x183fa5(0x3e8),_0x59f251[_0x59f251[_0x183fa5(0x3ac)]=0x1b5d]=_0x183fa5(0x3ac),_0x59f251[_0x59f251[_0x183fa5(0x3d6)]=0x1f41]=_0x183fa5(0x3d6),_0x59f251[_0x59f251['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x183fa5(0x1e8),_0x59f251[_0x59f251[_0x183fa5(0x39e)]=0x232a]=_0x183fa5(0x39e),_0x59f251[_0x59f251[_0x183fa5(0x401)]=0x232b]=_0x183fa5(0x401),_0x59f251[_0x59f251[_0x183fa5(0x305)]=0x232c]=_0x183fa5(0x305),_0x59f251[_0x59f251['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x59f251[_0x59f251[_0x183fa5(0x280)]=0x2711]=_0x183fa5(0x280),_0x59f251[_0x59f251[_0x183fa5(0x283)]=0x2712]=_0x183fa5(0x283),_0x59f251[_0x59f251[_0x183fa5(0x25d)]=0x2713]=_0x183fa5(0x25d),_0x59f251[_0x59f251[_0x183fa5(0x2a7)]=0x2714]=_0x183fa5(0x2a7),_0x59f251[_0x59f251[_0x183fa5(0x269)]=0x271a]=_0x183fa5(0x269),_0x59f251[_0x59f251[_0x183fa5(0x3ad)]=0x271b]=_0x183fa5(0x3ad),_0x59f251[_0x59f251[_0x183fa5(0x3d1)]=0x2af9]=_0x183fa5(0x3d1),_0x59f251[_0x59f251[_0x183fa5(0x249)]=0x2ee1]=_0x183fa5(0x249),_0x59f251[_0x59f251[_0x183fa5(0x2eb)]=0x2ee2]='INVALID_INVITE_CODE',_0x59f251[_0x59f251[_0x183fa5(0x402)]=0x2ee3]=_0x183fa5(0x402),_0x59f251[_0x59f251[_0x183fa5(0x2fa)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x59f251[_0x59f251['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x183fa5(0x21b),_0x59f251[_0x59f251[_0x183fa5(0x314)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x59f251[_0x59f251[_0x183fa5(0x3e2)]=0x32ca]=_0x183fa5(0x3e2),_0x59f251[_0x59f251['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x183fa5(0x25b),_0x59f251[_0x59f251[_0x183fa5(0x25e)]=-0x1]='UNRECOGNIZED',_0x59f251))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x46b768,_0x473f41,_0x10a7ae,_0x570a4b)=>{const _0x447bde=_0x183fa5;for(var _0x112e83=_0x570a4b>0x1?void 0x0:_0x570a4b?ns(_0x473f41,_0x10a7ae):_0x473f41,_0x51b4ee=_0x46b768[_0x447bde(0x260)]-0x1,_0x42b06c;_0x51b4ee>=0x0;_0x51b4ee--)(_0x42b06c=_0x46b768[_0x51b4ee])&&(_0x112e83=_0x42b06c(_0x112e83)||_0x112e83);return _0x112e83;},ue=(_0x3e8c86,_0x787de8)=>(_0x3d2856,_0x181c26)=>_0x787de8(_0x3d2856,_0x181c26,_0x3e8c86);exports[_0x183fa5(0x1e6)]=class extends a[_0x183fa5(0x3ec)]{constructor(_0x49121f,_0x40b83a,_0x356358){const _0x1269c1=_0x183fa5;super(),this['_instanceService']=_0x49121f,this['_httpService']=_0x40b83a,this[_0x1269c1(0x1d8)]=_0x356358;}async[_0x183fa5(0x3c1)](_0x521f9e,_0x3ac69,_0x1a0706,..._0x5c1501){const _0xf035fd=_0x183fa5;var _0x31e679,_0x5c037f,_0x3a1fe9,_0x27c22d;const _0x36a2cf=this['_instanceService'][_0xf035fd(0x276)]();if(!_0x36a2cf)throw new Error(_0xf035fd(0x242));const _0x17d97c=((_0x31e679=this['_configService'][_0xf035fd(0x3f6)](u[_0xf035fd(0x25f)]))!=null?_0x31e679:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x521f9e+_0xf035fd(0x2fd)+_0x3ac69,_0x12d1cc=new URL(window[_0xf035fd(0x1f4)][_0xf035fd(0x33c)]),_0x1b269f={'scriptId':_0x521f9e,'runId':(_0x5c037f=_0x12d1cc[_0xf035fd(0x294)][_0xf035fd(0x2dc)]('runId'))!=null?_0x5c037f:'','function':_0x3ac69,'unitId':_0x36a2cf[_0xf035fd(0x3bf)](),'argsOfFunction':JSON['stringify'](_0x5c1501),'invokeId':(_0x3a1fe9=_0x1a0706[_0xf035fd(0x199)])!=null?_0x3a1fe9:'','executionId':(_0x27c22d=_0x1a0706[_0xf035fd(0x275)])!=null?_0x27c22d:''};try{const _0x1c6509=await this[_0xf035fd(0x224)][_0xf035fd(0x288)](_0x17d97c,{'body':_0x1b269f});return _0x1c6509[_0xf035fd(0x357)][_0xf035fd(0x1b6)]&&_0x1c6509[_0xf035fd(0x357)][_0xf035fd(0x1b6)][_0xf035fd(0x29a)]!==Be['OK']?_0xf035fd(0x251):_0x1c6509[_0xf035fd(0x357)]['result'];}catch{return'Failed';}}},exports[_0x183fa5(0x1e6)]=rs([ue(0x0,a[_0x183fa5(0x33a)]),ue(0x1,a[_0x183fa5(0x3dc)](G[_0x183fa5(0x284)])),ue(0x2,a['IConfigService'])],exports[_0x183fa5(0x1e6)]),exports[_0x183fa5(0x1c8)]=xe,exports['IURLService']=be,exports[_0x183fa5(0x2aa)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x112d6b=_0x4987;(function(_0x170ebd,_0x32bd71){const _0x5b32e6=_0x4987,_0x508a7d=_0x170ebd();while(!![]){try{const _0x4241dd=parseInt(_0x5b32e6(0x316))/0x1*(-parseInt(_0x5b32e6(0x202))/0x2)+parseInt(_0x5b32e6(0x292))/0x3+-parseInt(_0x5b32e6(0x3c2))/0x4*(-parseInt(_0x5b32e6(0x1c9))/0x5)+parseInt(_0x5b32e6(0x169))/0x6+-parseInt(_0x5b32e6(0x24b))/0x7*(parseInt(_0x5b32e6(0x28f))/0x8)+parseInt(_0x5b32e6(0x265))/0x9*(parseInt(_0x5b32e6(0x3a5))/0xa)+-parseInt(_0x5b32e6(0x3df))/0xb;if(_0x4241dd===_0x32bd71)break;else _0x508a7d['push'](_0x508a7d['shift']());}catch(_0x2184a7){_0x508a7d['push'](_0x508a7d['shift']());}}}(_0xde0e,0xa6e38));var Ve=Object[_0x112d6b(0x288)],Xe=(_0x369c9e,_0x5d3d52,_0x13b9dd)=>_0x5d3d52 in _0x369c9e?Ve(_0x369c9e,_0x5d3d52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13b9dd}):_0x369c9e[_0x5d3d52]=_0x13b9dd,h=(_0x1374d8,_0x9026e5,_0x2e4a3e)=>Xe(_0x1374d8,typeof _0x9026e5!='symbol'?_0x9026e5+'':_0x9026e5,_0x2e4a3e);Object['defineProperty'](exports,Symbol[_0x112d6b(0x1e2)],{'value':_0x112d6b(0x22b)});const u=require(_0x112d6b(0x2f9)),a=require('@univerjs/core'),p=require(_0x112d6b(0x1d2)),G=require(_0x112d6b(0x390)),b=require(_0x112d6b(0x203)),Ge=require(_0x112d6b(0x3d3)),d=require(_0x112d6b(0x216)),W=require(_0x112d6b(0x2de)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x112d6b(0x363)),g=require(_0x112d6b(0x2a7)),$=require('rxjs/operators'),X=require(_0x112d6b(0x21c)),P=require(_0x112d6b(0x311)),T=require(_0x112d6b(0x18b)),D=require(_0x112d6b(0x1cc)),M=require(_0x112d6b(0x2a1)),qe=require(_0x112d6b(0x375));var Ke=Object['getOwnPropertyDescriptor'],ze=(_0x124567,_0x45c225,_0x5fe07c,_0xc2bf9b)=>{for(var _0x35af13=_0xc2bf9b>0x1?void 0x0:_0xc2bf9b?Ke(_0x45c225,_0x5fe07c):_0x45c225,_0x2f423c=_0x124567['length']-0x1,_0xabf0be;_0x2f423c>=0x0;_0x2f423c--)(_0xabf0be=_0x124567[_0x2f423c])&&(_0x35af13=_0xabf0be(_0x35af13)||_0x35af13);return _0x35af13;},Te=(_0x3f7c2c,_0x2e73ed)=>(_0x235bc7,_0x3eefdc)=>_0x2e73ed(_0x235bc7,_0x3eefdc,_0x3f7c2c);let de=class extends a['RxDisposable']{constructor(_0xb0134f,_0xf39d0c){const _0x1a2629=_0x112d6b;super(),this[_0x1a2629(0x190)]=_0xb0134f,this[_0x1a2629(0x39a)]=_0xf39d0c,this[_0x1a2629(0x191)]();}['_init'](){const _0x5c2c06=_0x112d6b,_0x26e410=this;this[_0x5c2c06(0x204)](this[_0x5c2c06(0x190)]['addClipboardHook']({'onBeforePasteImage':async _0x2dcbec=>{const _0x4cc7d8=_0x5c2c06,_0x2f90b2=await _0x26e410[_0x4cc7d8(0x39a)][_0x4cc7d8(0x228)](_0x2dcbec);return _0x2f90b2?{'source':_0x2f90b2['source'],'imageSourceType':_0x2f90b2[_0x4cc7d8(0x2c9)]}:null;}}));}};de=ze([Te(0x0,b[_0x112d6b(0x1e5)]),Te(0x1,Ge[_0x112d6b(0x178)])],de);const Oe=[_0x112d6b(0x3cc),_0x112d6b(0x1d5),_0x112d6b(0x32e),_0x112d6b(0x371),_0x112d6b(0x25b),_0x112d6b(0x37b)];class me extends a[_0x112d6b(0x392)]{constructor(){const _0x35d0fd=_0x112d6b;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x35d0fd(0x2b8),0x0);}[_0x112d6b(0x31d)](_0x255727){const _0xd2bc58=_0x112d6b;if(this[_0xd2bc58(0x360)]['has'](_0x255727))return this[_0xd2bc58(0x360)]['get'](_0x255727);const _0x45e19c=Oe[this['_colorIndex']];return this['_colorIndex']=(this[_0xd2bc58(0x2b8)]+0x1)%Oe[_0xd2bc58(0x298)],this[_0xd2bc58(0x360)][_0xd2bc58(0x3c6)](_0x255727,_0x45e19c),_0x45e19c;}}function Pe(_0x2c3fcd){const _0x55e9fe=_0x112d6b;let _0x427b92='';for(const _0x3e484b of _0x2c3fcd){const {startOffset:_0x405c26,endOffset:_0x3f8ded,isActive:_0x144092,rangeType:_0x592f82,segmentId:_0x4d9518,segmentPage:_0x4a535b}=_0x3e484b;_0x427b92[_0x55e9fe(0x298)]&&(_0x427b92+=','),_0x427b92+=_0x405c26+':'+_0x3f8ded+':'+(_0x144092?'1':'0')+':'+_0x592f82+':'+_0x4d9518+':'+_0x4a535b;}return _0x427b92;}function Je(_0x5812ce){const _0x2accaa=_0x112d6b,_0x37aa48=_0x5812ce[_0x2accaa(0x2cf)](','),_0x2631a9=[];for(const _0x5ed7a8 of _0x37aa48){const [_0x2f2103,_0xd9c518,_0x1f6614,_0x5e8fbc,_0x4f30e1,_0x5c7a2a]=_0x5ed7a8[_0x2accaa(0x2cf)](':');_0x2631a9[_0x2accaa(0x344)]({'startOffset':Number(_0x2f2103),'endOffset':Number(_0xd9c518),'collapsed':_0x2f2103===_0xd9c518,'isActive':_0x1f6614==='1','rangeType':_0x5e8fbc===a[_0x2accaa(0x3b3)]['TEXT']?a[_0x2accaa(0x3b3)][_0x2accaa(0x1a4)]:a[_0x2accaa(0x3b3)][_0x2accaa(0x173)],'segmentId':typeof _0x4f30e1==_0x2accaa(0x1bd)?String(_0x4f30e1):'','segmentPage':Number(_0x5c7a2a!=null?_0x5c7a2a:-0x1)});}return _0x2631a9[_0x2accaa(0x29f)](_0x16c98a=>_0x16c98a['isActive'])||(_0x2631a9[0x0][_0x2accaa(0x177)]=!0x0),_0x2631a9;}class Ce extends a[_0x112d6b(0x2b7)]{constructor(){const _0x340bec=_0x112d6b;super(...arguments),h(this,_0x340bec(0x35e),new d[(_0x340bec(0x340))](null)),h(this,_0x340bec(0x34f),this[_0x340bec(0x35e)][_0x340bec(0x314)]());}[_0x112d6b(0x3b4)](_0x37a737){const _0x560574=_0x112d6b,{unitID:_0x519dda,memberID:_0x43cf48,textRanges:_0x46f82c}=_0x37a737,_0x5d0894=Pe(_0x46f82c);if(_0x5d0894==='')return;const _0x542411={'unitID':_0x519dda,'memberID':_0x43cf48,'selection':_0x5d0894};this[_0x560574(0x35e)][_0x560574(0x2c8)](_0x542411);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x372380,_0x587fcf,_0x3430f8,_0x549c5e)=>{for(var _0x591555=_0x549c5e>0x1?void 0x0:_0x549c5e?Ze(_0x587fcf,_0x3430f8):_0x587fcf,_0x45a3db=_0x372380['length']-0x1,_0x15438e;_0x45a3db>=0x0;_0x45a3db--)(_0x15438e=_0x372380[_0x45a3db])&&(_0x591555=_0x15438e(_0x591555)||_0x591555);return _0x591555;},L=(_0x6083cd,_0x533bd9)=>(_0x46ece4,_0x312dc9)=>_0x533bd9(_0x46ece4,_0x312dc9,_0x6083cd);const et=0x12c,tt=0x64;let fe=class extends a[_0x112d6b(0x2b7)]{constructor(_0x1f9aa4,_0x679cf8,_0x5d5a42,_0x5b4eb7,_0x4d6db4,_0x1a9d9a,_0x2531f7,_0x45f49f,_0x5b683b){const _0x4bd6ac=_0x112d6b;super(),h(this,_0x4bd6ac(0x20f),!0x1),h(this,_0x4bd6ac(0x191),!0x1),h(this,'_cursorInfo$',new d[(_0x4bd6ac(0x340))](new Map())),h(this,_0x4bd6ac(0x2d2),this[_0x4bd6ac(0x385)][_0x4bd6ac(0x314)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0x4bd6ac(0x247),this[_0x4bd6ac(0x2b5)]['pipe'](d[_0x4bd6ac(0x274)](et))),h(this,_0x4bd6ac(0x2e6),a[_0x4bd6ac(0x21a)](_0xca8b2b=>{const _0x21d33c=_0x4bd6ac,_0x1db8f0={'eventID':m['CollaborationEvent'][_0x21d33c(0x386)],'data':{'unitID':this[_0x21d33c(0x31e)],'memberID':this['_session'][_0x21d33c(0x26d)](),'selection':Pe(_0xca8b2b)}};this[_0x21d33c(0x235)][_0x21d33c(0x39b)](_0x1db8f0,this[_0x21d33c(0x31e)]);},tt)),(this[_0x4bd6ac(0x31e)]=_0x1f9aa4,this[_0x4bd6ac(0x235)]=_0x679cf8,this['_injector']=_0x5d5a42,this[_0x4bd6ac(0x1e0)]=_0x5b4eb7,this[_0x4bd6ac(0x21b)]=_0x4d6db4,this['_syncEditingCollabCursorService']=_0x1a9d9a,this[_0x4bd6ac(0x22e)]=_0x2531f7,this[_0x4bd6ac(0x379)]=_0x45f49f,this['_commandService']=_0x5b683b);}get['cursorInfo'](){const _0x1eed0c=_0x112d6b;return this[_0x1eed0c(0x385)][_0x1eed0c(0x16d)]();}get['roomMembers'](){const _0x334bf6=_0x112d6b;return this[_0x334bf6(0x2b5)]['getValue']();}[_0x112d6b(0x29c)](){const _0x28bcb2=_0x112d6b;super[_0x28bcb2(0x29c)](),this[_0x28bcb2(0x385)]['next'](new Map()),this[_0x28bcb2(0x385)][_0x28bcb2(0x36b)](),this['_roomMembers$'][_0x28bcb2(0x2c8)]([]),this[_0x28bcb2(0x2b5)][_0x28bcb2(0x36b)]();}['init'](){const _0x5bc71e=_0x112d6b;this[_0x5bc71e(0x191)]||(this[_0x5bc71e(0x191)]=!0x0,this['_session'][_0x5bc71e(0x394)][_0x5bc71e(0x2ff)](d[_0x5bc71e(0x293)](this[_0x5bc71e(0x295)]))[_0x5bc71e(0x28b)](_0x3741ea=>{const _0x50842b=_0x5bc71e;_0x3741ea===u[_0x50842b(0x346)][_0x50842b(0x2da)]?this[_0x50842b(0x3cb)]():this['_toggleOffline']();}),this[_0x5bc71e(0x235)][_0x5bc71e(0x25d)]['pipe'](d[_0x5bc71e(0x293)](this[_0x5bc71e(0x295)]))[_0x5bc71e(0x28b)](_0x5ae688=>{const _0x1794d0=_0x5bc71e,_0x3d29be=_0x5ae688[_0x1794d0(0x260)];_0x3d29be===m['CollaborationEvent'][_0x1794d0(0x386)]&&this[_0x1794d0(0x280)](_0x5ae688),_0x3d29be===m[_0x1794d0(0x1f0)][_0x1794d0(0x27a)]&&this[_0x1794d0(0x32b)](_0x5ae688);}),this[_0x5bc71e(0x204)](this['_commandService'][_0x5bc71e(0x2ed)](_0x2e2101=>{const _0x535c9b=_0x5bc71e,_0x32d211=_0x2e2101['params'];_0x32d211!=null&&this[_0x535c9b(0x20f)]&&_0x2e2101['id']===W[_0x535c9b(0x323)]['id']&&_0x32d211['unitId']===this[_0x535c9b(0x31e)]&&_0x32d211['isEditing']===!0x1&&_0x32d211[_0x535c9b(0x35c)]['length']>0x0&&this['_updateLocalCursor'](_0x32d211[_0x535c9b(0x35c)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x5bc71e(0x2ff)](d[_0x5bc71e(0x293)](this[_0x5bc71e(0x295)]))[_0x5bc71e(0x28b)](_0x257a65=>{const _0xd2d982=_0x5bc71e;if((_0x257a65==null?void 0x0:_0x257a65['unitID'])!==this[_0xd2d982(0x31e)])return;const _0x2a583c={'eventID':m[_0xd2d982(0x1f0)][_0xd2d982(0x386)],'data':_0x257a65};this[_0xd2d982(0x280)](_0x2a583c);}),this['disposeWithMe'](this[_0x5bc71e(0x208)][_0x5bc71e(0x2ed)](_0x2bebeb=>{const _0x88858=_0x5bc71e;if(_0x2bebeb[_0x88858(0x2d1)]==null)return;const _0x3ef86f=_0x2bebeb['params'];if(_0x2bebeb['id']!==W[_0x88858(0x234)]['id']||_0x3ef86f[_0x88858(0x36f)]!==this[_0x88858(0x31e)])return;const _0x2088bf={'id':_0x88858(0x1eb),'params':_0x3ef86f},_0x178e04=this['cursorInfo'];for(const [_0x2ee079,_0x62da5e]of _0x178e04){const _0x48929e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x88858(0x31e)],'actions':null,'textRanges':_0x62da5e[_0x88858(0x35c)]}},_0x5168e0=this[_0x88858(0x22e)]['transformMutation'](_0x2088bf,_0x48929e,!0x1);if(m['isTransformMutationFailure'](_0x5168e0))throw _0x5168e0[_0x88858(0x318)];_0x178e04['set'](_0x2ee079,{..._0x62da5e,'ranges':_0x5168e0[_0x88858(0x3ae)][_0x88858(0x2d1)][_0x88858(0x3a7)]});}queueMicrotask(()=>{const _0x5f037f=_0x88858;this[_0x5f037f(0x385)][_0x5f037f(0x2c8)](_0x178e04);});})));}['_onCursorUpdate'](_0x1c7556){const _0x64dd96=_0x112d6b;var _0x219db6,_0x5dc2fa;const {memberID:_0x306be2,selection:_0x4d6e96}=_0x1c7556[_0x64dd96(0x333)],_0x462967=Je(_0x4d6e96),_0x3856e1=(_0x5dc2fa=(_0x219db6=this[_0x64dd96(0x21b)][_0x64dd96(0x249)](this[_0x64dd96(0x31e)],_0x306be2))==null?void 0x0:_0x219db6[_0x64dd96(0x1d3)])!=null?_0x5dc2fa:_0x64dd96(0x184),_0x4b177c={'color':this[_0x64dd96(0x1e0)][_0x64dd96(0x31d)](_0x306be2),'name':_0x3856e1,'ranges':_0x462967},_0x2a2638=this[_0x64dd96(0x252)];_0x2a2638[_0x64dd96(0x3c6)](_0x306be2,_0x4b177c),this[_0x64dd96(0x385)]['next'](_0x2a2638);}[_0x112d6b(0x32b)](_0x4d7fdf){const _0x51333d=_0x112d6b,{memberID:_0x198694}=_0x4d7fdf[_0x51333d(0x333)],_0x34fa60=this[_0x51333d(0x252)];_0x34fa60[_0x51333d(0x380)](_0x198694),this[_0x51333d(0x385)]['next'](_0x34fa60);}[_0x112d6b(0x3cb)](){const _0x3942e4=_0x112d6b;var _0x202e74;if(this[_0x3942e4(0x20f)]=!0x0,((_0x202e74=this[_0x3942e4(0x379)]['getFocusedUnit']())==null?void 0x0:_0x202e74['getUnitId']())!==this[_0x3942e4(0x31e)])return;const _0x42fc35=this[_0x3942e4(0x38e)][_0x3942e4(0x3a3)](W[_0x3942e4(0x299)])[_0x3942e4(0x388)]();Array[_0x3942e4(0x1f4)](_0x42fc35)&&_0x42fc35[_0x3942e4(0x298)]>0x0&&this[_0x3942e4(0x2e6)](_0x42fc35);}[_0x112d6b(0x17c)](){const _0x5a7366=_0x112d6b;this[_0x5a7366(0x20f)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a['Injector'])),L(0x3,a[_0x112d6b(0x17f)](me)),L(0x4,a['Inject'](u[_0x112d6b(0x354)])),L(0x5,a[_0x112d6b(0x17f)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x112d6b(0x331)]),L(0x8,a[_0x112d6b(0x1fe)])],fe);function _0x4987(_0x359eb3,_0x19bc4c){const _0xde0e4c=_0xde0e();return _0x4987=function(_0x4987e0,_0x45fda1){_0x4987e0=_0x4987e0-0x164;let _0x5f189b=_0xde0e4c[_0x4987e0];return _0x5f189b;},_0x4987(_0x359eb3,_0x19bc4c);}var st=Object[_0x112d6b(0x376)],it=(_0x1a7e84,_0x4f4f59,_0x25bb26,_0x1581b5)=>{const _0x5f10ae=_0x112d6b;for(var _0x23b150=_0x1581b5>0x1?void 0x0:_0x1581b5?st(_0x4f4f59,_0x25bb26):_0x4f4f59,_0x1548d2=_0x1a7e84[_0x5f10ae(0x298)]-0x1,_0x20f600;_0x1548d2>=0x0;_0x1548d2--)(_0x20f600=_0x1a7e84[_0x1548d2])&&(_0x23b150=_0x20f600(_0x23b150)||_0x23b150);return _0x23b150;},A=(_0x49626e,_0x3ba5b1)=>(_0x59dd16,_0x5249a3)=>_0x3ba5b1(_0x59dd16,_0x5249a3,_0x49626e);const nt=0x12c,rt=0x64,ot=()=>{let _0x2bfe83=[],_0x227f40=!0x1;return _0x635c51=>{_0x2bfe83['push'](_0x635c51),_0x227f40||(_0x227f40=!0x0,setTimeout(()=>{const _0x4ac688=_0x4987;_0x2bfe83[_0x4ac688(0x263)](_0x280458=>_0x280458()),_0x2bfe83=[],_0x227f40=!0x1;}));};};let Se=class extends a[_0x112d6b(0x2b7)]{constructor(_0x49e7af,_0x26b178,_0xf2c2f3,_0x5e7fb1,_0x1e2053,_0x1270c1,_0x4b83a9,_0x243bfb){const _0x1dfb13=_0x112d6b;super(),h(this,_0x1dfb13(0x20f),!0x1),h(this,'_init',!0x1),h(this,_0x1dfb13(0x385),new d[(_0x1dfb13(0x340))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x1dfb13(0x314)]()),h(this,_0x1dfb13(0x2b5),new d[(_0x1dfb13(0x340))]([])),h(this,_0x1dfb13(0x247),this[_0x1dfb13(0x2b5)][_0x1dfb13(0x2ff)](d[_0x1dfb13(0x274)](nt))),h(this,_0x1dfb13(0x2e6),a['debounce']((_0x55ea29,_0x2debee)=>{const _0x2a4f56=_0x1dfb13,_0x4ea1cf={'eventID':m[_0x2a4f56(0x1f0)][_0x2a4f56(0x386)],'data':{'unitID':this[_0x2a4f56(0x31e)],'memberID':this[_0x2a4f56(0x235)][_0x2a4f56(0x26d)](),'selection':Ee[_0x2a4f56(0x16b)](_0x55ea29,_0x2debee['range'])}};this[_0x2a4f56(0x235)]['send'](_0x4ea1cf,this[_0x2a4f56(0x31e)]);},rt)),(this[_0x1dfb13(0x31e)]=_0x49e7af,this[_0x1dfb13(0x235)]=_0x26b178,this['_injector']=_0xf2c2f3,this[_0x1dfb13(0x1e0)]=_0x5e7fb1,this['_memberService']=_0x1e2053,this[_0x1dfb13(0x379)]=_0x1270c1,this['_commandService']=_0x4b83a9,this[_0x1dfb13(0x38f)]=_0x243bfb);}get[_0x112d6b(0x252)](){const _0x334eb2=_0x112d6b;return this[_0x334eb2(0x385)][_0x334eb2(0x16d)]();}get[_0x112d6b(0x229)](){const _0x3518de=_0x112d6b;return this[_0x3518de(0x2b5)][_0x3518de(0x16d)]();}['dispose'](){const _0x51da02=_0x112d6b;super[_0x51da02(0x29c)](),this['_cursorInfo$'][_0x51da02(0x2c8)](new Map()),this['_cursorInfo$'][_0x51da02(0x36b)](),this[_0x51da02(0x2b5)]['next']([]),this[_0x51da02(0x2b5)][_0x51da02(0x36b)]();}[_0x112d6b(0x1b1)](){const _0x36f8ab=_0x112d6b;this[_0x36f8ab(0x191)]||(this[_0x36f8ab(0x191)]=!0x0,this[_0x36f8ab(0x235)][_0x36f8ab(0x394)][_0x36f8ab(0x2ff)](d['takeUntil'](this[_0x36f8ab(0x295)]))[_0x36f8ab(0x28b)](_0x482ea5=>{const _0x20e30a=_0x36f8ab;_0x482ea5===u['SessionStatus'][_0x20e30a(0x2da)]?this[_0x20e30a(0x3cb)]():this[_0x20e30a(0x17c)]();}),this[_0x36f8ab(0x235)][_0x36f8ab(0x25d)][_0x36f8ab(0x2ff)](d[_0x36f8ab(0x293)](this[_0x36f8ab(0x295)]))['subscribe'](_0xee1994=>{const _0x4e12ac=_0x36f8ab,_0x33e255=_0xee1994[_0x4e12ac(0x260)];_0x33e255===m[_0x4e12ac(0x1f0)][_0x4e12ac(0x386)]&&this[_0x4e12ac(0x280)](_0xee1994),_0x33e255===m[_0x4e12ac(0x1f0)][_0x4e12ac(0x27a)]&&this[_0x4e12ac(0x32b)](_0xee1994);}),this[_0x36f8ab(0x3db)](),this[_0x36f8ab(0x204)](this['_commandService'][_0x36f8ab(0x2ed)](_0x2994f0=>{const _0x22194e=_0x36f8ab;if(this[_0x22194e(0x20f)]&&_0x2994f0['id']===g['SetSelectionsOperation']['id']&&_0x2994f0['params'][_0x22194e(0x36f)]===this[_0x22194e(0x31e)]){const _0x36a1cc=_0x2994f0['params'];this['_updateLocalCursor'](_0x36a1cc[_0x22194e(0x3a2)],_0x36a1cc[_0x22194e(0x2cd)][0x0]);}})));}[_0x112d6b(0x280)](_0x11aaab){const _0x401218=_0x112d6b;var _0x382cb3,_0x323297;const {memberID:_0x119434,selection:_0x32b88e}=_0x11aaab['data'],{sheetName:_0x229665,range:_0x2f425f}=Ee[_0x401218(0x389)](_0x32b88e),_0x28d599={'name':(_0x323297=(_0x382cb3=this['_memberService']['getMember'](this['unitID'],_0x119434))==null?void 0x0:_0x382cb3[_0x401218(0x1d3)])!=null?_0x323297:'Unknown\x20user','range':this['_getMergeRange'](_0x229665,_0x2f425f),'sheetID':_0x229665,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x119434),'selection':_0x32b88e},_0x5b2e8e=this['cursorInfo'];_0x5b2e8e[_0x401218(0x3c6)](_0x119434,_0x28d599),this[_0x401218(0x385)][_0x401218(0x2c8)](_0x5b2e8e);}[_0x112d6b(0x32b)](_0x4ca1e3){const _0x478dc2=_0x112d6b,{memberID:_0x568e7f}=_0x4ca1e3[_0x478dc2(0x333)],_0x500fff=this[_0x478dc2(0x252)];_0x500fff['delete'](_0x568e7f),this[_0x478dc2(0x385)][_0x478dc2(0x2c8)](_0x500fff);}[_0x112d6b(0x180)](_0x561366,_0x5b66f8){const _0x18e2a1=_0x112d6b;var _0x314fc5,_0x38c707;const _0xeb2072=(_0x38c707=(_0x314fc5=this[_0x18e2a1(0x379)][_0x18e2a1(0x238)](this[_0x18e2a1(0x31e)]))==null?void 0x0:_0x314fc5[_0x18e2a1(0x2ec)](_0x561366))==null?void 0x0:_0x38c707[_0x18e2a1(0x38c)]();return(_0xeb2072==null?void 0x0:_0xeb2072[_0x18e2a1(0x2f3)](_0x5bf07f=>a[_0x18e2a1(0x1da)][_0x18e2a1(0x2d0)](_0x5bf07f,_0x5b66f8)))||_0x5b66f8;}[_0x112d6b(0x3db)](){const _0x760708=_0x112d6b,_0x34ca59=new a['DisposableCollection'](),_0x1c818e=ot(),_0x252cd1=()=>{const _0x15eb6b=_0x4987;_0x34ca59[_0x15eb6b(0x29c)]();const _0x2c7af2=(_0x47dbdf,_0x3cf58b,_0x3054fe,_0x10c811)=>{const _0x42d375=_0x15eb6b;let _0x29a98d=[];switch(_0x47dbdf['id']){case g[_0x42d375(0x22c)][_0x42d375(0x1c6)]:{_0x29a98d=g['handleDeleteRangeMoveLeft'](_0x47dbdf,_0x10c811);break;}case g[_0x42d375(0x22c)][_0x42d375(0x319)]:{_0x29a98d=g[_0x42d375(0x2e0)](_0x47dbdf,_0x10c811);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x29a98d=g['handleInsertCol'](_0x47dbdf,_0x10c811);break;}case g[_0x42d375(0x22c)][_0x42d375(0x357)]:{_0x29a98d=g[_0x42d375(0x2a0)](_0x47dbdf,_0x10c811);break;}case g[_0x42d375(0x22c)][_0x42d375(0x2ba)]:{_0x29a98d=g['handleInsertRangeMoveRight'](_0x47dbdf,_0x10c811);break;}case g[_0x42d375(0x22c)]['InsertRowCommandId']:{_0x29a98d=g[_0x42d375(0x218)](_0x47dbdf,_0x10c811);break;}case g[_0x42d375(0x22c)][_0x42d375(0x2d4)]:{_0x29a98d=g[_0x42d375(0x32a)](_0x47dbdf,_0x10c811);break;}case g[_0x42d375(0x22c)][_0x42d375(0x3cf)]:{_0x29a98d=g['handleIRemoveCol'](_0x47dbdf,_0x10c811);break;}case g[_0x42d375(0x22c)][_0x42d375(0x31c)]:{_0x29a98d=g[_0x42d375(0x2ee)](_0x47dbdf,_0x10c811);break;}}const _0x51f89d=g[_0x42d375(0x322)](_0x29a98d,_0x10c811),_0x104e00=this[_0x42d375(0x252)][_0x42d375(0x3a3)](_0x3cf58b);if(_0x104e00&&_0x51f89d){const _0x271d93={..._0x104e00,'range':_0x51f89d};this[_0x42d375(0x252)]['set'](_0x3cf58b,_0x271d93),_0x1c818e(()=>{const _0x4a886d=_0x42d375,_0x3cb295=this[_0x4a886d(0x38f)][_0x4a886d(0x248)](_0x51f89d,_0x552db1=>(_0x3cb295[_0x4a886d(0x29c)](),_0x2c7af2(_0x552db1,_0x3cf58b,_0x3054fe,_0x51f89d)));_0x34ca59[_0x4a886d(0x32c)](_0x3cb295);});}return{'redos':[],'undos':[]};};this[_0x15eb6b(0x252)][_0x15eb6b(0x263)]((_0x1142f3,_0x3c41c3)=>{const _0x255a8b=_0x15eb6b,{range:_0x494a32,sheetID:_0x3dc26e}=_0x1142f3,_0x2f89cb=this[_0x255a8b(0x38f)]['registerRefRange'](_0x494a32,_0x417123=>(_0x2f89cb['dispose'](),_0x2c7af2(_0x417123,_0x3c41c3,_0x3dc26e,_0x494a32)));_0x34ca59['add'](_0x2f89cb);});};this['disposeWithMe'](a[_0x760708(0x226)](this[_0x760708(0x385)][_0x760708(0x28b)](()=>{_0x252cd1();})));}[_0x112d6b(0x3cb)](){const _0x786b09=_0x112d6b;var _0x75b283,_0x3ce25e;if(this[_0x786b09(0x20f)]=!0x0,((_0x75b283=this[_0x786b09(0x379)][_0x786b09(0x1ae)]())==null?void 0x0:_0x75b283[_0x786b09(0x237)]())!==this['unitID'])return;const _0x23c007=(_0x3ce25e=this['_injector'][_0x786b09(0x3a3)](g[_0x786b09(0x3d9)])[_0x786b09(0x3c3)]())==null?void 0x0:_0x3ce25e[0x0],_0x5daa83=this[_0x786b09(0x379)][_0x786b09(0x2f5)](a[_0x786b09(0x1af)]['UNIVER_SHEET'])[_0x786b09(0x255)]();_0x23c007&&_0x5daa83&&this[_0x786b09(0x2e6)](_0x5daa83[_0x786b09(0x31a)](),_0x23c007);}[_0x112d6b(0x17c)](){const _0x47507f=_0x112d6b;this[_0x47507f(0x20f)]=!0x1;}};Se=it([A(0x2,a[_0x112d6b(0x17f)](a['Injector'])),A(0x3,a[_0x112d6b(0x17f)](me)),A(0x4,a['Inject'](u[_0x112d6b(0x354)])),A(0x5,a[_0x112d6b(0x331)]),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g[_0x112d6b(0x28c)]))],Se);var at=Object[_0x112d6b(0x376)],ct=(_0x37ab4a,_0x4e90d4,_0x178287,_0x4c2cf6)=>{for(var _0xf91ab4=_0x4c2cf6>0x1?void 0x0:_0x4c2cf6?at(_0x4e90d4,_0x178287):_0x4e90d4,_0x4098b5=_0x37ab4a['length']-0x1,_0x3fabc0;_0x4098b5>=0x0;_0x4098b5--)(_0x3fabc0=_0x37ab4a[_0x4098b5])&&(_0xf91ab4=_0x3fabc0(_0xf91ab4)||_0xf91ab4);return _0xf91ab4;},ie=(_0x251559,_0x119ac7)=>(_0x67e41c,_0x227e31)=>_0x119ac7(_0x67e41c,_0x227e31,_0x251559);let x=class extends a['RxDisposable']{constructor(_0x57a49a,_0x123b5d,_0x29be01){const _0x1056b7=_0x112d6b;super(),h(this,_0x1056b7(0x3a6),new Map()),h(this,_0x1056b7(0x308),new d[(_0x1056b7(0x1db))]()),(this[_0x1056b7(0x379)]=_0x57a49a,this['_injector']=_0x123b5d,this['_collabSessionService']=_0x29be01,this[_0x1056b7(0x191)]());}[_0x112d6b(0x29c)](){const _0x5bacbb=_0x112d6b;super[_0x5bacbb(0x29c)](),this[_0x5bacbb(0x308)][_0x5bacbb(0x36b)](),this[_0x5bacbb(0x3a6)][_0x5bacbb(0x263)](_0x427170=>_0x427170[_0x5bacbb(0x29c)]());}['getCollabCursors$'](_0x216285){const _0x2efcce=_0x112d6b;return this['_entities'][_0x2efcce(0x377)](_0x216285)?this[_0x2efcce(0x3a6)]['get'](_0x216285)[_0x2efcce(0x2d2)]:this[_0x2efcce(0x308)]['pipe'](d['filter'](_0x5e61b1=>_0x5e61b1[_0x2efcce(0x31e)]===_0x216285),d[_0x2efcce(0x326)](_0x16b1a7=>_0x16b1a7[_0x2efcce(0x2d2)]));}['_init'](){const _0x27ec69=_0x112d6b;this[_0x27ec69(0x379)][_0x27ec69(0x194)](a[_0x27ec69(0x1af)][_0x27ec69(0x2a8)])[_0x27ec69(0x2ff)](d[_0x27ec69(0x293)](this['dispose$']))[_0x27ec69(0x28b)](async _0x34632d=>{const _0x58dd08=_0x27ec69,_0x3390a9=_0x34632d[_0x58dd08(0x237)](),_0x2d43a4=await this[_0x58dd08(0x2ab)](_0x3390a9);this[_0x58dd08(0x308)][_0x58dd08(0x2c8)](_0x2d43a4),this[_0x58dd08(0x3a6)][_0x58dd08(0x3c6)](_0x3390a9,_0x2d43a4);}),this['_univerInstanceService'][_0x27ec69(0x194)](a[_0x27ec69(0x1af)][_0x27ec69(0x3d0)])[_0x27ec69(0x2ff)](d['takeUntil'](this[_0x27ec69(0x295)]))[_0x27ec69(0x2ff)](d['filter'](_0x1f45f9=>!_0x1f45f9[_0x27ec69(0x237)]()['startsWith']('__')))[_0x27ec69(0x28b)](async _0x54bf82=>{const _0x508852=_0x27ec69,_0xa8f186=_0x54bf82[_0x508852(0x237)](),_0x20d6c8=await this[_0x508852(0x211)](_0xa8f186);this[_0x508852(0x308)][_0x508852(0x2c8)](_0x20d6c8),this['_entities'][_0x508852(0x3c6)](_0xa8f186,_0x20d6c8);}),d[_0x27ec69(0x2b4)](this[_0x27ec69(0x379)][_0x27ec69(0x166)](a[_0x27ec69(0x1af)][_0x27ec69(0x3d0)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x27ec69(0x1af)][_0x27ec69(0x2a8)]))[_0x27ec69(0x2ff)](d['takeUntil'](this[_0x27ec69(0x295)]))[_0x27ec69(0x28b)](_0x11e637=>{const _0x4be0c5=_0x27ec69,_0x4fc5df=_0x11e637[_0x4be0c5(0x237)](),_0x276cce=this['_entities']['get'](_0x4fc5df);_0x276cce&&(_0x276cce[_0x4be0c5(0x29c)](),this[_0x4be0c5(0x3a6)][_0x4be0c5(0x380)](_0x4fc5df));});}async['_startSheetCollabCursor'](_0x52daea){const _0x5a521a=_0x112d6b,_0x374a88=await this['_collabSessionService'][_0x5a521a(0x300)](_0x52daea),_0x6efd95=this['_injector'][_0x5a521a(0x2a5)](Se,_0x52daea,_0x374a88);return _0x6efd95[_0x5a521a(0x1b1)](),_0x6efd95;}async[_0x112d6b(0x211)](_0x28a35d){const _0x191e84=_0x112d6b,_0x4de17b=await this['_collabSessionService']['requireSession'](_0x28a35d),_0x50bcd4=this[_0x191e84(0x38e)][_0x191e84(0x2a5)](fe,_0x28a35d,_0x4de17b);return _0x50bcd4[_0x191e84(0x1b1)](),_0x50bcd4;}};x=ct([ie(0x0,a[_0x112d6b(0x331)]),ie(0x1,a[_0x112d6b(0x17f)](a[_0x112d6b(0x291)])),ie(0x2,a[_0x112d6b(0x17f)](u[_0x112d6b(0x16a)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x22c44d,_0x53981e){const _0x468618=_0x112d6b;let {radius:_0x5cde7c,width:_0x5698a1,height:_0x464af8}=_0x53981e;_0x5cde7c=_0x5cde7c!=null?_0x5cde7c:0x0,_0x5698a1=_0x5698a1!=null?_0x5698a1:0x1e,_0x464af8=_0x464af8!=null?_0x464af8:0x1e;let _0x554f21=0x0,_0x3ce92e=0x0,_0x1553cc=0x0;_0x554f21=_0x3ce92e=_0x1553cc=Math[_0x468618(0x17e)](_0x5cde7c,_0x5698a1/0x2,_0x464af8/0x2),_0x22c44d[_0x468618(0x2ca)](),_0x22c44d['moveTo'](_0x554f21,0x0),_0x22c44d[_0x468618(0x259)](_0x5698a1-_0x3ce92e,0x0),_0x22c44d[_0x468618(0x3a1)](_0x5698a1-_0x3ce92e,_0x3ce92e,_0x3ce92e,Math['PI']*0x3/0x2,0x0,!0x1),_0x22c44d[_0x468618(0x259)](_0x5698a1,_0x464af8-_0x1553cc),_0x22c44d[_0x468618(0x3a1)](_0x5698a1-_0x1553cc,_0x464af8-_0x1553cc,_0x1553cc,0x0,Math['PI']/0x2,!0x1),_0x22c44d[_0x468618(0x259)](0x0,_0x464af8),_0x22c44d[_0x468618(0x259)](0x0,_0x554f21),_0x22c44d[_0x468618(0x3a1)](_0x554f21,_0x554f21,_0x554f21,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22c44d[_0x468618(0x170)](),_0x53981e[_0x468618(0x239)]&&(_0x22c44d['save'](),_0x22c44d[_0x468618(0x2a6)]=_0x53981e['fill'],_0x53981e[_0x468618(0x1ca)]===_0x468618(0x18a)?_0x22c44d[_0x468618(0x239)]('evenodd'):_0x22c44d[_0x468618(0x239)](),_0x22c44d[_0x468618(0x26c)]());}class ee extends p['Shape']{constructor(_0x23f27a,_0x5ea14d){const _0x18f3e8=_0x112d6b;super(_0x23f27a,_0x5ea14d),h(this,_0x18f3e8(0x3de)),h(this,_0x18f3e8(0x36e)),(this['color']=_0x5ea14d==null?void 0x0:_0x5ea14d[_0x18f3e8(0x3de)],this[_0x18f3e8(0x36e)]=_0x5ea14d==null?void 0x0:_0x5ea14d[_0x18f3e8(0x36e)]);}static[_0x112d6b(0x1b0)](_0x38ebf1,_0x29b166){const _0x1cf1f9=_0x112d6b,{text:_0x38841c,color:_0x443dbb}=_0x29b166;_0x38ebf1[_0x1cf1f9(0x312)](),_0x38ebf1[_0x1cf1f9(0x1dd)]=_0x1cf1f9(0x2d9);const _0x470661=_0x38ebf1[_0x1cf1f9(0x294)](_0x38841c)[_0x1cf1f9(0x246)],_0x5f39f9=Math[_0x1cf1f9(0x17e)](_0x470661+0x2*ne,Re);_t(_0x38ebf1,{'height':q,'radius':0x4,'width':_0x5f39f9,'fill':_0x443dbb}),_0x38ebf1['fillStyle']=_0x1cf1f9(0x1fb);const _0x574f9c=ne,_0x20b01c=q-lt,_0x1a5f16=Re-0x2*ne;if(_0x470661>_0x1a5f16){let _0x5bb4f5='',_0x2b1de0=0x0;for(const _0x488812 of _0x38841c){const _0x2b54f0=_0x38ebf1[_0x1cf1f9(0x294)](_0x488812)[_0x1cf1f9(0x246)];if(_0x2b1de0+_0x2b54f0<=_0x1a5f16-_0x38ebf1[_0x1cf1f9(0x294)](_0x1cf1f9(0x1f5))['width'])_0x5bb4f5+=_0x488812,_0x2b1de0+=_0x2b54f0;else{_0x5bb4f5+=_0x1cf1f9(0x1f5);break;}}_0x38ebf1['fillText'](_0x5bb4f5,_0x574f9c,_0x20b01c);}else _0x38ebf1[_0x1cf1f9(0x352)](_0x38841c,_0x574f9c,_0x20b01c);_0x38ebf1[_0x1cf1f9(0x26c)]();}[_0x112d6b(0x38d)](_0x1c3d35){const _0x56e529=_0x112d6b;ee[_0x56e529(0x1b0)](_0x1c3d35,this);}}const re=_0x112d6b(0x2ae),ht=_0x112d6b(0x3c8),ut=_0x112d6b(0x3a8),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x240f8f,_0x267c97,_0x50e1b8,_0x2fd4bf){const _0x34b812=_0x112d6b;h(this,_0x34b812(0x1f7),[]),h(this,_0x34b812(0x26f),null),h(this,_0x34b812(0x359),null),h(this,_0x34b812(0x27d),null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this[_0x34b812(0x2f4)]=_0x240f8f,this[_0x34b812(0x3dd)]=_0x267c97,this['_docSkeleton']=_0x50e1b8,this[_0x34b812(0x2e7)]=_0x2fd4bf,this['_render']());}set[_0x112d6b(0x192)](_0x4c4038){const _0x1e9be7=_0x112d6b;_0x4c4038?(this[_0x1e9be7(0x27d)]&&this['_anchorDot']['hide'](),this[_0x1e9be7(0x359)]&&this[_0x1e9be7(0x359)][_0x1e9be7(0x398)]()):(this[_0x1e9be7(0x27d)]&&this['_anchorDot'][_0x1e9be7(0x398)](),this['_textBubble']&&this[_0x1e9be7(0x359)]['hide']());}[_0x112d6b(0x29c)](){const _0x25af24=_0x112d6b;for(const _0x5ed2e3 of this[_0x25af24(0x1f7)])_0x5ed2e3['dispose']();this[_0x25af24(0x359)]&&this[_0x25af24(0x359)][_0x25af24(0x29c)](),this[_0x25af24(0x27d)]&&this[_0x25af24(0x27d)][_0x25af24(0x29c)](),this[_0x25af24(0x26f)]&&this[_0x25af24(0x26f)][_0x25af24(0x29c)](),this[_0x25af24(0x3af)]&&this[_0x25af24(0x3af)]();}[_0x112d6b(0x1d9)](){const _0x1b879b=_0x112d6b;var _0x66d74e;const {_docSkeleton:_0x10f1c4,_document:_0x152e13}=this,{color:_0x2b66ff,name:_0x415cda,ranges:_0x35a23a}=this[_0x1b879b(0x2f4)],_0x318ae4=_0x152e13['getOffsetConfig'](),{docsLeft:_0x265552,docsTop:_0x4392c4}=_0x318ae4,_0x3c8df1=new b['NodePositionConvertToCursor'](_0x318ae4,_0x10f1c4);for(const {startOffset:_0x1ac3af,endOffset:_0x48e97c,rangeType:_0x7c99b5,segmentId:_0x4b90a6,segmentPage:_0x3c08e2,collapsed:_0x3ef462,isActive:_0x4108f8}of _0x35a23a){const _0x158cb=_0x10f1c4['findNodePositionByCharIndex'](_0x1ac3af,!0x0,_0x4b90a6,_0x3c08e2);let _0x4370ab=_0x10f1c4[_0x1b879b(0x18d)](_0x48e97c,!0x0,_0x4b90a6,_0x3c08e2);if(_0x4370ab==null&&(_0x4370ab=_0x10f1c4[_0x1b879b(0x18d)](_0x48e97c-0x1,!0x1,_0x4b90a6,_0x3c08e2)),_0x4108f8){const {contentBoxPointGroup:_0x172a86}=_0x3c8df1['getRangePointData'](_0x4370ab,_0x4370ab);if(_0x172a86[_0x1b879b(0x298)]===0x0)continue;this['_drawAnchor'](_0x2b66ff,_0x172a86,_0x265552,_0x4392c4,_0x415cda),this[_0x1b879b(0x3af)]=this[_0x1b879b(0x256)]();}if(_0x158cb&&_0x4370ab){if(_0x7c99b5===a['DOC_RANGE_TYPE']['RECT']){const _0x1f82ff=new b[(_0x1b879b(0x3b7))](_0x318ae4,_0x10f1c4),{pointGroup:_0x1aa8a7}=(_0x66d74e=_0x1f82ff['getRangePointData'](_0x158cb,_0x4370ab))!=null?_0x66d74e:{};if(_0x1aa8a7==null||_0x1aa8a7[_0x1b879b(0x298)]===0x0)continue;this[_0x1b879b(0x1fc)](_0x2b66ff,_0x1aa8a7,_0x265552,_0x4392c4);}else{if(!_0x3ef462){const {borderBoxPointGroup:_0x2abf1a}=_0x3c8df1[_0x1b879b(0x320)](_0x158cb,_0x4370ab);if(_0x2abf1a['length']===0x0)continue;this['_drawTextRange'](_0x2b66ff,_0x2abf1a,_0x265552,_0x4392c4);}}}}}[_0x112d6b(0x224)](_0x5a04a5,_0x2304f7,_0x47f789,_0x36981f,_0xb62287){const _0x625954=_0x112d6b,_0xaaf35b=this['_getAnchorBounding'](_0x2304f7),{left:_0x4c0c11,top:_0x4bc74a,height:_0x12690c}=_0xaaf35b,_0x14283f=this[_0x625954(0x287)](),_0x222326=ft/_0x14283f,_0x174123=new p[(_0x625954(0x25e))](re+a['Tools'][_0x625954(0x1f6)](k),{'left':_0x4c0c11+_0x47f789-_0x222326,'top':_0x4bc74a+_0x36981f,'height':_0x12690c,'width':dt,'fill':_0x5a04a5||p[_0x625954(0x34a)](a['COLORS']['black'],0x0),'strokeWidth':_0x222326,'stroke':St,'evented':!0x0});this['_anchor']=_0x174123,this[_0x625954(0x3dd)][_0x625954(0x24e)](_0x174123,b['TEXT_RANGE_LAYER_INDEX']);const _0x1934d2=new p[(_0x625954(0x25e))](re+a['Tools']['generateRandomId'](k),{'left':_0x4c0c11+_0x47f789-_0x222326,'top':_0x4bc74a+_0x36981f-oe/0x2,'height':oe,'width':oe,'fill':_0x5a04a5||p['getColor'](a[_0x625954(0x1a1)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5a04a5||p[_0x625954(0x34a)](a[_0x625954(0x1a1)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x1934d2,this['_scene'][_0x625954(0x24e)](_0x1934d2,b[_0x625954(0x241)]);const _0x3d94e0=new ee(re+a[_0x625954(0x36a)]['generateRandomId'](k),{'left':_0x4c0c11+_0x47f789-_0x222326,'top':_0x4bc74a+_0x36981f-q,'text':_0xb62287,'color':_0x5a04a5});this[_0x625954(0x359)]=_0x3d94e0,this[_0x625954(0x3dd)]['addObject'](_0x3d94e0,b[_0x625954(0x241)]),this[_0x625954(0x192)]=!0x1;}['_handleHover'](){const _0x9fc026=_0x112d6b,_0x4d5b4c=this['_anchor'][_0x9fc026(0x1a5)]['subscribeEvent'](()=>{const _0x5aa021=_0x9fc026;this[_0x5aa021(0x192)]=!0x0;}),_0x506f7f=this[_0x9fc026(0x26f)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x56f17b=_0x9fc026;this[_0x56f17b(0x1c0)]&&clearTimeout(this['_hideTimer']),this[_0x56f17b(0x1c0)]=setTimeout(()=>{const _0x13843f=_0x56f17b;this[_0x13843f(0x192)]=!0x1;},0x7d0);});return()=>{const _0x42a8c4=_0x9fc026;_0x4d5b4c[_0x42a8c4(0x2b6)](),_0x506f7f['unsubscribe']();};}[_0x112d6b(0x183)](_0x58a9dc,_0xd0acd2,_0x55c6e9,_0x4eb4f6){const _0x6f29d4=_0x112d6b,_0xa23f72=new a[(_0x6f29d4(0x37f))](_0x58a9dc)[_0x6f29d4(0x2fb)](0.2)[_0x6f29d4(0x283)](),_0xb948d4=new p[(_0x6f29d4(0x232))](ht+a[_0x6f29d4(0x36a)][_0x6f29d4(0x1f6)](k),{'pointsGroup':_0xd0acd2,'fill':_0xa23f72||p[_0x6f29d4(0x34a)](a[_0x6f29d4(0x1a1)][_0x6f29d4(0x275)],0.2),'left':_0x55c6e9,'top':_0x4eb4f6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6f29d4(0x1f7)][_0x6f29d4(0x344)](_0xb948d4),this['_scene'][_0x6f29d4(0x24e)](_0xb948d4,b['TEXT_RANGE_LAYER_INDEX']);}[_0x112d6b(0x1fc)](_0x4fa044,_0x387fef,_0x219ca3,_0x20091f){const _0x3401b0=_0x112d6b,_0x5d8c7e=new a[(_0x3401b0(0x37f))](_0x4fa044)[_0x3401b0(0x2fb)](0.2)[_0x3401b0(0x283)](),_0x575599=new p[(_0x3401b0(0x232))](ut+a[_0x3401b0(0x36a)][_0x3401b0(0x1f6)](k),{'pointsGroup':_0x387fef,'fill':_0x5d8c7e||p[_0x3401b0(0x34a)](a['COLORS'][_0x3401b0(0x275)],0.2),'left':_0x219ca3,'top':_0x20091f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3401b0(0x1f7)][_0x3401b0(0x344)](_0x575599),this[_0x3401b0(0x3dd)]['addObject'](_0x575599,b[_0x3401b0(0x241)]);}[_0x112d6b(0x3d8)](_0x560118){const _0x28c4a3=_0x560118[0x0],_0x5ee77d=_0x28c4a3[0x0],_0x338edb=_0x28c4a3[0x2],{x:_0x21fc3b,y:_0x4ff1ba}=_0x5ee77d,{x:_0x347112,y:_0x17385c}=_0x338edb;return{'left':_0x21fc3b,'top':_0x4ff1ba,'width':_0x347112-_0x21fc3b,'height':_0x17385c-_0x4ff1ba};}[_0x112d6b(0x287)](){const _0x2b5ceb=_0x112d6b,{scaleX:_0x47981f,scaleY:_0x228c1c}=this[_0x2b5ceb(0x3dd)][_0x2b5ceb(0x2df)]();return Math['max'](_0x47981f,_0x228c1c);}}var It=Object[_0x112d6b(0x376)],vt=(_0x299608,_0x153b37,_0x2bc166,_0xced34a)=>{for(var _0x1f0bbb=_0xced34a>0x1?void 0x0:_0xced34a?It(_0x153b37,_0x2bc166):_0x153b37,_0x48abe3=_0x299608['length']-0x1,_0x6cb6b9;_0x48abe3>=0x0;_0x48abe3--)(_0x6cb6b9=_0x299608[_0x48abe3])&&(_0x1f0bbb=_0x6cb6b9(_0x1f0bbb)||_0x1f0bbb);return _0x1f0bbb;},Y=(_0x58b317,_0x3e3bc2)=>(_0x2e73e9,_0xa342e7)=>_0x3e3bc2(_0x2e73e9,_0xa342e7,_0x58b317);let Ie=class extends a['RxDisposable']{constructor(_0x52a0da,_0x588583,_0x533d56,_0x3757a0,_0x4c11f8){const _0x28099e=_0x112d6b;super(),h(this,_0x28099e(0x1c5),[]),h(this,_0x28099e(0x3c0),[]),(this['_context']=_0x52a0da,this[_0x28099e(0x2b2)]=_0x588583,this[_0x28099e(0x16c)]=_0x533d56,this[_0x28099e(0x208)]=_0x3757a0,this[_0x28099e(0x24a)]=_0x4c11f8,this[_0x28099e(0x191)]());}[_0x112d6b(0x191)](){const _0x7ecedd=_0x112d6b,_0x43ef40=this[_0x7ecedd(0x1dc)][_0x7ecedd(0x36f)],_0x2bdfdc=this[_0x7ecedd(0x2b2)];this[_0x7ecedd(0x204)](d[_0x7ecedd(0x384)]([this[_0x7ecedd(0x16c)][_0x7ecedd(0x268)](_0x43ef40),this['_themeService'][_0x7ecedd(0x289)]])[_0x7ecedd(0x2ff)]($[_0x7ecedd(0x305)](([_0x179bd1,_0x628222])=>({'skeleton':_0x2bdfdc[_0x7ecedd(0x197)](),'cursors':[..._0x179bd1[_0x7ecedd(0x372)]()][_0x7ecedd(0x2d5)](_0x2e8cc2=>({..._0x2e8cc2,'color':_0x628222[_0x2e8cc2['color']]}))})))[_0x7ecedd(0x28b)](_0x2dfdb4=>{const _0x1d90c3=_0x7ecedd;if(this[_0x1d90c3(0x19e)](),_0x2dfdb4){const {skeleton:_0x11e6fd,cursors:_0x46f9e6}=_0x2dfdb4;this[_0x1d90c3(0x2ea)](_0x11e6fd,_0x46f9e6);}})),this['_initResize'](),this[_0x7ecedd(0x3d5)]();}[_0x112d6b(0x2ea)](_0x30302f,_0x11c362){const _0x521e4d=_0x112d6b,{scene:_0x33a73e,mainComponent:_0xc2d1a8}=this[_0x521e4d(0x1dc)],_0xc154a5=_0x11c362[_0x521e4d(0x305)](_0xb03b4f=>new De(_0xb03b4f,_0x33a73e,_0x30302f,_0xc2d1a8));this[_0x521e4d(0x1c5)]=_0xc154a5,this[_0x521e4d(0x3c0)]=_0x11c362;}[_0x112d6b(0x205)](){const _0x535746=_0x112d6b;this[_0x535746(0x19e)]();const {scene:_0x241173,mainComponent:_0x5db67b}=this['_context'],_0x3512c9=this[_0x535746(0x2b2)][_0x535746(0x197)](),_0x326471=this[_0x535746(0x3c0)][_0x535746(0x305)](_0x22851e=>new De(_0x22851e,_0x241173,_0x3512c9,_0x5db67b));this[_0x535746(0x1c5)]=_0x326471;}[_0x112d6b(0x19e)](){const _0x342052=_0x112d6b;this[_0x342052(0x1c5)][_0x342052(0x263)](_0x34bac9=>_0x34bac9[_0x342052(0x29c)]()),this[_0x342052(0x1c5)]=[];}[_0x112d6b(0x3d5)](){const _0x1eff70=_0x112d6b,_0xbd28b8=[b['SetDocZoomRatioOperation']['id']];this[_0x1eff70(0x204)](this[_0x1eff70(0x208)][_0x1eff70(0x2ed)](_0x1adf18=>{const _0x213bdc=_0x1eff70;_0xbd28b8[_0x213bdc(0x327)](_0x1adf18['id'])&&_0x1adf18[_0x213bdc(0x2d1)][_0x213bdc(0x36f)]===this[_0x213bdc(0x1dc)][_0x213bdc(0x36f)]&&this[_0x213bdc(0x205)]();}));}['_initResize'](){const _0x3d4305=_0x112d6b;this[_0x3d4305(0x204)](a[_0x3d4305(0x1ab)](this['_context']['engine']['onTransformChange$'])[_0x3d4305(0x2ff)]($[_0x3d4305(0x172)](_0x56caa2=>_0x56caa2[_0x3d4305(0x181)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3d4305(0x167)]),$[_0x3d4305(0x1e1)](0x10))['subscribe'](()=>{const _0x18555c=_0x3d4305;this[_0x18555c(0x205)]();}));}};Ie=vt([Y(0x1,a[_0x112d6b(0x17f)](W[_0x112d6b(0x25f)])),Y(0x2,a[_0x112d6b(0x17f)](x)),Y(0x3,a[_0x112d6b(0x1fe)]),Y(0x4,a[_0x112d6b(0x17f)](a[_0x112d6b(0x23d)]))],Ie);const gt=0x1,mt=1.5;class we extends p[_0x112d6b(0x3d1)]{constructor(_0x222de9,_0x476c09){const _0x26bc2e=_0x112d6b;super(_0x222de9,_0x476c09),h(this,_0x26bc2e(0x2f1)),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x26bc2e(0x23f),''),h(this,_0x26bc2e(0x22f),_0x26bc2e(0x364)),h(this,'_backgroundColor'),(_0x476c09&&this['setShapeProps'](_0x476c09),this[_0x26bc2e(0x1a5)][_0x26bc2e(0x306)](()=>this[_0x26bc2e(0x3e0)]({'hovered':!0x0})),this[_0x26bc2e(0x3a0)][_0x26bc2e(0x306)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x112d6b(0x3e0)](_0x2f3c19){const _0x302307=_0x112d6b;var _0x476276,_0x23b09e,_0x3d2067,_0xb7aa2b,_0x346875,_0x402b50;this[_0x302307(0x2f1)]=(_0x476276=_0x2f3c19[_0x302307(0x3de)])!=null?_0x476276:this[_0x302307(0x2f1)],this['_hovered']=(_0x23b09e=_0x2f3c19[_0x302307(0x383)])!=null?_0x23b09e:this[_0x302307(0x395)],this[_0x302307(0x2a2)]=(_0x3d2067=_0x2f3c19[_0x302307(0x201)])!=null?_0x3d2067:this[_0x302307(0x2a2)],this[_0x302307(0x23f)]=(_0xb7aa2b=_0x2f3c19[_0x302307(0x1d3)])!=null?_0xb7aa2b:this['_name'],this[_0x302307(0x22f)]=(_0x346875=_0x2f3c19['labelPosition'])!=null?_0x346875:this['_labelPosition'],this['_backgroundColor']=(_0x402b50=_0x2f3c19['backgroundColor'])!=null?_0x402b50:this[_0x302307(0x2c7)],this['transformByState']({'width':_0x2f3c19[_0x302307(0x246)],'height':_0x2f3c19[_0x302307(0x3c4)]});}[_0x112d6b(0x24f)](_0x4eafeb){const _0x4f6b2d=_0x112d6b,{row:_0x1f1f1f,column:_0x4da71c}=_0x4eafeb;if(_0x1f1f1f>=this[_0x4f6b2d(0x2a2)]['startRow']&&_0x1f1f1f<=this[_0x4f6b2d(0x2a2)][_0x4f6b2d(0x2cc)]&&_0x4da71c>=this[_0x4f6b2d(0x2a2)][_0x4f6b2d(0x1b8)]&&_0x4da71c<=this['_range']['endColumn']){this[_0x4f6b2d(0x3e0)]({'hovered':!0x0});return;}this[_0x4f6b2d(0x3e0)]({'hovered':!0x1});}[_0x112d6b(0x3b0)](_0x534865){return!0x1;}[_0x112d6b(0x38d)](_0x5c3023){const _0x1bed54=_0x112d6b;p[_0x1bed54(0x25e)][_0x1bed54(0x1b0)](_0x5c3023,{'width':this[_0x1bed54(0x246)],'height':this[_0x1bed54(0x3c4)],'strokeWidth':mt,'stroke':this[_0x1bed54(0x2f1)],'evented':!0x1,'fill':this[_0x1bed54(0x2c7)]}),this['_hovered']&&(_0x5c3023[_0x1bed54(0x312)](),_0x5c3023[_0x1bed54(0x2bb)](0x1,0x0,0x0,0x1,this[_0x1bed54(0x246)],this[_0x1bed54(0x22f)]===_0x1bed54(0x30b)?0x0:-0x14),ee[_0x1bed54(0x1b0)](_0x5c3023,{'text':this[_0x1bed54(0x23f)],'color':this[_0x1bed54(0x2f1)]}),_0x5c3023[_0x1bed54(0x26c)]());}}var Ct=Object[_0x112d6b(0x376)],pt=(_0x4e7ebc,_0x3914a6,_0x205e9f,_0x1b7df5)=>{const _0x46cd71=_0x112d6b;for(var _0x21ec72=_0x1b7df5>0x1?void 0x0:_0x1b7df5?Ct(_0x3914a6,_0x205e9f):_0x3914a6,_0x2a6369=_0x4e7ebc[_0x46cd71(0x298)]-0x1,_0x5294ca;_0x2a6369>=0x0;_0x2a6369--)(_0x5294ca=_0x4e7ebc[_0x2a6369])&&(_0x21ec72=_0x5294ca(_0x21ec72)||_0x21ec72);return _0x21ec72;},ae=(_0x46fe73,_0x2190f6)=>(_0x52c7cd,_0x7ea81)=>_0x2190f6(_0x52c7cd,_0x7ea81,_0x46fe73);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x19c960,_0x4c4207,_0x4c0e0c,_0x40cfc6){const _0x329adc=_0x112d6b;super(),h(this,'_cursors',new Set()),h(this,_0x329adc(0x345),null),(this[_0x329adc(0x1dc)]=_0x19c960,this[_0x329adc(0x310)]=_0x4c4207,this[_0x329adc(0x16c)]=_0x4c0e0c,this[_0x329adc(0x24a)]=_0x40cfc6,this[_0x329adc(0x191)]());}[_0x112d6b(0x191)](){const _0x13de7c=_0x112d6b;this['_sheetSkeletonManagerService'][_0x13de7c(0x175)][_0x13de7c(0x2ff)]($['takeUntil'](this[_0x13de7c(0x295)]),$[_0x13de7c(0x326)](_0x547d16=>{const _0x1ec841=_0x13de7c;if(_0x547d16){const _0x2b4540=_0x547d16['sheetId'];return d['combineLatest'](this[_0x1ec841(0x16c)][_0x1ec841(0x268)](this['_context']['unitId']),this[_0x1ec841(0x24a)][_0x1ec841(0x289)])[_0x1ec841(0x2ff)]($[_0x1ec841(0x305)](([_0x1922db,_0x402193])=>{const _0x19dccd=_0x1ec841,_0x1d3662=new Map();return _0x1922db[_0x19dccd(0x263)]((_0x47f2b9,_0x3c0f9b)=>{const _0x466eb9=_0x19dccd;if(_0x47f2b9[_0x466eb9(0x174)]===_0x2b4540){const _0x1a3eab={..._0x47f2b9};_0x1a3eab[_0x466eb9(0x3de)]=_0x402193[_0x47f2b9[_0x466eb9(0x3de)]],_0x1d3662[_0x466eb9(0x3c6)](_0x3c0f9b,_0x1a3eab);}}),{'skeleton':_0x547d16,'cursors':_0x1d3662};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1f0ad5,cursors:_0x125c88})=>{const _0x254836=_0x13de7c;this[_0x254836(0x19e)](),_0x1f0ad5&&this[_0x254836(0x2ea)](_0x1f0ad5,_0x125c88);}),this['_sheetSkeletonManagerService'][_0x13de7c(0x175)][_0x13de7c(0x28b)](_0x518d5a=>{const _0xad5a2e=_0x13de7c;if(_0x518d5a==null)return;const {skeleton:_0x46e0da}=_0x518d5a,{scene:_0x56b600}=this[_0xad5a2e(0x1dc)];_0x56b600[_0xad5a2e(0x304)][_0xad5a2e(0x306)](a[_0xad5a2e(0x21a)](_0x4e2b76=>{const _0x52e533=_0xad5a2e;var _0x55db51,_0x2c02f3;const {offsetX:_0x209178,offsetY:_0x1c60c6}=_0x4e2b76,{x:_0x169c4,y:_0x5e899b}=_0x56b600[_0x52e533(0x2ac)](p[_0x52e533(0x1b9)][_0x52e533(0x1ee)]([_0x209178,_0x1c60c6])),{scaleX:_0x10897c,scaleY:_0x2d6a70}=_0x56b600[_0x52e533(0x2df)](),_0x33487b=_0x56b600[_0x52e533(0x21f)](p[_0x52e533(0x1bf)]['VIEW_MAIN']),_0x494474=_0x56b600['getVpScrollXYInfoByPosToVp'](p['Vector2']['FromArray']([_0x169c4,_0x5e899b]),_0x33487b),_0x126093=_0x46e0da[_0x52e533(0x37c)](_0x209178,_0x1c60c6,_0x10897c,_0x2d6a70,_0x494474);((_0x55db51=this[_0x52e533(0x345)])==null?void 0x0:_0x55db51[_0x52e533(0x1aa)])===_0x126093[_0x52e533(0x1aa)]&&((_0x2c02f3=this[_0x52e533(0x345)])==null?void 0x0:_0x2c02f3['row'])===_0x126093[_0x52e533(0x2b0)]||this[_0x52e533(0x3c0)][_0x52e533(0x263)](_0xd558c8=>{_0xd558c8['onMouseMove'](_0x126093);});},0x64));});}[_0x112d6b(0x2ea)](_0x52a0c7,_0x3aebc6){const _0x222dae=_0x112d6b;var _0x37f0c2;const _0x468e2e=(_0x37f0c2=this[_0x222dae(0x310)]['getCurrent']())==null?void 0x0:_0x37f0c2[_0x222dae(0x307)];if(!_0x468e2e)return;const _0x5dd957=this[_0x222dae(0x33e)]();if(!_0x5dd957)return;this['_cursors'][_0x222dae(0x263)](_0x56f489=>{const _0x1a8ac8=_0x222dae;_0x56f489[_0x1a8ac8(0x2e1)]();});const {scene:_0x33357c}=_0x5dd957,_0x2a339a=Et(Array[_0x222dae(0x382)](_0x3aebc6[_0x222dae(0x372)]()))[_0x222dae(0x305)](_0x27d2e5=>{const _0x227d3a=_0x222dae,{color:_0x467846,range:_0x3a5ef0,name:_0x42c3f4,selection:_0x1f3551,sheetID:_0x497c70}=_0x27d2e5,{startColumn:_0x2b5ff1,startRow:_0x43bbfc,endColumn:_0x154d17,endRow:_0x4df654}=_0x3a5ef0,_0x7b0cd7=X[_0x227d3a(0x1ac)](_0x43bbfc,_0x2b5ff1,_0x33357c,_0x468e2e),_0x28b68a=X[_0x227d3a(0x1ac)](_0x4df654,_0x154d17,_0x33357c,_0x468e2e),{columnHeaderHeightAndMarginTop:_0x48dca7}=_0x468e2e,{startX:_0x409de3,startY:_0x1c8d77}=_0x7b0cd7,{endX:_0x4d6c65,endY:_0x311c6b}=_0x28b68a,_0x45178f=_0x4d6c65-_0x409de3,_0x20eb6f=_0x311c6b-_0x1c8d77,_0x12d52b={'labelPosition':_0x1c8d77-_0x48dca7>=q?_0x227d3a(0x364):_0x227d3a(0x30b),'sheetID':_0x497c70,'range':_0x3a5ef0,'color':_0x467846,'name':_0x42c3f4,'selection':_0x1f3551,'left':_0x409de3,'top':_0x1c8d77,'width':_0x45178f,'height':_0x20eb6f,'evented':!0x1,'zIndex':bt};return new we(_0x42c3f4,_0x12d52b);});_0x33357c['addObjects'](_0x2a339a,gt),this[_0x222dae(0x3c0)]=new Set(_0x2a339a);}[_0x112d6b(0x19e)](){const _0x23913d=_0x112d6b;var _0x4eb10c;(_0x4eb10c=this['_cursors'])==null||_0x4eb10c[_0x23913d(0x263)](_0x1ffa04=>_0x1ffa04['dispose']());}[_0x112d6b(0x33e)](){const _0x29b47a=_0x112d6b;return X[_0x29b47a(0x2ad)](this[_0x29b47a(0x1dc)][_0x29b47a(0x399)],this['_context']);}};ve=pt([ae(0x1,a[_0x112d6b(0x17f)](X[_0x112d6b(0x301)])),ae(0x2,a[_0x112d6b(0x17f)](x)),ae(0x3,a[_0x112d6b(0x17f)](a[_0x112d6b(0x23d)]))],ve);function Et(_0x3beacf){const _0x4be9cd=_0x112d6b,_0x3ad4f7=new Map();return _0x3beacf[_0x4be9cd(0x263)](_0x947192=>{const _0xbe1d0c=_0x4be9cd;if(_0x3ad4f7[_0xbe1d0c(0x377)](_0x947192[_0xbe1d0c(0x396)])){const _0x26d887=_0x3ad4f7[_0xbe1d0c(0x3a3)](_0x947192[_0xbe1d0c(0x396)]);_0x26d887[_0xbe1d0c(0x1d3)]+=',\x20'+_0x947192[_0xbe1d0c(0x1d3)];}else _0x3ad4f7[_0xbe1d0c(0x3c6)](_0x947192[_0xbe1d0c(0x396)],_0x947192);}),Array[_0x4be9cd(0x382)](_0x3ad4f7[_0x4be9cd(0x372)]());}var E=function(){return E=Object['assign']||function(_0x8edaff){const _0x4f7598=_0x4987;for(var _0x137587,_0x386819=0x1,_0x459bd9=arguments['length'];_0x386819<_0x459bd9;_0x386819++){_0x137587=arguments[_0x386819];for(var _0x30939b in _0x137587)Object['prototype'][_0x4f7598(0x254)][_0x4f7598(0x207)](_0x137587,_0x30939b)&&(_0x8edaff[_0x30939b]=_0x137587[_0x30939b]);}return _0x8edaff;},E['apply'](this,arguments);},Tt=function(_0x2469da,_0x35fcf7){const _0x1883ab=_0x112d6b;var _0x439842={};for(var _0x116f5c in _0x2469da)Object[_0x1883ab(0x29d)]['hasOwnProperty']['call'](_0x2469da,_0x116f5c)&&_0x35fcf7[_0x1883ab(0x284)](_0x116f5c)<0x0&&(_0x439842[_0x116f5c]=_0x2469da[_0x116f5c]);if(_0x2469da!=null&&typeof Object[_0x1883ab(0x3b5)]=='function'){for(var _0x18f4c5=0x0,_0x116f5c=Object[_0x1883ab(0x3b5)](_0x2469da);_0x18f4c5<_0x116f5c[_0x1883ab(0x298)];_0x18f4c5++)_0x35fcf7[_0x1883ab(0x284)](_0x116f5c[_0x18f4c5])<0x0&&Object[_0x1883ab(0x29d)][_0x1883ab(0x278)]['call'](_0x2469da,_0x116f5c[_0x18f4c5])&&(_0x439842[_0x116f5c[_0x18f4c5]]=_0x2469da[_0x116f5c[_0x18f4c5]]);}return _0x439842;},pe=M[_0x112d6b(0x1b4)](function(_0x4aeda8,_0x46dfe9){const _0x3a937f=_0x112d6b;var _0x35a3ce=_0x4aeda8[_0x3a937f(0x2ce)],_0x313841=_0x4aeda8['id'],_0x5b4c0e=_0x4aeda8[_0x3a937f(0x258)],_0x4743dc=_0x4aeda8[_0x3a937f(0x1ed)],_0x345c81=Tt(_0x4aeda8,['icon','id','className',_0x3a937f(0x1ed)]),_0x104eb1=_0x3a937f(0x286)[_0x3a937f(0x196)](_0x313841,'\x20')['concat'](_0x5b4c0e||'')['trim'](),_0x3c4bcc=M[_0x3a937f(0x27e)]('_'['concat'](Dt()));return Ae(_0x35a3ce,''[_0x3a937f(0x196)](_0x313841),{'defIds':_0x35a3ce[_0x3a937f(0x29b)],'idSuffix':_0x3c4bcc[_0x3a937f(0x18c)]},E({'ref':_0x46dfe9,'className':_0x104eb1},_0x345c81),_0x4743dc);});function Ae(_0x2de526,_0x1dd59f,_0x158b11,_0x456d14,_0x2fceae){const _0x1d4d43=_0x112d6b;return M[_0x1d4d43(0x164)](_0x2de526[_0x1d4d43(0x20b)],E(E({'key':_0x1dd59f},Ot(_0x2de526,_0x158b11,_0x2fceae)),_0x456d14),(Rt(_0x2de526,_0x158b11)[_0x1d4d43(0x261)]||[])[_0x1d4d43(0x305)](function(_0x20e671,_0x3c3599){const _0x44cded=_0x1d4d43;return Ae(_0x20e671,''[_0x44cded(0x196)](_0x1dd59f,'-')['concat'](_0x2de526[_0x44cded(0x20b)],'-')[_0x44cded(0x196)](_0x3c3599),_0x158b11,void 0x0,_0x2fceae);}));}function Ot(_0x41910e,_0x1df8c5,_0x4cd23f){const _0x228511=_0x112d6b;var _0x502581=E({},_0x41910e[_0x228511(0x28d)]);_0x4cd23f!=null&&_0x4cd23f[_0x228511(0x269)]&&_0x502581[_0x228511(0x239)]===_0x228511(0x269)&&(_0x502581[_0x228511(0x239)]=_0x4cd23f[_0x228511(0x269)]),_0x41910e[_0x228511(0x20b)]==='mask'&&_0x502581['id']&&(_0x502581['id']=_0x502581['id']+_0x1df8c5[_0x228511(0x1b2)]),Object[_0x228511(0x2e4)](_0x502581)[_0x228511(0x263)](function(_0x48c753){const _0x3eee18=_0x228511;var _0x25fb68=_0x48c753[0x0],_0x27369e=_0x48c753[0x1];_0x25fb68===_0x3eee18(0x210)&&typeof _0x27369e==_0x3eee18(0x1bd)&&(_0x502581[_0x25fb68]=_0x27369e[_0x3eee18(0x321)](/url\(#(.*)\)/,_0x3eee18(0x30d)['concat'](_0x1df8c5[_0x3eee18(0x1b2)],')')));});var _0x731cb7=_0x1df8c5[_0x228511(0x29b)];return!_0x731cb7||_0x731cb7[_0x228511(0x298)]===0x0||(_0x41910e[_0x228511(0x20b)]==='use'&&_0x502581[_0x228511(0x25c)]&&(_0x502581[_0x228511(0x25c)]=_0x502581[_0x228511(0x25c)]+_0x1df8c5[_0x228511(0x1b2)]),Object[_0x228511(0x2e4)](_0x502581)[_0x228511(0x263)](function(_0x19434e){const _0x183e16=_0x228511;var _0x3f34cf=_0x19434e[0x0],_0x4fe0b6=_0x19434e[0x1];typeof _0x4fe0b6=='string'&&(_0x502581[_0x3f34cf]=_0x4fe0b6[_0x183e16(0x321)](/url\(#(.*)\)/,_0x183e16(0x30d)[_0x183e16(0x196)](_0x1df8c5[_0x183e16(0x1b2)],')')));})),_0x502581;}function Rt(_0x59ef5a,_0x485380){const _0xd9feea=_0x112d6b;var _0x4b7708,_0x5abed7=_0x485380[_0xd9feea(0x29b)];return!_0x5abed7||_0x5abed7[_0xd9feea(0x298)]===0x0?_0x59ef5a:_0x59ef5a[_0xd9feea(0x20b)]===_0xd9feea(0x2f8)&&(!((_0x4b7708=_0x59ef5a[_0xd9feea(0x261)])===null||_0x4b7708===void 0x0)&&_0x4b7708[_0xd9feea(0x298)])?E(E({},_0x59ef5a),{'children':_0x59ef5a[_0xd9feea(0x261)][_0xd9feea(0x305)](function(_0x5c3649){const _0x515064=_0xd9feea;return typeof _0x5c3649[_0x515064(0x28d)]['id']==_0x515064(0x1bd)&&_0x5abed7&&_0x5abed7[_0x515064(0x284)](_0x5c3649[_0x515064(0x28d)]['id'])>-0x1?E(E({},_0x5c3649),{'attrs':E(E({},_0x5c3649[_0x515064(0x28d)]),{'id':_0x5c3649[_0x515064(0x28d)]['id']+_0x485380['idSuffix']})}):_0x5c3649;})}):_0x59ef5a;}function Dt(){const _0x393769=_0x112d6b;return Math[_0x393769(0x200)]()[_0x393769(0x1f1)](0x24)[_0x393769(0x179)](0x2,0x8);}pe[_0x112d6b(0x2ef)]=_0x112d6b(0x387);var Ut={'tag':_0x112d6b(0x21e),'attrs':{'fill':_0x112d6b(0x36c),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x112d6b(0x28a)},'children':[{'tag':'g','attrs':{'clipPath':_0x112d6b(0x397)},'children':[{'tag':_0x112d6b(0x1ff),'attrs':{'stroke':_0x112d6b(0x1a3),'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':_0x112d6b(0x17d),'strokeWidth':1.2}}]},{'tag':_0x112d6b(0x2f8),'attrs':{},'children':[{'tag':_0x112d6b(0x33f),'attrs':{'id':_0x112d6b(0x36d)},'children':[{'tag':'path','attrs':{'fill':_0x112d6b(0x381),'d':_0x112d6b(0x2af)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M['forwardRef'](function(_0x13d772,_0xd29038){const _0x1de66c=_0x112d6b;return M[_0x1de66c(0x164)](pe,Object[_0x1de66c(0x266)]({},_0x13d772,{'id':_0x1de66c(0x1fa),'ref':_0xd29038,'icon':Ut}));});ye[_0x112d6b(0x2ef)]=_0x112d6b(0x29e);var Nt={'tag':_0x112d6b(0x21e),'attrs':{'fill':_0x112d6b(0x36c),'viewBox':'0\x200\x2017\x2016','width':_0x112d6b(0x28a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x112d6b(0x1ff),'attrs':{'stroke':_0x112d6b(0x1a3),'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':_0x112d6b(0x17d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x112d6b(0x33f),'attrs':{'id':_0x112d6b(0x1a0)},'children':[{'tag':_0x112d6b(0x1ff),'attrs':{'fill':_0x112d6b(0x381),'d':_0x112d6b(0x2af),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x112d6b(0x1b4)](function(_0x5f1c1c,_0x5a104d){const _0x245c62=_0x112d6b;return M[_0x245c62(0x164)](pe,Object['assign']({},_0x5f1c1c,{'id':_0x245c62(0x225),'ref':_0x5a104d,'icon':Nt}));});$e[_0x112d6b(0x2ef)]='OnLineSingle';function Mt(_0x3cb456){const _0x17802a=_0x112d6b;switch(_0x3cb456){case u[_0x17802a(0x1f9)]['OFFLINE']:return'collabStatus.offline';case u[_0x17802a(0x1f9)][_0x17802a(0x369)]:return _0x17802a(0x3d4);case u[_0x17802a(0x1f9)]['FETCH_MISS']:return _0x17802a(0x223);case u[_0x17802a(0x1f9)][_0x17802a(0x2dd)]:return _0x17802a(0x1ea);case u[_0x17802a(0x1f9)][_0x17802a(0x1c1)]:case u[_0x17802a(0x1f9)][_0x17802a(0x302)]:return _0x17802a(0x3ca);case u[_0x17802a(0x1f9)]['SYNCED']:case u[_0x17802a(0x1f9)][_0x17802a(0x1f3)]:return _0x17802a(0x2bf);}}function xe(_0x22233e){const _0x550133=_0x112d6b,{status$:_0x345a2b}=_0x22233e,_0x42ed81=T[_0x550133(0x1a7)](_0x345a2b,u[_0x550133(0x1f9)][_0x550133(0x2dd)]),_0x26f43c=T[_0x550133(0x33a)](a[_0x550133(0x2be)]),_0xa8a398=T['useDependency'](u['CollaborationSessionService']),_0x594e11=_0x42ed81!==u['CollaborationStatus'][_0x550133(0x2d8)],_0x1e713b=_0x26f43c['t'](Mt(_0x42ed81)),_0x439425=_0x594e11?P[_0x550133(0x290)]($e,{}):P[_0x550133(0x290)](ye,{}),_0x233fa2=M[_0x550133(0x39c)](()=>{const _0x18b077=_0x550133;_0x594e11||_0xa8a398[_0x18b077(0x309)]();},[_0x594e11,_0xa8a398]);function _0x3db410(){const _0x2c7e3b=_0x550133;return P[_0x2c7e3b(0x1fd)](_0x2c7e3b(0x185),{'className':_0x2c7e3b(0x2a9),'onClick':_0x233fa2,'children':[P[_0x2c7e3b(0x290)](_0x2c7e3b(0x185),{'className':D[_0x2c7e3b(0x24d)]('univer-flex\x20univer-mr-2\x20univer-text-[20px]',_0x594e11?_0x2c7e3b(0x187):'univer-text-red-500'),'children':_0x439425}),P[_0x2c7e3b(0x290)](_0x2c7e3b(0x185),{'className':'univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','children':_0x1e713b})]});}return _0x594e11?_0x3db410():P[_0x550133(0x290)](D[_0x550133(0x199)],{'title':_0x26f43c['t'](_0x550133(0x30c)),'children':_0x3db410()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x313dfc,_0x5c4232,_0x7abf8c,_0xd2797c)=>{const _0x377d78=_0x112d6b;for(var _0x504500=_0xd2797c>0x1?void 0x0:_0xd2797c?Lt(_0x5c4232,_0x7abf8c):_0x5c4232,_0x16738a=_0x313dfc[_0x377d78(0x298)]-0x1,_0x2b0f4b;_0x16738a>=0x0;_0x16738a--)(_0x2b0f4b=_0x313dfc[_0x16738a])&&(_0x504500=_0x2b0f4b(_0x504500)||_0x504500);return _0x504500;},V=(_0x2dbdf7,_0x4d8bab)=>(_0x1785f8,_0x2328db)=>_0x4d8bab(_0x1785f8,_0x2328db,_0x2dbdf7);exports[_0x112d6b(0x257)]=class extends a['Disposable']{constructor(_0x399121,_0x1d9af3,_0x399b18,_0x8f015d){const _0x2f3d71=_0x112d6b;super(),h(this,_0x2f3d71(0x2c2),new d[(_0x2f3d71(0x340))](u[_0x2f3d71(0x1f9)][_0x2f3d71(0x2dd)])),(this[_0x2f3d71(0x379)]=_0x399121,this[_0x2f3d71(0x38e)]=_0x1d9af3,this[_0x2f3d71(0x2c1)]=_0x399b18,this[_0x2f3d71(0x37a)]=_0x8f015d,this[_0x2f3d71(0x33c)](),this[_0x2f3d71(0x393)]());}[_0x112d6b(0x393)](){const _0x70a203=_0x112d6b;this[_0x70a203(0x204)](this[_0x70a203(0x379)][_0x70a203(0x251)][_0x70a203(0x2ff)](d['switchMap'](()=>{const _0x57ac04=_0x70a203,_0x339413=this[_0x57ac04(0x379)]['getFocusedUnit']();return _0x339413?this[_0x57ac04(0x2c1)][_0x57ac04(0x3c5)](_0x339413[_0x57ac04(0x237)]()):d['of'](null);}),d[_0x70a203(0x326)](_0x3cf889=>_0x3cf889?_0x3cf889[_0x70a203(0x2fd)]:d['of'](u[_0x70a203(0x1f9)][_0x70a203(0x2dd)])))[_0x70a203(0x28b)](_0x2fb509=>{const _0x5e5921=_0x70a203;this['_status$'][_0x5e5921(0x2c8)](_0x2fb509);}));}[_0x112d6b(0x33c)](){const _0x4898db=_0x112d6b;this[_0x4898db(0x204)](this['_uiPartsService'][_0x4898db(0x3e1)](T[_0x4898db(0x27f)]['HEADER_MENU'],()=>T[_0x4898db(0x17b)](wt({'status$':this['_status$'][_0x4898db(0x314)]()}),this['_injector'])));}},exports[_0x112d6b(0x257)]=Pt([V(0x0,a[_0x112d6b(0x331)]),V(0x1,a['Inject'](a[_0x112d6b(0x291)])),V(0x2,a['Inject'](u['CollaborationController'])),V(0x3,T['IUIPartsService'])],exports[_0x112d6b(0x257)]);function wt(_0x22f558){const {status$:_0x14465b}=_0x22f558;return function(){const _0x4382fd=_0x4987;return P[_0x4382fd(0x290)](xe,{'status$':_0x14465b});};}var At=Object[_0x112d6b(0x376)],yt=(_0xba7104,_0x5f092f,_0xc5efd8,_0x593a49)=>{for(var _0x2e6ce1=_0x593a49>0x1?void 0x0:_0x593a49?At(_0x5f092f,_0xc5efd8):_0x5f092f,_0x316ae3=_0xba7104['length']-0x1,_0x12863f;_0x316ae3>=0x0;_0x316ae3--)(_0x12863f=_0xba7104[_0x316ae3])&&(_0x2e6ce1=_0x12863f(_0x2e6ce1)||_0x2e6ce1);return _0x2e6ce1;},y=(_0x18c080,_0x594f34)=>(_0x2f81c0,_0x217c7d)=>_0x594f34(_0x2f81c0,_0x217c7d,_0x18c080);let K=class extends a[_0x112d6b(0x392)]{constructor(_0x3c2da3,_0x485a7e,_0x2d1001,_0x24cec8,_0x50f54d,_0x420789){const _0x54fada=_0x112d6b;super(),this[_0x54fada(0x26a)]=_0x3c2da3,this['_localCacheService']=_0x485a7e,this[_0x54fada(0x2d3)]=_0x2d1001,this['_messageService']=_0x24cec8,this[_0x54fada(0x366)]=_0x50f54d,this[_0x54fada(0x262)]=_0x420789,this[_0x54fada(0x23e)](),this[_0x54fada(0x362)]();}['_setupBeforeClosingHandler'](){const _0x17fb93=_0x112d6b;this[_0x17fb93(0x204)](this[_0x17fb93(0x26a)][_0x17fb93(0x217)](()=>{const _0x4327d9=_0x17fb93;if(this['_localCacheService'][_0x4327d9(0x3d2)][_0x4327d9(0x1df)])return this[_0x4327d9(0x262)]['t'](_0x4327d9(0x350));}));}[_0x112d6b(0x362)](){const _0x429c7a=_0x112d6b;this['disposeWithMe'](this[_0x429c7a(0x2d3)][_0x429c7a(0x25d)][_0x429c7a(0x28b)](_0x3d77fa=>{const _0x25d3af=_0x429c7a;_0x3d77fa['id']===u['CollaborationUIEventId'][_0x25d3af(0x34d)]&&this['_messageService'][_0x25d3af(0x398)]({'type':D[_0x25d3af(0x2c0)]['Warning'],'content':this[_0x25d3af(0x262)]['t'](_0x25d3af(0x2fc))}),_0x3d77fa['id']===u[_0x25d3af(0x20a)][_0x25d3af(0x33d)]&&this[_0x25d3af(0x279)][_0x25d3af(0x398)]({'type':D[_0x25d3af(0x2c0)][_0x25d3af(0x35f)],'content':this[_0x25d3af(0x262)]['t'](_0x25d3af(0x230))}),_0x3d77fa['id']===u[_0x25d3af(0x20a)][_0x25d3af(0x1ec)]&&this[_0x25d3af(0x366)][_0x25d3af(0x398)]({'title':this['_localeService']['t'](_0x25d3af(0x2e2)),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}),_0x3d77fa['id']===u['CollaborationUIEventId'][_0x25d3af(0x369)]&&this[_0x25d3af(0x279)][_0x25d3af(0x398)]({'type':D[_0x25d3af(0x2c0)][_0x25d3af(0x2f6)],'content':this[_0x25d3af(0x262)]['t']('collaboration.closeRoom')+'('+_0x3d77fa[_0x25d3af(0x333)]+')'}),_0x3d77fa['id']===u[_0x25d3af(0x20a)]['JOIN_ROOM_FAILED']&&this['_messageService']['show']({'type':D[_0x25d3af(0x2c0)][_0x25d3af(0x35f)],'content':this[_0x25d3af(0x262)]['t'](_0x3d77fa[_0x25d3af(0x333)]||'')}),_0x3d77fa['id']===u[_0x25d3af(0x20a)][_0x25d3af(0x2fe)]&&this[_0x25d3af(0x279)]['show']({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x25d3af(0x30a))}),_0x3d77fa['id']===u['CollaborationUIEventId'][_0x25d3af(0x16e)]&&this[_0x25d3af(0x279)]['show']({'type':D[_0x25d3af(0x2c0)][_0x25d3af(0x2f6)],'content':this[_0x25d3af(0x262)]['t']('session.connection-failed')}),_0x3d77fa['id']===u[_0x25d3af(0x20a)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x25d3af(0x279)][_0x25d3af(0x398)]({'type':D[_0x25d3af(0x2c0)][_0x25d3af(0x2f6)],'content':this[_0x25d3af(0x262)]['t'](_0x25d3af(0x25a))});}));}};K=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x112d6b(0x264)]),y(0x2,a[_0x112d6b(0x17f)](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T[_0x112d6b(0x348)]),y(0x5,a[_0x112d6b(0x17f)](a[_0x112d6b(0x2be)]))],K);const $t='collaboration-client-ui.config',Ue={},be=a[_0x112d6b(0x222)](_0x112d6b(0x1b5));var xt=Object[_0x112d6b(0x376)],jt=(_0x19f704,_0x127fdf,_0xdbdef7,_0x2cc2a4)=>{const _0x34b88f=_0x112d6b;for(var _0x2262dc=_0x2cc2a4>0x1?void 0x0:_0x2cc2a4?xt(_0x127fdf,_0xdbdef7):_0x127fdf,_0x2ef05d=_0x19f704[_0x34b88f(0x298)]-0x1,_0x5a7710;_0x2ef05d>=0x0;_0x2ef05d--)(_0x5a7710=_0x19f704[_0x2ef05d])&&(_0x2262dc=_0x5a7710(_0x2262dc)||_0x2262dc);return _0x2262dc;},H=(_0x2b9865,_0x12ec0e)=>(_0x6cc827,_0x200e0f)=>_0x12ec0e(_0x6cc827,_0x200e0f,_0x2b9865);exports[_0x112d6b(0x343)]=class extends a[_0x112d6b(0x2b7)]{constructor(_0x58fdcb,_0x2934ac,_0x415bc9,_0x48543d,_0x462761){const _0xdb282a=_0x112d6b;super(),this[_0xdb282a(0x23c)]=_0x58fdcb,this[_0xdb282a(0x282)]=_0x2934ac,this[_0xdb282a(0x208)]=_0x415bc9,this[_0xdb282a(0x330)]=_0x48543d,_0x462761?_0x462761==null||_0x462761['whenReady']()['then'](()=>this[_0xdb282a(0x191)]()):(this[_0xdb282a(0x282)][_0xdb282a(0x219)](_0xdb282a(0x213),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xdb282a(0x191)]());}async[_0x112d6b(0x191)](){const _0x252b62=_0x112d6b,_0xecf2b8=this['_urlService'][_0x252b62(0x336)](_0x252b62(0x399)),_0x5d0b18=this['_urlService'][_0x252b62(0x336)]('type'),_0x442351=this[_0x252b62(0x23c)][_0x252b62(0x336)](_0x252b62(0x3a9));if(!_0xecf2b8||!_0x5d0b18){this['_logService'][_0x252b62(0x219)](_0x252b62(0x213),_0x252b62(0x168));return;}const _0x4fc7fc=await this[_0x252b62(0x330)][_0x252b62(0x27b)](_0xecf2b8,Number(_0x5d0b18),_0x442351);_0x4fc7fc&&_0x4fc7fc instanceof a[_0x252b62(0x2c5)]&&this[_0x252b62(0x356)](_0x4fc7fc);}async[_0x112d6b(0x356)](_0x6beaf9){const _0x2adfd3=_0x112d6b;await this[_0x2adfd3(0x355)](_0x6beaf9),_0x6beaf9[_0x2adfd3(0x2eb)]['pipe'](d[_0x2adfd3(0x293)](this[_0x2adfd3(0x295)]))[_0x2adfd3(0x28b)](_0x5688d3=>{const _0x299b34=_0x2adfd3;_0x5688d3&&this[_0x299b34(0x20d)](_0x5688d3);}),this['_urlService'][_0x2adfd3(0x1ad)]['pipe'](d[_0x2adfd3(0x293)](this['dispose$']))[_0x2adfd3(0x28b)](()=>this[_0x2adfd3(0x355)](_0x6beaf9));}[_0x112d6b(0x20d)](_0x546bb0,_0x53b7a0=!0x1){const _0x498c07=_0x112d6b,_0x3e9441=this[_0x498c07(0x23c)][_0x498c07(0x336)](_0x498c07(0x3a9));_0x546bb0[_0x498c07(0x31a)]()!==_0x3e9441&&this[_0x498c07(0x23c)][_0x498c07(0x244)](_0x498c07(0x3a9),_0x546bb0[_0x498c07(0x31a)](),_0x53b7a0);}async[_0x112d6b(0x355)](_0x5a245a){const _0x51b158=_0x112d6b;var _0xa16491;const _0x5e99a7=this[_0x51b158(0x23c)]['getParam'](_0x51b158(0x3a9));if(!_0x5e99a7||!_0x5a245a[_0x51b158(0x2ec)](_0x5e99a7)){const _0x48c6e1=_0x5a245a[_0x51b158(0x18f)]()[0x0],_0x3c7c95=_0x5a245a[_0x51b158(0x2ec)](_0x48c6e1);if(!_0x3c7c95)return;this[_0x51b158(0x20d)](_0x3c7c95,!0x0),await this[_0x51b158(0x208)]['executeCommand'](g[_0x51b158(0x20e)]['id'],{'unitId':_0x5a245a[_0x51b158(0x237)](),'subUnitId':_0x48c6e1});return;}((_0xa16491=_0x5a245a[_0x51b158(0x255)]())==null?void 0x0:_0xa16491[_0x51b158(0x31a)]())!==_0x5e99a7&&await this[_0x51b158(0x208)][_0x51b158(0x30e)](g[_0x51b158(0x20e)]['id'],{'unitId':_0x5a245a['getUnitId'](),'subUnitId':_0x5e99a7});}},exports[_0x112d6b(0x343)]=jt([H(0x0,be),H(0x1,a[_0x112d6b(0x26e)]),H(0x2,a[_0x112d6b(0x1fe)]),H(0x3,a['Inject'](u[_0x112d6b(0x3ac)])),H(0x4,a[_0x112d6b(0x3c9)](qe[_0x112d6b(0x34e)]))],exports[_0x112d6b(0x343)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x45e0cc,_0x287fa6,_0x575775,_0x333bb3)=>{for(var _0x339dfe=_0x333bb3>0x1?void 0x0:_0x333bb3?Bt(_0x287fa6,_0x575775):_0x287fa6,_0x515f22=_0x45e0cc['length']-0x1,_0x3cad23;_0x515f22>=0x0;_0x515f22--)(_0x3cad23=_0x45e0cc[_0x515f22])&&(_0x339dfe=_0x3cad23(_0x339dfe)||_0x339dfe);return _0x339dfe;},ce=(_0x179f39,_0x291dbb)=>(_0x4407e4,_0x5a0e20)=>_0x291dbb(_0x4407e4,_0x5a0e20,_0x179f39);let z=class{constructor(_0x590c39,_0x3773ef,_0x1953e1){const _0x704258=_0x112d6b;this[_0x704258(0x38e)]=_0x590c39,this[_0x704258(0x22e)]=_0x3773ef,this['_renderManagerService']=_0x1953e1;}['transformIMECache'](_0x5b7912){const _0x24c4d5=_0x112d6b;this[_0x24c4d5(0x3b8)](_0x5b7912),this[_0x24c4d5(0x2d7)](_0x5b7912);}[_0x112d6b(0x2c6)](_0x592d7f){const _0x575782=_0x112d6b,{unitID:_0x21bdfd}=_0x592d7f,_0x178a7e=this[_0x575782(0x32f)]['getRenderById'](_0x21bdfd)['with'](b[_0x575782(0x220)]),{redoCache:_0x297ead}=_0x178a7e['getUndoRedoMutationParamsCache']();if(_0x297ead['length']===0x0)return _0x592d7f;let _0x17d1f4=a[_0x575782(0x36a)][_0x575782(0x28e)](_0x592d7f[_0x575782(0x195)][0x0]);for(let _0x5875c3=0x0;_0x5875c3<_0x297ead[_0x575782(0x298)];_0x5875c3++){const _0x43bfef={'id':_0x575782(0x1eb),'params':{..._0x297ead[_0x5875c3]}},_0x2e36f2=this['_transformService'][_0x575782(0x339)](_0x17d1f4,_0x43bfef,!0x1);if(m[_0x575782(0x296)](_0x2e36f2))throw _0x2e36f2[_0x575782(0x318)];_0x17d1f4=_0x2e36f2[_0x575782(0x3ba)];}return{...a['Tools'][_0x575782(0x28e)](_0x592d7f),'mutations':[_0x17d1f4]};}[_0x112d6b(0x3b8)](_0x5b487a){const _0x5b892d=_0x112d6b,{unitID:_0x48f623}=_0x5b487a,_0x2561b8=this['_renderManagerService']['getRenderById'](_0x48f623)[_0x5b892d(0x221)](b[_0x5b892d(0x220)]),{undoCache:_0x3f278c,redoCache:_0x192ae3}=_0x2561b8[_0x5b892d(0x227)]();if(_0x3f278c[_0x5b892d(0x298)]===0x0||_0x192ae3[_0x5b892d(0x298)]===0x0)return;const _0x40ff68=[],_0x63995e=[];let _0x558a65=a[_0x5b892d(0x36a)][_0x5b892d(0x28e)](_0x5b487a[_0x5b892d(0x195)][0x0]),_0x2dafde=a[_0x5b892d(0x36a)][_0x5b892d(0x28e)](_0x5b487a[_0x5b892d(0x195)][0x0]);for(let _0xb0b176=_0x3f278c['length']-0x1;_0xb0b176>=0x0;_0xb0b176--){const _0x3b7fb9={'id':'doc.mutation.rich-text-editing','params':{..._0x3f278c[_0xb0b176]}},_0x1c4024={'id':_0x5b892d(0x1eb),'params':{..._0x192ae3[_0xb0b176]}},_0x3124e8=this[_0x5b892d(0x22e)]['transformMutation'](_0x558a65,_0x3b7fb9,!0x1),_0x3c9812=this[_0x5b892d(0x22e)][_0x5b892d(0x339)](_0x2dafde,_0x1c4024,!0x1);if(m[_0x5b892d(0x296)](_0x3124e8))throw _0x3124e8[_0x5b892d(0x318)];if(m[_0x5b892d(0x296)](_0x3c9812))throw _0x3c9812[_0x5b892d(0x318)];_0x40ff68[_0x5b892d(0x303)](_0x3124e8[_0x5b892d(0x3ae)][_0x5b892d(0x2d1)]),_0x63995e[_0x5b892d(0x303)](_0x3c9812[_0x5b892d(0x3ae)][_0x5b892d(0x2d1)]),_0x558a65=_0x3124e8['m1Prime'],_0x2dafde=_0x3c9812[_0x5b892d(0x3ba)];}_0x2561b8[_0x5b892d(0x1ef)]({'undoCache':_0x40ff68,'redoCache':_0x63995e});}[_0x112d6b(0x2d7)](_0xed197f){const _0x18ed0a=_0x112d6b,{unitID:_0x1a3216}=_0xed197f,_0x3c1002=this[_0x18ed0a(0x32f)][_0x18ed0a(0x3c1)](_0x1a3216)[_0x18ed0a(0x221)](b['DocIMEInputManagerService']),_0x2426df=_0x3c1002['getActiveRange']();if(_0x2426df==null)return;const _0x2937ef=[{'id':_0x18ed0a(0x1eb),'params':{'unitId':_0xed197f[_0x18ed0a(0x31e)],'actions':null,'textRanges':[_0x2426df]}}],_0x34e5bd=this[_0x18ed0a(0x22e)][_0x18ed0a(0x1cf)](_0xed197f,_0x2937ef);if(!m[_0x18ed0a(0x35b)](_0x34e5bd))throw _0x34e5bd['error'];const _0x21069d=_0x34e5bd[_0x18ed0a(0x3ae)][0x0]['params'][_0x18ed0a(0x3a7)];Array['isArray'](_0x21069d)&&_0x21069d[_0x18ed0a(0x298)]&&_0x3c1002[_0x18ed0a(0x1d6)](_0x21069d[0x0]);}};z=kt([ce(0x0,a[_0x112d6b(0x17f)](a[_0x112d6b(0x291)])),ce(0x1,m[_0x112d6b(0x338)]),ce(0x2,p[_0x112d6b(0x20c)])],z);var Ht=Object[_0x112d6b(0x376)],Ft=(_0x59a8d2,_0x47aef4,_0x466c18,_0x4c7ea1)=>{for(var _0x3af71c=_0x4c7ea1>0x1?void 0x0:_0x4c7ea1?Ht(_0x47aef4,_0x466c18):_0x47aef4,_0x40caf4=_0x59a8d2['length']-0x1,_0x414e9b;_0x40caf4>=0x0;_0x40caf4--)(_0x414e9b=_0x59a8d2[_0x40caf4])&&(_0x3af71c=_0x414e9b(_0x3af71c)||_0x3af71c);return _0x3af71c;},le=(_0xcdbcc8,_0x568f5c)=>(_0x5e9a44,_0x465e04)=>_0x568f5c(_0x5e9a44,_0x465e04,_0xcdbcc8);let J=class{constructor(_0x525ee0,_0x515a4e,_0x5866df){const _0x39801a=_0x112d6b;this[_0x39801a(0x38e)]=_0x525ee0,this['_transformService']=_0x515a4e,this[_0x39801a(0x37e)]=_0x5866df;}[_0x112d6b(0x186)](_0x2b1383){this['_transformHistoryAndStateStack'](_0x2b1383);}[_0x112d6b(0x2c6)](_0x20a26e){const _0x1633df=_0x112d6b,{unitID:_0x3f37e2}=_0x20a26e,{collaboration:_0xfef59e}=this[_0x1633df(0x37e)][_0x1633df(0x242)](_0x3f37e2);if(_0xfef59e[_0x1633df(0x298)]===0x0)return _0x20a26e;let _0x3192b4=a['Tools']['deepClone'](_0x20a26e[_0x1633df(0x195)][0x0]);for(let _0x5a87b1=0x0;_0x5a87b1<_0xfef59e[_0x1633df(0x298)];_0x5a87b1++){const _0x51e3dc={'id':_0x1633df(0x1eb),'params':{'unitId':_0xfef59e[_0x5a87b1][_0x1633df(0x36f)],..._0xfef59e[_0x5a87b1][_0x1633df(0x2b3)]}},_0x43bb4f=this['_transformService'][_0x1633df(0x339)](_0x3192b4,_0x51e3dc,!0x1);if(m['isTransformMutationFailure'](_0x43bb4f))throw _0x43bb4f[_0x1633df(0x318)];_0x3192b4=_0x43bb4f[_0x1633df(0x3ba)];}return{...a[_0x1633df(0x36a)]['deepClone'](_0x20a26e),'mutations':[_0x3192b4]};}[_0x112d6b(0x3be)](_0x1cae99){const _0x2ad13b=_0x112d6b,{unitID:_0x12b619}=_0x1cae99,{history:_0x20f531,collaboration:_0x7b8662}=this[_0x2ad13b(0x37e)][_0x2ad13b(0x242)](_0x12b619);if(_0x20f531[_0x2ad13b(0x298)]===0x0&&_0x7b8662[_0x2ad13b(0x298)]===0x0)return;const _0x43d162=[],_0x43ad64=[];let _0x40a420=a[_0x2ad13b(0x36a)][_0x2ad13b(0x28e)](_0x1cae99[_0x2ad13b(0x195)][0x0]),_0x578ce1=a[_0x2ad13b(0x36a)][_0x2ad13b(0x28e)](_0x1cae99[_0x2ad13b(0x195)][0x0]);for(let _0x15ea58=_0x20f531[_0x2ad13b(0x298)]-0x1;_0x15ea58>=0x0;_0x15ea58--){const _0x3488d2={'id':_0x2ad13b(0x1eb),'params':{'unitId':_0x20f531[_0x15ea58][_0x2ad13b(0x36f)],..._0x20f531[_0x15ea58][_0x2ad13b(0x22d)]}},_0x5c52f5={'id':_0x2ad13b(0x1eb),'params':{'unitId':_0x20f531[_0x15ea58]['unitId'],..._0x20f531[_0x15ea58][_0x2ad13b(0x2b3)]}},_0x5d3764=this[_0x2ad13b(0x22e)][_0x2ad13b(0x339)](_0x40a420,_0x3488d2,!0x1),_0x22d4db=this[_0x2ad13b(0x22e)][_0x2ad13b(0x339)](_0x578ce1,_0x5c52f5,!0x1);if(m[_0x2ad13b(0x296)](_0x5d3764))throw _0x5d3764[_0x2ad13b(0x318)];if(m[_0x2ad13b(0x296)](_0x22d4db))throw _0x22d4db['error'];_0x43d162['unshift']({..._0x20f531[_0x15ea58],'undoState':_0x5d3764[_0x2ad13b(0x3ae)][_0x2ad13b(0x2d1)],'redoState':_0x22d4db['m2Prime'][_0x2ad13b(0x2d1)]}),_0x40a420=_0x5d3764[_0x2ad13b(0x3ba)],_0x578ce1=_0x22d4db[_0x2ad13b(0x3ba)];}_0x40a420=a['Tools'][_0x2ad13b(0x28e)](_0x1cae99[_0x2ad13b(0x195)][0x0]),_0x578ce1=a['Tools']['deepClone'](_0x1cae99[_0x2ad13b(0x195)][0x0]);for(let _0x25a6a2=_0x7b8662[_0x2ad13b(0x298)]-0x1;_0x25a6a2>=0x0;_0x25a6a2--){const _0x2d585a={'id':_0x2ad13b(0x1eb),'params':{'unitId':_0x7b8662[_0x25a6a2]['unitId'],..._0x7b8662[_0x25a6a2][_0x2ad13b(0x22d)]}},_0x28acb7={'id':_0x2ad13b(0x1eb),'params':{'unitId':_0x7b8662[_0x25a6a2]['unitId'],..._0x7b8662[_0x25a6a2]['redoState']}},_0x3b8530=this[_0x2ad13b(0x22e)][_0x2ad13b(0x339)](_0x40a420,_0x2d585a,!0x1),_0x27aa3d=this[_0x2ad13b(0x22e)][_0x2ad13b(0x339)](_0x578ce1,_0x28acb7,!0x1);if(m[_0x2ad13b(0x296)](_0x3b8530))throw _0x3b8530['error'];if(m[_0x2ad13b(0x296)](_0x27aa3d))throw _0x27aa3d['error'];_0x43ad64[_0x2ad13b(0x303)]({..._0x7b8662[_0x25a6a2],'undoState':_0x3b8530[_0x2ad13b(0x3ae)][_0x2ad13b(0x2d1)],'redoState':_0x27aa3d[_0x2ad13b(0x3ae)][_0x2ad13b(0x2d1)]}),_0x40a420=_0x3b8530[_0x2ad13b(0x3ba)],_0x578ce1=_0x27aa3d['m1Prime'];}this[_0x2ad13b(0x37e)]['setStateCache'](_0x12b619,{'history':_0x43d162,'collaboration':_0x43ad64});}};J=Ft([le(0x0,a['Inject'](a[_0x112d6b(0x291)])),le(0x1,m[_0x112d6b(0x338)]),le(0x2,a[_0x112d6b(0x17f)](b['DocStateChangeManagerService']))],J);var Wt=Object[_0x112d6b(0x376)],Yt=(_0x3a11b0,_0x2c129a,_0x26345a,_0x16d875)=>{const _0x1ba8db=_0x112d6b;for(var _0x3fa5ea=_0x16d875>0x1?void 0x0:_0x16d875?Wt(_0x2c129a,_0x26345a):_0x2c129a,_0x1556c5=_0x3a11b0[_0x1ba8db(0x298)]-0x1,_0x4b4519;_0x1556c5>=0x0;_0x1556c5--)(_0x4b4519=_0x3a11b0[_0x1556c5])&&(_0x3fa5ea=_0x4b4519(_0x3fa5ea)||_0x3fa5ea);return _0x3fa5ea;},Ne=(_0x32031f,_0xf111b2)=>(_0x4794e4,_0x2425b6)=>_0xf111b2(_0x4794e4,_0x2425b6,_0x32031f);let Z=class{constructor(_0x10bf9f,_0x9db2bd){const _0x33bfa1=_0x112d6b;this[_0x33bfa1(0x38e)]=_0x10bf9f,this[_0x33bfa1(0x22e)]=_0x9db2bd;}[_0x112d6b(0x1c3)](_0x3b9a2e){const _0x1d8255=_0x112d6b;var _0xcfcf7d;const _0x4c3c02=this[_0x1d8255(0x38e)][_0x1d8255(0x3a3)](W[_0x1d8255(0x299)]),_0x4e4a8c=(_0xcfcf7d=_0x4c3c02['getDocRanges']())!=null?_0xcfcf7d:[];if(_0x4e4a8c[_0x1d8255(0x298)]===0x0)return;const _0x386618=_0x3b9a2e[_0x1d8255(0x31e)],_0xa7601d=[{'id':_0x1d8255(0x1eb),'params':{'unitId':_0x386618,'actions':null,'textRanges':_0x4e4a8c}}],_0x559ac1=this['_transformService'][_0x1d8255(0x1cf)](_0x3b9a2e,_0xa7601d);if(!m['isTransformMutationsWithChangesetSuccess'](_0x559ac1))throw _0x559ac1[_0x1d8255(0x318)];const _0x284221=_0x559ac1[_0x1d8255(0x3ae)][0x0][_0x1d8255(0x2d1)]['textRanges'];Array[_0x1d8255(0x1f4)](_0x284221)&&_0x284221['length']&&_0x4c3c02['replaceDocRanges'](_0x284221,{'unitId':_0x386618,'subUnitId':_0x386618},!0x1);}};Z=Yt([Ne(0x0,a[_0x112d6b(0x17f)](a[_0x112d6b(0x291)])),Ne(0x1,m[_0x112d6b(0x338)])],Z);var Vt=Object[_0x112d6b(0x376)],Xt=(_0x156890,_0x14fc84,_0x17fa55,_0x238b30)=>{const _0x23fbc4=_0x112d6b;for(var _0x3bcc92=_0x238b30>0x1?void 0x0:_0x238b30?Vt(_0x14fc84,_0x17fa55):_0x14fc84,_0x45d325=_0x156890[_0x23fbc4(0x298)]-0x1,_0x2f1329;_0x45d325>=0x0;_0x45d325--)(_0x2f1329=_0x156890[_0x45d325])&&(_0x3bcc92=_0x2f1329(_0x3bcc92)||_0x3bcc92);return _0x3bcc92;},N=(_0x364662,_0x14ab44)=>(_0x3477b7,_0x1b604b)=>_0x14ab44(_0x3477b7,_0x1b604b,_0x364662);let Q=class extends a['Disposable']{constructor(_0x10d2a8,_0x2a555c,_0x5513ab,_0x21d4a7,_0x15b4f5,_0x559384,_0x3bb9a6,_0x3cb76c){const _0x3be75f=_0x112d6b;super(),h(this,_0x3be75f(0x2c2),new d[(_0x3be75f(0x340))](u[_0x3be75f(0x1f9)]['NOT_COLLAB'])),(this[_0x3be75f(0x37e)]=_0x10d2a8,this[_0x3be75f(0x2c1)]=_0x2a555c,this['_docTransformIMECacheService']=_0x5513ab,this[_0x3be75f(0x342)]=_0x21d4a7,this[_0x3be75f(0x3bd)]=_0x15b4f5,this[_0x3be75f(0x3b2)]=_0x559384,this['_messageService']=_0x3bb9a6,this[_0x3be75f(0x262)]=_0x3cb76c,this[_0x3be75f(0x1b6)]());}[_0x112d6b(0x1b6)](){const _0x370465=_0x112d6b;this[_0x370465(0x204)](this['_collaborationController']['entityInit$'][_0x370465(0x28b)](_0x2e273b=>{const _0x196fc0=_0x370465,_0x4336ef=this[_0x196fc0(0x37e)][_0x196fc0(0x35d)]['subscribe'](_0x383471=>{const _0x563010=_0x196fc0;if(_0x383471==null)return;const {unitId:_0x502cd3,redoState:_0x53826a,commandId:_0x49882c}=_0x383471;if(_0x502cd3!==_0x2e273b[_0x563010(0x31e)])return;const _0x13cc74={'id':_0x49882c,'type':a['CommandType'][_0x563010(0x3dc)],'params':{'unitId':_0x502cd3,'actions':_0x53826a[_0x563010(0x34c)],'textRanges':null}};_0x2e273b[_0x563010(0x367)](_0x13cc74);});if(_0x2e273b['disposeWithMe'](_0x4336ef),_0x2e273b instanceof u[_0x196fc0(0x27c)]){const _0x5e3a60={'onTransformIME':_0xcf6ec1=>this[_0x196fc0(0x2f7)][_0x196fc0(0x24c)](_0xcf6ec1),'onTransformState':_0x144282=>this[_0x196fc0(0x342)]['transformStateCache'](_0x144282),'onTransformSelections':_0x4eb957=>this[_0x196fc0(0x3bd)][_0x196fc0(0x1c3)](_0x4eb957),'onSyncEditingCollabCursor':_0x2f4b36=>this['_docSyncEditingCollabCursorService'][_0x196fc0(0x3b4)](_0x2f4b36),'onTransformRemoteChangesetByIMECache':_0x7bd477=>this['_docTransformIMECacheService'][_0x196fc0(0x2c6)](_0x7bd477),'onTransformRemoteChangesetByStateCache':_0x199905=>this[_0x196fc0(0x342)][_0x196fc0(0x2c6)](_0x199905)};_0x2e273b[_0x196fc0(0x297)](_0x5e3a60);}}));}};Q=Xt([N(0x0,a[_0x112d6b(0x17f)](b[_0x112d6b(0x19c)])),N(0x1,a[_0x112d6b(0x17f)](u[_0x112d6b(0x3a4)])),N(0x2,a['Inject'](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x112d6b(0x17f)](Z)),N(0x5,a[_0x112d6b(0x17f)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x112d6b(0x17f)](a['LocaleService']))],Q);var Gt=Object[_0x112d6b(0x376)],qt=(_0x134613,_0x441772,_0x120eac,_0x40d37e)=>{for(var _0x35f1b8=_0x40d37e>0x1?void 0x0:_0x40d37e?Gt(_0x441772,_0x120eac):_0x441772,_0x47c738=_0x134613['length']-0x1,_0x58eb6e;_0x47c738>=0x0;_0x47c738--)(_0x58eb6e=_0x134613[_0x47c738])&&(_0x35f1b8=_0x58eb6e(_0x35f1b8)||_0x35f1b8);return _0x35f1b8;},_e=(_0x119fc4,_0x4319ba)=>(_0x4ffd35,_0x6e6c0a)=>_0x4319ba(_0x4ffd35,_0x6e6c0a,_0x119fc4);let ge=class extends a[_0x112d6b(0x392)]{constructor(_0x4f07d4,_0x2e861a,_0x5442a7){const _0x220e1c=_0x112d6b;super(),h(this,_0x220e1c(0x2a4),new Map()),h(this,_0x220e1c(0x3b9),new Map()),h(this,_0x220e1c(0x1d1),!0x1),(this[_0x220e1c(0x35a)]=_0x4f07d4,this[_0x220e1c(0x1d7)]=_0x2e861a,this[_0x220e1c(0x19b)]=_0x5442a7);}[_0x112d6b(0x370)](){const _0x10d0d6=_0x112d6b;this[_0x10d0d6(0x1d1)]=!0x0;}['enableLocalCache'](){const _0x509859=_0x112d6b;this[_0x509859(0x1d1)]=!0x1;}get[_0x112d6b(0x3d2)](){const _0x2205b4=_0x112d6b;return this[_0x2205b4(0x3b9)];}[_0x112d6b(0x29c)](){const _0xc277a0=_0x112d6b;this['exhaustSavingTask']()[_0xc277a0(0x209)](()=>super[_0xc277a0(0x29c)]());}async[_0x112d6b(0x22a)](_0x499645){const _0x372ed6=_0x112d6b;return this[_0x372ed6(0x1d1)]?null:this[_0x372ed6(0x1d7)][_0x372ed6(0x31f)](u[_0x372ed6(0x2b1)](_0x499645));}async[_0x112d6b(0x188)](_0x1ed42f,_0x5ca88a){const _0x348d5a=_0x112d6b;return!!this['_localStorageService'][_0x348d5a(0x39e)](_0x1ed42f,_0x5ca88a);}[_0x112d6b(0x347)](_0x19472e,_0x19803c,_0x1ec4f3,_0x1754b7){const _0x102357=_0x112d6b,_0xe25b56=this['_revisionService']['getCurrentRevOfUnit'](_0x19472e);this[_0x102357(0x2a4)][_0x102357(0x3c6)](_0x19472e,{'unitID':_0x19472e,'type':_0x19803c,'awaitingChangeset':_0x1ec4f3,'mutations':_0x1754b7,'rev':_0xe25b56}),this[_0x102357(0x3b9)][_0x102357(0x377)](_0x19472e)||this['_scheduleSaving'](_0x19472e);}['_scheduleSaving'](_0x1629ac){const _0x25dc64=_0x112d6b,_0x1f4f4c=this[_0x25dc64(0x1e6)]();_0x1f4f4c===0x0?this[_0x25dc64(0x313)](_0x1629ac):this[_0x25dc64(0x3b9)][_0x25dc64(0x3c6)](_0x1629ac,setTimeout(()=>this[_0x25dc64(0x313)](_0x1629ac),_0x1f4f4c));}[_0x112d6b(0x1e6)](){const _0x35ba45=_0x112d6b;var _0x362bdb;return(_0x362bdb=this[_0x35ba45(0x35a)][_0x35ba45(0x2dc)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x362bdb:u[_0x35ba45(0x341)];}[_0x112d6b(0x313)](_0x461b70){const _0x516e20=_0x112d6b,_0x242418=this[_0x516e20(0x3b9)][_0x516e20(0x3a3)](_0x461b70);return _0x242418!==void 0x0&&window[_0x516e20(0x1d4)](_0x242418),this[_0x516e20(0x1d7)][_0x516e20(0x39e)](u[_0x516e20(0x2b1)](_0x461b70),this[_0x516e20(0x2a4)][_0x516e20(0x3a3)](_0x461b70))[_0x516e20(0x209)](()=>this[_0x516e20(0x3b9)][_0x516e20(0x380)](_0x461b70));}async[_0x112d6b(0x231)](){const _0x187a04=_0x112d6b,_0x4c1cfd=[];this[_0x187a04(0x3b9)][_0x187a04(0x263)]((_0x1a1429,_0x4d75f0)=>{const _0x12cf35=_0x187a04;window[_0x12cf35(0x1d4)](_0x1a1429),_0x4c1cfd[_0x12cf35(0x344)](this['_saveCache'](_0x4d75f0)[_0x12cf35(0x209)](()=>{const _0x74dee4=_0x12cf35;this[_0x74dee4(0x3b9)][_0x74dee4(0x380)](_0x4d75f0);}));}),await Promise[_0x187a04(0x273)](_0x4c1cfd);}};ge=qt([_e(0x0,a[_0x112d6b(0x29a)]),_e(0x1,a[_0x112d6b(0x1d8)]),_e(0x2,a['Inject'](m[_0x112d6b(0x2e3)]))],ge);class je extends a[_0x112d6b(0x2b7)]{constructor(){const _0x33d17e=_0x112d6b;super(),h(this,'urlChange$'),this[_0x33d17e(0x1ad)]=d['fromEvent'](window,'popstate')[_0x33d17e(0x2ff)](d[_0x33d17e(0x293)](this[_0x33d17e(0x295)]),d[_0x33d17e(0x334)](0x1),d[_0x33d17e(0x328)](void 0x0));}[_0x112d6b(0x244)](_0xce6b3f,_0x39a1c9,_0x5f295a=!0x1){const _0x7ad166=_0x112d6b,_0x52842c=new URL(window[_0x7ad166(0x3d7)][_0x7ad166(0x361)]);_0x52842c[_0x7ad166(0x351)][_0x7ad166(0x3c6)](_0xce6b3f,_0x39a1c9),_0x5f295a?window[_0x7ad166(0x30f)][_0x7ad166(0x285)]('','',_0x52842c[_0x7ad166(0x1f1)]()):window[_0x7ad166(0x30f)][_0x7ad166(0x3c7)]('','',_0x52842c['toString']());}['removeParam'](_0x2ece64,_0x25ad58=!0x1){const _0x289059=_0x112d6b,_0x1066bf=new URL(window[_0x289059(0x3d7)][_0x289059(0x361)]);_0x1066bf['searchParams']['delete'](_0x2ece64),_0x25ad58?window[_0x289059(0x30f)][_0x289059(0x285)]('','',_0x1066bf[_0x289059(0x1f1)]()):window[_0x289059(0x30f)]['pushState']('','',_0x1066bf['toString']());}[_0x112d6b(0x336)](_0x1be486){const _0x1645b9=_0x112d6b;var _0x1364d3;return(_0x1364d3=new URL(window[_0x1645b9(0x3d7)][_0x1645b9(0x361)])[_0x1645b9(0x351)][_0x1645b9(0x3a3)](_0x1be486))!=null?_0x1364d3:void 0x0;}}var Kt=Object[_0x112d6b(0x288)],zt=Object[_0x112d6b(0x376)],Jt=(_0x5836ad,_0x29b428,_0x3a0f8b)=>_0x29b428 in _0x5836ad?Kt(_0x5836ad,_0x29b428,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a0f8b}):_0x5836ad[_0x29b428]=_0x3a0f8b,Zt=(_0x13c024,_0x29e078,_0x200757,_0x3ce7ca)=>{const _0x389a2a=_0x112d6b;for(var _0x2946f8=_0x3ce7ca>0x1?void 0x0:_0x3ce7ca?zt(_0x29e078,_0x200757):_0x29e078,_0x22643=_0x13c024[_0x389a2a(0x298)]-0x1,_0x5a296b;_0x22643>=0x0;_0x22643--)(_0x5a296b=_0x13c024[_0x22643])&&(_0x2946f8=_0x5a296b(_0x2946f8)||_0x2946f8);return _0x2946f8;},he=(_0x23fa24,_0x376fe0)=>(_0x30a784,_0x510a51)=>_0x376fe0(_0x30a784,_0x510a51,_0x23fa24),Qt=(_0x41325e,_0x1d6ec7,_0x1de8c6)=>Jt(_0x41325e,_0x1d6ec7+'',_0x1de8c6);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x112d6b(0x2a3)]=class extends a[_0x112d6b(0x368)]{constructor(_0x364f2d=Ue,_0x5079a4,_0x21841a,_0x59e5b9){const _0x1b53b4=_0x112d6b;super(),this[_0x1b53b4(0x39f)]=_0x364f2d,this[_0x1b53b4(0x32f)]=_0x5079a4,this[_0x1b53b4(0x38e)]=_0x21841a,this[_0x1b53b4(0x35a)]=_0x59e5b9;const {..._0x2a5b98}=a[_0x1b53b4(0x2b4)]({},Ue,this[_0x1b53b4(0x39f)]);this[_0x1b53b4(0x35a)][_0x1b53b4(0x38b)]($t,_0x2a5b98);}[_0x112d6b(0x1cb)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x112d6b(0x2c4)](){const _0x311405=_0x112d6b;this[_0x311405(0x1b7)]();}[_0x112d6b(0x198)](){const _0x5345cf=_0x112d6b;var _0x1ba15f;const _0x4a5a6b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5345cf(0x1f2)],{'useClass':G[_0x5345cf(0x332)]}],[u[_0x5345cf(0x264)],{'useClass':ge}],[exports[_0x5345cf(0x257)]],[Q],[K],[x],[de],[exports[_0x5345cf(0x343)]]];a[_0x5345cf(0x1e8)](this[_0x5345cf(0x38e)],a[_0x5345cf(0x3ab)](_0x4a5a6b,(_0x1ba15f=this[_0x5345cf(0x39f)])==null?void 0x0:_0x1ba15f[_0x5345cf(0x270)]));}['_registerRenderDependencies'](){const _0xa4fc61=_0x112d6b;this[_0xa4fc61(0x204)](this[_0xa4fc61(0x32f)]['registerRenderModule'](a[_0xa4fc61(0x1af)][_0xa4fc61(0x3d0)],[Ie])),this[_0xa4fc61(0x204)](this[_0xa4fc61(0x32f)]['registerRenderModule'](a[_0xa4fc61(0x1af)][_0xa4fc61(0x2a8)],[ve]));}[_0x112d6b(0x165)](){const _0x47bb8e=_0x112d6b;a['touchDependencies'](this[_0x47bb8e(0x38e)],[[x],[exports[_0x47bb8e(0x257)]],[Q],[K],[exports[_0x47bb8e(0x343)]]]);}},Qt(exports[_0x112d6b(0x2a3)],'pluginName',es),exports[_0x112d6b(0x2a3)]=Zt([a[_0x112d6b(0x317)](u[_0x112d6b(0x38a)]),he(0x1,p[_0x112d6b(0x20c)]),he(0x2,a[_0x112d6b(0x17f)](a[_0x112d6b(0x291)])),he(0x3,a[_0x112d6b(0x29a)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x2d23c1,_0x17f8de,_0x9d267f,_0x33dc16)=>{const _0x1e6126=_0x112d6b;for(var _0x595b36=_0x33dc16>0x1?void 0x0:_0x33dc16?ts(_0x17f8de,_0x9d267f):_0x17f8de,_0x3b389e=_0x2d23c1[_0x1e6126(0x298)]-0x1,_0x2df30a;_0x3b389e>=0x0;_0x3b389e--)(_0x2df30a=_0x2d23c1[_0x3b389e])&&(_0x595b36=_0x2df30a(_0x595b36)||_0x595b36);return _0x595b36;},F=(_0x25a5c7,_0x5a9bf9)=>(_0x2cc774,_0x115465)=>_0x5a9bf9(_0x2cc774,_0x115465,_0x25a5c7);exports[_0x112d6b(0x324)]=class extends u['CollaborationSocketService']{constructor(_0x44c53b,_0x45f5bf,_0x33ef76,_0xea8f7d,_0x3bbfa0){super(_0x44c53b,_0x45f5bf,_0x33ef76,_0xea8f7d,_0x3bbfa0);}async['createSocket'](_0x1149c1){const _0xe93607=_0x112d6b,_0x528c0f=await this[_0xe93607(0x277)](),_0x122035=this[_0xe93607(0x3bc)](_0x1149c1,_0x528c0f);return this[_0xe93607(0x240)](_0x122035);}['_createSocketURL'](_0x3f65ce,_0x525b9f){const _0x5e907a=_0x112d6b,_0x6cb670=typeof window>'u'?new URL(_0x3f65ce):new URL(_0x3f65ce,window[_0x5e907a(0x3d7)][_0x5e907a(0x23a)]);_0x6cb670[_0x5e907a(0x351)][_0x5e907a(0x3c6)](_0x5e907a(0x2f2),_0x525b9f);const _0x41f5dc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5e907a(0x3d7)][_0x5e907a(0x32d)]);return _0x41f5dc[_0x5e907a(0x3a3)](_0x5e907a(0x1a9))&&_0x6cb670[_0x5e907a(0x351)][_0x5e907a(0x3c6)](_0x5e907a(0x1a9),_0x41f5dc[_0x5e907a(0x3a3)]('runId')),_0x6cb670[_0x5e907a(0x1f1)]();}async['_getSessionTicket'](){const _0x4c3f79=_0x112d6b;var _0x4118dd,_0x1749ba,_0x4e3183;const _0x360398=this[_0x4c3f79(0x35a)][_0x4c3f79(0x2dc)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x937751=(_0x4118dd=_0x360398==null?void 0x0:_0x360398[_0x4c3f79(0x2aa)])!=null?_0x4118dd:u[_0x4c3f79(0x2c3)];return(_0x4e3183=(_0x1749ba=(await this[_0x4c3f79(0x212)][_0x4c3f79(0x3a3)](_0x937751,{'headers':{'Content-Type':_0x4c3f79(0x23b)}}))[_0x4c3f79(0x1e3)])==null?void 0x0:_0x1749ba[_0x4c3f79(0x329)])!=null?_0x4e3183:'';}},exports[_0x112d6b(0x324)]=ss([F(0x0,a[_0x112d6b(0x17f)](a['Injector'])),F(0x1,a['Inject'](G[_0x112d6b(0x31b)])),F(0x2,a[_0x112d6b(0x29a)]),F(0x3,a['ILogService']),F(0x4,m[_0x112d6b(0x233)])],exports[_0x112d6b(0x324)]);const Me=0x7530,Le=_0x112d6b(0x353);class is extends a[_0x112d6b(0x392)]{constructor(){const _0x341e87=_0x112d6b;super(),h(this,_0x341e87(0x365),a['generateRandomId']()),h(this,_0x341e87(0x337),new Set()),h(this,_0x341e87(0x1a2),new Map()),h(this,_0x341e87(0x2e5),null),h(this,_0x341e87(0x335),new Map()),h(this,_0x341e87(0x37d),new Map()),this[_0x341e87(0x191)]();}[_0x112d6b(0x29c)](){const _0x2eb3b0=_0x112d6b;super[_0x2eb3b0(0x29c)](),this[_0x2eb3b0(0x335)][_0x2eb3b0(0x263)]((_0x46181c,_0x37f497)=>this[_0x2eb3b0(0x26b)](_0x37f497)),this[_0x2eb3b0(0x2e5)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x112d6b(0x2fa)](_0x58c1ef){const _0x39b426=_0x112d6b;return this[_0x39b426(0x1c2)](_0x58c1ef)[_0x39b426(0x2ff)](d['distinctUntilChanged']());}['editingUnit'](_0x184762){const _0x536a77=_0x112d6b;this[_0x536a77(0x337)][_0x536a77(0x1df)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x536a77(0x32c)](_0x184762),this['_send']({'type':0x0,'memberID':this[_0x536a77(0x365)],'unitIDs':[_0x184762],'isForwarded':!0x1});}[_0x112d6b(0x373)](_0x5563d0){const _0x2fb4ac=_0x112d6b;this[_0x2fb4ac(0x337)][_0x2fb4ac(0x380)](_0x5563d0),this[_0x2fb4ac(0x337)][_0x2fb4ac(0x1df)]===0x0&&this[_0x2fb4ac(0x2e5)]&&window[_0x2fb4ac(0x21d)](this['_heartbeatTimer']);}[_0x112d6b(0x191)](){const _0x1334d9=_0x112d6b;this['disposeWithMe'](a[_0x1334d9(0x226)](d[_0x1334d9(0x378)](window,_0x1334d9(0x3bf))[_0x1334d9(0x28b)](_0x25800d=>{const _0x45b562=_0x1334d9;if(_0x25800d['key']!==Le||!_0x25800d[_0x45b562(0x2e9)])return;const _0x2c1e50=JSON['parse'](_0x25800d[_0x45b562(0x2e9)]);this[_0x45b562(0x1e4)](_0x2c1e50);}))),window['addEventListener'](_0x1334d9(0x3b1),()=>this[_0x1334d9(0x3da)]({'type':0x1,'memberID':this[_0x1334d9(0x365)],'unitIDs':Array[_0x1334d9(0x382)](this[_0x1334d9(0x337)])}));}[_0x112d6b(0x1e4)](_0xfeddf9){const _0x34dbec=_0x112d6b;switch(_0xfeddf9[_0x34dbec(0x181)]){case 0x0:this[_0x34dbec(0x1e9)](_0xfeddf9);break;case 0x1:this[_0x34dbec(0x281)](_0xfeddf9);break;case 0x2:this[_0x34dbec(0x1be)](_0xfeddf9);break;}}['_handleJoinEvent'](_0x36b512){const _0x5c9e6c=_0x112d6b,{unitIDs:_0x15cfea,memberID:_0x5363f1,isForwarded:_0x514184}=_0x36b512;_0x15cfea[_0x5c9e6c(0x263)](_0x5dc4d1=>{const _0xf1c92b=_0x5c9e6c;if(!_0x514184&&this[_0xf1c92b(0x1a2)][_0xf1c92b(0x377)](_0x5dc4d1)&&this[_0xf1c92b(0x1c2)](_0x5dc4d1)['next'](u[_0xf1c92b(0x2bc)][_0xf1c92b(0x243)]),!this[_0xf1c92b(0x1a2)][_0xf1c92b(0x377)](_0x5dc4d1)||!this[_0xf1c92b(0x1a2)][_0xf1c92b(0x3a3)](_0x5dc4d1)[_0xf1c92b(0x377)](_0x5363f1)){const _0x5dd180=this[_0xf1c92b(0x1a2)][_0xf1c92b(0x3a3)](_0x5dc4d1)||new Set();_0x5dd180[_0xf1c92b(0x32c)](_0x5363f1),this['_unitOnClients']['set'](_0x5dc4d1,_0x5dd180),this[_0xf1c92b(0x1bc)](_0x5363f1);}}),_0x514184||this[_0x5c9e6c(0x3da)]({'type':0x0,'memberID':this[_0x5c9e6c(0x365)],'unitIDs':[...this[_0x5c9e6c(0x337)]],'isForwarded':!0x0});}[_0x112d6b(0x1bc)](_0x4450b7){const _0x434143=_0x112d6b;this[_0x434143(0x26b)](_0x4450b7);const _0x4e73b0=window[_0x434143(0x171)](()=>{this['_unitOnClients']['forEach'](_0x20e985=>{_0x20e985['delete'](_0x4450b7);});},Me*0x2);this[_0x434143(0x335)]['set'](_0x4450b7,_0x4e73b0);}[_0x112d6b(0x26b)](_0x3bc60a){const _0x315ece=_0x112d6b;if(this[_0x315ece(0x335)]['has'](_0x3bc60a)){const _0x57222c=this['_clearOtherTimers']['get'](_0x3bc60a);_0x57222c&&window[_0x315ece(0x1d4)](_0x57222c),this[_0x315ece(0x335)]['set'](_0x3bc60a,null);}}[_0x112d6b(0x281)](_0x19662d){const _0x198d65=_0x112d6b,{memberID:_0x4bc168,unitIDs:_0x3e8c3a}=_0x19662d;_0x3e8c3a[_0x198d65(0x263)](_0x4a3ab7=>{const _0x499323=_0x198d65;var _0x29ffe7;const _0xb45a7d=this[_0x499323(0x1a2)]['get'](_0x4a3ab7);_0xb45a7d&&(_0xb45a7d[_0x499323(0x380)](_0x4bc168),(_0x29ffe7=this['_ensureSubject'](_0x4a3ab7))==null||_0x29ffe7[_0x499323(0x2c8)](_0xb45a7d[_0x499323(0x1df)]===0x0?u[_0x499323(0x2bc)][_0x499323(0x2e8)]:u['UnitStatus'][_0x499323(0x243)]));}),this['_removeClearOtherTimer'](_0x4bc168);}[_0x112d6b(0x1be)](_0xbfbbc0){const _0x31f3bb=_0x112d6b;this[_0x31f3bb(0x1bc)](_0xbfbbc0[_0x31f3bb(0x215)]);}[_0x112d6b(0x3da)](_0x414421){const _0x207ed3=_0x112d6b;localStorage[_0x207ed3(0x39e)](Le,JSON[_0x207ed3(0x250)](_0x414421));}[_0x112d6b(0x1c4)](){const _0xd6cb18=_0x112d6b;this[_0xd6cb18(0x2e5)]=window[_0xd6cb18(0x2f0)](()=>{const _0x5dbd3b=_0xd6cb18;this[_0x5dbd3b(0x3da)]({'type':0x2,'memberID':this[_0x5dbd3b(0x365)]});},Me);}[_0x112d6b(0x1c2)](_0x2a8202){const _0x211fda=_0x112d6b;return this[_0x211fda(0x37d)][_0x211fda(0x377)](_0x2a8202)||this['_unitStatus'][_0x211fda(0x3c6)](_0x2a8202,new d[(_0x211fda(0x340))](u[_0x211fda(0x2bc)][_0x211fda(0x2e8)])),this['_unitStatus'][_0x211fda(0x3a3)](_0x2a8202);}}function _0xde0e(){const _0x561e0c=['1em','subscribe','RefRangeService','attrs','deepClone','53512RpuTIp','jsx','Injector','280620DnKVYV','takeUntil','measureText','dispose$','isTransformMutationFailure','addHandlerCallback','length','DocSelectionManagerService','IConfigService','defIds','dispose','prototype','OffLineSingle','some','handleInsertRangeMoveDown','react','_range','UniverCollaborationClientUIPlugin','_cachedData','createInstance','fillStyle','@univerjs/sheets','UNIVER_SHEET','univer-flex\x20univer-items-center','wsSessionTicketUrl','_startSheetCollabCursor','getRelativeToViewportCoord','getSheetObject','collab-text-anchor-','M0\x200H16V16H0z','row','getLocalCacheKey','_docSkeletonManagerService','redoState','merge','_roomMembers$','unsubscribe','RxDisposable','_colorIndex','_instanceService','InsertRangeMoveRightCommandId','transform','UnitStatus','APPLY_PERMISSION_DENIED','LocaleService','collabStatus.synced','MessageType','_collaborationController','_status$','DEFAULT_WS_SESSION_TICKET_URL','onRendered','Workbook','transformRemoteChangeset','_backgroundColor','next','imageSourceType','beginPath','NOT_FOUND','endRow','selections','icon','split','contains','params','cursorInfo$','_collaborationUIEventService','MoveRangeCommandId','flatMap','INVITE_CODE_ALREADY_BOUND','_transformPreviousActiveRange','OFFLINE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ONLINE','YUUMI_ASYNCIO_CANCELLED','getConfig','NOT_COLLAB','@univerjs/docs','getAncestorScale','handleDeleteRangeMoveUp','makeDirty','permission.title','RevisionService','entries','_heartbeatTimer','_updateLocalCursor','_document','NO_OTHER_CLIENTS_EDITING','newValue','_updateCollabCursors','activeSheet$','getSheetBySheetId','onCommandExecuted','handleIRemoveRow','displayName','setInterval','_color','sessionTicket','find','_cursor','getCurrentUnitForType','Error','_docTransformIMECacheService','defs','@univerjs-pro/collaboration-client','getUnitStatus$','setAlpha','collaboration.single-unit.warning','status$','SOCKET_FAILED_RETRY','pipe','requireSession','SheetSkeletonManagerService','AWAITING_WITH_PENDING','unshift','onPointerMove$','map','subscribeEvent','skeleton','_entityInit$','reconnect','session.will-retry','bottom','collab-client.tooltip.reconnect','url(#$1','executeCommand','history','_sheetSkeletonManagerService','react/jsx-runtime','save','_saveCache','asObservable','EMAIL_HAS_BEEN_BOUND','197zGnSdv','DependentOn','error','DeleteRangeMoveUpCommandId','getSheetId','HTTPService','RemoveRowCommandId','assignAColorForMemberID','unitID','getItem','getRangePointData','replace','runRefRangeMutations','SetTextSelectionsOperation','BrowserCollaborationSocketService','invokeId','switchMap','includes','mapTo','ticket','handleMoveRange','_onCursorDelete','add','search','verdancy600','_renderManagerService','_dataLoaderService','IUniverInstanceService','WebSocketService','data','shareReplay','_clearOtherTimers','getParam','_selfUnitIDs','ITransformService','transformMutation','useDependency','APPLY_REVISION_CONFILICT','_initStatusComponent','CLOSE_ROOM','_getSheetObject','clipPath','BehaviorSubject','LOCAL_CACHE_INTERVAL','_docTransformStateCacheService','CollaborationDataLoaderController','push','_lastPointer','SessionStatus','updateOfflineData','INotificationService','COMPLETION_FINISHED','getColor','Failed','actions','OTHER_CLIENT_EDITING','IRemoteInstanceService','collabCursorState$','collaboration-client.offline-data-not-saved','searchParams','fillText','ACTIVE_UNIT_EVENT_CHANNEL','MemberService','_updateSubUnitFromURLParams','_setupSubUnitSync','InsertRangeMoveDownCommandId','YUUMI_UNABLE_LOAD_URL','_textBubble','_configService','isTransformMutationsWithChangesetSuccess','ranges','docStateChange$','_collabCursorState$','Warning','_assignedColors','href','_initEvent','@univerjs/engine-formula','top','_id','_notificationService','onLocalMutation','Plugin','CONFLICT','Tools','complete','none','off-line-single_clip0_910_343','text','unitId','disableLocalCache','red300','values','disposeUnit','MOBILE_HAS_BEEN_BOUND','@univerjs/rpc','getOwnPropertyDescriptor','has','fromEvent','_univerInstanceService','_uiPartsService','gold400','getCellPositionByOffset','_unitStatus','_docStateChangeManagerService','ColorKit','delete','#fff','from','hovered','combineLatest','_cursorInfo$','UPDATE_CURSOR','UniverIcon','getDocRanges','deserializeRangeWithSheet','UniverCollaborationClientPlugin','setConfig','getMergeData','_draw','_injector','_refRangeService','@univerjs/network','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Disposable','_initStatusListener','sessionStatus$','_hovered','selection','url(#off-line-single_clip0_910_343)','show','unit','_imageIoService','send','useCallback','YUUMI_RATE_OVER_LIMIT','setItem','_config','onPointerLeave$','arc','subUnitId','get','CollaborationController','455880xAITHG','_entities','textRanges','collab-rect-range-','subunit','YUUMI_SUBSCRIPTION_NOT_FOUND','mergeOverrideWithDependencies','DataLoaderService','LICENSE_MAX_UNITS_EXCEEDED','m2Prime','_eventUnsubscribe','triggerDblclick','unload','_docSyncEditingCollabCursorService','DOC_RANGE_TYPE','syncEditingCollabCursor','getOwnPropertySymbols','code','NodePositionConvertToRectRange','_transformUndoRedoStack','_saveTaskMap','m1Prime','SNAPSHOT_INVALID_SNAPSHOT','_createSocketURL','_docTransformSelectionsService','_transformHistoryAndStateStack','storage','_cursors','getRenderById','4wjcNQQ','getCurrentSelections','height','getCollabEntity$','set','pushState','collab-text-range-','Optional','collabStatus.syncing','_toggleOnline','purple300','WebURLService','CollaborationStatusDisplay','RemoveColCommandId','UNIVER_DOC','Shape','saveTaskMap','@univerjs/drawing','collabStatus.conflict','_initCommandExecutedListener','UNDEFINED','location','_getAnchorBounding','SheetsSelectionsService','_send','_onRefRangeChange','MUTATION','_scene','color','9017140XKRgwS','setShapeProps','registerComponent','createElement','_initDependencies','getTypeOfUnitDisposed$','resize','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','7732050YnxGwE','CollaborationSessionService','serializeRangeWithSheet','_collabCursorController','getValue','SOCKET_FAILED','UNRECOGNIZED','closePath','setTimeout','filter','RECT','sheetID','currentSkeleton$','ALREADY_EXISTS','isActive','IImageIoService','substring','IURLService','connectInjector','_toggleOffline','round','min','Inject','_getMergeRange','type','SNAPSHOT_HAS_BEEN_REMOVED','_drawTextRange','Unknown\x20user','div','transformStateCache','univer-text-green-500','saveOfflineData','LICENSE_DISTRO_REJECTED','evenodd','@univerjs/ui','current','findNodePositionByCharIndex','INVALID_ARGUMENT','getUnhiddenWorksheets','_docClipboardService','_init','_hover','runOnServer','getTypeOfUnitAdded$','mutations','concat','getSkeleton','_registerDependencies','Tooltip','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_revisionService','DocStateChangeManagerService','WECHAT_HAS_BEEN_BOUND','_removeCollabCursors','executionId','on-line-single_clip0_910_349','COLORS','_unitOnClients','currentColor','TEXT','onPointerEnter$','WebBrowserSingleActiveUnitService','useObservable','TOO_MANY_REQUESTS','runId','column','fromEventSubject','getCoordByCell','urlChange$','getFocusedUnit','UniverInstanceType','drawWith','init','idSuffix','INVITE_CODE_REQUIRED','forwardRef','uni.network.url-service','_initEntityListener','_registerRenderDependencies','startColumn','Vector2','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_EXPORT_SIZE_EXCEEDED','_scheduleClearOtherTimer','string','_handleHeartbeatEvent','SHEET_VIEWPORT_KEY','_hideTimer','AWAITING','_ensureSubject','transformSelections','_scheduleHeartbeat','_cursorShapes','DeleteRangeMoveLeftCommandId','UNAUTHENTICATED','PY_RUNTIME_SCRIPT_ERROR','3587250KBcgjh','fillRule','onStarting','@univerjs/design','INVITE_CODE_HAS_BEEN_UES','LICENSE_IMPORT_SIZE_EXCEEDED','transformMutationsWithChangeset','USER_NOT_INVITED_CODE','_disabled','@univerjs/engine-render','name','clearTimeout','jiqing500','setActiveRange','_localStorageService','ILocalStorageService','_render','Rectangle','Subject','_context','font','APPLY_DUPLICATED','size','_colorAssignService','throttleTime','toStringTag','body','_handleEvent','IDocClipboardService','_getSaveTimeout','RemoteUniscriptService','registerDependencies','_handleJoinEvent','collabStatus.notCollab','doc.mutation.rich-text-editing','PERMISSION_DENIED','extend','FromArray','setUndoRedoMutationParamsCache','CollaborationEvent','toString','ISocketService','PENDING','isArray','...','generateRandomId','_shapes','INTERNAL_ERROR','CollaborationStatus','off-line-single','#FFF','_drawRectRange','jsxs','ICommandService','path','random','range','8102dyCjov','@univerjs/docs-ui','disposeWithMe','_refreshCollabCursors','/run/','call','_commandService','then','CollaborationUIEventId','tag','IRenderManagerService','_updateURLWithCurrentState','SetWorksheetActivateCommand','_online','mask','_startDocCollabCursor','_httpService','[CollaborationDataLoaderController]','CONNECTOR_DATA_TOO_LARGE','memberID','rxjs','registerBeforeClose','handleInsertRow','debug','debounce','_memberService','@univerjs/sheets-ui','clearInterval','svg','getViewport','DocIMEInputManagerService','with','createIdentifier','collabStatus.fetchMiss','_drawAnchor','on-line-single','toDisposable','getUndoRedoMutationParamsCache','saveImage','roomMembers','loadOfflineData','Module','EffectRefRangId','undoState','_transformService','_labelPosition','collaboration.closeRoom','exhaustSavingTask','RegularPolygon','ISnapshotServerService','RichTextEditingMutation','_session','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getUnitId','getUniverSheetInstance','fill','origin','application/json','_urlService','ThemeService','_setupBeforeClosingHandler','_name','_doCreateSocket','TEXT_RANGE_LAYER_INDEX','getStateCache','OTHER_CLIENTS_EDITING','setParam','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','width','roomMembers$','registerRefRange','getMember','_themeService','266CITRAj','transformIMECache','clsx','addObject','onMouseMove','stringify','focused$','cursorInfo','YUUMI_URL_COL_OUT_OF_RANGE','hasOwnProperty','getActiveSheet','_handleHover','DesktopCollaborationStatusDisplayController','className','lineTo','session.collaboration-timeout','blue400','xlink:href','event$','Rect','DocSkeletonManagerService','eventID','children','_localeService','forEach','ILocalCacheService','90OFgVba','assign','YUUMI_NO_CUBOID_FOR_QUESTION','getCollabCursors$','colorChannel1','_beforeCloseService','_removeClearOtherTimer','restore','getMemberID','ILogService','_anchor','override','INVALID_INVITE_CODE','LOGIN_FAILED','all','debounceTime','black','result','_getSessionTicket','propertyIsEnumerable','_messageService','USERS_LEAVE','loadUnit','DocCollaborationEntity','_anchorDot','useRef','BuiltInUIPart','_onCursorUpdate','_handleLeaveEvent','_logService','toRgbString','indexOf','replaceState','univerjs-icon\x20univerjs-icon-','_getScale','defineProperty','currentTheme$'];_0xde0e=function(){return _0x561e0c;};return _0xde0e();}var Be=(_0x4761fd=>(_0x4761fd[_0x4761fd[_0x112d6b(0x3d6)]=0x0]=_0x112d6b(0x3d6),_0x4761fd[_0x4761fd['OK']=0x1]='OK',_0x4761fd[_0x4761fd['INTERNAL_ERROR']=0x2]=_0x112d6b(0x1f8),_0x4761fd[_0x4761fd[_0x112d6b(0x1ec)]=0x3]=_0x112d6b(0x1ec),_0x4761fd[_0x4761fd[_0x112d6b(0x2cb)]=0x4]=_0x112d6b(0x2cb),_0x4761fd[_0x4761fd[_0x112d6b(0x1c7)]=0x5]=_0x112d6b(0x1c7),_0x4761fd[_0x4761fd[_0x112d6b(0x176)]=0x6]=_0x112d6b(0x176),_0x4761fd[_0x4761fd[_0x112d6b(0x18e)]=0x7]=_0x112d6b(0x18e),_0x4761fd[_0x4761fd['TOO_MANY_REQUESTS']=0x8]=_0x112d6b(0x1a8),_0x4761fd[_0x4761fd['COMPLETION_FINISHED']=0x9]=_0x112d6b(0x349),_0x4761fd[_0x4761fd[_0x112d6b(0x272)]=0xa]='LOGIN_FAILED',_0x4761fd[_0x4761fd['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4761fd[_0x4761fd[_0x112d6b(0x3bb)]=0x1771]=_0x112d6b(0x3bb),_0x4761fd[_0x4761fd[_0x112d6b(0x182)]=0x1772]=_0x112d6b(0x182),_0x4761fd[_0x4761fd['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x4761fd[_0x4761fd['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4761fd[_0x4761fd[_0x112d6b(0x1ba)]=0x1b5a]=_0x112d6b(0x1ba),_0x4761fd[_0x4761fd['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x112d6b(0x33b),_0x4761fd[_0x4761fd['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x112d6b(0x2bd),_0x4761fd[_0x4761fd[_0x112d6b(0x1de)]=0x1b5d]=_0x112d6b(0x1de),_0x4761fd[_0x4761fd[_0x112d6b(0x214)]=0x1f41]=_0x112d6b(0x214),_0x4761fd[_0x4761fd[_0x112d6b(0x3ad)]=0x2329]=_0x112d6b(0x3ad),_0x4761fd[_0x4761fd[_0x112d6b(0x19a)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4761fd[_0x4761fd['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x112d6b(0x1ce),_0x4761fd[_0x4761fd[_0x112d6b(0x1bb)]=0x232c]=_0x112d6b(0x1bb),_0x4761fd[_0x4761fd[_0x112d6b(0x189)]=0x232d]=_0x112d6b(0x189),_0x4761fd[_0x4761fd[_0x112d6b(0x358)]=0x2711]=_0x112d6b(0x358),_0x4761fd[_0x4761fd['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x112d6b(0x253),_0x4761fd[_0x4761fd[_0x112d6b(0x39d)]=0x2713]=_0x112d6b(0x39d),_0x4761fd[_0x4761fd[_0x112d6b(0x3aa)]=0x2714]=_0x112d6b(0x3aa),_0x4761fd[_0x4761fd[_0x112d6b(0x267)]=0x271a]=_0x112d6b(0x267),_0x4761fd[_0x4761fd['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x112d6b(0x2db),_0x4761fd[_0x4761fd[_0x112d6b(0x1c8)]=0x2af9]=_0x112d6b(0x1c8),_0x4761fd[_0x4761fd['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x112d6b(0x1cd),_0x4761fd[_0x4761fd[_0x112d6b(0x271)]=0x2ee2]=_0x112d6b(0x271),_0x4761fd[_0x4761fd[_0x112d6b(0x1b3)]=0x2ee3]=_0x112d6b(0x1b3),_0x4761fd[_0x4761fd[_0x112d6b(0x1d0)]=0x2ee4]=_0x112d6b(0x1d0),_0x4761fd[_0x4761fd[_0x112d6b(0x2d6)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4761fd[_0x4761fd[_0x112d6b(0x19d)]=0x32c9]=_0x112d6b(0x19d),_0x4761fd[_0x4761fd[_0x112d6b(0x374)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4761fd[_0x4761fd['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x112d6b(0x315),_0x4761fd[_0x4761fd[_0x112d6b(0x16f)]=-0x1]='UNRECOGNIZED',_0x4761fd))(Be||{}),ns=Object[_0x112d6b(0x376)],rs=(_0x2bd864,_0x5a71d5,_0x582356,_0x533579)=>{const _0x22abe1=_0x112d6b;for(var _0x46b3db=_0x533579>0x1?void 0x0:_0x533579?ns(_0x5a71d5,_0x582356):_0x5a71d5,_0xefb48a=_0x2bd864[_0x22abe1(0x298)]-0x1,_0x380dbd;_0xefb48a>=0x0;_0xefb48a--)(_0x380dbd=_0x2bd864[_0xefb48a])&&(_0x46b3db=_0x380dbd(_0x46b3db)||_0x46b3db);return _0x46b3db;},ue=(_0x293776,_0x23985b)=>(_0xcdb55d,_0x28e46)=>_0x23985b(_0xcdb55d,_0x28e46,_0x293776);exports[_0x112d6b(0x1e7)]=class extends a[_0x112d6b(0x392)]{constructor(_0x54f245,_0xe3b8a8,_0x28d563){const _0x39bdfa=_0x112d6b;super(),this[_0x39bdfa(0x2b9)]=_0x54f245,this[_0x39bdfa(0x212)]=_0xe3b8a8,this[_0x39bdfa(0x35a)]=_0x28d563;}async[_0x112d6b(0x193)](_0x2d9491,_0x159b89,_0x2295b8,..._0x1171e9){const _0x346c8c=_0x112d6b;var _0x5975f1,_0x78700c,_0x246610,_0x41212a;const _0x446c61=this[_0x346c8c(0x2b9)][_0x346c8c(0x1ae)]();if(!_0x446c61)throw new Error(_0x346c8c(0x236));const _0x47a121=((_0x5975f1=this[_0x346c8c(0x35a)]['getConfig'](u[_0x346c8c(0x391)]))!=null?_0x5975f1:u[_0x346c8c(0x245)])+'/'+_0x2d9491+_0x346c8c(0x206)+_0x159b89,_0x20ca97=new URL(window[_0x346c8c(0x3d7)][_0x346c8c(0x361)]),_0x5966d0={'scriptId':_0x2d9491,'runId':(_0x78700c=_0x20ca97['searchParams'][_0x346c8c(0x3a3)](_0x346c8c(0x1a9)))!=null?_0x78700c:'','function':_0x159b89,'unitId':_0x446c61[_0x346c8c(0x237)](),'argsOfFunction':JSON[_0x346c8c(0x250)](_0x1171e9),'invokeId':(_0x246610=_0x2295b8[_0x346c8c(0x325)])!=null?_0x246610:'','executionId':(_0x41212a=_0x2295b8[_0x346c8c(0x19f)])!=null?_0x41212a:''};try{const _0x4b3f8b=await this[_0x346c8c(0x212)]['post'](_0x47a121,{'body':_0x5966d0});return _0x4b3f8b['body'][_0x346c8c(0x318)]&&_0x4b3f8b[_0x346c8c(0x1e3)][_0x346c8c(0x318)][_0x346c8c(0x3b6)]!==Be['OK']?'Failed':_0x4b3f8b[_0x346c8c(0x1e3)][_0x346c8c(0x276)];}catch{return _0x346c8c(0x34b);}}},exports[_0x112d6b(0x1e7)]=rs([ue(0x0,a[_0x112d6b(0x331)]),ue(0x1,a[_0x112d6b(0x17f)](G[_0x112d6b(0x31b)])),ue(0x2,a[_0x112d6b(0x29a)])],exports['RemoteUniscriptService']),exports[_0x112d6b(0x3ce)]=xe,exports[_0x112d6b(0x17a)]=be,exports['SheetCollabCursorShape']=we,exports[_0x112d6b(0x1a6)]=is,exports[_0x112d6b(0x3cd)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2fe470=_0xb6bf;(function(_0x41a3dd,_0x36ea05){const _0x3f5252=_0xb6bf,_0x175016=_0x41a3dd();while(!![]){try{const _0x140416=parseInt(_0x3f5252(0x162))/0x1+-parseInt(_0x3f5252(0x15d))/0x2+-parseInt(_0x3f5252(0x160))/0x3+parseInt(_0x3f5252(0x166))/0x4+parseInt(_0x3f5252(0x16a))/0x5*(parseInt(_0x3f5252(0x15f))/0x6)+-parseInt(_0x3f5252(0x16c))/0x7+-parseInt(_0x3f5252(0x16d))/0x8;if(_0x140416===_0x36ea05)break;else _0x175016['push'](_0x175016['shift']());}catch(_0x549de2){_0x175016['push'](_0x175016['shift']());}}}(_0x5363,0x804c0));function _0xb6bf(_0x1c9605,_0x442f74){const _0x536352=_0x5363();return _0xb6bf=function(_0xb6bff9,_0x24903a){_0xb6bff9=_0xb6bff9-0x15c;let _0x3e1739=_0x536352[_0xb6bff9];return _0x3e1739;},_0xb6bf(_0x1c9605,_0x442f74);}function _0x5363(){const _0x28c4c0=['Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1802885FIZEEo','5424560xCVBsV','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Click\x20to\x20Reconnect','623380wYBObK','exports','37878TMqUZH','1597917XQSxzC','Synced','521756IXQMcK','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20please\x20check\x20your\x20network.','3170244IeBLdu','Local\x20file','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','785pOYrkH'];_0x5363=function(){return _0x28c4c0;};return _0x5363();}const e={'collab-client':{'tooltip':{'reconnect':_0x2fe470(0x15c)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x2fe470(0x167),'synced':_0x2fe470(0x161),'syncing':'Syncing...','offline':_0x2fe470(0x163)},'session':{'connection-failed':_0x2fe470(0x165),'will-retry':_0x2fe470(0x168),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x2fe470(0x164)},'conflict':{'title':'Collaboration\x20Conflict','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':'Authentication\x20Error','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':_0x2fe470(0x169)},'closeRoom':_0x2fe470(0x16b)},'auth':{'needGotoLoginAlert':_0x2fe470(0x16e)}};module[_0x2fe470(0x15e)]=e;
|