@univerjs-pro/collaboration-client-ui 0.8.1 → 0.8.2-nightly.202506211606
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.css +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/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -1
- package/lib/types/services/local-cache/web-local-cache.service.d.ts +2 -2
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +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 +18 -18
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4016d8=_0x4980;(function(_0x426f9f,_0x1d90be){const _0xec07cc=_0x4980,_0x93ad86=_0x426f9f();while(!![]){try{const _0x528232=-parseInt(_0xec07cc(0x176))/0x1+-parseInt(_0xec07cc(0x173))/0x2+-parseInt(_0xec07cc(0x175))/0x3*(-parseInt(_0xec07cc(0x16f))/0x4)+parseInt(_0xec07cc(0x16d))/0x5+parseInt(_0xec07cc(0x17a))/0x6+parseInt(_0xec07cc(0x172))/0x7+-parseInt(_0xec07cc(0x170))/0x8*(parseInt(_0xec07cc(0x17b))/0x9);if(_0x528232===_0x1d90be)break;else _0x93ad86['push'](_0x93ad86['shift']());}catch(_0x1586e7){_0x93ad86['push'](_0x93ad86['shift']());}}}(_0x2c40,0x4acce));function _0x2c40(){const _0xf3d05e=['1527528BnhEwH','72pDRCeo','2883785pdywmH','get','752zlepqj','74544MbeGCz','extend','2317539KSfneX','1181512DzkeFP','_injector','1491nmKqwy','284176rvBUwm','runOnServer','RemoteUniscriptService','@univerjs-pro/collaboration-client-ui'];_0x2c40=function(){return _0xf3d05e;};return _0x2c40();}function _0x4980(_0xfcc3d,_0x581e8d){const _0x2c40a1=_0x2c40();return _0x4980=function(_0x498006,_0x30b313){_0x498006=_0x498006-0x16d;let _0x425f80=_0x2c40a1[_0x498006];return _0x425f80;},_0x4980(_0xfcc3d,_0x581e8d);}const t=require(_0x4016d8(0x179)),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x4016d8(0x177)](_0x58b5cc,_0x29c83b,..._0x3f0a0c){const _0x4aacf6=_0x4016d8;return this[_0x4aacf6(0x174)][_0x4aacf6(0x16e)](t[_0x4aacf6(0x178)])[_0x4aacf6(0x177)](_0x58b5cc,_0x29c83b,{},..._0x3f0a0c);}}e['FUniver'][_0x4016d8(0x171)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x114c64=_0x10ca;(function(_0x1d8085,_0x43a284){const _0x261f53=_0x10ca,_0x492d45=_0x1d8085();while(!![]){try{const _0xc37655=parseInt(_0x261f53(0x1c6))/0x1*(-parseInt(_0x261f53(0x29c))/0x2)+parseInt(_0x261f53(0x309))/0x3*(-parseInt(_0x261f53(0x19e))/0x4)+parseInt(_0x261f53(0x313))/0x5+-parseInt(_0x261f53(0x103))/0x6+-parseInt(_0x261f53(0x345))/0x7+parseInt(_0x261f53(0x156))/0x8+parseInt(_0x261f53(0x155))/0x9*(parseInt(_0x261f53(0x355))/0xa);if(_0xc37655===_0x43a284)break;else _0x492d45['push'](_0x492d45['shift']());}catch(_0x3e53f9){_0x492d45['push'](_0x492d45['shift']());}}}(_0x4174,0x4d194));var Ve=Object[_0x114c64(0x24b)],Xe=(_0x58f6ef,_0x39825c,_0x1d9a9e)=>_0x39825c in _0x58f6ef?Ve(_0x58f6ef,_0x39825c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d9a9e}):_0x58f6ef[_0x39825c]=_0x1d9a9e,h=(_0x57a585,_0x108411,_0x1dc8ae)=>Xe(_0x57a585,typeof _0x108411!=_0x114c64(0x2f5)?_0x108411+'':_0x108411,_0x1dc8ae);Object['defineProperty'](exports,Symbol[_0x114c64(0x14b)],{'value':_0x114c64(0x28f)});const u=require(_0x114c64(0x225)),a=require(_0x114c64(0x348)),p=require(_0x114c64(0x2c3)),G=require('@univerjs/network'),b=require(_0x114c64(0x11d)),Ge=require(_0x114c64(0x20a)),d=require(_0x114c64(0x30a)),Y=require(_0x114c64(0x119)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x114c64(0x34c)),g=require(_0x114c64(0x28c)),$=require(_0x114c64(0x2d8)),X=require(_0x114c64(0x2f7)),w=require(_0x114c64(0x16c)),T=require(_0x114c64(0x117)),D=require(_0x114c64(0x208)),M=require('react'),Ke=require(_0x114c64(0x13e));var qe=Object[_0x114c64(0x140)],ze=(_0x5f0313,_0x3b88fc,_0x5a6a70,_0x34ef3a)=>{for(var _0x40e353=_0x34ef3a>0x1?void 0x0:_0x34ef3a?qe(_0x3b88fc,_0x5a6a70):_0x3b88fc,_0x485164=_0x5f0313['length']-0x1,_0x469b91;_0x485164>=0x0;_0x485164--)(_0x469b91=_0x5f0313[_0x485164])&&(_0x40e353=_0x469b91(_0x40e353)||_0x40e353);return _0x40e353;},Te=(_0x203fca,_0x8b68c2)=>(_0x1651d3,_0x1fac26)=>_0x8b68c2(_0x1651d3,_0x1fac26,_0x203fca);let de=class extends a[_0x114c64(0x27a)]{constructor(_0x33e2f2,_0x3126be){const _0x1f4f71=_0x114c64;super(),this['_docClipboardService']=_0x33e2f2,this[_0x1f4f71(0x128)]=_0x3126be,this[_0x1f4f71(0x194)]();}[_0x114c64(0x194)](){const _0x372798=_0x114c64,_0x1ab778=this;this[_0x372798(0x220)](this[_0x372798(0x123)]['addClipboardHook']({'onBeforePasteImage':async _0x20ea0a=>{const _0x409413=_0x372798,_0x9f81c9=await _0x1ab778['_imageIoService'][_0x409413(0x2ec)](_0x20ea0a);return _0x9f81c9?{'source':_0x9f81c9[_0x409413(0x366)],'imageSourceType':_0x9f81c9[_0x409413(0x1ae)]}:null;}}));}};de=ze([Te(0x0,b[_0x114c64(0x301)]),Te(0x1,Ge[_0x114c64(0xf5)])],de);const Oe=[_0x114c64(0x24d),_0x114c64(0x19b),_0x114c64(0x223),_0x114c64(0xeb),'blue.400','yellow.400'];class me extends a[_0x114c64(0x2b9)]{constructor(){const _0xd09e58=_0x114c64;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0xd09e58(0x2ce),0x0);}[_0x114c64(0x2e1)](_0x2eda5f){const _0x1d063d=_0x114c64;if(this['_assignedColors'][_0x1d063d(0x2e7)](_0x2eda5f))return this[_0x1d063d(0x2ed)]['get'](_0x2eda5f);const _0x25f5bc=Oe[this[_0x1d063d(0x2ce)]];return this[_0x1d063d(0x2ce)]=(this[_0x1d063d(0x2ce)]+0x1)%Oe[_0x1d063d(0x2f1)],this[_0x1d063d(0x2ed)][_0x1d063d(0x21f)](_0x2eda5f,_0x25f5bc),_0x25f5bc;}}function we(_0x2fcc6a){const _0xa71fc3=_0x114c64;let _0xf279be='';for(const _0x1698fb of _0x2fcc6a){const {startOffset:_0x780cd5,endOffset:_0x1f87cd,isActive:_0x42e611,rangeType:_0x4f4103,segmentId:_0x410e00,segmentPage:_0x1c2988}=_0x1698fb;_0xf279be[_0xa71fc3(0x2f1)]&&(_0xf279be+=','),_0xf279be+=_0x780cd5+':'+_0x1f87cd+':'+(_0x42e611?'1':'0')+':'+_0x4f4103+':'+_0x410e00+':'+_0x1c2988;}return _0xf279be;}function _0x10ca(_0x17f49a,_0x3347c4){const _0x4174d1=_0x4174();return _0x10ca=function(_0x10cac5,_0x957a55){_0x10cac5=_0x10cac5-0xe6;let _0x2a7dcd=_0x4174d1[_0x10cac5];return _0x2a7dcd;},_0x10ca(_0x17f49a,_0x3347c4);}function Je(_0x4e6846){const _0x2b1090=_0x114c64,_0x72ca0a=_0x4e6846['split'](','),_0x5d350f=[];for(const _0x1f72af of _0x72ca0a){const [_0x451188,_0x47747c,_0xb63142,_0xa7ab92,_0x5c6264,_0x837438]=_0x1f72af['split'](':');_0x5d350f['push']({'startOffset':Number(_0x451188),'endOffset':Number(_0x47747c),'collapsed':_0x451188===_0x47747c,'isActive':_0xb63142==='1','rangeType':_0xa7ab92===a['DOC_RANGE_TYPE'][_0x2b1090(0x36a)]?a['DOC_RANGE_TYPE'][_0x2b1090(0x36a)]:a[_0x2b1090(0x32f)][_0x2b1090(0x17e)],'segmentId':typeof _0x5c6264==_0x2b1090(0x267)?String(_0x5c6264):'','segmentPage':Number(_0x837438!=null?_0x837438:-0x1)});}return _0x5d350f[_0x2b1090(0x31c)](_0x5568f4=>_0x5568f4[_0x2b1090(0x2ca)])||(_0x5d350f[0x0][_0x2b1090(0x2ca)]=!0x0),_0x5d350f;}class Ce extends a[_0x114c64(0x27a)]{constructor(){const _0xd435b0=_0x114c64;super(...arguments),h(this,_0xd435b0(0x2e9),new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0xd435b0(0x2e9)][_0xd435b0(0x1ce)]());}['syncEditingCollabCursor'](_0x19de99){const {unitID:_0x4dff81,memberID:_0x4543be,textRanges:_0x56ac21}=_0x19de99,_0x4a39ab=we(_0x56ac21);if(_0x4a39ab==='')return;const _0x34de83={'unitID':_0x4dff81,'memberID':_0x4543be,'selection':_0x4a39ab};this['_collabCursorState$']['next'](_0x34de83);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x288670,_0x317842,_0x519c36,_0x465c6f)=>{const _0x19a9be=_0x114c64;for(var _0x3ff890=_0x465c6f>0x1?void 0x0:_0x465c6f?Ze(_0x317842,_0x519c36):_0x317842,_0x32459=_0x288670[_0x19a9be(0x2f1)]-0x1,_0x3ff727;_0x32459>=0x0;_0x32459--)(_0x3ff727=_0x288670[_0x32459])&&(_0x3ff890=_0x3ff727(_0x3ff890)||_0x3ff890);return _0x3ff890;},L=(_0x26f195,_0x3e422e)=>(_0x30dd7c,_0x3f103a)=>_0x3e422e(_0x30dd7c,_0x3f103a,_0x26f195);const et=0x12c,tt=0x64;let fe=class extends a[_0x114c64(0x27a)]{constructor(_0x10fc01,_0x2e0c9c,_0x2bd531,_0x334541,_0x520ac4,_0x4ea184,_0x401d09,_0x37a997,_0x4355a5){const _0x37125b=_0x114c64;super(),h(this,'_online',!0x1),h(this,_0x37125b(0x194),!0x1),h(this,_0x37125b(0x34b),new d[(_0x37125b(0x1d6))](new Map())),h(this,'cursorInfo$',this[_0x37125b(0x34b)][_0x37125b(0x1ce)]()),h(this,_0x37125b(0x26d),new d[(_0x37125b(0x1d6))]([])),h(this,_0x37125b(0x364),this[_0x37125b(0x26d)]['pipe'](d[_0x37125b(0x1c4)](et))),h(this,'_updateLocalCursor',a[_0x37125b(0x12e)](_0xbf84=>{const _0x3e76d5=_0x37125b,_0x3fa05b={'eventID':m[_0x3e76d5(0x129)][_0x3e76d5(0x1f6)],'data':{'unitID':this[_0x3e76d5(0x216)],'memberID':this['_session'][_0x3e76d5(0x260)](),'selection':we(_0xbf84)}};this['_session'][_0x3e76d5(0x1f9)](_0x3fa05b,this['unitID']);},tt)),(this['unitID']=_0x10fc01,this[_0x37125b(0x12b)]=_0x2e0c9c,this[_0x37125b(0x2c4)]=_0x2bd531,this[_0x37125b(0xf0)]=_0x334541,this['_memberService']=_0x520ac4,this[_0x37125b(0x1f5)]=_0x4ea184,this[_0x37125b(0x252)]=_0x401d09,this[_0x37125b(0x122)]=_0x37a997,this[_0x37125b(0x1cd)]=_0x4355a5);}get['cursorInfo'](){const _0x362ba4=_0x114c64;return this[_0x362ba4(0x34b)][_0x362ba4(0x271)]();}get[_0x114c64(0x2ff)](){const _0x46a706=_0x114c64;return this[_0x46a706(0x26d)]['getValue']();}[_0x114c64(0x114)](){const _0x30dc00=_0x114c64;super[_0x30dc00(0x114)](),this['_cursorInfo$'][_0x30dc00(0x124)](new Map()),this[_0x30dc00(0x34b)]['complete'](),this[_0x30dc00(0x26d)]['next']([]),this[_0x30dc00(0x26d)][_0x30dc00(0x116)]();}[_0x114c64(0x254)](){const _0x2e4390=_0x114c64;this['_init']||(this['_init']=!0x0,this[_0x2e4390(0x12b)][_0x2e4390(0x2bf)][_0x2e4390(0x12c)](d[_0x2e4390(0x13a)](this[_0x2e4390(0x35d)]))['subscribe'](_0x248adc=>{const _0x45e626=_0x2e4390;_0x248adc===u[_0x45e626(0x327)]['ONLINE']?this[_0x45e626(0x32b)]():this[_0x45e626(0x204)]();}),this[_0x2e4390(0x12b)][_0x2e4390(0x200)][_0x2e4390(0x12c)](d['takeUntil'](this['dispose$']))['subscribe'](_0x4d79cb=>{const _0x44d2c3=_0x2e4390,_0x15da45=_0x4d79cb[_0x44d2c3(0x311)];_0x15da45===m['CollaborationEvent'][_0x44d2c3(0x1f6)]&&this[_0x44d2c3(0x323)](_0x4d79cb),_0x15da45===m[_0x44d2c3(0x129)][_0x44d2c3(0x14d)]&&this[_0x44d2c3(0x312)](_0x4d79cb);}),this[_0x2e4390(0x220)](this['_commandService'][_0x2e4390(0x10c)](_0x2f30a9=>{const _0x737dc=_0x2e4390,_0xe6a1f3=_0x2f30a9[_0x737dc(0x1ee)];_0xe6a1f3!=null&&this[_0x737dc(0x28a)]&&_0x2f30a9['id']===Y[_0x737dc(0x1ed)]['id']&&_0xe6a1f3[_0x737dc(0x145)]===this[_0x737dc(0x216)]&&_0xe6a1f3[_0x737dc(0x241)]===!0x1&&_0xe6a1f3['ranges'][_0x737dc(0x2f1)]>0x0&&this[_0x737dc(0x157)](_0xe6a1f3[_0x737dc(0x147)]);})),this['_syncEditingCollabCursorService'][_0x2e4390(0x227)][_0x2e4390(0x12c)](d[_0x2e4390(0x13a)](this['dispose$']))[_0x2e4390(0x2c9)](_0x17908f=>{const _0x3970c7=_0x2e4390;if((_0x17908f==null?void 0x0:_0x17908f[_0x3970c7(0x216)])!==this['unitID'])return;const _0x421304={'eventID':m['CollaborationEvent'][_0x3970c7(0x1f6)],'data':_0x17908f};this[_0x3970c7(0x323)](_0x421304);}),this[_0x2e4390(0x220)](this[_0x2e4390(0x1cd)]['onCommandExecuted'](_0x19c84c=>{const _0x3127ed=_0x2e4390;if(_0x19c84c[_0x3127ed(0x1ee)]==null)return;const _0x4ddc9e=_0x19c84c[_0x3127ed(0x1ee)];if(_0x19c84c['id']!==Y[_0x3127ed(0x26c)]['id']||_0x4ddc9e[_0x3127ed(0x145)]!==this[_0x3127ed(0x216)])return;const _0x2a6f46={'id':_0x3127ed(0x113),'params':_0x4ddc9e},_0x566751=this['cursorInfo'];for(const [_0x183381,_0x59fca3]of _0x566751){const _0xceaafa={'id':_0x3127ed(0x113),'params':{'unitId':this[_0x3127ed(0x216)],'actions':null,'textRanges':_0x59fca3[_0x3127ed(0x147)]}},_0x426556=this[_0x3127ed(0x252)][_0x3127ed(0x1e2)](_0x2a6f46,_0xceaafa,!0x1);if(m[_0x3127ed(0x331)](_0x426556))throw _0x426556['error'];_0x566751[_0x3127ed(0x21f)](_0x183381,{..._0x59fca3,'ranges':_0x426556[_0x3127ed(0x347)][_0x3127ed(0x1ee)][_0x3127ed(0x189)]});}queueMicrotask(()=>{const _0x2d3ba3=_0x3127ed;this[_0x2d3ba3(0x34b)][_0x2d3ba3(0x124)](_0x566751);});})));}[_0x114c64(0x323)](_0x2a2058){const _0x1d7872=_0x114c64;var _0x4f0a02,_0x23101e;const {memberID:_0x3ce3b2,selection:_0x3a6dc4}=_0x2a2058[_0x1d7872(0xff)],_0x287013=Je(_0x3a6dc4),_0x52b6f8=(_0x23101e=(_0x4f0a02=this['_memberService'][_0x1d7872(0x2f8)](this[_0x1d7872(0x216)],_0x3ce3b2))==null?void 0x0:_0x4f0a02[_0x1d7872(0x1bf)])!=null?_0x23101e:'Unknown\x20user',_0x5b15d5={'color':this['_colorAssignService'][_0x1d7872(0x2e1)](_0x3ce3b2),'name':_0x52b6f8,'ranges':_0x287013},_0x38f0ad=this[_0x1d7872(0x321)];_0x38f0ad[_0x1d7872(0x21f)](_0x3ce3b2,_0x5b15d5),this['_cursorInfo$']['next'](_0x38f0ad);}['_onCursorDelete'](_0x4a71d7){const _0x53cd8f=_0x114c64,{memberID:_0x2b2511}=_0x4a71d7[_0x53cd8f(0xff)],_0xb518c6=this[_0x53cd8f(0x321)];_0xb518c6[_0x53cd8f(0x102)](_0x2b2511),this[_0x53cd8f(0x34b)]['next'](_0xb518c6);}['_toggleOnline'](){const _0x5e1e22=_0x114c64;var _0x1cd7d9;if(this[_0x5e1e22(0x28a)]=!0x0,((_0x1cd7d9=this[_0x5e1e22(0x122)][_0x5e1e22(0x2e3)]())==null?void 0x0:_0x1cd7d9[_0x5e1e22(0x234)]())!==this[_0x5e1e22(0x216)])return;const _0x5e85e1=this['_injector'][_0x5e1e22(0x1a9)](Y[_0x5e1e22(0x2fc)])['getDocRanges']();Array[_0x5e1e22(0x1e1)](_0x5e85e1)&&_0x5e85e1[_0x5e1e22(0x2f1)]>0x0&&this[_0x5e1e22(0x157)](_0x5e85e1);}[_0x114c64(0x204)](){const _0x21769e=_0x114c64;this[_0x21769e(0x28a)]=!0x1;}};fe=Qe([L(0x2,a[_0x114c64(0x307)](a[_0x114c64(0x2bc)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x114c64(0x307)](u[_0x114c64(0x14a)])),L(0x5,a['Inject'](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x114c64(0x26b)]),L(0x8,a[_0x114c64(0x287)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x2520d8,_0x49b6ac,_0x175898,_0x549117)=>{const _0x532071=_0x114c64;for(var _0x112c70=_0x549117>0x1?void 0x0:_0x549117?st(_0x49b6ac,_0x175898):_0x49b6ac,_0x4fc8e5=_0x2520d8[_0x532071(0x2f1)]-0x1,_0x1044cb;_0x4fc8e5>=0x0;_0x4fc8e5--)(_0x1044cb=_0x2520d8[_0x4fc8e5])&&(_0x112c70=_0x1044cb(_0x112c70)||_0x112c70);return _0x112c70;},A=(_0xc9363e,_0x215dc8)=>(_0x3ac972,_0x3a163d)=>_0x215dc8(_0x3ac972,_0x3a163d,_0xc9363e);const nt=0x12c,rt=0x64,ot=()=>{let _0x1d8467=[],_0x4c1347=!0x1;return _0x585d26=>{const _0x25acc1=_0x10ca;_0x1d8467[_0x25acc1(0x33e)](_0x585d26),_0x4c1347||(_0x4c1347=!0x0,setTimeout(()=>{_0x1d8467['forEach'](_0x8cefbc=>_0x8cefbc()),_0x1d8467=[],_0x4c1347=!0x1;}));};};let Se=class extends a[_0x114c64(0x27a)]{constructor(_0xa01ea0,_0x551b05,_0x1634fe,_0x337803,_0x8afdc3,_0x2cbbe3,_0x569ed6,_0x1d3dd7){const _0x31e003=_0x114c64;super(),h(this,_0x31e003(0x28a),!0x1),h(this,_0x31e003(0x194),!0x1),h(this,'_cursorInfo$',new d[(_0x31e003(0x1d6))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x31e003(0x1ce)]()),h(this,_0x31e003(0x26d),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x31e003(0x26d)][_0x31e003(0x12c)](d[_0x31e003(0x1c4)](nt))),h(this,'_updateLocalCursor',a[_0x31e003(0x12e)]((_0x442856,_0x21091b)=>{const _0x14486a=_0x31e003,_0x3ebebd={'eventID':m['CollaborationEvent'][_0x14486a(0x1f6)],'data':{'unitID':this[_0x14486a(0x216)],'memberID':this[_0x14486a(0x12b)]['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x442856,_0x21091b[_0x14486a(0x226)])}};this[_0x14486a(0x12b)][_0x14486a(0x1f9)](_0x3ebebd,this[_0x14486a(0x216)]);},rt)),(this[_0x31e003(0x216)]=_0xa01ea0,this['_session']=_0x551b05,this[_0x31e003(0x2c4)]=_0x1634fe,this[_0x31e003(0xf0)]=_0x337803,this[_0x31e003(0x236)]=_0x8afdc3,this[_0x31e003(0x122)]=_0x2cbbe3,this[_0x31e003(0x1cd)]=_0x569ed6,this[_0x31e003(0x245)]=_0x1d3dd7);}get[_0x114c64(0x321)](){const _0x1df612=_0x114c64;return this[_0x1df612(0x34b)][_0x1df612(0x271)]();}get[_0x114c64(0x2ff)](){const _0x2ac813=_0x114c64;return this[_0x2ac813(0x26d)][_0x2ac813(0x271)]();}['dispose'](){const _0x765ec9=_0x114c64;super[_0x765ec9(0x114)](),this[_0x765ec9(0x34b)][_0x765ec9(0x124)](new Map()),this[_0x765ec9(0x34b)][_0x765ec9(0x116)](),this[_0x765ec9(0x26d)][_0x765ec9(0x124)]([]),this[_0x765ec9(0x26d)][_0x765ec9(0x116)]();}['init'](){const _0x4bf5a2=_0x114c64;this[_0x4bf5a2(0x194)]||(this['_init']=!0x0,this[_0x4bf5a2(0x12b)][_0x4bf5a2(0x2bf)]['pipe'](d[_0x4bf5a2(0x13a)](this[_0x4bf5a2(0x35d)]))['subscribe'](_0x35bd11=>{const _0x18f7b5=_0x4bf5a2;_0x35bd11===u[_0x18f7b5(0x327)][_0x18f7b5(0x2e4)]?this[_0x18f7b5(0x32b)]():this[_0x18f7b5(0x204)]();}),this[_0x4bf5a2(0x12b)]['event$'][_0x4bf5a2(0x12c)](d[_0x4bf5a2(0x13a)](this[_0x4bf5a2(0x35d)]))['subscribe'](_0x11b38d=>{const _0xdd6cf3=_0x4bf5a2,_0x535eb2=_0x11b38d[_0xdd6cf3(0x311)];_0x535eb2===m[_0xdd6cf3(0x129)]['UPDATE_CURSOR']&&this[_0xdd6cf3(0x323)](_0x11b38d),_0x535eb2===m[_0xdd6cf3(0x129)][_0xdd6cf3(0x14d)]&&this[_0xdd6cf3(0x312)](_0x11b38d);}),this[_0x4bf5a2(0x115)](),this['disposeWithMe'](this[_0x4bf5a2(0x1cd)][_0x4bf5a2(0x10c)](_0x529deb=>{const _0x5bd995=_0x4bf5a2;if(this['_online']&&_0x529deb['id']===g[_0x5bd995(0x2e6)]['id']&&_0x529deb[_0x5bd995(0x1ee)]['unitId']===this[_0x5bd995(0x216)]){const _0x1a92e9=_0x529deb[_0x5bd995(0x1ee)];this['_updateLocalCursor'](_0x1a92e9[_0x5bd995(0x2b0)],_0x1a92e9[_0x5bd995(0xed)][0x0]);}})));}[_0x114c64(0x323)](_0x20b7be){const _0x1d7f62=_0x114c64;var _0x44a03b,_0x1e9b05;const {memberID:_0x3de8ce,selection:_0x3be61f}=_0x20b7be[_0x1d7f62(0xff)],{sheetName:_0x4e99a2,range:_0x806423}=Ee[_0x1d7f62(0x239)](_0x3be61f),_0x54a9f5={'name':(_0x1e9b05=(_0x44a03b=this[_0x1d7f62(0x236)][_0x1d7f62(0x2f8)](this[_0x1d7f62(0x216)],_0x3de8ce))==null?void 0x0:_0x44a03b[_0x1d7f62(0x1bf)])!=null?_0x1e9b05:'Unknown\x20user','range':this[_0x1d7f62(0x2d4)](_0x4e99a2,_0x806423),'sheetID':_0x4e99a2,'color':this[_0x1d7f62(0xf0)][_0x1d7f62(0x2e1)](_0x3de8ce),'selection':_0x3be61f},_0x2c4afd=this[_0x1d7f62(0x321)];_0x2c4afd[_0x1d7f62(0x21f)](_0x3de8ce,_0x54a9f5),this[_0x1d7f62(0x34b)][_0x1d7f62(0x124)](_0x2c4afd);}[_0x114c64(0x312)](_0x44ca5c){const _0x521613=_0x114c64,{memberID:_0x3adde7}=_0x44ca5c['data'],_0x1974ea=this[_0x521613(0x321)];_0x1974ea[_0x521613(0x102)](_0x3adde7),this['_cursorInfo$'][_0x521613(0x124)](_0x1974ea);}[_0x114c64(0x2d4)](_0x33fcc1,_0x597d17){const _0xb14cff=_0x114c64;var _0x267a45,_0x4e492b;const _0x3d96ee=(_0x4e492b=(_0x267a45=this[_0xb14cff(0x122)][_0xb14cff(0x249)](this['unitID']))==null?void 0x0:_0x267a45[_0xb14cff(0x1b4)](_0x33fcc1))==null?void 0x0:_0x4e492b['getMergeData']();return(_0x3d96ee==null?void 0x0:_0x3d96ee[_0xb14cff(0x322)](_0x1460f9=>a[_0xb14cff(0x23f)][_0xb14cff(0x2af)](_0x1460f9,_0x597d17)))||_0x597d17;}[_0x114c64(0x115)](){const _0xc8e439=_0x114c64,_0x48558c=new a['DisposableCollection'](),_0xaf8367=ot(),_0x52bd27=()=>{const _0x884621=_0x10ca;_0x48558c['dispose']();const _0x130a7c=(_0x4f276f,_0x2a1cbc,_0x247fad,_0x3c97a3)=>{const _0x5f5449=_0x10ca;let _0x1e858d=[];switch(_0x4f276f['id']){case g[_0x5f5449(0x10d)][_0x5f5449(0x2a9)]:{_0x1e858d=g[_0x5f5449(0x217)](_0x4f276f,_0x3c97a3);break;}case g[_0x5f5449(0x10d)][_0x5f5449(0x2e2)]:{_0x1e858d=g[_0x5f5449(0x2e0)](_0x4f276f,_0x3c97a3);break;}case g[_0x5f5449(0x10d)][_0x5f5449(0x134)]:{_0x1e858d=g['handleInsertCol'](_0x4f276f,_0x3c97a3);break;}case g[_0x5f5449(0x10d)]['InsertRangeMoveDownCommandId']:{_0x1e858d=g['handleInsertRangeMoveDown'](_0x4f276f,_0x3c97a3);break;}case g[_0x5f5449(0x10d)][_0x5f5449(0x1a8)]:{_0x1e858d=g['handleInsertRangeMoveRight'](_0x4f276f,_0x3c97a3);break;}case g[_0x5f5449(0x10d)][_0x5f5449(0x2ae)]:{_0x1e858d=g[_0x5f5449(0x1f1)](_0x4f276f,_0x3c97a3);break;}case g[_0x5f5449(0x10d)][_0x5f5449(0x2dd)]:{_0x1e858d=g[_0x5f5449(0x20c)](_0x4f276f,_0x3c97a3);break;}case g['EffectRefRangId'][_0x5f5449(0x1ff)]:{_0x1e858d=g['handleIRemoveCol'](_0x4f276f,_0x3c97a3);break;}case g[_0x5f5449(0x10d)][_0x5f5449(0x23c)]:{_0x1e858d=g[_0x5f5449(0x125)](_0x4f276f,_0x3c97a3);break;}}const _0x2b0147=g['runRefRangeMutations'](_0x1e858d,_0x3c97a3),_0x3f4946=this[_0x5f5449(0x321)][_0x5f5449(0x1a9)](_0x2a1cbc);if(_0x3f4946&&_0x2b0147){const _0x5f2383={..._0x3f4946,'range':_0x2b0147};this[_0x5f5449(0x321)][_0x5f5449(0x21f)](_0x2a1cbc,_0x5f2383),_0xaf8367(()=>{const _0x297a2a=_0x5f5449,_0x36969c=this[_0x297a2a(0x245)][_0x297a2a(0x28b)](_0x2b0147,_0x4c9b44=>(_0x36969c[_0x297a2a(0x114)](),_0x130a7c(_0x4c9b44,_0x2a1cbc,_0x247fad,_0x2b0147)));_0x48558c['add'](_0x36969c);});}return{'redos':[],'undos':[]};};this[_0x884621(0x321)][_0x884621(0x21d)]((_0x9e9874,_0x34e840)=>{const _0x2c8905=_0x884621,{range:_0x5f5c4e,sheetID:_0xf04f37}=_0x9e9874,_0x5ac013=this[_0x2c8905(0x245)][_0x2c8905(0x28b)](_0x5f5c4e,_0x5216e1=>(_0x5ac013[_0x2c8905(0x114)](),_0x130a7c(_0x5216e1,_0x34e840,_0xf04f37,_0x5f5c4e)));_0x48558c[_0x2c8905(0x360)](_0x5ac013);});};this['disposeWithMe'](a[_0xc8e439(0x253)](this[_0xc8e439(0x34b)][_0xc8e439(0x2c9)](()=>{_0x52bd27();})));}[_0x114c64(0x32b)](){const _0x3e553d=_0x114c64;var _0x46416c,_0x1c24c8;if(this[_0x3e553d(0x28a)]=!0x0,((_0x46416c=this[_0x3e553d(0x122)][_0x3e553d(0x2e3)]())==null?void 0x0:_0x46416c[_0x3e553d(0x234)]())!==this[_0x3e553d(0x216)])return;const _0x3edaff=(_0x1c24c8=this[_0x3e553d(0x2c4)][_0x3e553d(0x1a9)](g['SheetsSelectionsService'])[_0x3e553d(0x27d)]())==null?void 0x0:_0x1c24c8[0x0],_0x10180e=this['_univerInstanceService'][_0x3e553d(0x15b)](a[_0x3e553d(0x35e)]['UNIVER_SHEET'])[_0x3e553d(0x111)]();_0x3edaff&&_0x10180e&&this[_0x3e553d(0x157)](_0x10180e[_0x3e553d(0x11b)](),_0x3edaff);}[_0x114c64(0x204)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x114c64(0x307)](a[_0x114c64(0x2bc)])),A(0x3,a[_0x114c64(0x307)](me)),A(0x4,a[_0x114c64(0x307)](u['MemberService'])),A(0x5,a[_0x114c64(0x26b)]),A(0x6,a['ICommandService']),A(0x7,a[_0x114c64(0x307)](g['RefRangeService']))],Se);var at=Object[_0x114c64(0x140)],ct=(_0x1ff039,_0x1644f6,_0x4af008,_0x9e1cf3)=>{const _0x17b44d=_0x114c64;for(var _0x4ea6ee=_0x9e1cf3>0x1?void 0x0:_0x9e1cf3?at(_0x1644f6,_0x4af008):_0x1644f6,_0x18113b=_0x1ff039[_0x17b44d(0x2f1)]-0x1,_0x431f22;_0x18113b>=0x0;_0x18113b--)(_0x431f22=_0x1ff039[_0x18113b])&&(_0x4ea6ee=_0x431f22(_0x4ea6ee)||_0x4ea6ee);return _0x4ea6ee;},ie=(_0x190f04,_0x404653)=>(_0x143a3e,_0x2997e7)=>_0x404653(_0x143a3e,_0x2997e7,_0x190f04);let x=class extends a[_0x114c64(0x27a)]{constructor(_0x4bc469,_0x29f92e,_0x5559bf){const _0x5e177a=_0x114c64;super(),h(this,_0x5e177a(0x316),new Map()),h(this,_0x5e177a(0x29b),new d[(_0x5e177a(0x2f2))]()),(this['_univerInstanceService']=_0x4bc469,this['_injector']=_0x29f92e,this[_0x5e177a(0xfc)]=_0x5559bf,this[_0x5e177a(0x194)]());}[_0x114c64(0x114)](){const _0x38e8a0=_0x114c64;super[_0x38e8a0(0x114)](),this['_entityInit$'][_0x38e8a0(0x116)](),this['_entities'][_0x38e8a0(0x21d)](_0x49566f=>_0x49566f['dispose']());}[_0x114c64(0x22b)](_0x562c7d){const _0x1b3cf6=_0x114c64;return this[_0x1b3cf6(0x316)][_0x1b3cf6(0x2e7)](_0x562c7d)?this[_0x1b3cf6(0x316)][_0x1b3cf6(0x1a9)](_0x562c7d)['cursorInfo$']:this[_0x1b3cf6(0x29b)][_0x1b3cf6(0x12c)](d['filter'](_0x36b714=>_0x36b714['unitID']===_0x562c7d),d[_0x1b3cf6(0x1d8)](_0x3693f8=>_0x3693f8['cursorInfo$']));}[_0x114c64(0x194)](){const _0x331f9d=_0x114c64;this[_0x331f9d(0x122)][_0x331f9d(0x297)](a['UniverInstanceType'][_0x331f9d(0x149)])[_0x331f9d(0x12c)](d['takeUntil'](this[_0x331f9d(0x35d)]))['subscribe'](async _0x243453=>{const _0x4ea33c=_0x331f9d,_0x4d7691=_0x243453[_0x4ea33c(0x234)](),_0x4da110=await this[_0x4ea33c(0xe7)](_0x4d7691);this[_0x4ea33c(0x29b)][_0x4ea33c(0x124)](_0x4da110),this[_0x4ea33c(0x316)]['set'](_0x4d7691,_0x4da110);}),this[_0x331f9d(0x122)][_0x331f9d(0x297)](a['UniverInstanceType']['UNIVER_DOC'])[_0x331f9d(0x12c)](d[_0x331f9d(0x13a)](this['dispose$']))[_0x331f9d(0x12c)](d['filter'](_0x4090e2=>!_0x4090e2['getUnitId']()[_0x331f9d(0x344)]('__')))[_0x331f9d(0x2c9)](async _0xa7e818=>{const _0x2b1342=_0x331f9d,_0x78fdac=_0xa7e818['getUnitId'](),_0x2a66bd=await this['_startDocCollabCursor'](_0x78fdac);this[_0x2b1342(0x29b)][_0x2b1342(0x124)](_0x2a66bd),this[_0x2b1342(0x316)][_0x2b1342(0x21f)](_0x78fdac,_0x2a66bd);}),d[_0x331f9d(0x210)](this[_0x331f9d(0x122)][_0x331f9d(0x184)](a[_0x331f9d(0x35e)][_0x331f9d(0x1f7)]),this[_0x331f9d(0x122)][_0x331f9d(0x184)](a[_0x331f9d(0x35e)][_0x331f9d(0x149)]))[_0x331f9d(0x12c)](d[_0x331f9d(0x13a)](this[_0x331f9d(0x35d)]))[_0x331f9d(0x2c9)](_0x5a7f52=>{const _0x214b7d=_0x331f9d,_0xebcafe=_0x5a7f52[_0x214b7d(0x234)](),_0x2ecc40=this['_entities']['get'](_0xebcafe);_0x2ecc40&&(_0x2ecc40[_0x214b7d(0x114)](),this['_entities'][_0x214b7d(0x102)](_0xebcafe));});}async[_0x114c64(0xe7)](_0x19e8a3){const _0x4ed4ba=_0x114c64,_0x58983a=await this[_0x4ed4ba(0xfc)][_0x4ed4ba(0x2d6)](_0x19e8a3),_0x45e721=this[_0x4ed4ba(0x2c4)][_0x4ed4ba(0x2cf)](Se,_0x19e8a3,_0x58983a);return _0x45e721[_0x4ed4ba(0x254)](),_0x45e721;}async['_startDocCollabCursor'](_0x16bfaa){const _0x5b2d9c=_0x114c64,_0x207722=await this[_0x5b2d9c(0xfc)][_0x5b2d9c(0x2d6)](_0x16bfaa),_0x1cd16f=this[_0x5b2d9c(0x2c4)][_0x5b2d9c(0x2cf)](fe,_0x16bfaa,_0x207722);return _0x1cd16f[_0x5b2d9c(0x254)](),_0x1cd16f;}};x=ct([ie(0x0,a[_0x114c64(0x26b)]),ie(0x1,a[_0x114c64(0x307)](a[_0x114c64(0x2bc)])),ie(0x2,a[_0x114c64(0x307)](u[_0x114c64(0x279)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3ef466,_0x379e87){const _0x50ae91=_0x114c64;let {radius:_0x372197,width:_0x257f89,height:_0x364ba8}=_0x379e87;_0x372197=_0x372197!=null?_0x372197:0x0,_0x257f89=_0x257f89!=null?_0x257f89:0x1e,_0x364ba8=_0x364ba8!=null?_0x364ba8:0x1e;let _0x381baf=0x0,_0xa7013a=0x0,_0x295a6f=0x0;_0x381baf=_0xa7013a=_0x295a6f=Math[_0x50ae91(0x319)](_0x372197,_0x257f89/0x2,_0x364ba8/0x2),_0x3ef466[_0x50ae91(0x1b8)](),_0x3ef466[_0x50ae91(0xf6)](_0x381baf,0x0),_0x3ef466['lineTo'](_0x257f89-_0xa7013a,0x0),_0x3ef466[_0x50ae91(0x153)](_0x257f89-_0xa7013a,_0xa7013a,_0xa7013a,Math['PI']*0x3/0x2,0x0,!0x1),_0x3ef466[_0x50ae91(0x33b)](_0x257f89,_0x364ba8-_0x295a6f),_0x3ef466[_0x50ae91(0x153)](_0x257f89-_0x295a6f,_0x364ba8-_0x295a6f,_0x295a6f,0x0,Math['PI']/0x2,!0x1),_0x3ef466[_0x50ae91(0x33b)](0x0,_0x364ba8),_0x3ef466[_0x50ae91(0x33b)](0x0,_0x381baf),_0x3ef466['arc'](_0x381baf,_0x381baf,_0x381baf,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3ef466['closePath'](),_0x379e87[_0x50ae91(0x1eb)]&&(_0x3ef466[_0x50ae91(0x150)](),_0x3ef466[_0x50ae91(0x1af)]=_0x379e87[_0x50ae91(0x1eb)],_0x379e87['fillRule']==='evenodd'?_0x3ef466[_0x50ae91(0x1eb)]('evenodd'):_0x3ef466[_0x50ae91(0x1eb)](),_0x3ef466[_0x50ae91(0x13c)]());}class ee extends p[_0x114c64(0x31f)]{constructor(_0xd658ce,_0x2f7f26){const _0x2f79e1=_0x114c64;super(_0xd658ce,_0x2f7f26),h(this,_0x2f79e1(0x14f)),h(this,_0x2f79e1(0x21e)),(this['color']=_0x2f7f26==null?void 0x0:_0x2f7f26[_0x2f79e1(0x14f)],this[_0x2f79e1(0x21e)]=_0x2f7f26==null?void 0x0:_0x2f7f26[_0x2f79e1(0x21e)]);}static[_0x114c64(0x17a)](_0x7798a6,_0x4b3a5e){const _0x24f8cc=_0x114c64,{text:_0x43baff,color:_0x4d88ce}=_0x4b3a5e;_0x7798a6[_0x24f8cc(0x150)](),_0x7798a6[_0x24f8cc(0x1b5)]=_0x24f8cc(0x343);const _0xb5708e=_0x7798a6['measureText'](_0x43baff)[_0x24f8cc(0x308)],_0x18083c=Math[_0x24f8cc(0x319)](_0xb5708e+0x2*ne,Re);_t(_0x7798a6,{'height':K,'radius':0x4,'width':_0x18083c,'fill':_0x4d88ce}),_0x7798a6[_0x24f8cc(0x1af)]=_0x24f8cc(0x224);const _0x4f3576=ne,_0x487572=K-lt,_0x10db00=Re-0x2*ne;if(_0xb5708e>_0x10db00){let _0x2b0cd4='',_0x396ff6=0x0;for(const _0x39719b of _0x43baff){const _0x143676=_0x7798a6[_0x24f8cc(0x181)](_0x39719b)[_0x24f8cc(0x308)];if(_0x396ff6+_0x143676<=_0x10db00-_0x7798a6[_0x24f8cc(0x181)](_0x24f8cc(0xe6))['width'])_0x2b0cd4+=_0x39719b,_0x396ff6+=_0x143676;else{_0x2b0cd4+=_0x24f8cc(0xe6);break;}}_0x7798a6[_0x24f8cc(0x32a)](_0x2b0cd4,_0x4f3576,_0x487572);}else _0x7798a6[_0x24f8cc(0x32a)](_0x43baff,_0x4f3576,_0x487572);_0x7798a6['restore']();}[_0x114c64(0x294)](_0x306721){const _0x30d33c=_0x114c64;ee[_0x30d33c(0x17a)](_0x306721,this);}}const re='collab-text-anchor-',ht=_0x114c64(0x2e8),ut=_0x114c64(0x137),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x114c64(0x132);class De{constructor(_0x3f6200,_0x48b8fb,_0xd6abe0,_0xcf017c){const _0x16da8f=_0x114c64;h(this,_0x16da8f(0x213),[]),h(this,_0x16da8f(0xe8),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x16da8f(0x1c2),null),h(this,_0x16da8f(0x283),null),(this[_0x16da8f(0x333)]=_0x3f6200,this[_0x16da8f(0x23b)]=_0x48b8fb,this[_0x16da8f(0xf4)]=_0xd6abe0,this[_0x16da8f(0x1df)]=_0xcf017c,this[_0x16da8f(0x12a)]());}set[_0x114c64(0x32c)](_0x45ed53){const _0x214ca3=_0x114c64;_0x45ed53?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x214ca3(0x161)]&&this[_0x214ca3(0x161)][_0x214ca3(0x17f)]()):(this[_0x214ca3(0x2cd)]&&this[_0x214ca3(0x2cd)][_0x214ca3(0x17f)](),this[_0x214ca3(0x161)]&&this['_textBubble']['hide']());}[_0x114c64(0x114)](){const _0x5686c1=_0x114c64;for(const _0x3550b8 of this[_0x5686c1(0x213)])_0x3550b8[_0x5686c1(0x114)]();this[_0x5686c1(0x161)]&&this[_0x5686c1(0x161)][_0x5686c1(0x114)](),this['_anchorDot']&&this[_0x5686c1(0x2cd)][_0x5686c1(0x114)](),this[_0x5686c1(0xe8)]&&this[_0x5686c1(0xe8)]['dispose'](),this['_eventUnsubscribe']&&this[_0x5686c1(0x283)]();}['_render'](){const _0x4ba32d=_0x114c64;var _0x3864ec;const {_docSkeleton:_0x1c8223,_document:_0x363b7e}=this,{color:_0x2844ad,name:_0x387665,ranges:_0x176c62}=this['_cursor'],_0x3f6948=_0x363b7e[_0x4ba32d(0xfd)](),{docsLeft:_0x1471a0,docsTop:_0x45c112}=_0x3f6948,_0x43f1f4=new b[(_0x4ba32d(0x219))](_0x3f6948,_0x1c8223);for(const {startOffset:_0xad5e6c,endOffset:_0xc3e59d,rangeType:_0x5c9ccb,segmentId:_0x125563,segmentPage:_0x207cf7,collapsed:_0x1dcbcf,isActive:_0x2efda1}of _0x176c62){const _0x1921f8=_0x1c8223[_0x4ba32d(0x1d4)](_0xad5e6c,!0x0,_0x125563,_0x207cf7);let _0x5b0113=_0x1c8223['findNodePositionByCharIndex'](_0xc3e59d,!0x0,_0x125563,_0x207cf7);if(_0x5b0113==null&&(_0x5b0113=_0x1c8223['findNodePositionByCharIndex'](_0xc3e59d-0x1,!0x1,_0x125563,_0x207cf7)),_0x2efda1){const {contentBoxPointGroup:_0x599742}=_0x43f1f4['getRangePointData'](_0x5b0113,_0x5b0113);if(_0x599742[_0x4ba32d(0x2f1)]===0x0)continue;this[_0x4ba32d(0x1e4)](_0x2844ad,_0x599742,_0x1471a0,_0x45c112,_0x387665),this[_0x4ba32d(0x283)]=this[_0x4ba32d(0x162)]();}if(_0x1921f8&&_0x5b0113){if(_0x5c9ccb===a['DOC_RANGE_TYPE'][_0x4ba32d(0x17e)]){const _0x1490cd=new b[(_0x4ba32d(0xee))](_0x3f6948,_0x1c8223),{pointGroup:_0x5646ed}=(_0x3864ec=_0x1490cd[_0x4ba32d(0x2d7)](_0x1921f8,_0x5b0113))!=null?_0x3864ec:{};if(_0x5646ed==null||_0x5646ed[_0x4ba32d(0x2f1)]===0x0)continue;this['_drawRectRange'](_0x2844ad,_0x5646ed,_0x1471a0,_0x45c112);}else{if(!_0x1dcbcf){const {borderBoxPointGroup:_0xd060ed}=_0x43f1f4['getRangePointData'](_0x1921f8,_0x5b0113);if(_0xd060ed[_0x4ba32d(0x2f1)]===0x0)continue;this[_0x4ba32d(0x334)](_0x2844ad,_0xd060ed,_0x1471a0,_0x45c112);}}}}}[_0x114c64(0x1e4)](_0x4f99e3,_0x5cbe9e,_0x51e06f,_0x4189fd,_0x1b2bed){const _0x517f0c=_0x114c64,_0x2f8fb5=this[_0x517f0c(0x21c)](_0x5cbe9e),{left:_0x45614e,top:_0x64d9e1,height:_0x4167b8}=_0x2f8fb5,_0x33b198=this['_getScale'](),_0x197e74=ft/_0x33b198,_0x2f3282=new p[(_0x517f0c(0x197))](re+a[_0x517f0c(0x1bb)][_0x517f0c(0x146)](k),{'left':_0x45614e+_0x51e06f-_0x197e74,'top':_0x64d9e1+_0x4189fd,'height':_0x4167b8,'width':dt,'fill':_0x4f99e3||p[_0x517f0c(0x2e5)](a['COLORS'][_0x517f0c(0x2f9)],0x0),'strokeWidth':_0x197e74,'stroke':St,'evented':!0x0});this[_0x517f0c(0xe8)]=_0x2f3282,this['_scene']['addObject'](_0x2f3282,b['TEXT_RANGE_LAYER_INDEX']);const _0x5d9d54=new p[(_0x517f0c(0x197))](re+a[_0x517f0c(0x1bb)][_0x517f0c(0x146)](k),{'left':_0x45614e+_0x51e06f-_0x197e74,'top':_0x64d9e1+_0x4189fd-oe/0x2,'height':oe,'width':oe,'fill':_0x4f99e3||p[_0x517f0c(0x2e5)](a['COLORS'][_0x517f0c(0x2f9)],0x0),'strokeWidth':0x0,'stroke':_0x4f99e3||p['getColor'](a['COLORS'][_0x517f0c(0x2f9)],0x0),'evented':!0x1});this[_0x517f0c(0x2cd)]=_0x5d9d54,this[_0x517f0c(0x23b)][_0x517f0c(0x30f)](_0x5d9d54,b[_0x517f0c(0x329)]);const _0x48201c=new ee(re+a[_0x517f0c(0x1bb)][_0x517f0c(0x146)](k),{'left':_0x45614e+_0x51e06f-_0x197e74,'top':_0x64d9e1+_0x4189fd-K,'text':_0x1b2bed,'color':_0x4f99e3});this[_0x517f0c(0x161)]=_0x48201c,this[_0x517f0c(0x23b)][_0x517f0c(0x30f)](_0x48201c,b['TEXT_RANGE_LAYER_INDEX']),this[_0x517f0c(0x32c)]=!0x1;}[_0x114c64(0x162)](){const _0x55b0f9=_0x114c64,_0x1db3e3=this[_0x55b0f9(0xe8)][_0x55b0f9(0x32e)]['subscribeEvent'](()=>{const _0x305b28=_0x55b0f9;this[_0x305b28(0x32c)]=!0x0;}),_0x28b846=this[_0x55b0f9(0xe8)]['onPointerLeave$']['subscribeEvent'](()=>{const _0xe66fdd=_0x55b0f9;this['_hideTimer']&&clearTimeout(this[_0xe66fdd(0x1c2)]),this[_0xe66fdd(0x1c2)]=setTimeout(()=>{const _0x5ac1d8=_0xe66fdd;this[_0x5ac1d8(0x32c)]=!0x1;},0x7d0);});return()=>{const _0x4e0d0a=_0x55b0f9;_0x1db3e3[_0x4e0d0a(0x214)](),_0x28b846['unsubscribe']();};}[_0x114c64(0x334)](_0x538efd,_0x13cc21,_0x39935d,_0x2eaaa8){const _0x505fba=_0x114c64,_0x1248e4=new a[(_0x505fba(0x352))](_0x538efd)[_0x505fba(0x34e)](0.2)[_0x505fba(0x28e)](),_0x6a468c=new p[(_0x505fba(0x30c))](ht+a[_0x505fba(0x1bb)][_0x505fba(0x146)](k),{'pointsGroup':_0x13cc21,'fill':_0x1248e4||p[_0x505fba(0x2e5)](a[_0x505fba(0x24c)][_0x505fba(0x2f9)],0.2),'left':_0x39935d,'top':_0x2eaaa8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x505fba(0x213)]['push'](_0x6a468c),this['_scene'][_0x505fba(0x30f)](_0x6a468c,b[_0x505fba(0x329)]);}['_drawRectRange'](_0x278d3b,_0x4bbb40,_0xe7926,_0x42b8b5){const _0x2a90c6=_0x114c64,_0x313273=new a[(_0x2a90c6(0x352))](_0x278d3b)[_0x2a90c6(0x34e)](0.2)[_0x2a90c6(0x28e)](),_0x3b7417=new p[(_0x2a90c6(0x30c))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x4bbb40,'fill':_0x313273||p[_0x2a90c6(0x2e5)](a[_0x2a90c6(0x24c)][_0x2a90c6(0x2f9)],0.2),'left':_0xe7926,'top':_0x42b8b5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a90c6(0x213)]['push'](_0x3b7417),this[_0x2a90c6(0x23b)]['addObject'](_0x3b7417,b[_0x2a90c6(0x329)]);}['_getAnchorBounding'](_0x3841d0){const _0x46e389=_0x3841d0[0x0],_0x78f095=_0x46e389[0x0],_0x597b1f=_0x46e389[0x2],{x:_0x43fca9,y:_0x11b669}=_0x78f095,{x:_0x15cff2,y:_0xeb4dde}=_0x597b1f;return{'left':_0x43fca9,'top':_0x11b669,'width':_0x15cff2-_0x43fca9,'height':_0xeb4dde-_0x11b669};}[_0x114c64(0x1a6)](){const _0x3fd66d=_0x114c64,{scaleX:_0x367115,scaleY:_0x36d5ff}=this[_0x3fd66d(0x23b)]['getAncestorScale']();return Math[_0x3fd66d(0x23d)](_0x367115,_0x36d5ff);}}var It=Object[_0x114c64(0x140)],vt=(_0xbc0ae8,_0x3cdcdc,_0x3b91ac,_0xa19a65)=>{const _0x544b0d=_0x114c64;for(var _0x2c83e8=_0xa19a65>0x1?void 0x0:_0xa19a65?It(_0x3cdcdc,_0x3b91ac):_0x3cdcdc,_0x24461f=_0xbc0ae8[_0x544b0d(0x2f1)]-0x1,_0x3959c9;_0x24461f>=0x0;_0x24461f--)(_0x3959c9=_0xbc0ae8[_0x24461f])&&(_0x2c83e8=_0x3959c9(_0x2c83e8)||_0x2c83e8);return _0x2c83e8;},W=(_0x28e3da,_0x356fb0)=>(_0x303df8,_0x413cdc)=>_0x356fb0(_0x303df8,_0x413cdc,_0x28e3da);let Ie=class extends a['RxDisposable']{constructor(_0x4d7aa2,_0x58a647,_0x3911c5,_0xed5b2d,_0x13f061){const _0x25fe50=_0x114c64;super(),h(this,_0x25fe50(0x13f),[]),h(this,'_cursors',[]),(this[_0x25fe50(0x358)]=_0x4d7aa2,this['_docSkeletonManagerService']=_0x58a647,this['_collabCursorController']=_0x3911c5,this[_0x25fe50(0x1cd)]=_0xed5b2d,this[_0x25fe50(0x2b5)]=_0x13f061,this[_0x25fe50(0x194)]());}['_init'](){const _0x58f1fe=_0x114c64,_0x41d001=this[_0x58f1fe(0x358)]['unitId'],_0x232c36=this[_0x58f1fe(0x264)];this[_0x58f1fe(0x220)](d[_0x58f1fe(0x34f)]([this[_0x58f1fe(0x20e)]['getCollabCursors$'](_0x41d001),this[_0x58f1fe(0x2b5)]['currentTheme$']])[_0x58f1fe(0x12c)]($[_0x58f1fe(0x127)](([_0x582ab8,_0x34990c])=>({'skeleton':_0x232c36[_0x58f1fe(0x238)](),'cursors':[..._0x582ab8[_0x58f1fe(0x265)]()][_0x58f1fe(0x10e)](_0x25beb0=>({..._0x25beb0,'color':this[_0x58f1fe(0x2b5)][_0x58f1fe(0x176)](_0x25beb0[_0x58f1fe(0x14f)])}))})))[_0x58f1fe(0x2c9)](_0x542a1e=>{const _0x198866=_0x58f1fe;if(this['_removeCollabCursors'](),_0x542a1e){const {skeleton:_0x1949e9,cursors:_0x266cd1}=_0x542a1e;this[_0x198866(0x133)](_0x1949e9,_0x266cd1);}})),this[_0x58f1fe(0x202)](),this[_0x58f1fe(0x2f0)]();}['_updateCollabCursors'](_0x85b721,_0x3ce0bb){const _0x2a2413=_0x114c64,{scene:_0x66f88a,mainComponent:_0x4bae28}=this[_0x2a2413(0x358)],_0x2f765=_0x3ce0bb['map'](_0x57f5aa=>new De(_0x57f5aa,_0x66f88a,_0x85b721,_0x4bae28));this[_0x2a2413(0x13f)]=_0x2f765,this['_cursors']=_0x3ce0bb;}[_0x114c64(0x295)](){const _0x303299=_0x114c64;this['_removeCollabCursors']();const {scene:_0x4ff739,mainComponent:_0x40387c}=this['_context'],_0x339257=this[_0x303299(0x264)][_0x303299(0x238)](),_0x2af8ec=this[_0x303299(0x165)]['map'](_0x2086e6=>new De(_0x2086e6,_0x4ff739,_0x339257,_0x40387c));this['_cursorShapes']=_0x2af8ec;}['_removeCollabCursors'](){const _0x43bef3=_0x114c64;this[_0x43bef3(0x13f)][_0x43bef3(0x21d)](_0x5177c0=>_0x5177c0['dispose']()),this[_0x43bef3(0x13f)]=[];}['_initCommandExecutedListener'](){const _0x3e332f=_0x114c64,_0x2d15cf=[b[_0x3e332f(0x100)]['id']];this['disposeWithMe'](this[_0x3e332f(0x1cd)][_0x3e332f(0x10c)](_0x28de23=>{const _0x20edd5=_0x3e332f;_0x2d15cf[_0x20edd5(0x1c9)](_0x28de23['id'])&&_0x28de23[_0x20edd5(0x1ee)][_0x20edd5(0x145)]===this[_0x20edd5(0x358)]['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x38dcc1=_0x114c64;this[_0x38dcc1(0x220)](a['fromEventSubject'](this['_context'][_0x38dcc1(0x354)][_0x38dcc1(0x25a)])['pipe']($['filter'](_0x2a9023=>_0x2a9023[_0x38dcc1(0x126)]===p[_0x38dcc1(0x30b)][_0x38dcc1(0x10f)]),$[_0x38dcc1(0x2a7)](0x10))[_0x38dcc1(0x2c9)](()=>{const _0x4a9830=_0x38dcc1;this[_0x4a9830(0x295)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x114c64(0x148)])),W(0x2,a[_0x114c64(0x307)](x)),W(0x3,a[_0x114c64(0x287)]),W(0x4,a[_0x114c64(0x307)](a[_0x114c64(0x346)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x114c64(0x31f)]{constructor(_0x6c680,_0x826ce){const _0x546209=_0x114c64;super(_0x6c680,_0x826ce),h(this,_0x546209(0x337)),h(this,_0x546209(0x24e),!0x1),h(this,'_range'),h(this,_0x546209(0x363),''),h(this,'_labelPosition',_0x546209(0x215)),h(this,'_backgroundColor'),(_0x826ce&&this['setShapeProps'](_0x826ce),this['onPointerEnter$'][_0x546209(0x207)](()=>this[_0x546209(0x16a)]({'hovered':!0x0})),this[_0x546209(0x1cb)][_0x546209(0x207)](()=>this[_0x546209(0x16a)]({'hovered':!0x1})));}[_0x114c64(0x16a)](_0x491b0b){const _0x4bb27d=_0x114c64;var _0x5d38ca,_0x50cb9a,_0x393122,_0x5339ce,_0xe1376,_0xadff3c;this['_color']=(_0x5d38ca=_0x491b0b['color'])!=null?_0x5d38ca:this[_0x4bb27d(0x337)],this['_hovered']=(_0x50cb9a=_0x491b0b[_0x4bb27d(0x291)])!=null?_0x50cb9a:this[_0x4bb27d(0x24e)],this[_0x4bb27d(0x324)]=(_0x393122=_0x491b0b[_0x4bb27d(0x226)])!=null?_0x393122:this['_range'],this[_0x4bb27d(0x363)]=(_0x5339ce=_0x491b0b[_0x4bb27d(0x1bf)])!=null?_0x5339ce:this['_name'],this['_labelPosition']=(_0xe1376=_0x491b0b[_0x4bb27d(0x14c)])!=null?_0xe1376:this[_0x4bb27d(0x177)],this['_backgroundColor']=(_0xadff3c=_0x491b0b['backgroundColor'])!=null?_0xadff3c:this[_0x4bb27d(0x163)],this[_0x4bb27d(0x1ec)]({'width':_0x491b0b[_0x4bb27d(0x308)],'height':_0x491b0b['height']});}['onMouseMove'](_0x2bb128){const _0x57a47b=_0x114c64,{row:_0x3b6961,column:_0x3eae90}=_0x2bb128;if(_0x3b6961>=this['_range'][_0x57a47b(0x243)]&&_0x3b6961<=this[_0x57a47b(0x324)][_0x57a47b(0x359)]&&_0x3eae90>=this['_range']['startColumn']&&_0x3eae90<=this[_0x57a47b(0x324)][_0x57a47b(0x251)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x57a47b(0x16a)]({'hovered':!0x1});}['triggerDblclick'](_0x480aa9){return!0x1;}['_draw'](_0x5647c4){const _0x4f6397=_0x114c64;p[_0x4f6397(0x197)][_0x4f6397(0x17a)](_0x5647c4,{'width':this[_0x4f6397(0x308)],'height':this[_0x4f6397(0x25c)],'strokeWidth':mt,'stroke':this[_0x4f6397(0x337)],'evented':!0x1,'fill':this[_0x4f6397(0x163)]}),this[_0x4f6397(0x24e)]&&(_0x5647c4[_0x4f6397(0x150)](),_0x5647c4['transform'](0x1,0x0,0x0,0x1,this[_0x4f6397(0x308)],this[_0x4f6397(0x177)]===_0x4f6397(0x185)?0x0:-0x14),ee['drawWith'](_0x5647c4,{'text':this['_name'],'color':this[_0x4f6397(0x337)]}),_0x5647c4[_0x4f6397(0x13c)]());}}var Ct=Object[_0x114c64(0x140)],pt=(_0x26f673,_0x30ee22,_0x1cad5b,_0x1f18d2)=>{const _0x2ece5f=_0x114c64;for(var _0x5dd440=_0x1f18d2>0x1?void 0x0:_0x1f18d2?Ct(_0x30ee22,_0x1cad5b):_0x30ee22,_0x46044c=_0x26f673[_0x2ece5f(0x2f1)]-0x1,_0x5857e1;_0x46044c>=0x0;_0x46044c--)(_0x5857e1=_0x26f673[_0x46044c])&&(_0x5dd440=_0x5857e1(_0x5dd440)||_0x5dd440);return _0x5dd440;},ae=(_0x589b40,_0x4e3791)=>(_0x460e6f,_0x107ada)=>_0x4e3791(_0x460e6f,_0x107ada,_0x589b40);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x18c576,_0x393ab0,_0x3ff195,_0x30461c){const _0x1cd09a=_0x114c64;super(),h(this,'_cursors',new Set()),h(this,_0x1cd09a(0x2ad),null),(this['_context']=_0x18c576,this[_0x1cd09a(0x1b1)]=_0x393ab0,this[_0x1cd09a(0x20e)]=_0x3ff195,this[_0x1cd09a(0x2b5)]=_0x30461c,this['_init']());}[_0x114c64(0x194)](){const _0x55a44a=_0x114c64;this[_0x55a44a(0x1b1)][_0x55a44a(0xe9)]['pipe']($[_0x55a44a(0x13a)](this[_0x55a44a(0x35d)]),$[_0x55a44a(0x1d8)](_0xbadff8=>{const _0x4095d2=_0x55a44a;if(_0xbadff8){const _0x26f18c=_0xbadff8['sheetId'];return d[_0x4095d2(0x34f)](this[_0x4095d2(0x20e)][_0x4095d2(0x22b)](this[_0x4095d2(0x358)][_0x4095d2(0x145)]),this[_0x4095d2(0x2b5)][_0x4095d2(0x1c5)])['pipe']($['map'](([_0xbb8d27,_0x14bf3d])=>{const _0x1eaedb=_0x4095d2,_0x427467=new Map();return _0xbb8d27[_0x1eaedb(0x21d)]((_0x4f10aa,_0x484aa5)=>{const _0x218ac6=_0x1eaedb;if(_0x4f10aa[_0x218ac6(0x158)]===_0x26f18c){const _0x179eb2={..._0x4f10aa};_0x179eb2[_0x218ac6(0x14f)]=this['_themeService'][_0x218ac6(0x176)](_0x4f10aa[_0x218ac6(0x14f)]),_0x427467[_0x218ac6(0x21f)](_0x484aa5,_0x179eb2);}}),{'skeleton':_0xbadff8,'cursors':_0x427467};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x55a44a(0x2c9)](({skeleton:_0x46986b,cursors:_0x57132a})=>{const _0x3d0f9a=_0x55a44a;this[_0x3d0f9a(0x196)](),_0x46986b&&this[_0x3d0f9a(0x133)](_0x46986b,_0x57132a);}),this[_0x55a44a(0x1b1)][_0x55a44a(0xe9)][_0x55a44a(0x2c9)](_0x13f4c5=>{const _0x730120=_0x55a44a;if(_0x13f4c5==null)return;const {skeleton:_0x179164}=_0x13f4c5,{scene:_0x49d4e7}=this[_0x730120(0x358)];_0x49d4e7[_0x730120(0x272)][_0x730120(0x207)](a[_0x730120(0x12e)](_0x5e266f=>{const _0x2d11d8=_0x730120;var _0x108a2d,_0x1d82d2;const {offsetX:_0x4cec10,offsetY:_0x213afc}=_0x5e266f,{x:_0x18ea47,y:_0x413019}=_0x49d4e7[_0x2d11d8(0x26a)](p['Vector2'][_0x2d11d8(0x20b)]([_0x4cec10,_0x213afc])),{scaleX:_0x25db03,scaleY:_0x5d5544}=_0x49d4e7[_0x2d11d8(0x18e)](),_0x364453=_0x49d4e7[_0x2d11d8(0x1c8)](p[_0x2d11d8(0x1d2)][_0x2d11d8(0x275)]),_0x503c64=_0x49d4e7[_0x2d11d8(0x258)](p['Vector2'][_0x2d11d8(0x20b)]([_0x18ea47,_0x413019]),_0x364453),_0x256c4c=_0x179164[_0x2d11d8(0x1e0)](_0x4cec10,_0x213afc,_0x25db03,_0x5d5544,_0x503c64);((_0x108a2d=this[_0x2d11d8(0x2ad)])==null?void 0x0:_0x108a2d['column'])===_0x256c4c[_0x2d11d8(0x193)]&&((_0x1d82d2=this[_0x2d11d8(0x2ad)])==null?void 0x0:_0x1d82d2[_0x2d11d8(0x2d9)])===_0x256c4c[_0x2d11d8(0x2d9)]||this[_0x2d11d8(0x165)][_0x2d11d8(0x21d)](_0x442184=>{const _0x51fc92=_0x2d11d8;_0x442184[_0x51fc92(0x299)](_0x256c4c);});},0x64));});}[_0x114c64(0x133)](_0x300705,_0x3d3f26){const _0x40dafc=_0x114c64;var _0x319ba6;const _0x134666=(_0x319ba6=this[_0x40dafc(0x1b1)][_0x40dafc(0x250)]())==null?void 0x0:_0x319ba6[_0x40dafc(0x2a2)];if(!_0x134666)return;const _0x45c9f0=this[_0x40dafc(0x190)]();if(!_0x45c9f0)return;this[_0x40dafc(0x165)][_0x40dafc(0x21d)](_0x154767=>{const _0x16c0b2=_0x40dafc;_0x154767[_0x16c0b2(0x110)]();});const {scene:_0x39da7d}=_0x45c9f0,_0x3b3be8=Et(Array[_0x40dafc(0x118)](_0x3d3f26[_0x40dafc(0x265)]()))[_0x40dafc(0x127)](_0x59be26=>{const _0x12d0c6=_0x40dafc,{color:_0x4d4042,range:_0x28a993,name:_0x47f622,selection:_0x92818,sheetID:_0xbff612}=_0x59be26,{startColumn:_0x542b3d,startRow:_0x1ea3ba,endColumn:_0x207c8a,endRow:_0x40adb9}=_0x28a993,_0x3c99b3=X[_0x12d0c6(0x2a1)](_0x1ea3ba,_0x542b3d,_0x39da7d,_0x134666),_0x5ad5db=X[_0x12d0c6(0x2a1)](_0x40adb9,_0x207c8a,_0x39da7d,_0x134666),{columnHeaderHeightAndMarginTop:_0x294c09}=_0x134666,{startX:_0x2c997f,startY:_0x107b29}=_0x3c99b3,{endX:_0x4be5a2,endY:_0x13ad33}=_0x5ad5db,_0x501dc7=_0x4be5a2-_0x2c997f,_0x157e8b=_0x13ad33-_0x107b29,_0x3f40b7={'labelPosition':_0x107b29-_0x294c09>=K?_0x12d0c6(0x215):_0x12d0c6(0x185),'sheetID':_0xbff612,'range':_0x28a993,'color':_0x4d4042,'name':_0x47f622,'selection':_0x92818,'left':_0x2c997f,'top':_0x107b29,'width':_0x501dc7,'height':_0x157e8b,'evented':!0x1,'zIndex':bt};return new Pe(_0x47f622,_0x3f40b7);});_0x39da7d[_0x40dafc(0xec)](_0x3b3be8,gt),this[_0x40dafc(0x165)]=new Set(_0x3b3be8);}[_0x114c64(0x196)](){const _0x2e2f6d=_0x114c64;var _0x55bfde;(_0x55bfde=this['_cursors'])==null||_0x55bfde[_0x2e2f6d(0x21d)](_0x58eb43=>_0x58eb43[_0x2e2f6d(0x114)]());}[_0x114c64(0x190)](){const _0xd98347=_0x114c64;return X['getSheetObject'](this[_0xd98347(0x358)][_0xd98347(0x19c)],this[_0xd98347(0x358)]);}};ve=pt([ae(0x1,a[_0x114c64(0x307)](X[_0x114c64(0x2b4)])),ae(0x2,a[_0x114c64(0x307)](x)),ae(0x3,a[_0x114c64(0x307)](a['ThemeService']))],ve);function Et(_0x560836){const _0x57ea6b=_0x114c64,_0x511b43=new Map();return _0x560836['forEach'](_0x2c2294=>{const _0x462f14=_0x10ca;if(_0x511b43['has'](_0x2c2294[_0x462f14(0x29a)])){const _0x3e62a7=_0x511b43[_0x462f14(0x1a9)](_0x2c2294['selection']);_0x3e62a7['name']+=',\x20'+_0x2c2294[_0x462f14(0x1bf)];}else _0x511b43['set'](_0x2c2294['selection'],_0x2c2294);}),Array[_0x57ea6b(0x118)](_0x511b43[_0x57ea6b(0x265)]());}var E=function(){const _0x40f6d9=_0x114c64;return E=Object[_0x40f6d9(0x1c3)]||function(_0x2fd6a5){const _0x717f17=_0x40f6d9;for(var _0x2ac50a,_0x3ec75c=0x1,_0xe3b5e5=arguments[_0x717f17(0x2f1)];_0x3ec75c<_0xe3b5e5;_0x3ec75c++){_0x2ac50a=arguments[_0x3ec75c];for(var _0xc8b3cc in _0x2ac50a)Object['prototype'][_0x717f17(0x304)][_0x717f17(0x1b0)](_0x2ac50a,_0xc8b3cc)&&(_0x2fd6a5[_0xc8b3cc]=_0x2ac50a[_0xc8b3cc]);}return _0x2fd6a5;},E['apply'](this,arguments);},Tt=function(_0x3b285b,_0x4bc27d){const _0x4bc72c=_0x114c64;var _0x49b492={};for(var _0x14787c in _0x3b285b)Object[_0x4bc72c(0x1ea)][_0x4bc72c(0x304)]['call'](_0x3b285b,_0x14787c)&&_0x4bc27d[_0x4bc72c(0x1a0)](_0x14787c)<0x0&&(_0x49b492[_0x14787c]=_0x3b285b[_0x14787c]);if(_0x3b285b!=null&&typeof Object[_0x4bc72c(0x159)]==_0x4bc72c(0x27f)){for(var _0x2f75c1=0x0,_0x14787c=Object[_0x4bc72c(0x159)](_0x3b285b);_0x2f75c1<_0x14787c[_0x4bc72c(0x2f1)];_0x2f75c1++)_0x4bc27d[_0x4bc72c(0x1a0)](_0x14787c[_0x2f75c1])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x4bc72c(0x1b0)](_0x3b285b,_0x14787c[_0x2f75c1])&&(_0x49b492[_0x14787c[_0x2f75c1]]=_0x3b285b[_0x14787c[_0x2f75c1]]);}return _0x49b492;},pe=M[_0x114c64(0x342)](function(_0x4344b1,_0x45cc48){const _0x5dac75=_0x114c64;var _0xada7e7=_0x4344b1[_0x5dac75(0x17c)],_0x210203=_0x4344b1['id'],_0x465d06=_0x4344b1[_0x5dac75(0x34a)],_0x376b92=_0x4344b1[_0x5dac75(0x228)],_0x215c61=Tt(_0x4344b1,[_0x5dac75(0x17c),'id','className',_0x5dac75(0x228)]),_0x91f9c2=_0x5dac75(0x1e3)[_0x5dac75(0x255)](_0x210203,'\x20')[_0x5dac75(0x255)](_0x465d06||'')[_0x5dac75(0x15c)](),_0x2852bb=M[_0x5dac75(0x293)]('_'[_0x5dac75(0x255)](Dt()));return Ae(_0xada7e7,''['concat'](_0x210203),{'defIds':_0xada7e7[_0x5dac75(0x29d)],'idSuffix':_0x2852bb[_0x5dac75(0x289)]},E({'ref':_0x45cc48,'className':_0x91f9c2},_0x215c61),_0x376b92);});function Ae(_0x1700db,_0x133855,_0x439b83,_0x4186a8,_0x109738){const _0x156d87=_0x114c64;return M['createElement'](_0x1700db[_0x156d87(0x240)],E(E({'key':_0x133855},Ot(_0x1700db,_0x439b83,_0x109738)),_0x4186a8),(Rt(_0x1700db,_0x439b83)['children']||[])['map'](function(_0x25d99d,_0x436daa){const _0x57d21e=_0x156d87;return Ae(_0x25d99d,''[_0x57d21e(0x255)](_0x133855,'-')[_0x57d21e(0x255)](_0x1700db[_0x57d21e(0x240)],'-')[_0x57d21e(0x255)](_0x436daa),_0x439b83,void 0x0,_0x109738);}));}function Ot(_0x23e018,_0x3b9e6e,_0x589fcd){const _0x26c65e=_0x114c64;var _0x17c08e=E({},_0x23e018[_0x26c65e(0x22c)]);_0x589fcd!=null&&_0x589fcd[_0x26c65e(0x1cf)]&&_0x17c08e['fill']==='colorChannel1'&&(_0x17c08e[_0x26c65e(0x1eb)]=_0x589fcd['colorChannel1']),_0x23e018[_0x26c65e(0x240)]==='mask'&&_0x17c08e['id']&&(_0x17c08e['id']=_0x17c08e['id']+_0x3b9e6e[_0x26c65e(0x1f2)]),Object['entries'](_0x17c08e)[_0x26c65e(0x21d)](function(_0x53fb17){const _0x634c3e=_0x26c65e;var _0x1bbfb4=_0x53fb17[0x0],_0x5b89e4=_0x53fb17[0x1];_0x1bbfb4===_0x634c3e(0x192)&&typeof _0x5b89e4=='string'&&(_0x17c08e[_0x1bbfb4]=_0x5b89e4[_0x634c3e(0x261)](/url\(#(.*)\)/,_0x634c3e(0x1a5)[_0x634c3e(0x255)](_0x3b9e6e[_0x634c3e(0x1f2)],')')));});var _0x125dd0=_0x3b9e6e[_0x26c65e(0x29d)];return!_0x125dd0||_0x125dd0[_0x26c65e(0x2f1)]===0x0||(_0x23e018[_0x26c65e(0x240)]===_0x26c65e(0x188)&&_0x17c08e[_0x26c65e(0x172)]&&(_0x17c08e[_0x26c65e(0x172)]=_0x17c08e[_0x26c65e(0x172)]+_0x3b9e6e[_0x26c65e(0x1f2)]),Object[_0x26c65e(0x303)](_0x17c08e)['forEach'](function(_0x535131){const _0x419676=_0x26c65e;var _0x3dc831=_0x535131[0x0],_0x419983=_0x535131[0x1];typeof _0x419983==_0x419676(0x267)&&(_0x17c08e[_0x3dc831]=_0x419983[_0x419676(0x261)](/url\(#(.*)\)/,_0x419676(0x1a5)[_0x419676(0x255)](_0x3b9e6e[_0x419676(0x1f2)],')')));})),_0x17c08e;}function Rt(_0x6f1dc9,_0x14b296){const _0x8e5df3=_0x114c64;var _0x5df65e,_0x3104bf=_0x14b296[_0x8e5df3(0x29d)];return!_0x3104bf||_0x3104bf[_0x8e5df3(0x2f1)]===0x0?_0x6f1dc9:_0x6f1dc9[_0x8e5df3(0x240)]===_0x8e5df3(0x130)&&(!((_0x5df65e=_0x6f1dc9[_0x8e5df3(0x24a)])===null||_0x5df65e===void 0x0)&&_0x5df65e['length'])?E(E({},_0x6f1dc9),{'children':_0x6f1dc9[_0x8e5df3(0x24a)][_0x8e5df3(0x127)](function(_0x2c4d0d){const _0x281859=_0x8e5df3;return typeof _0x2c4d0d[_0x281859(0x22c)]['id']==_0x281859(0x267)&&_0x3104bf&&_0x3104bf[_0x281859(0x1c9)](_0x2c4d0d[_0x281859(0x22c)]['id'])?E(E({},_0x2c4d0d),{'attrs':E(E({},_0x2c4d0d[_0x281859(0x22c)]),{'id':_0x2c4d0d[_0x281859(0x22c)]['id']+_0x14b296[_0x281859(0x1f2)]})}):_0x2c4d0d;})}):_0x6f1dc9;}function Dt(){const _0x247339=_0x114c64;return Math[_0x247339(0x353)]()[_0x247339(0x27c)](0x24)[_0x247339(0x1fa)](0x2,0x8);}pe[_0x114c64(0x14e)]=_0x114c64(0x2b7);var Ut={'tag':_0x114c64(0x266),'attrs':{'xmlns':_0x114c64(0x2a5),'fill':_0x114c64(0x2ef),'viewBox':_0x114c64(0x2c2),'width':_0x114c64(0x233),'height':_0x114c64(0x233)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x114c64(0x2f6),'attrs':{'stroke':_0x114c64(0x191),'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':_0x114c64(0x285),'strokeLinejoin':_0x114c64(0x285),'strokeWidth':1.2}}]},{'tag':_0x114c64(0x130),'attrs':{},'children':[{'tag':_0x114c64(0x1ba),'attrs':{'id':_0x114c64(0x36d)},'children':[{'tag':_0x114c64(0x2f6),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x114c64(0x36d)]},ye=M['forwardRef'](function(_0xfa0bd,_0x233f91){const _0x28ff0c=_0x114c64;return M['createElement'](pe,Object[_0x28ff0c(0x1c3)]({},_0xfa0bd,{'id':_0x28ff0c(0x107),'ref':_0x233f91,'icon':Ut}));});ye['displayName']='OffLineIcon';var Nt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x114c64(0x233),'height':_0x114c64(0x233)},'children':[{'tag':'g','attrs':{'clipPath':_0x114c64(0x1e9)},'children':[{'tag':_0x114c64(0x2f6),'attrs':{'stroke':_0x114c64(0x191),'d':_0x114c64(0x164),'strokeLinecap':_0x114c64(0x285),'strokeLinejoin':_0x114c64(0x285),'strokeWidth':1.2}}]},{'tag':_0x114c64(0x130),'attrs':{},'children':[{'tag':_0x114c64(0x1ba),'attrs':{'id':_0x114c64(0x357)},'children':[{'tag':_0x114c64(0x2f6),'attrs':{'fill':_0x114c64(0x120),'d':_0x114c64(0x35b),'transform':_0x114c64(0x2b1)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x114c64(0x342)](function(_0x4cd596,_0x522952){const _0xef7552=_0x114c64;return M[_0xef7552(0x1ef)](pe,Object[_0xef7552(0x1c3)]({},_0x4cd596,{'id':_0xef7552(0x30e),'ref':_0x522952,'icon':Nt}));});$e[_0x114c64(0x14e)]=_0x114c64(0x340);function Mt(_0x1812ef){const _0x3af72b=_0x114c64;switch(_0x1812ef){case u[_0x3af72b(0x112)]['OFFLINE']:return _0x3af72b(0x10a);case u[_0x3af72b(0x112)][_0x3af72b(0x263)]:return'collabStatus.conflict';case u[_0x3af72b(0x112)][_0x3af72b(0x174)]:return _0x3af72b(0x27b);case u[_0x3af72b(0x112)][_0x3af72b(0x25e)]:return'collabStatus.notCollab';case u[_0x3af72b(0x112)][_0x3af72b(0xf8)]:case u[_0x3af72b(0x112)][_0x3af72b(0x339)]:return _0x3af72b(0x367);case u['CollaborationStatus'][_0x3af72b(0x1c7)]:case u[_0x3af72b(0x112)][_0x3af72b(0x2cc)]:return _0x3af72b(0x15f);}}function xe(_0x4345b7){const _0x2ba580=_0x114c64,{status$:_0x18640d}=_0x4345b7,_0x69d678=T[_0x2ba580(0x1d0)](_0x18640d,u[_0x2ba580(0x112)][_0x2ba580(0x25e)]),_0x2c88c4=T['useDependency'](a['LocaleService']),_0x54f3b3=T['useDependency'](u[_0x2ba580(0x279)]),_0x46a941=_0x69d678!==u[_0x2ba580(0x112)][_0x2ba580(0x15a)],_0x9b743a=_0x2c88c4['t'](Mt(_0x69d678)),_0x1196de=_0x46a941?w[_0x2ba580(0x21b)]($e,{}):w['jsx'](ye,{}),_0x26400f=M['useCallback'](()=>{const _0x270533=_0x2ba580;_0x46a941||_0x54f3b3[_0x270533(0x2b2)]();},[_0x46a941,_0x54f3b3]);function _0x8a26a0(){const _0x330931=_0x2ba580;return w[_0x330931(0x160)](_0x330931(0x292),{'className':_0x330931(0x1de),'onClick':_0x26400f,'children':[w[_0x330931(0x21b)](_0x330931(0x292),{'className':D[_0x330931(0x1d1)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x46a941,'univer-text-red-500':!_0x46a941}),'children':_0x1196de}),w[_0x330931(0x21b)](_0x330931(0x292),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x9b743a})]});}return _0x46a941?_0x8a26a0():w['jsx'](D[_0x2ba580(0x286)],{'title':_0x2c88c4['t'](_0x2ba580(0x282)),'children':_0x8a26a0()});}var Lt=Object[_0x114c64(0x140)],wt=(_0x48fbbc,_0x32c8d0,_0x3bb0c9,_0x43aa31)=>{for(var _0x5684e7=_0x43aa31>0x1?void 0x0:_0x43aa31?Lt(_0x32c8d0,_0x3bb0c9):_0x32c8d0,_0x7a03dc=_0x48fbbc['length']-0x1,_0x45ddd8;_0x7a03dc>=0x0;_0x7a03dc--)(_0x45ddd8=_0x48fbbc[_0x7a03dc])&&(_0x5684e7=_0x45ddd8(_0x5684e7)||_0x5684e7);return _0x5684e7;},V=(_0x1f6329,_0x315b37)=>(_0x38e03d,_0x32330f)=>_0x315b37(_0x38e03d,_0x32330f,_0x1f6329);exports[_0x114c64(0x1a1)]=class extends a['Disposable']{constructor(_0x31e490,_0x3bd47a,_0x3c73d8,_0x463e08){const _0x1503b6=_0x114c64;super(),h(this,_0x1503b6(0x18c),new d[(_0x1503b6(0x1d6))](u['CollaborationStatus'][_0x1503b6(0x25e)])),(this['_univerInstanceService']=_0x31e490,this[_0x1503b6(0x2c4)]=_0x3bd47a,this[_0x1503b6(0x2fb)]=_0x3c73d8,this['_uiPartsService']=_0x463e08,this[_0x1503b6(0x1bc)](),this['_initStatusListener']());}['_initStatusListener'](){const _0xc782a1=_0x114c64;this[_0xc782a1(0x220)](this[_0xc782a1(0x122)][_0xc782a1(0x2c8)][_0xc782a1(0x12c)](d[_0xc782a1(0x1d8)](()=>{const _0x32717e=_0xc782a1,_0x58666e=this['_univerInstanceService'][_0x32717e(0x2e3)]();return _0x58666e?this[_0x32717e(0x2fb)]['getCollabEntity$'](_0x58666e[_0x32717e(0x234)]()):d['of'](null);}),d[_0xc782a1(0x1d8)](_0x55c549=>_0x55c549?_0x55c549[_0xc782a1(0xea)]:d['of'](u['CollaborationStatus'][_0xc782a1(0x25e)])))[_0xc782a1(0x2c9)](_0x5e4306=>{const _0x109aaf=_0xc782a1;this[_0x109aaf(0x18c)][_0x109aaf(0x124)](_0x5e4306);}));}[_0x114c64(0x1bc)](){const _0x55bc8b=_0x114c64;this[_0x55bc8b(0x220)](this[_0x55bc8b(0x36b)][_0x55bc8b(0x1d3)](T['BuiltInUIPart'][_0x55bc8b(0x1fe)],()=>T[_0x55bc8b(0x2fe)](Pt({'status$':this['_status$'][_0x55bc8b(0x1ce)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a[_0x114c64(0x26b)]),V(0x1,a['Inject'](a[_0x114c64(0x2bc)])),V(0x2,a[_0x114c64(0x307)](u[_0x114c64(0x1d7)])),V(0x3,T[_0x114c64(0x195)])],exports[_0x114c64(0x1a1)]);function Pt(_0x210f2d){const {status$:_0x58ce16}=_0x210f2d;return function(){const _0x25e61c=_0x10ca;return w[_0x25e61c(0x21b)](xe,{'status$':_0x58ce16});};}var At=Object[_0x114c64(0x140)],yt=(_0x514c06,_0x38994c,_0x311608,_0x48fe0f)=>{const _0x340c72=_0x114c64;for(var _0x465195=_0x48fe0f>0x1?void 0x0:_0x48fe0f?At(_0x38994c,_0x311608):_0x38994c,_0x55fb92=_0x514c06[_0x340c72(0x2f1)]-0x1,_0x554329;_0x55fb92>=0x0;_0x55fb92--)(_0x554329=_0x514c06[_0x55fb92])&&(_0x465195=_0x554329(_0x465195)||_0x465195);return _0x465195;},y=(_0x547bd0,_0x14b65b)=>(_0x2fcf3a,_0x3c3720)=>_0x14b65b(_0x2fcf3a,_0x3c3720,_0x547bd0);let q=class extends a['Disposable']{constructor(_0x508d79,_0x1bbdee,_0x5b353c,_0x50a122,_0x7bcf77,_0x40013a){const _0x3f335c=_0x114c64;super(),this[_0x3f335c(0x256)]=_0x508d79,this[_0x3f335c(0x278)]=_0x1bbdee,this[_0x3f335c(0x16e)]=_0x5b353c,this['_messageService']=_0x50a122,this[_0x3f335c(0x2d0)]=_0x7bcf77,this['_localeService']=_0x40013a,this['_setupBeforeClosingHandler'](),this[_0x3f335c(0x11a)]();}['_setupBeforeClosingHandler'](){const _0x29498d=_0x114c64;this[_0x29498d(0x220)](this['_beforeCloseService'][_0x29498d(0x22a)](()=>{const _0x204b0b=_0x29498d;if(this[_0x204b0b(0x278)][_0x204b0b(0x1b6)][_0x204b0b(0x20f)])return this[_0x204b0b(0x244)]['t'](_0x204b0b(0x310));}));}[_0x114c64(0x11a)](){const _0x29f051=_0x114c64;this[_0x29f051(0x220)](this['_collaborationUIEventService']['event$'][_0x29f051(0x2c9)](_0x4fcc2f=>{const _0x5949a1=_0x29f051;_0x4fcc2f['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x5949a1(0x17f)]({'type':D[_0x5949a1(0x33a)][_0x5949a1(0x18a)],'content':this[_0x5949a1(0x244)]['t'](_0x5949a1(0x2c1))}),_0x4fcc2f['id']===u[_0x5949a1(0x19d)][_0x5949a1(0x17b)]&&this['_messageService'][_0x5949a1(0x17f)]({'type':D[_0x5949a1(0x33a)]['Warning'],'content':this[_0x5949a1(0x244)]['t']('collaboration.closeRoom')}),_0x4fcc2f['id']===u[_0x5949a1(0x19d)][_0x5949a1(0x1f4)]&&this[_0x5949a1(0x2d0)]['show']({'title':this['_localeService']['t'](_0x5949a1(0x284)),'content':this[_0x5949a1(0x244)]['t'](_0x5949a1(0x288)),'type':_0x5949a1(0x2eb),'duration':0x0}),_0x4fcc2f['id']===u[_0x5949a1(0x19d)][_0x5949a1(0x263)]&&this[_0x5949a1(0x336)][_0x5949a1(0x17f)]({'type':D['MessageType'][_0x5949a1(0x317)],'content':this[_0x5949a1(0x244)]['t']('collaboration.closeRoom')+'('+_0x4fcc2f['data']+')'}),_0x4fcc2f['id']===u[_0x5949a1(0x19d)]['JOIN_ROOM_FAILED']&&this[_0x5949a1(0x336)][_0x5949a1(0x17f)]({'type':D[_0x5949a1(0x33a)][_0x5949a1(0x18a)],'content':this[_0x5949a1(0x244)]['t'](_0x4fcc2f[_0x5949a1(0xff)]||'')}),_0x4fcc2f['id']===u[_0x5949a1(0x19d)][_0x5949a1(0x314)]&&this[_0x5949a1(0x336)]['show']({'type':D['MessageType'][_0x5949a1(0x18a)],'content':this[_0x5949a1(0x244)]['t'](_0x5949a1(0x2db))}),_0x4fcc2f['id']===u[_0x5949a1(0x19d)][_0x5949a1(0x168)]&&this[_0x5949a1(0x336)][_0x5949a1(0x17f)]({'type':D['MessageType'][_0x5949a1(0x317)],'content':this[_0x5949a1(0x244)]['t']('session.connection-failed')}),_0x4fcc2f['id']===u[_0x5949a1(0x19d)][_0x5949a1(0x198)]&&this[_0x5949a1(0x336)][_0x5949a1(0x17f)]({'type':D['MessageType']['Error'],'content':this[_0x5949a1(0x244)]['t'](_0x5949a1(0x167))});}));}};q=yt([y(0x0,T[_0x114c64(0x173)]),y(0x1,u[_0x114c64(0x218)]),y(0x2,a['Inject'](u[_0x114c64(0x2c6)])),y(0x3,T[_0x114c64(0x1db)]),y(0x4,T[_0x114c64(0x26f)]),y(0x5,a[_0x114c64(0x307)](a[_0x114c64(0x2aa)]))],q);const $t=_0x114c64(0x2da),Ue={},be=a['createIdentifier'](_0x114c64(0x1e6));var xt=Object[_0x114c64(0x140)],jt=(_0x174e96,_0x5cd253,_0x4dddba,_0x30990c)=>{const _0x2d705a=_0x114c64;for(var _0x2fd988=_0x30990c>0x1?void 0x0:_0x30990c?xt(_0x5cd253,_0x4dddba):_0x5cd253,_0x182935=_0x174e96[_0x2d705a(0x2f1)]-0x1,_0x5569cb;_0x182935>=0x0;_0x182935--)(_0x5569cb=_0x174e96[_0x182935])&&(_0x2fd988=_0x5569cb(_0x2fd988)||_0x2fd988);return _0x2fd988;},H=(_0x4eb7b9,_0x33b23e)=>(_0x25e65b,_0x5424e5)=>_0x33b23e(_0x25e65b,_0x5424e5,_0x4eb7b9);exports[_0x114c64(0x138)]=class extends a['RxDisposable']{constructor(_0x2202d7,_0xc1201b,_0x4e66f5,_0xc3ccba,_0x311c9f){const _0x29a784=_0x114c64;super(),this[_0x29a784(0x290)]=_0x2202d7,this[_0x29a784(0x229)]=_0xc1201b,this[_0x29a784(0x1cd)]=_0x4e66f5,this[_0x29a784(0x21a)]=_0xc3ccba,_0x311c9f?_0x311c9f==null||_0x311c9f[_0x29a784(0x104)]()[_0x29a784(0x1f3)](()=>this[_0x29a784(0x194)]()):(this[_0x29a784(0x229)]['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x29a784(0x194)]());}async[_0x114c64(0x194)](){const _0x36ea55=_0x114c64,_0x26f49e=this[_0x36ea55(0x290)][_0x36ea55(0x232)](_0x36ea55(0x19c)),_0x2fc8aa=this[_0x36ea55(0x290)]['getParam']('type'),_0xe63263=this[_0x36ea55(0x290)][_0x36ea55(0x232)](_0x36ea55(0x36e));if(!_0x26f49e||!_0x2fc8aa){this[_0x36ea55(0x229)][_0x36ea55(0x209)](_0x36ea55(0x237),_0x36ea55(0x356));return;}const _0x30f8c3=await this[_0x36ea55(0x21a)][_0x36ea55(0x109)](_0x26f49e,Number(_0x2fc8aa),_0xe63263);_0x30f8c3&&_0x30f8c3 instanceof a['Workbook']&&this[_0x36ea55(0x31d)](_0x30f8c3);}async[_0x114c64(0x31d)](_0x48e2e1){const _0xe6b1ba=_0x114c64;await this[_0xe6b1ba(0x178)](_0x48e2e1),_0x48e2e1[_0xe6b1ba(0x257)][_0xe6b1ba(0x12c)](d[_0xe6b1ba(0x13a)](this[_0xe6b1ba(0x35d)]))[_0xe6b1ba(0x2c9)](_0x7b0424=>{const _0x3f76f5=_0xe6b1ba;_0x7b0424&&this[_0x3f76f5(0x2ab)](_0x7b0424);}),this[_0xe6b1ba(0x290)][_0xe6b1ba(0x203)]['pipe'](d[_0xe6b1ba(0x13a)](this['dispose$']))[_0xe6b1ba(0x2c9)](()=>this[_0xe6b1ba(0x178)](_0x48e2e1));}['_updateURLWithCurrentState'](_0x8971e5,_0x5e1953=!0x1){const _0x5a28d6=_0x114c64,_0x28a573=this[_0x5a28d6(0x290)]['getParam'](_0x5a28d6(0x36e));_0x8971e5[_0x5a28d6(0x11b)]()!==_0x28a573&&this[_0x5a28d6(0x290)]['setParam']('subunit',_0x8971e5[_0x5a28d6(0x11b)](),_0x5e1953);}async[_0x114c64(0x178)](_0x3e9e52){const _0x2a99ee=_0x114c64;var _0x39a039;const _0x404295=this[_0x2a99ee(0x290)][_0x2a99ee(0x232)](_0x2a99ee(0x36e));if(!_0x404295||!_0x3e9e52[_0x2a99ee(0x1b4)](_0x404295)){const _0x48479a=_0x3e9e52['getUnhiddenWorksheets']()[0x0],_0xe35f48=_0x3e9e52[_0x2a99ee(0x1b4)](_0x48479a);if(!_0xe35f48)return;this[_0x2a99ee(0x2ab)](_0xe35f48,!0x0),await this[_0x2a99ee(0x1cd)][_0x2a99ee(0x175)](g[_0x2a99ee(0x13d)]['id'],{'unitId':_0x3e9e52[_0x2a99ee(0x234)](),'subUnitId':_0x48479a});return;}((_0x39a039=_0x3e9e52[_0x2a99ee(0x111)]())==null?void 0x0:_0x39a039['getSheetId']())!==_0x404295&&await this[_0x2a99ee(0x1cd)][_0x2a99ee(0x175)](g[_0x2a99ee(0x13d)]['id'],{'unitId':_0x3e9e52[_0x2a99ee(0x234)](),'subUnitId':_0x404295});}},exports[_0x114c64(0x138)]=jt([H(0x0,be),H(0x1,a[_0x114c64(0x30d)]),H(0x2,a[_0x114c64(0x287)]),H(0x3,a[_0x114c64(0x307)](u[_0x114c64(0x242)])),H(0x4,a['Optional'](Ke[_0x114c64(0x1d9)]))],exports[_0x114c64(0x138)]);var Bt=Object[_0x114c64(0x140)],kt=(_0x189933,_0x4b8e26,_0x52d03e,_0x5bc99e)=>{for(var _0x5bef45=_0x5bc99e>0x1?void 0x0:_0x5bc99e?Bt(_0x4b8e26,_0x52d03e):_0x4b8e26,_0x1b7d68=_0x189933['length']-0x1,_0x2e51e8;_0x1b7d68>=0x0;_0x1b7d68--)(_0x2e51e8=_0x189933[_0x1b7d68])&&(_0x5bef45=_0x2e51e8(_0x5bef45)||_0x5bef45);return _0x5bef45;},ce=(_0x65b303,_0x16d891)=>(_0x50e261,_0x380db9)=>_0x16d891(_0x50e261,_0x380db9,_0x65b303);let z=class{constructor(_0x3fe008,_0x53d075,_0x5e09c0){const _0x4689c5=_0x114c64;this[_0x4689c5(0x2c4)]=_0x3fe008,this[_0x4689c5(0x252)]=_0x53d075,this['_renderManagerService']=_0x5e09c0;}[_0x114c64(0x269)](_0x2139b7){const _0x5dbb01=_0x114c64;this[_0x5dbb01(0x152)](_0x2139b7),this[_0x5dbb01(0x248)](_0x2139b7);}[_0x114c64(0x33d)](_0x58ff4a){const _0x1eec86=_0x114c64,{unitID:_0x4a234d}=_0x58ff4a,_0x463012=this[_0x1eec86(0x1aa)]['getRenderById'](_0x4a234d)[_0x1eec86(0x349)](b[_0x1eec86(0xef)]),{redoCache:_0xb411f4}=_0x463012['getUndoRedoMutationParamsCache']();if(_0xb411f4[_0x1eec86(0x2f1)]===0x0)return _0x58ff4a;let _0x24870f=a[_0x1eec86(0x1bb)][_0x1eec86(0x2fd)](_0x58ff4a[_0x1eec86(0x330)][0x0]);for(let _0x56437f=0x0;_0x56437f<_0xb411f4[_0x1eec86(0x2f1)];_0x56437f++){const _0x4bd9ae={'id':_0x1eec86(0x113),'params':{..._0xb411f4[_0x56437f]}},_0xd04d5=this[_0x1eec86(0x252)]['transformMutation'](_0x24870f,_0x4bd9ae,!0x1);if(m[_0x1eec86(0x331)](_0xd04d5))throw _0xd04d5[_0x1eec86(0x2eb)];_0x24870f=_0xd04d5[_0x1eec86(0x31e)];}return{...a['Tools'][_0x1eec86(0x2fd)](_0x58ff4a),'mutations':[_0x24870f]};}[_0x114c64(0x152)](_0x104e32){const _0x40a3cf=_0x114c64,{unitID:_0x34dc4c}=_0x104e32,_0x245e3e=this[_0x40a3cf(0x1aa)][_0x40a3cf(0x16b)](_0x34dc4c)[_0x40a3cf(0x349)](b[_0x40a3cf(0xef)]),{undoCache:_0x4975e1,redoCache:_0x588fe6}=_0x245e3e['getUndoRedoMutationParamsCache']();if(_0x4975e1[_0x40a3cf(0x2f1)]===0x0||_0x588fe6[_0x40a3cf(0x2f1)]===0x0)return;const _0x2d99f4=[],_0x542bae=[];let _0x391ec3=a[_0x40a3cf(0x1bb)][_0x40a3cf(0x2fd)](_0x104e32[_0x40a3cf(0x330)][0x0]),_0x4a9873=a['Tools'][_0x40a3cf(0x2fd)](_0x104e32[_0x40a3cf(0x330)][0x0]);for(let _0x19dda9=_0x4975e1[_0x40a3cf(0x2f1)]-0x1;_0x19dda9>=0x0;_0x19dda9--){const _0x3b092a={'id':_0x40a3cf(0x113),'params':{..._0x4975e1[_0x19dda9]}},_0x1dba1a={'id':_0x40a3cf(0x113),'params':{..._0x588fe6[_0x19dda9]}},_0x1d25a1=this['_transformService'][_0x40a3cf(0x1e2)](_0x391ec3,_0x3b092a,!0x1),_0x37499e=this[_0x40a3cf(0x252)][_0x40a3cf(0x1e2)](_0x4a9873,_0x1dba1a,!0x1);if(m[_0x40a3cf(0x331)](_0x1d25a1))throw _0x1d25a1[_0x40a3cf(0x2eb)];if(m[_0x40a3cf(0x331)](_0x37499e))throw _0x37499e[_0x40a3cf(0x2eb)];_0x2d99f4[_0x40a3cf(0x1d5)](_0x1d25a1[_0x40a3cf(0x347)][_0x40a3cf(0x1ee)]),_0x542bae[_0x40a3cf(0x1d5)](_0x37499e['m2Prime']['params']),_0x391ec3=_0x1d25a1[_0x40a3cf(0x31e)],_0x4a9873=_0x37499e[_0x40a3cf(0x31e)];}_0x245e3e['setUndoRedoMutationParamsCache']({'undoCache':_0x2d99f4,'redoCache':_0x542bae});}[_0x114c64(0x248)](_0x2389a8){const _0xce7940=_0x114c64,{unitID:_0x43bf78}=_0x2389a8,_0xa83969=this[_0xce7940(0x1aa)][_0xce7940(0x16b)](_0x43bf78)[_0xce7940(0x349)](b[_0xce7940(0xef)]),_0x21d109=_0xa83969[_0xce7940(0x183)]();if(_0x21d109==null)return;const _0x2dac46=[{'id':_0xce7940(0x113),'params':{'unitId':_0x2389a8[_0xce7940(0x216)],'actions':null,'textRanges':[_0x21d109]}}],_0x365810=this[_0xce7940(0x252)][_0xce7940(0x1cc)](_0x2389a8,_0x2dac46);if(!m['isTransformMutationsWithChangesetSuccess'](_0x365810))throw _0x365810[_0xce7940(0x2eb)];const _0x353229=_0x365810[_0xce7940(0x347)][0x0]['params'][_0xce7940(0x189)];Array['isArray'](_0x353229)&&_0x353229[_0xce7940(0x2f1)]&&_0xa83969[_0xce7940(0x320)](_0x353229[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x114c64(0x2bc)])),ce(0x1,m[_0x114c64(0x2ee)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x114c64(0x140)],Ft=(_0x2cf8ec,_0xf33c8c,_0x1dbd56,_0x57b409)=>{const _0xfe808=_0x114c64;for(var _0x135c03=_0x57b409>0x1?void 0x0:_0x57b409?Ht(_0xf33c8c,_0x1dbd56):_0xf33c8c,_0x411b9a=_0x2cf8ec[_0xfe808(0x2f1)]-0x1,_0x4c78c9;_0x411b9a>=0x0;_0x411b9a--)(_0x4c78c9=_0x2cf8ec[_0x411b9a])&&(_0x135c03=_0x4c78c9(_0x135c03)||_0x135c03);return _0x135c03;},le=(_0x143e36,_0x326c79)=>(_0x505b72,_0x2b00fc)=>_0x326c79(_0x505b72,_0x2b00fc,_0x143e36);function _0x4174(){const _0x4eeb67=['parse','use','textRanges','Warning','transformStateCache','_status$','RemoteUniscriptService','getAncestorScale','_unitOnClients','_getSheetObject','currentColor','mask','column','_init','IUIPartsService','_removeCollabCursors','Rect','SUBMIT_CHANGESET_TIMEOUT','TOO_MANY_REQUESTS','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','jiqing.500','unit','CollaborationUIEventId','12AysCLf','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','indexOf','DesktopCollaborationStatusDisplayController','setItem','[RemoteUniscriptService]:\x20no\x20focused\x20unit','APPLY_DUPLICATED','url(#$1','_getScale','_saveTaskMap','InsertRangeMoveRightCommandId','get','_renderManagerService','_heartbeatTimer','setStateCache','/run/','imageSourceType','fillStyle','call','_sheetSkeletonManagerService','WECHAT_HAS_BEEN_BOUND','INVALID_ARGUMENT','getSheetBySheetId','font','saveTaskMap','runOnServer','beginPath','pushState','clipPath','Tools','_initStatusComponent','stringify','UnitStatus','name','code','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_hideTimer','assign','debounceTime','currentTheme$','3083URFVio','SYNCED','getViewport','includes','APPLY_PERMISSION_DENIED','onPointerLeave$','transformMutationsWithChangeset','_commandService','asObservable','colorChannel1','useObservable','clsx','SHEET_VIEWPORT_KEY','registerComponent','findNodePositionByCharIndex','unshift','BehaviorSubject','CollaborationController','switchMap','IRemoteInstanceService','LOCAL_CACHE_INTERVAL','IMessageService','UNDEFINED','exhaustSavingTask','univer-flex\x20univer-items-center','_document','getCellPositionByOffset','isArray','transformMutation','univerjs-icon\x20univerjs-icon-','_drawAnchor','INVITE_CODE_HAS_BEEN_UES','uni.network.url-service','_initEntityListener','CollaborationStatusDisplay','url(#on-line-icon_clip0_910_349)','prototype','fill','transformByState','SetTextSelectionsOperation','params','createElement','APPLY_REVISION_CONFILICT','handleInsertRow','idSuffix','then','PERMISSION_DENIED','_syncEditingCollabCursorService','UPDATE_CURSOR','UNIVER_DOC','UNRECOGNIZED','send','substring','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getStateCache','setConfig','HEADER_MENU','RemoveColCommandId','event$','getCurrentRevOfUnit','_initResize','urlChange$','_toggleOffline','fromEvent','history','subscribeEvent','@univerjs/design','debug','@univerjs/drawing','FromArray','handleMoveRange','EMAIL_HAS_BEEN_BOUND','_collabCursorController','size','merge','syncEditingCollabCursor','_handleEvent','_shapes','unsubscribe','top','unitID','handleDeleteRangeMoveLeft','ILocalCacheService','NodePositionConvertToCursor','_dataLoaderService','jsx','_getAnchorBounding','forEach','text','set','disposeWithMe','LOGIN_FAILED','registerDependencies','green.600','#FFF','@univerjs-pro/collaboration-client','range','collabCursorState$','extend','_logService','registerBeforeClose','getCollabCursors$','attrs','_revisionService','LOCAL_CACHE_INTERVAL_KEY','RevisionService','UNAUTHENTICATED','setTimeout','getParam','1em','getUnitId','replaceDocRanges','_memberService','[CollaborationDataLoaderController]','getSkeleton','deserializeRangeWithSheet','_unitStatus','_scene','RemoveRowCommandId','max','registerRenderModule','Rectangle','tag','isEditing','DataLoaderService','startRow','_localeService','_refRangeService','getUnitStatus$','_docSyncEditingCollabCursorService','_transformPreviousActiveRange','getUniverSheetInstance','children','defineProperty','COLORS','purple.300','_hovered','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getCurrent','endColumn','_transformService','toDisposable','init','concat','_beforeCloseService','activeSheet$','getVpScrollXYInfoByPosToVp','sessionTicket','onTransformChange$','_handleJoinEvent','height','undoState','NOT_COLLAB','APPLY_NON_SEQUENTIAL_REVISION','getMemberID','replace','NOT_FOUND','CONFLICT','_docSkeletonManagerService','values','svg','string','transformSelections','transformIMECache','getRelativeToViewportCoord','IUniverInstanceService','RichTextEditingMutation','_roomMembers$','SNAPSHOT_INVALID_SNAPSHOT','INotificationService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getValue','onPointerMove$','MOBILE_HAS_BEEN_BOUND','body','VIEW_MAIN','_config','_handleLeaveEvent','_localCacheService','CollaborationSessionService','RxDisposable','collabStatus.fetchMiss','toString','getCurrentSelections','YUUMI_NO_CUBOID_FOR_QUESTION','function','_disabled','distinctUntilChanged','collab-client.tooltip.reconnect','_eventUnsubscribe','permission.title','round','Tooltip','ICommandService','permission.content','current','_online','registerRefRange','@univerjs/sheets','YUUMI_UNABLE_LOAD_URL','toRgbString','Module','_urlService','hovered','div','useRef','_draw','_refreshCollabCursors','_cachedData','getTypeOfUnitAdded$','SheetCollabCursorShape','onMouseMove','selection','_entityInit$','394ojqQoZ','defIds','UniverCollaborationClientPlugin','wsSessionTicketUrl','clearInterval','getCoordByCell','skeleton','APPLY_REJECT','YUUMI_SUBSCRIPTION_NOT_FOUND','http://www.w3.org/2000/svg','href','throttleTime','clearTimeout','DeleteRangeMoveLeftCommandId','LocaleService','_updateURLWithCurrentState','CommandType','_lastPointer','InsertRowCommandId','contains','subUnitId','translate(.97)','reconnect','executionId','SheetSkeletonManagerService','_themeService','IURLService','UniverIcon','IConfigService','Disposable','disableLocalCache','_localStorageService','Injector','runId','ENSURE_SNAPSHOT_EXECUTION','sessionStatus$','PY_RUNTIME_SCRIPT_ERROR','collaboration.single-unit.warning','0\x200\x2016\x2016','@univerjs/engine-render','_injector','Plugin','CollaborationUIEventService','enableLocalCache','focused$','subscribe','isActive','COMPLETION_FINISHED','PENDING','_anchorDot','_colorIndex','createInstance','_notificationService','search','key','_scheduleSaving','_getMergeRange','setParam','requireSession','getRangePointData','rxjs/operators','row','collaboration-client-ui.config','session.will-retry','DependentOn','MoveRangeCommandId','_handleHeartbeatEvent','location','handleDeleteRangeMoveUp','assignAColorForMemberID','DeleteRangeMoveUpCommandId','getFocusedUnit','ONLINE','getColor','SetSelectionsOperation','has','collab-text-range-','_collabCursorState$','ISnapshotServerService','error','saveImage','_assignedColors','ITransformService','none','_initCommandExecutedListener','length','Subject','_getSessionTicket','HTTPService','symbol','path','@univerjs/sheets-ui','getMember','black','LICENSE_DISTRO_REJECTED','_collaborationController','DocSelectionManagerService','deepClone','connectInjector','roomMembers','replaceState','IDocClipboardService','INVITE_CODE_REQUIRED','entries','hasOwnProperty','YUUMI_ASYNCIO_CANCELLED','_send','Inject','width','226647GStUXo','rxjs','TRANSFORM_CHANGE_OBSERVABLE_TYPE','RegularPolygon','ILogService','on-line-icon','addObject','collaboration-client.offline-data-not-saved','eventID','_onCursorDelete','337780AyQYms','SOCKET_FAILED_RETRY','_transformHistoryAndStateStack','_entities','Error','Failed','min','invokeId','NO_OTHER_CLIENTS_EDITING','some','_setupSubUnitSync','m1Prime','Shape','setActiveRange','cursorInfo','find','_onCursorUpdate','_range','YUUMI_ALL_TABLES_IS_INVALID','BrowserCollaborationSocketService','SessionStatus','_docTransformIMECacheService','TEXT_RANGE_LAYER_INDEX','fillText','_toggleOnline','_hover','INTERNAL_ERROR','onPointerEnter$','DOC_RANGE_TYPE','mutations','isTransformMutationFailure','DEFAULT_WS_SESSION_TICKET_URL','_cursor','_drawTextRange','updateOfflineData','_messageService','_color','saveOfflineData','AWAITING_WITH_PENDING','MessageType','lineTo','INVALID_INVITE_CODE','transformRemoteChangeset','push','_docTransformStateCacheService','OnLineIcon','unload','forwardRef','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','startsWith','1586333ueOxao','ThemeService','m2Prime','@univerjs/core','with','className','_cursorInfo$','@univerjs/engine-formula','ALREADY_EXISTS','setAlpha','combineLatest','_httpService','IRenderManagerService','ColorKit','random','engine','5756820gfwGCQ','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','on-line-icon_clip0_910_349','_context','endRow','result','M0\x200H16V16H0z','_selfUnitIDs','dispose$','UniverInstanceType','override','add','_registerDependencies','newValue','_name','roomMembers$','CHANGESET_REVISION_CONFILICT','source','collabStatus.syncing','_removeClearOtherTimer','post','TEXT','_uiPartsService','origin','off-line-icon_clip0_910_343','subunit','...','_startSheetCollabCursor','_anchor','currentSkeleton$','status$','red.300','addObjects','selections','NodePositionConvertToRectRange','DocIMEInputManagerService','_colorAssignService','_doCreateSocket','onStarting','_ensureSubject','_docSkeleton','IImageIoService','moveTo','YUUMI_URL_COL_OUT_OF_RANGE','AWAITING','createSocket','getLocalCacheKey','all','_collabSessionService','getOffsetConfig','_saveCache','data','SetDocZoomRatioOperation','OTHER_CLIENTS_EDITING','delete','2740206rVtffv','whenReady','_configService','LICENSE_EXPORT_SIZE_EXCEEDED','off-line-icon','_docStateChangeManagerService','loadUnit','collabStatus.offline','ISocketService','onCommandExecuted','EffectRefRangId','flatMap','resize','makeDirty','getActiveSheet','CollaborationStatus','doc.mutation.rich-text-editing','dispose','_onRefRangeChange','complete','@univerjs/ui','from','@univerjs/docs','_initEvent','getSheetId','_scheduleHeartbeat','@univerjs/docs-ui','YUUMI_AI_RUN_FAILED','storage','white','WebBrowserSingleActiveUnitService','_univerInstanceService','_docClipboardService','next','handleIRemoveRow','type','map','_imageIoService','CollaborationEvent','_render','_session','pipe','UniverCollaborationClientUIPlugin','debounce','YUUMI_RATE_OVER_LIMIT','defs','SNAPSHOT_HAS_BEEN_REMOVED','rgba(255,\x20255,\x20255,\x200.01)','_updateCollabCursors','InsertColCommandId','_scheduleClearOtherTimer','getConfig','collab-rect-range-','CollaborationDataLoaderController','_clearOtherTimers','takeUntil','INVITE_CODE_ALREADY_BOUND','restore','SetWorksheetActivateCommand','@univerjs/rpc','_cursorShapes','getOwnPropertyDescriptor','USER_NOT_INVITED_CODE','addHandlerCallback','DocCollaborationEntity','_registerRenderDependencies','unitId','generateRandomId','ranges','DocSkeletonManagerService','UNIVER_SHEET','MemberService','toStringTag','labelPosition','USERS_LEAVE','displayName','color','save','LICENSE_IMPORT_SIZE_EXCEEDED','_transformUndoRedoStack','arc','_id','27VJNSPF','308096umEmBr','_updateLocalCursor','sheetID','getOwnPropertySymbols','OFFLINE','getCurrentUnitForType','trim','redoState','DocStateChangeManagerService','collabStatus.synced','jsxs','_textBubble','_handleHover','_backgroundColor','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','_cursors','YUUMI_TABLE_NOT_FOUND_IN_UNIT','session.collaboration-timeout','SOCKET_FAILED','_docTransformSelectionsService','setShapeProps','getRenderById','react/jsx-runtime','WebURLService','_collaborationUIEventService','_initDependencies','searchParams','application/json','xlink:href','IBeforeCloseService','FETCH_MISS','executeCommand','getColorFromTheme','_labelPosition','_updateSubUnitFromURLParams','getDocRanges','drawWith','CLOSE_ROOM','icon','LICENSE_MAX_UNITS_EXCEEDED','RECT','show','_createSocketURL','measureText','CONNECTOR_DATA_TOO_LARGE','getActiveRange','getTypeOfUnitDisposed$','bottom','CollaborationSocketService'];_0x4174=function(){return _0x4eeb67;};return _0x4174();}let J=class{constructor(_0x3d825f,_0x1548a9,_0x3dea2a){const _0x352f89=_0x114c64;this[_0x352f89(0x2c4)]=_0x3d825f,this[_0x352f89(0x252)]=_0x1548a9,this[_0x352f89(0x108)]=_0x3dea2a;}['transformStateCache'](_0x2dfa9b){this['_transformHistoryAndStateStack'](_0x2dfa9b);}[_0x114c64(0x33d)](_0x2b0048){const _0x55162f=_0x114c64,{unitID:_0x131384}=_0x2b0048,{collaboration:_0x2ea820}=this[_0x55162f(0x108)]['getStateCache'](_0x131384);if(_0x2ea820[_0x55162f(0x2f1)]===0x0)return _0x2b0048;let _0x261885=a[_0x55162f(0x1bb)][_0x55162f(0x2fd)](_0x2b0048[_0x55162f(0x330)][0x0]);for(let _0x3d41ab=0x0;_0x3d41ab<_0x2ea820[_0x55162f(0x2f1)];_0x3d41ab++){const _0x340bdc={'id':_0x55162f(0x113),'params':{'unitId':_0x2ea820[_0x3d41ab][_0x55162f(0x145)],..._0x2ea820[_0x3d41ab]['redoState']}},_0x59f666=this[_0x55162f(0x252)][_0x55162f(0x1e2)](_0x261885,_0x340bdc,!0x1);if(m[_0x55162f(0x331)](_0x59f666))throw _0x59f666['error'];_0x261885=_0x59f666['m1Prime'];}return{...a[_0x55162f(0x1bb)][_0x55162f(0x2fd)](_0x2b0048),'mutations':[_0x261885]};}[_0x114c64(0x315)](_0x18da20){const _0x4e16a4=_0x114c64,{unitID:_0x42c71d}=_0x18da20,{history:_0x5a9009,collaboration:_0x57c26a}=this['_docStateChangeManagerService'][_0x4e16a4(0x1fc)](_0x42c71d);if(_0x5a9009[_0x4e16a4(0x2f1)]===0x0&&_0x57c26a[_0x4e16a4(0x2f1)]===0x0)return;const _0x2d8e8e=[],_0x5af1b8=[];let _0x383454=a[_0x4e16a4(0x1bb)][_0x4e16a4(0x2fd)](_0x18da20[_0x4e16a4(0x330)][0x0]),_0x4ed130=a[_0x4e16a4(0x1bb)][_0x4e16a4(0x2fd)](_0x18da20['mutations'][0x0]);for(let _0x2385a8=_0x5a9009[_0x4e16a4(0x2f1)]-0x1;_0x2385a8>=0x0;_0x2385a8--){const _0x2c2f50={'id':_0x4e16a4(0x113),'params':{'unitId':_0x5a9009[_0x2385a8]['unitId'],..._0x5a9009[_0x2385a8][_0x4e16a4(0x25d)]}},_0x3967f5={'id':_0x4e16a4(0x113),'params':{'unitId':_0x5a9009[_0x2385a8][_0x4e16a4(0x145)],..._0x5a9009[_0x2385a8][_0x4e16a4(0x15d)]}},_0x1f3b74=this[_0x4e16a4(0x252)][_0x4e16a4(0x1e2)](_0x383454,_0x2c2f50,!0x1),_0x1b2845=this[_0x4e16a4(0x252)][_0x4e16a4(0x1e2)](_0x4ed130,_0x3967f5,!0x1);if(m[_0x4e16a4(0x331)](_0x1f3b74))throw _0x1f3b74[_0x4e16a4(0x2eb)];if(m[_0x4e16a4(0x331)](_0x1b2845))throw _0x1b2845['error'];_0x2d8e8e[_0x4e16a4(0x1d5)]({..._0x5a9009[_0x2385a8],'undoState':_0x1f3b74[_0x4e16a4(0x347)]['params'],'redoState':_0x1b2845[_0x4e16a4(0x347)]['params']}),_0x383454=_0x1f3b74[_0x4e16a4(0x31e)],_0x4ed130=_0x1b2845[_0x4e16a4(0x31e)];}_0x383454=a[_0x4e16a4(0x1bb)][_0x4e16a4(0x2fd)](_0x18da20[_0x4e16a4(0x330)][0x0]),_0x4ed130=a[_0x4e16a4(0x1bb)][_0x4e16a4(0x2fd)](_0x18da20[_0x4e16a4(0x330)][0x0]);for(let _0x16a670=_0x57c26a[_0x4e16a4(0x2f1)]-0x1;_0x16a670>=0x0;_0x16a670--){const _0x631521={'id':_0x4e16a4(0x113),'params':{'unitId':_0x57c26a[_0x16a670][_0x4e16a4(0x145)],..._0x57c26a[_0x16a670][_0x4e16a4(0x25d)]}},_0x3765e5={'id':_0x4e16a4(0x113),'params':{'unitId':_0x57c26a[_0x16a670][_0x4e16a4(0x145)],..._0x57c26a[_0x16a670][_0x4e16a4(0x15d)]}},_0xc76734=this[_0x4e16a4(0x252)]['transformMutation'](_0x383454,_0x631521,!0x1),_0x3c1a73=this[_0x4e16a4(0x252)][_0x4e16a4(0x1e2)](_0x4ed130,_0x3765e5,!0x1);if(m['isTransformMutationFailure'](_0xc76734))throw _0xc76734[_0x4e16a4(0x2eb)];if(m[_0x4e16a4(0x331)](_0x3c1a73))throw _0x3c1a73[_0x4e16a4(0x2eb)];_0x5af1b8['unshift']({..._0x57c26a[_0x16a670],'undoState':_0xc76734[_0x4e16a4(0x347)][_0x4e16a4(0x1ee)],'redoState':_0x3c1a73[_0x4e16a4(0x347)][_0x4e16a4(0x1ee)]}),_0x383454=_0xc76734[_0x4e16a4(0x31e)],_0x4ed130=_0x3c1a73['m1Prime'];}this['_docStateChangeManagerService'][_0x4e16a4(0x1ac)](_0x42c71d,{'history':_0x2d8e8e,'collaboration':_0x5af1b8});}};J=Ft([le(0x0,a[_0x114c64(0x307)](a[_0x114c64(0x2bc)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](b[_0x114c64(0x15e)]))],J);var Yt=Object[_0x114c64(0x140)],Wt=(_0x3507f7,_0x1be5e3,_0x25c6e,_0x487b5e)=>{const _0x267f8c=_0x114c64;for(var _0x5c6962=_0x487b5e>0x1?void 0x0:_0x487b5e?Yt(_0x1be5e3,_0x25c6e):_0x1be5e3,_0x4554d4=_0x3507f7[_0x267f8c(0x2f1)]-0x1,_0x170930;_0x4554d4>=0x0;_0x4554d4--)(_0x170930=_0x3507f7[_0x4554d4])&&(_0x5c6962=_0x170930(_0x5c6962)||_0x5c6962);return _0x5c6962;},Ne=(_0x434d20,_0x22931e)=>(_0x2dd0bd,_0x3d3e0f)=>_0x22931e(_0x2dd0bd,_0x3d3e0f,_0x434d20);let Z=class{constructor(_0x55e387,_0x1d2580){const _0x3f5f6e=_0x114c64;this[_0x3f5f6e(0x2c4)]=_0x55e387,this[_0x3f5f6e(0x252)]=_0x1d2580;}[_0x114c64(0x268)](_0x3de1b5){const _0x2172b3=_0x114c64;var _0x5135a4;const _0x4242a6=this[_0x2172b3(0x2c4)][_0x2172b3(0x1a9)](Y['DocSelectionManagerService']),_0xbae1c=(_0x5135a4=_0x4242a6[_0x2172b3(0x179)]())!=null?_0x5135a4:[];if(_0xbae1c[_0x2172b3(0x2f1)]===0x0)return;const _0x41d2d6=_0x3de1b5['unitID'],_0x88cdc0=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41d2d6,'actions':null,'textRanges':_0xbae1c}}],_0x260f8f=this['_transformService'][_0x2172b3(0x1cc)](_0x3de1b5,_0x88cdc0);if(!m['isTransformMutationsWithChangesetSuccess'](_0x260f8f))throw _0x260f8f[_0x2172b3(0x2eb)];const _0x2b4641=_0x260f8f[_0x2172b3(0x347)][0x0]['params']['textRanges'];Array[_0x2172b3(0x1e1)](_0x2b4641)&&_0x2b4641[_0x2172b3(0x2f1)]&&_0x4242a6[_0x2172b3(0x235)](_0x2b4641,{'unitId':_0x41d2d6,'subUnitId':_0x41d2d6},!0x1);}};Z=Wt([Ne(0x0,a[_0x114c64(0x307)](a['Injector'])),Ne(0x1,m[_0x114c64(0x2ee)])],Z);var Vt=Object[_0x114c64(0x140)],Xt=(_0x40d4a1,_0x9bb651,_0x15e3cf,_0x529849)=>{const _0x5a4ee1=_0x114c64;for(var _0x432fa3=_0x529849>0x1?void 0x0:_0x529849?Vt(_0x9bb651,_0x15e3cf):_0x9bb651,_0x345fc5=_0x40d4a1[_0x5a4ee1(0x2f1)]-0x1,_0x5830ff;_0x345fc5>=0x0;_0x345fc5--)(_0x5830ff=_0x40d4a1[_0x345fc5])&&(_0x432fa3=_0x5830ff(_0x432fa3)||_0x432fa3);return _0x432fa3;},N=(_0x1a72f7,_0x399cf2)=>(_0x42e0a6,_0x25c13d)=>_0x399cf2(_0x42e0a6,_0x25c13d,_0x1a72f7);let Q=class extends a[_0x114c64(0x2b9)]{constructor(_0x9084c,_0xf16812,_0x2627f1,_0x219299,_0x29ab10,_0x538d93,_0x3ef5ed,_0x28aa34){const _0x3ab7e5=_0x114c64;super(),h(this,_0x3ab7e5(0x18c),new d[(_0x3ab7e5(0x1d6))](u[_0x3ab7e5(0x112)]['NOT_COLLAB'])),(this[_0x3ab7e5(0x108)]=_0x9084c,this[_0x3ab7e5(0x2fb)]=_0xf16812,this[_0x3ab7e5(0x328)]=_0x2627f1,this[_0x3ab7e5(0x33f)]=_0x219299,this[_0x3ab7e5(0x169)]=_0x29ab10,this[_0x3ab7e5(0x247)]=_0x538d93,this[_0x3ab7e5(0x336)]=_0x3ef5ed,this['_localeService']=_0x28aa34,this[_0x3ab7e5(0x1e7)]());}[_0x114c64(0x1e7)](){const _0x59419e=_0x114c64;this[_0x59419e(0x220)](this[_0x59419e(0x2fb)]['entityInit$'][_0x59419e(0x2c9)](_0x2666a8=>{const _0x20d29e=_0x59419e,_0x5a59d9=this[_0x20d29e(0x108)]['docStateChange$'][_0x20d29e(0x2c9)](_0x486688=>{const _0x2b14a7=_0x20d29e;if(_0x486688==null)return;const {unitId:_0x4ac8d3,redoState:_0x4eed62,commandId:_0x11e53f}=_0x486688;if(_0x4ac8d3!==_0x2666a8['unitID'])return;const _0x42de69={'id':_0x11e53f,'type':a[_0x2b14a7(0x2ac)]['MUTATION'],'params':{'unitId':_0x4ac8d3,'actions':_0x4eed62['actions'],'textRanges':null}};_0x2666a8['onLocalMutation'](_0x42de69);});if(_0x2666a8['disposeWithMe'](_0x5a59d9),_0x2666a8 instanceof u[_0x20d29e(0x143)]){const _0xfefc61={'onTransformIME':_0x548b5e=>this[_0x20d29e(0x328)][_0x20d29e(0x269)](_0x548b5e),'onTransformState':_0xa3b545=>this['_docTransformStateCacheService'][_0x20d29e(0x18b)](_0xa3b545),'onTransformSelections':_0x68bf93=>this['_docTransformSelectionsService'][_0x20d29e(0x268)](_0x68bf93),'onSyncEditingCollabCursor':_0x3d2408=>this['_docSyncEditingCollabCursorService'][_0x20d29e(0x211)](_0x3d2408),'onTransformRemoteChangesetByIMECache':_0x123cdd=>this['_docTransformIMECacheService'][_0x20d29e(0x33d)](_0x123cdd),'onTransformRemoteChangesetByStateCache':_0x76a402=>this[_0x20d29e(0x33f)][_0x20d29e(0x33d)](_0x76a402)};_0x2666a8[_0x20d29e(0x142)](_0xfefc61);}}));}};Q=Xt([N(0x0,a[_0x114c64(0x307)](b[_0x114c64(0x15e)])),N(0x1,a[_0x114c64(0x307)](u[_0x114c64(0x1d7)])),N(0x2,a[_0x114c64(0x307)](z)),N(0x3,a[_0x114c64(0x307)](J)),N(0x4,a[_0x114c64(0x307)](Z)),N(0x5,a[_0x114c64(0x307)](Ce)),N(0x6,T[_0x114c64(0x1db)]),N(0x7,a[_0x114c64(0x307)](a[_0x114c64(0x2aa)]))],Q);var Gt=Object[_0x114c64(0x140)],Kt=(_0x565b46,_0x5b254e,_0x5bf5ee,_0x4fb811)=>{const _0xc6694a=_0x114c64;for(var _0x532b97=_0x4fb811>0x1?void 0x0:_0x4fb811?Gt(_0x5b254e,_0x5bf5ee):_0x5b254e,_0x3aeb88=_0x565b46[_0xc6694a(0x2f1)]-0x1,_0x28975a;_0x3aeb88>=0x0;_0x3aeb88--)(_0x28975a=_0x565b46[_0x3aeb88])&&(_0x532b97=_0x28975a(_0x532b97)||_0x532b97);return _0x532b97;},_e=(_0x1566c2,_0x96f44)=>(_0x50a532,_0x390e54)=>_0x96f44(_0x50a532,_0x390e54,_0x1566c2);let ge=class extends a['Disposable']{constructor(_0x70c80c,_0x2e0c1b,_0x3cfee5){const _0x1b7c5c=_0x114c64;super(),h(this,_0x1b7c5c(0x296),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x1b7c5c(0x280),!0x1),(this[_0x1b7c5c(0x105)]=_0x70c80c,this['_localStorageService']=_0x2e0c1b,this['_revisionService']=_0x3cfee5);}[_0x114c64(0x2ba)](){this['_disabled']=!0x0;}[_0x114c64(0x2c7)](){const _0x19fded=_0x114c64;this[_0x19fded(0x280)]=!0x1;}get[_0x114c64(0x1b6)](){return this['_saveTaskMap'];}[_0x114c64(0x114)](){const _0x51699b=_0x114c64;this[_0x51699b(0x1dd)]()['then'](()=>super[_0x51699b(0x114)]());}async['loadOfflineData'](_0x53efba){const _0xeb78a1=_0x114c64;return this[_0xeb78a1(0x280)]?null:this[_0xeb78a1(0x2bb)]['getItem'](u[_0xeb78a1(0xfa)](_0x53efba));}async[_0x114c64(0x338)](_0x5db8a7,_0x48044b){return!!this['_localStorageService']['setItem'](_0x5db8a7,_0x48044b);}[_0x114c64(0x335)](_0xbe934,_0x3ee0cf,_0x141d95,_0x3201f8){const _0x219cb8=_0x114c64,_0x25cccf=this[_0x219cb8(0x22d)][_0x219cb8(0x201)](_0xbe934);this['_cachedData'][_0x219cb8(0x21f)](_0xbe934,{'unitID':_0xbe934,'type':_0x3ee0cf,'awaitingChangeset':_0x141d95,'mutations':_0x3201f8,'rev':_0x25cccf}),this[_0x219cb8(0x1a7)][_0x219cb8(0x2e7)](_0xbe934)||this[_0x219cb8(0x2d3)](_0xbe934);}[_0x114c64(0x2d3)](_0x483550){const _0x579978=_0x114c64,_0x5b5b36=this['_getSaveTimeout']();_0x5b5b36===0x0?this[_0x579978(0xfe)](_0x483550):this['_saveTaskMap']['set'](_0x483550,setTimeout(()=>this['_saveCache'](_0x483550),_0x5b5b36));}['_getSaveTimeout'](){const _0x2cfeb5=_0x114c64;var _0x3a48d6;return(_0x3a48d6=this[_0x2cfeb5(0x105)]['getConfig'](u[_0x2cfeb5(0x22e)]))!=null?_0x3a48d6:u[_0x2cfeb5(0x1da)];}[_0x114c64(0xfe)](_0x2a1c40){const _0x1f88aa=_0x114c64,_0x364180=this[_0x1f88aa(0x1a7)][_0x1f88aa(0x1a9)](_0x2a1c40);return _0x364180!==void 0x0&&window['clearTimeout'](_0x364180),this[_0x1f88aa(0x2bb)][_0x1f88aa(0x1a2)](u[_0x1f88aa(0xfa)](_0x2a1c40),this[_0x1f88aa(0x296)]['get'](_0x2a1c40))[_0x1f88aa(0x1f3)](()=>this[_0x1f88aa(0x1a7)][_0x1f88aa(0x102)](_0x2a1c40));}async['exhaustSavingTask'](){const _0x53413e=_0x114c64,_0x3c6852=[];this['_saveTaskMap'][_0x53413e(0x21d)]((_0x30ef38,_0x5f4cdb)=>{const _0x52ac51=_0x53413e;window['clearTimeout'](_0x30ef38),_0x3c6852[_0x52ac51(0x33e)](this[_0x52ac51(0xfe)](_0x5f4cdb)[_0x52ac51(0x1f3)](()=>{const _0x369ebf=_0x52ac51;this[_0x369ebf(0x1a7)][_0x369ebf(0x102)](_0x5f4cdb);}));}),await Promise[_0x53413e(0xfb)](_0x3c6852);}};ge=Kt([_e(0x0,a[_0x114c64(0x2b8)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x114c64(0x307)](m[_0x114c64(0x22f)]))],ge);class je extends a[_0x114c64(0x27a)]{constructor(){const _0x23733e=_0x114c64;super(),h(this,_0x23733e(0x203)),this[_0x23733e(0x203)]=d[_0x23733e(0x205)](window,'popstate')[_0x23733e(0x12c)](d[_0x23733e(0x13a)](this[_0x23733e(0x35d)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0x114c64(0x2d5)](_0x25de5e,_0x36a73d,_0x497485=!0x1){const _0x53abab=_0x114c64,_0x1a049a=new URL(window['location']['href']);_0x1a049a[_0x53abab(0x170)][_0x53abab(0x21f)](_0x25de5e,_0x36a73d),_0x497485?window[_0x53abab(0x206)][_0x53abab(0x300)]('','',_0x1a049a[_0x53abab(0x27c)]()):window[_0x53abab(0x206)][_0x53abab(0x1b9)]('','',_0x1a049a[_0x53abab(0x27c)]());}['removeParam'](_0x26006e,_0x4cc659=!0x1){const _0x147011=_0x114c64,_0x2adae9=new URL(window['location'][_0x147011(0x2a6)]);_0x2adae9['searchParams']['delete'](_0x26006e),_0x4cc659?window[_0x147011(0x206)][_0x147011(0x300)]('','',_0x2adae9['toString']()):window[_0x147011(0x206)][_0x147011(0x1b9)]('','',_0x2adae9[_0x147011(0x27c)]());}['getParam'](_0x538a1a){const _0x33ef58=_0x114c64;var _0x3cd744;return(_0x3cd744=new URL(window[_0x33ef58(0x2df)][_0x33ef58(0x2a6)])[_0x33ef58(0x170)][_0x33ef58(0x1a9)](_0x538a1a))!=null?_0x3cd744:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x114c64(0x140)],Jt=(_0x22dbf0,_0x2af4e3,_0x186704)=>_0x2af4e3 in _0x22dbf0?qt(_0x22dbf0,_0x2af4e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x186704}):_0x22dbf0[_0x2af4e3]=_0x186704,Zt=(_0x1624a8,_0x36b072,_0x4bfb30,_0x333d84)=>{const _0x297c56=_0x114c64;for(var _0x1ee29b=_0x333d84>0x1?void 0x0:_0x333d84?zt(_0x36b072,_0x4bfb30):_0x36b072,_0x335c84=_0x1624a8[_0x297c56(0x2f1)]-0x1,_0x50f887;_0x335c84>=0x0;_0x335c84--)(_0x50f887=_0x1624a8[_0x335c84])&&(_0x1ee29b=_0x50f887(_0x1ee29b)||_0x1ee29b);return _0x1ee29b;},he=(_0x18d000,_0x5c0afd)=>(_0x253df3,_0xcdddeb)=>_0x5c0afd(_0x253df3,_0xcdddeb,_0x18d000),Qt=(_0x54f6b2,_0xe6ff96,_0x53d0c3)=>Jt(_0x54f6b2,_0xe6ff96+'',_0x53d0c3);const es=_0x114c64(0x1fb);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x114c64(0x2c5)]{constructor(_0x29ec7f=Ue,_0x2ccb8a,_0x117bc3,_0x2763ef){const _0x5542e2=_0x114c64;super(),this['_config']=_0x29ec7f,this[_0x5542e2(0x1aa)]=_0x2ccb8a,this['_injector']=_0x117bc3,this[_0x5542e2(0x105)]=_0x2763ef;const {..._0x5c55dc}=a['merge']({},Ue,this[_0x5542e2(0x276)]);this[_0x5542e2(0x105)][_0x5542e2(0x1fd)]($t,_0x5c55dc);}[_0x114c64(0xf2)](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x114c64(0x361)](){const _0x431ebc=_0x114c64;var _0x4a5eb7;const _0x280ad8=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x431ebc(0x10b)],{'useClass':G['WebSocketService']}],[u[_0x431ebc(0x218)],{'useClass':ge}],[exports[_0x431ebc(0x1a1)]],[Q],[q],[x],[de],[exports[_0x431ebc(0x138)]]];a[_0x431ebc(0x222)](this[_0x431ebc(0x2c4)],a['mergeOverrideWithDependencies'](_0x280ad8,(_0x4a5eb7=this['_config'])==null?void 0x0:_0x4a5eb7[_0x431ebc(0x35f)]));}[_0x114c64(0x144)](){const _0x32e257=_0x114c64;this[_0x32e257(0x220)](this['_renderManagerService']['registerRenderModule'](a[_0x32e257(0x35e)]['UNIVER_DOC'],[Ie])),this[_0x32e257(0x220)](this[_0x32e257(0x1aa)][_0x32e257(0x23e)](a[_0x32e257(0x35e)][_0x32e257(0x149)],[ve]));}[_0x114c64(0x16f)](){const _0x578432=_0x114c64;a['touchDependencies'](this[_0x578432(0x2c4)],[[x],[exports[_0x578432(0x1a1)]],[Q],[q],[exports[_0x578432(0x138)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports[_0x114c64(0x12d)]=Zt([a[_0x114c64(0x2dc)](u[_0x114c64(0x29e)]),he(0x1,p[_0x114c64(0x351)]),he(0x2,a[_0x114c64(0x307)](a[_0x114c64(0x2bc)])),he(0x3,a[_0x114c64(0x2b8)])],exports[_0x114c64(0x12d)]);var ts=Object[_0x114c64(0x140)],ss=(_0x463958,_0x540355,_0xf9c1fc,_0x565849)=>{for(var _0x276e0d=_0x565849>0x1?void 0x0:_0x565849?ts(_0x540355,_0xf9c1fc):_0x540355,_0x2be850=_0x463958['length']-0x1,_0x5ddeb3;_0x2be850>=0x0;_0x2be850--)(_0x5ddeb3=_0x463958[_0x2be850])&&(_0x276e0d=_0x5ddeb3(_0x276e0d)||_0x276e0d);return _0x276e0d;},F=(_0x46d153,_0x2b75c6)=>(_0x478255,_0x2ec3c5)=>_0x2b75c6(_0x478255,_0x2ec3c5,_0x46d153);exports[_0x114c64(0x326)]=class extends u[_0x114c64(0x186)]{constructor(_0x13753b,_0x41ef84,_0x49457d,_0x336ffd,_0x1ec1ac){super(_0x13753b,_0x41ef84,_0x49457d,_0x336ffd,_0x1ec1ac);}async[_0x114c64(0xf9)](_0x2b88c9){const _0x5ec942=_0x114c64,_0x2982ef=await this[_0x5ec942(0x2f3)](),_0x2405db=this['_createSocketURL'](_0x2b88c9,_0x2982ef);return this[_0x5ec942(0xf1)](_0x2405db);}[_0x114c64(0x180)](_0x4757df,_0x5f3c48){const _0x50101c=_0x114c64,_0x322ad6=typeof window>'u'?new URL(_0x4757df):new URL(_0x4757df,window['location'][_0x50101c(0x36c)]);_0x322ad6[_0x50101c(0x170)][_0x50101c(0x21f)](_0x50101c(0x259),_0x5f3c48);const _0x500d5c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x50101c(0x2df)][_0x50101c(0x2d1)]);return _0x500d5c[_0x50101c(0x1a9)](_0x50101c(0x2bd))&&_0x322ad6[_0x50101c(0x170)][_0x50101c(0x21f)](_0x50101c(0x2bd),_0x500d5c[_0x50101c(0x1a9)](_0x50101c(0x2bd))),_0x322ad6[_0x50101c(0x27c)]();}async['_getSessionTicket'](){const _0x5148f1=_0x114c64;var _0x41b221,_0x231520,_0x1f9f6d;const _0x1f6c39=this[_0x5148f1(0x105)][_0x5148f1(0x136)](u[_0x5148f1(0x1c1)]),_0x50b534=(_0x41b221=_0x1f6c39==null?void 0x0:_0x1f6c39[_0x5148f1(0x29f)])!=null?_0x41b221:u[_0x5148f1(0x332)];return(_0x1f9f6d=(_0x231520=(await this[_0x5148f1(0x350)]['get'](_0x50b534,{'headers':{'Content-Type':_0x5148f1(0x171)}}))[_0x5148f1(0x274)])==null?void 0x0:_0x231520['ticket'])!=null?_0x1f9f6d:'';}},exports[_0x114c64(0x326)]=ss([F(0x0,a[_0x114c64(0x307)](a[_0x114c64(0x2bc)])),F(0x1,a[_0x114c64(0x307)](G[_0x114c64(0x2f4)])),F(0x2,a[_0x114c64(0x2b8)]),F(0x3,a[_0x114c64(0x30d)]),F(0x4,m[_0x114c64(0x2ea)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0x114c64(0x2b9)]{constructor(){const _0x2ea24f=_0x114c64;super(),h(this,_0x2ea24f(0x154),a[_0x2ea24f(0x146)]()),h(this,_0x2ea24f(0x35c),new Set()),h(this,_0x2ea24f(0x18f),new Map()),h(this,_0x2ea24f(0x1ab),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x2ea24f(0x23a),new Map()),this[_0x2ea24f(0x194)]();}[_0x114c64(0x114)](){const _0xc40bad=_0x114c64;super[_0xc40bad(0x114)](),this[_0xc40bad(0x139)][_0xc40bad(0x21d)]((_0x31e87d,_0x23cb7b)=>this[_0xc40bad(0x368)](_0x23cb7b)),this[_0xc40bad(0x1ab)]&&window[_0xc40bad(0x2a0)](this['_heartbeatTimer']);}[_0x114c64(0x246)](_0x57c49c){const _0x55940f=_0x114c64;return this[_0x55940f(0xf3)](_0x57c49c)[_0x55940f(0x12c)](d[_0x55940f(0x281)]());}['editingUnit'](_0x32a41a){const _0x2aad51=_0x114c64;this[_0x2aad51(0x35c)][_0x2aad51(0x20f)]===0x0&&this[_0x2aad51(0x11c)](),this[_0x2aad51(0x35c)][_0x2aad51(0x360)](_0x32a41a),this[_0x2aad51(0x306)]({'type':0x0,'memberID':this[_0x2aad51(0x154)],'unitIDs':[_0x32a41a],'isForwarded':!0x1});}['disposeUnit'](_0x45ee38){const _0x28ccfc=_0x114c64;this[_0x28ccfc(0x35c)][_0x28ccfc(0x102)](_0x45ee38),this[_0x28ccfc(0x35c)][_0x28ccfc(0x20f)]===0x0&&this[_0x28ccfc(0x1ab)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x114c64(0x194)](){const _0x52d866=_0x114c64;this[_0x52d866(0x220)](a['toDisposable'](d[_0x52d866(0x205)](window,_0x52d866(0x11f))[_0x52d866(0x2c9)](_0x126f41=>{const _0x88dd3e=_0x52d866;if(_0x126f41[_0x88dd3e(0x2d2)]!==Le||!_0x126f41['newValue'])return;const _0x22a0d7=JSON[_0x88dd3e(0x187)](_0x126f41[_0x88dd3e(0x362)]);this[_0x88dd3e(0x212)](_0x22a0d7);}))),window['addEventListener'](_0x52d866(0x341),()=>this[_0x52d866(0x306)]({'type':0x1,'memberID':this[_0x52d866(0x154)],'unitIDs':Array[_0x52d866(0x118)](this[_0x52d866(0x35c)])}));}['_handleEvent'](_0x5d5440){const _0x57acb4=_0x114c64;switch(_0x5d5440['type']){case 0x0:this[_0x57acb4(0x25b)](_0x5d5440);break;case 0x1:this[_0x57acb4(0x277)](_0x5d5440);break;case 0x2:this[_0x57acb4(0x2de)](_0x5d5440);break;}}[_0x114c64(0x25b)](_0x1c537f){const _0x2fc69d=_0x114c64,{unitIDs:_0x3447f9,memberID:_0x5d43f3,isForwarded:_0x1902e3}=_0x1c537f;_0x3447f9[_0x2fc69d(0x21d)](_0x11f934=>{const _0x214e18=_0x2fc69d;if(!_0x1902e3&&this[_0x214e18(0x18f)][_0x214e18(0x2e7)](_0x11f934)&&this[_0x214e18(0xf3)](_0x11f934)[_0x214e18(0x124)](u['UnitStatus'][_0x214e18(0x101)]),!this[_0x214e18(0x18f)]['has'](_0x11f934)||!this['_unitOnClients']['get'](_0x11f934)[_0x214e18(0x2e7)](_0x5d43f3)){const _0x40f9bd=this[_0x214e18(0x18f)][_0x214e18(0x1a9)](_0x11f934)||new Set();_0x40f9bd[_0x214e18(0x360)](_0x5d43f3),this[_0x214e18(0x18f)][_0x214e18(0x21f)](_0x11f934,_0x40f9bd),this[_0x214e18(0x135)](_0x5d43f3);}}),_0x1902e3||this[_0x2fc69d(0x306)]({'type':0x0,'memberID':this[_0x2fc69d(0x154)],'unitIDs':[...this[_0x2fc69d(0x35c)]],'isForwarded':!0x0});}[_0x114c64(0x135)](_0x133dba){const _0x54c93b=_0x114c64;this[_0x54c93b(0x368)](_0x133dba);const _0x3ecd17=window[_0x54c93b(0x231)](()=>{const _0x5c4f67=_0x54c93b;this[_0x5c4f67(0x18f)][_0x5c4f67(0x21d)](_0x3940b6=>{const _0x5b509c=_0x5c4f67;_0x3940b6[_0x5b509c(0x102)](_0x133dba);});},Me*0x2);this[_0x54c93b(0x139)][_0x54c93b(0x21f)](_0x133dba,_0x3ecd17);}[_0x114c64(0x368)](_0x23909f){const _0x47ee1f=_0x114c64;if(this['_clearOtherTimers'][_0x47ee1f(0x2e7)](_0x23909f)){const _0x53db58=this[_0x47ee1f(0x139)][_0x47ee1f(0x1a9)](_0x23909f);_0x53db58&&window[_0x47ee1f(0x2a8)](_0x53db58),this[_0x47ee1f(0x139)][_0x47ee1f(0x21f)](_0x23909f,null);}}[_0x114c64(0x277)](_0x540a56){const _0x1d475b=_0x114c64,{memberID:_0x17aa63,unitIDs:_0x2bb9e7}=_0x540a56;_0x2bb9e7['forEach'](_0x592018=>{const _0x510a2f=_0x10ca;var _0x13cc85;const _0x5b9ff8=this[_0x510a2f(0x18f)][_0x510a2f(0x1a9)](_0x592018);_0x5b9ff8&&(_0x5b9ff8[_0x510a2f(0x102)](_0x17aa63),(_0x13cc85=this[_0x510a2f(0xf3)](_0x592018))==null||_0x13cc85[_0x510a2f(0x124)](_0x5b9ff8[_0x510a2f(0x20f)]===0x0?u['UnitStatus'][_0x510a2f(0x31b)]:u[_0x510a2f(0x1be)][_0x510a2f(0x101)]));}),this[_0x1d475b(0x368)](_0x17aa63);}[_0x114c64(0x2de)](_0x338bd1){const _0x4ee868=_0x114c64;this[_0x4ee868(0x135)](_0x338bd1['memberID']);}['_send'](_0x43ee89){const _0x1f6da2=_0x114c64;localStorage['setItem'](Le,JSON[_0x1f6da2(0x1bd)](_0x43ee89));}[_0x114c64(0x11c)](){const _0x3524e9=_0x114c64;this[_0x3524e9(0x1ab)]=window['setInterval'](()=>{const _0x28448b=_0x3524e9;this[_0x28448b(0x306)]({'type':0x2,'memberID':this[_0x28448b(0x154)]});},Me);}['_ensureSubject'](_0x882820){const _0x1b33f2=_0x114c64;return this[_0x1b33f2(0x23a)]['has'](_0x882820)||this[_0x1b33f2(0x23a)][_0x1b33f2(0x21f)](_0x882820,new d[(_0x1b33f2(0x1d6))](u[_0x1b33f2(0x1be)][_0x1b33f2(0x31b)])),this[_0x1b33f2(0x23a)][_0x1b33f2(0x1a9)](_0x882820);}}var Be=(_0x527e69=>(_0x527e69[_0x527e69[_0x114c64(0x1dc)]=0x0]=_0x114c64(0x1dc),_0x527e69[_0x527e69['OK']=0x1]='OK',_0x527e69[_0x527e69['INTERNAL_ERROR']=0x2]=_0x114c64(0x32d),_0x527e69[_0x527e69[_0x114c64(0x1f4)]=0x3]=_0x114c64(0x1f4),_0x527e69[_0x527e69[_0x114c64(0x262)]=0x4]=_0x114c64(0x262),_0x527e69[_0x527e69['UNAUTHENTICATED']=0x5]=_0x114c64(0x230),_0x527e69[_0x527e69[_0x114c64(0x34d)]=0x6]='ALREADY_EXISTS',_0x527e69[_0x527e69['INVALID_ARGUMENT']=0x7]=_0x114c64(0x1b3),_0x527e69[_0x527e69[_0x114c64(0x199)]=0x8]=_0x114c64(0x199),_0x527e69[_0x527e69['COMPLETION_FINISHED']=0x9]=_0x114c64(0x2cb),_0x527e69[_0x527e69[_0x114c64(0x221)]=0xa]=_0x114c64(0x221),_0x527e69[_0x527e69[_0x114c64(0x365)]=0x1389]=_0x114c64(0x365),_0x527e69[_0x527e69['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x114c64(0x26e),_0x527e69[_0x527e69[_0x114c64(0x131)]=0x1772]=_0x114c64(0x131),_0x527e69[_0x527e69[_0x114c64(0x2be)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x527e69[_0x527e69['APPLY_REJECT']=0x1b59]=_0x114c64(0x2a3),_0x527e69[_0x527e69[_0x114c64(0x25f)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x527e69[_0x527e69[_0x114c64(0x1f0)]=0x1b5b]=_0x114c64(0x1f0),_0x527e69[_0x527e69[_0x114c64(0x1ca)]=0x1b5c]=_0x114c64(0x1ca),_0x527e69[_0x527e69['APPLY_DUPLICATED']=0x1b5d]=_0x114c64(0x1a4),_0x527e69[_0x527e69[_0x114c64(0x182)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x527e69[_0x527e69[_0x114c64(0x17d)]=0x2329]=_0x114c64(0x17d),_0x527e69[_0x527e69['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x114c64(0x24f),_0x527e69[_0x527e69[_0x114c64(0x151)]=0x232b]=_0x114c64(0x151),_0x527e69[_0x527e69[_0x114c64(0x106)]=0x232c]=_0x114c64(0x106),_0x527e69[_0x527e69['LICENSE_DISTRO_REJECTED']=0x232d]=_0x114c64(0x2fa),_0x527e69[_0x527e69[_0x114c64(0x28d)]=0x2711]=_0x114c64(0x28d),_0x527e69[_0x527e69[_0x114c64(0xf7)]=0x2712]=_0x114c64(0xf7),_0x527e69[_0x527e69[_0x114c64(0x12f)]=0x2713]=_0x114c64(0x12f),_0x527e69[_0x527e69[_0x114c64(0x2a4)]=0x2714]=_0x114c64(0x2a4),_0x527e69[_0x527e69[_0x114c64(0x27e)]=0x271a]=_0x114c64(0x27e),_0x527e69[_0x527e69[_0x114c64(0x305)]=0x271b]=_0x114c64(0x305),_0x527e69[_0x527e69[_0x114c64(0x166)]=0x271c]=_0x114c64(0x166),_0x527e69[_0x527e69[_0x114c64(0x325)]=0x271d]=_0x114c64(0x325),_0x527e69[_0x527e69['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x114c64(0x19a),_0x527e69[_0x527e69[_0x114c64(0x11e)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x527e69[_0x527e69[_0x114c64(0x2c0)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x527e69[_0x527e69['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x114c64(0x1e5),_0x527e69[_0x527e69[_0x114c64(0x33c)]=0x2ee2]=_0x114c64(0x33c),_0x527e69[_0x527e69[_0x114c64(0x302)]=0x2ee3]=_0x114c64(0x302),_0x527e69[_0x527e69[_0x114c64(0x141)]=0x2ee4]=_0x114c64(0x141),_0x527e69[_0x527e69['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x114c64(0x13b),_0x527e69[_0x527e69[_0x114c64(0x1b2)]=0x32c9]=_0x114c64(0x1b2),_0x527e69[_0x527e69[_0x114c64(0x273)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x527e69[_0x527e69[_0x114c64(0x20d)]=0x32cb]=_0x114c64(0x20d),_0x527e69[_0x527e69[_0x114c64(0x1f8)]=-0x1]=_0x114c64(0x1f8),_0x527e69))(Be||{}),ns=Object[_0x114c64(0x140)],rs=(_0x2118fc,_0x4ca9ec,_0x898bfb,_0xd182bf)=>{const _0x4ec307=_0x114c64;for(var _0x3c037d=_0xd182bf>0x1?void 0x0:_0xd182bf?ns(_0x4ca9ec,_0x898bfb):_0x4ca9ec,_0x3f3a93=_0x2118fc[_0x4ec307(0x2f1)]-0x1,_0x3eb4ef;_0x3f3a93>=0x0;_0x3f3a93--)(_0x3eb4ef=_0x2118fc[_0x3f3a93])&&(_0x3c037d=_0x3eb4ef(_0x3c037d)||_0x3c037d);return _0x3c037d;},ue=(_0x7055e3,_0x25bbeb)=>(_0x4cb100,_0x8b9f01)=>_0x25bbeb(_0x4cb100,_0x8b9f01,_0x7055e3);exports[_0x114c64(0x18d)]=class extends a[_0x114c64(0x2b9)]{constructor(_0x53d589,_0x98bd04,_0xaf62fd){const _0x59cc16=_0x114c64;super(),this['_instanceService']=_0x53d589,this[_0x59cc16(0x350)]=_0x98bd04,this['_configService']=_0xaf62fd;}async[_0x114c64(0x1b7)](_0x310dd6,_0x15ca4c,_0x16aaab,..._0x2271e5){const _0x9de9ce=_0x114c64;var _0x534034,_0x591176,_0x5edba0,_0x130f6c;const _0x1bb3fe=this['_instanceService']['getFocusedUnit']();if(!_0x1bb3fe)throw new Error(_0x9de9ce(0x1a3));const _0x4ba87b=((_0x534034=this[_0x9de9ce(0x105)]['getConfig'](u[_0x9de9ce(0x270)]))!=null?_0x534034:u[_0x9de9ce(0x19f)])+'/'+_0x310dd6+_0x9de9ce(0x1ad)+_0x15ca4c,_0x2760a3=new URL(window[_0x9de9ce(0x2df)]['href']),_0x560734={'scriptId':_0x310dd6,'runId':(_0x591176=_0x2760a3[_0x9de9ce(0x170)]['get'](_0x9de9ce(0x2bd)))!=null?_0x591176:'','function':_0x15ca4c,'unitId':_0x1bb3fe[_0x9de9ce(0x234)](),'argsOfFunction':JSON[_0x9de9ce(0x1bd)](_0x2271e5),'invokeId':(_0x5edba0=_0x16aaab[_0x9de9ce(0x31a)])!=null?_0x5edba0:'','executionId':(_0x130f6c=_0x16aaab[_0x9de9ce(0x2b3)])!=null?_0x130f6c:''};try{const _0x4a71ae=await this['_httpService'][_0x9de9ce(0x369)](_0x4ba87b,{'body':_0x560734});return _0x4a71ae['body']['error']&&_0x4a71ae[_0x9de9ce(0x274)]['error'][_0x9de9ce(0x1c0)]!==Be['OK']?_0x9de9ce(0x318):_0x4a71ae[_0x9de9ce(0x274)][_0x9de9ce(0x35a)];}catch{return _0x9de9ce(0x318);}}},exports[_0x114c64(0x18d)]=rs([ue(0x0,a[_0x114c64(0x26b)]),ue(0x1,a[_0x114c64(0x307)](G['HTTPService'])),ue(0x2,a[_0x114c64(0x2b8)])],exports['RemoteUniscriptService']),exports[_0x114c64(0x1e8)]=xe,exports[_0x114c64(0x2b6)]=be,exports[_0x114c64(0x298)]=Pe,exports[_0x114c64(0x121)]=is,exports[_0x114c64(0x16d)]=je;
|
|
1
|
+
'use strict';const _0x30c27a=_0x2320;(function(_0xfb7e1d,_0x46eb39){const _0x28fe9b=_0x2320,_0x5cb23d=_0xfb7e1d();while(!![]){try{const _0x25a3a1=-parseInt(_0x28fe9b(0x244))/0x1+parseInt(_0x28fe9b(0x23d))/0x2*(-parseInt(_0x28fe9b(0x19b))/0x3)+parseInt(_0x28fe9b(0x1bd))/0x4*(-parseInt(_0x28fe9b(0x219))/0x5)+-parseInt(_0x28fe9b(0x3c7))/0x6*(parseInt(_0x28fe9b(0x223))/0x7)+parseInt(_0x28fe9b(0x1f6))/0x8+parseInt(_0x28fe9b(0x34d))/0x9*(-parseInt(_0x28fe9b(0x3df))/0xa)+parseInt(_0x28fe9b(0x16c))/0xb;if(_0x25a3a1===_0x46eb39)break;else _0x5cb23d['push'](_0x5cb23d['shift']());}catch(_0x1d2bfc){_0x5cb23d['push'](_0x5cb23d['shift']());}}}(_0x3f13,0x18cc0));var Ve=Object[_0x30c27a(0x1b4)],Xe=(_0x37bf52,_0x274a74,_0x13a6c9)=>_0x274a74 in _0x37bf52?Ve(_0x37bf52,_0x274a74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13a6c9}):_0x37bf52[_0x274a74]=_0x13a6c9,h=(_0x111273,_0x252c8e,_0xb15281)=>Xe(_0x111273,typeof _0x252c8e!=_0x30c27a(0x1e5)?_0x252c8e+'':_0x252c8e,_0xb15281);Object[_0x30c27a(0x1b4)](exports,Symbol[_0x30c27a(0x38a)],{'value':_0x30c27a(0x2c8)});const u=require(_0x30c27a(0x1b6)),a=require('@univerjs/core'),p=require(_0x30c27a(0x1f8)),G=require(_0x30c27a(0x2b1)),E=require(_0x30c27a(0x2a6)),Ge=require(_0x30c27a(0x2a8)),d=require(_0x30c27a(0x184)),m=require(_0x30c27a(0x286)),Y=require('@univerjs/docs'),be=require(_0x30c27a(0x2a4)),g=require(_0x30c27a(0x379)),$=require(_0x30c27a(0x279)),X=require(_0x30c27a(0x277)),P=require(_0x30c27a(0x367)),O=require(_0x30c27a(0x22a)),D=require(_0x30c27a(0x1ad)),M=require('react'),Ke=require(_0x30c27a(0x39e));var qe=Object[_0x30c27a(0x329)],ze=(_0x19cd65,_0x5f1f0b,_0x36941b,_0x21694e)=>{const _0x254f4b=_0x30c27a;for(var _0x369f89=_0x21694e>0x1?void 0x0:_0x21694e?qe(_0x5f1f0b,_0x36941b):_0x5f1f0b,_0x3726a2=_0x19cd65[_0x254f4b(0x2ff)]-0x1,_0x76770d;_0x3726a2>=0x0;_0x3726a2--)(_0x76770d=_0x19cd65[_0x3726a2])&&(_0x369f89=_0x76770d(_0x369f89)||_0x369f89);return _0x369f89;},Oe=(_0x3ee9d0,_0x498a1a)=>(_0x4bb43b,_0x4c5fff)=>_0x498a1a(_0x4bb43b,_0x4c5fff,_0x3ee9d0);let de=class extends a[_0x30c27a(0x2fa)]{constructor(_0x217b4c,_0x4a6a75){const _0x2b7a7e=_0x30c27a;super(),this[_0x2b7a7e(0x3b8)]=_0x217b4c,this[_0x2b7a7e(0x234)]=_0x4a6a75,this[_0x2b7a7e(0x271)]();}[_0x30c27a(0x271)](){const _0x5164ec=_0x30c27a,_0x40a3fa=this;this[_0x5164ec(0x20b)](this[_0x5164ec(0x3b8)][_0x5164ec(0x293)]({'onBeforePasteImage':async _0x4f5f38=>{const _0x593392=_0x5164ec,_0xf7e26a=await _0x40a3fa[_0x593392(0x234)][_0x593392(0x1ab)](_0x4f5f38);return _0xf7e26a?{'source':_0xf7e26a[_0x593392(0x1c1)],'imageSourceType':_0xf7e26a[_0x593392(0x1eb)]}:null;}}));}};de=ze([Oe(0x0,E[_0x30c27a(0x278)]),Oe(0x1,Ge[_0x30c27a(0x3fa)])],de);const Te=[_0x30c27a(0x1cd),_0x30c27a(0x333),_0x30c27a(0x29a),'red.300',_0x30c27a(0x2dc),'yellow.400'];class me extends a[_0x30c27a(0x27d)]{constructor(){const _0x27009b=_0x30c27a;super(...arguments),h(this,_0x27009b(0x3dd),new Map()),h(this,_0x27009b(0x21e),0x0);}[_0x30c27a(0x387)](_0x3ba0ec){const _0x2dbbae=_0x30c27a;if(this[_0x2dbbae(0x3dd)][_0x2dbbae(0x29e)](_0x3ba0ec))return this['_assignedColors']['get'](_0x3ba0ec);const _0x25d3ad=Te[this[_0x2dbbae(0x21e)]];return this[_0x2dbbae(0x21e)]=(this[_0x2dbbae(0x21e)]+0x1)%Te[_0x2dbbae(0x2ff)],this['_assignedColors'][_0x2dbbae(0x2f3)](_0x3ba0ec,_0x25d3ad),_0x25d3ad;}}function Pe(_0xe32420){const _0x2e3c1e=_0x30c27a;let _0x390fa2='';for(const _0x282ad6 of _0xe32420){const {startOffset:_0x5002de,endOffset:_0x3daa3e,isActive:_0x46ec9c,rangeType:_0x39f493,segmentId:_0xc4c0c3,segmentPage:_0x4bac9f}=_0x282ad6;_0x390fa2[_0x2e3c1e(0x2ff)]&&(_0x390fa2+=','),_0x390fa2+=_0x5002de+':'+_0x3daa3e+':'+(_0x46ec9c?'1':'0')+':'+_0x39f493+':'+_0xc4c0c3+':'+_0x4bac9f;}return _0x390fa2;}function Je(_0x39aa78){const _0x29618b=_0x30c27a,_0xceaa23=_0x39aa78[_0x29618b(0x3c1)](','),_0x5aecb8=[];for(const _0x203fd4 of _0xceaa23){const [_0xeffcd3,_0x3913e3,_0x20b873,_0x414a44,_0x152fab,_0x5559e8]=_0x203fd4[_0x29618b(0x3c1)](':');_0x5aecb8[_0x29618b(0x1b8)]({'startOffset':Number(_0xeffcd3),'endOffset':Number(_0x3913e3),'collapsed':_0xeffcd3===_0x3913e3,'isActive':_0x20b873==='1','rangeType':_0x414a44===a[_0x29618b(0x289)][_0x29618b(0x342)]?a[_0x29618b(0x289)]['TEXT']:a[_0x29618b(0x289)][_0x29618b(0x321)],'segmentId':typeof _0x152fab==_0x29618b(0x3d7)?String(_0x152fab):'','segmentPage':Number(_0x5559e8!=null?_0x5559e8:-0x1)});}return _0x5aecb8[_0x29618b(0x21f)](_0x26cd7f=>_0x26cd7f['isActive'])||(_0x5aecb8[0x0][_0x29618b(0x1f3)]=!0x0),_0x5aecb8;}class Ce extends a['RxDisposable']{constructor(){const _0x1342df=_0x30c27a;super(...arguments),h(this,'_collabCursorState$',new d[(_0x1342df(0x299))](null)),h(this,_0x1342df(0x312),this[_0x1342df(0x2a0)][_0x1342df(0x2d7)]());}[_0x30c27a(0x204)](_0x5496f3){const _0x1f3cfe=_0x30c27a,{unitID:_0x44258a,memberID:_0x3ad282,textRanges:_0x347ab1}=_0x5496f3,_0x1799d7=Pe(_0x347ab1);if(_0x1799d7==='')return;const _0x550000={'unitID':_0x44258a,'memberID':_0x3ad282,'selection':_0x1799d7};this[_0x1f3cfe(0x2a0)][_0x1f3cfe(0x2d2)](_0x550000);}}var Ze=Object[_0x30c27a(0x329)],Qe=(_0x8ca01,_0x2ce8c6,_0x104146,_0x1f4dae)=>{for(var _0x19ef15=_0x1f4dae>0x1?void 0x0:_0x1f4dae?Ze(_0x2ce8c6,_0x104146):_0x2ce8c6,_0x35bed1=_0x8ca01['length']-0x1,_0x4acd49;_0x35bed1>=0x0;_0x35bed1--)(_0x4acd49=_0x8ca01[_0x35bed1])&&(_0x19ef15=_0x4acd49(_0x19ef15)||_0x19ef15);return _0x19ef15;},L=(_0x22ab4c,_0x30b6e9)=>(_0x2289c3,_0x21445b)=>_0x30b6e9(_0x2289c3,_0x21445b,_0x22ab4c);const et=0x12c,tt=0x64;let Ie=class extends a[_0x30c27a(0x2fa)]{constructor(_0x3f6290,_0xbf536b,_0x581ed4,_0x422da7,_0x25947c,_0x250a44,_0x596692,_0x25992f,_0x56153b){const _0x4956d1=_0x30c27a;super(),h(this,_0x4956d1(0x323),!0x1),h(this,_0x4956d1(0x271),!0x1),h(this,_0x4956d1(0x3f6),new d[(_0x4956d1(0x299))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x4956d1(0x2d7)]()),h(this,_0x4956d1(0x242),new d[(_0x4956d1(0x299))]([])),h(this,_0x4956d1(0x215),this[_0x4956d1(0x242)][_0x4956d1(0x180)](d[_0x4956d1(0x1ce)](et))),h(this,_0x4956d1(0x3b0),a[_0x4956d1(0x265)](_0x574f9b=>{const _0x42d94a=_0x4956d1,_0x5e97b3={'eventID':m[_0x42d94a(0x39c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x42d94a(0x1c4)][_0x42d94a(0x347)](),'selection':Pe(_0x574f9b)}};this[_0x42d94a(0x1c4)]['send'](_0x5e97b3,this[_0x42d94a(0x2a5)]);},tt)),(this[_0x4956d1(0x2a5)]=_0x3f6290,this[_0x4956d1(0x1c4)]=_0xbf536b,this[_0x4956d1(0x236)]=_0x581ed4,this[_0x4956d1(0x302)]=_0x422da7,this[_0x4956d1(0x1df)]=_0x25947c,this[_0x4956d1(0x2b3)]=_0x250a44,this[_0x4956d1(0x3fe)]=_0x596692,this[_0x4956d1(0x3e3)]=_0x25992f,this['_commandService']=_0x56153b);}get['cursorInfo'](){const _0x38a10a=_0x30c27a;return this[_0x38a10a(0x3f6)][_0x38a10a(0x322)]();}get['roomMembers'](){const _0x3366f3=_0x30c27a;return this['_roomMembers$'][_0x3366f3(0x322)]();}['dispose'](){const _0x36429a=_0x30c27a;super[_0x36429a(0x196)](),this[_0x36429a(0x3f6)]['next'](new Map()),this[_0x36429a(0x3f6)][_0x36429a(0x39d)](),this[_0x36429a(0x242)][_0x36429a(0x2d2)]([]),this['_roomMembers$'][_0x36429a(0x39d)]();}[_0x30c27a(0x1e7)](){const _0x909aed=_0x30c27a;this[_0x909aed(0x271)]||(this['_init']=!0x0,this[_0x909aed(0x1c4)][_0x909aed(0x1e8)]['pipe'](d[_0x909aed(0x23f)](this[_0x909aed(0x320)]))['subscribe'](_0x3f6ac4=>{const _0x4c5267=_0x909aed;_0x3f6ac4===u[_0x4c5267(0x335)][_0x4c5267(0x31e)]?this[_0x4c5267(0x3a7)]():this[_0x4c5267(0x372)]();}),this[_0x909aed(0x1c4)][_0x909aed(0x386)]['pipe'](d['takeUntil'](this[_0x909aed(0x320)]))[_0x909aed(0x258)](_0x3e7f6d=>{const _0x20a0b6=_0x909aed,_0x2b76d3=_0x3e7f6d[_0x20a0b6(0x1d6)];_0x2b76d3===m[_0x20a0b6(0x39c)][_0x20a0b6(0x1fe)]&&this[_0x20a0b6(0x24d)](_0x3e7f6d),_0x2b76d3===m[_0x20a0b6(0x39c)][_0x20a0b6(0x2ea)]&&this['_onCursorDelete'](_0x3e7f6d);}),this[_0x909aed(0x20b)](this[_0x909aed(0x3a6)][_0x909aed(0x263)](_0xa1c098=>{const _0x127717=_0x909aed,_0x343ad6=_0xa1c098[_0x127717(0x222)];_0x343ad6!=null&&this[_0x127717(0x323)]&&_0xa1c098['id']===Y[_0x127717(0x336)]['id']&&_0x343ad6['unitId']===this[_0x127717(0x2a5)]&&_0x343ad6[_0x127717(0x200)]===!0x1&&_0x343ad6[_0x127717(0x303)][_0x127717(0x2ff)]>0x0&&this['_updateLocalCursor'](_0x343ad6[_0x127717(0x303)]);})),this['_syncEditingCollabCursorService'][_0x909aed(0x312)][_0x909aed(0x180)](d[_0x909aed(0x23f)](this[_0x909aed(0x320)]))[_0x909aed(0x258)](_0x3e4238=>{const _0x498446=_0x909aed;if((_0x3e4238==null?void 0x0:_0x3e4238[_0x498446(0x2a5)])!==this[_0x498446(0x2a5)])return;const _0x5ad799={'eventID':m[_0x498446(0x39c)][_0x498446(0x1fe)],'data':_0x3e4238};this[_0x498446(0x24d)](_0x5ad799);}),this[_0x909aed(0x20b)](this['_commandService'][_0x909aed(0x263)](_0x1720a3=>{const _0x3aaf57=_0x909aed;if(_0x1720a3[_0x3aaf57(0x222)]==null)return;const _0x34c7ff=_0x1720a3[_0x3aaf57(0x222)];if(_0x1720a3['id']!==Y[_0x3aaf57(0x18c)]['id']||_0x34c7ff['unitId']!==this[_0x3aaf57(0x2a5)])return;const _0x393b46={'id':'doc.mutation.rich-text-editing','params':_0x34c7ff},_0x26f8f7=this[_0x3aaf57(0x3ee)];for(const [_0x503882,_0x3b16d8]of _0x26f8f7){const _0x514d78={'id':_0x3aaf57(0x212),'params':{'unitId':this[_0x3aaf57(0x2a5)],'actions':null,'textRanges':_0x3b16d8['ranges']}},_0x3a6f5e=this[_0x3aaf57(0x3fe)][_0x3aaf57(0x399)](_0x393b46,_0x514d78,!0x1);if(m[_0x3aaf57(0x1c3)](_0x3a6f5e))throw _0x3a6f5e[_0x3aaf57(0x243)];_0x26f8f7['set'](_0x503882,{..._0x3b16d8,'ranges':_0x3a6f5e[_0x3aaf57(0x3f4)][_0x3aaf57(0x222)][_0x3aaf57(0x382)]});}queueMicrotask(()=>{const _0x5537d1=_0x3aaf57;this[_0x5537d1(0x3f6)][_0x5537d1(0x2d2)](_0x26f8f7);});})));}['_onCursorUpdate'](_0xd5248c){const _0x36d7d1=_0x30c27a;var _0x3c4674,_0x48898c;const {memberID:_0x144f51,selection:_0x41f107}=_0xd5248c[_0x36d7d1(0x190)],_0x2b1de8=Je(_0x41f107),_0x517dd5=(_0x48898c=(_0x3c4674=this[_0x36d7d1(0x1df)]['getMember'](this[_0x36d7d1(0x2a5)],_0x144f51))==null?void 0x0:_0x3c4674[_0x36d7d1(0x257)])!=null?_0x48898c:'Unknown\x20user',_0x4eec72={'color':this[_0x36d7d1(0x302)][_0x36d7d1(0x387)](_0x144f51),'name':_0x517dd5,'ranges':_0x2b1de8},_0x537c9a=this[_0x36d7d1(0x3ee)];_0x537c9a[_0x36d7d1(0x2f3)](_0x144f51,_0x4eec72),this[_0x36d7d1(0x3f6)][_0x36d7d1(0x2d2)](_0x537c9a);}[_0x30c27a(0x390)](_0x143316){const _0x553fd7=_0x30c27a,{memberID:_0x34d2ea}=_0x143316[_0x553fd7(0x190)],_0x1b2883=this[_0x553fd7(0x3ee)];_0x1b2883[_0x553fd7(0x33a)](_0x34d2ea),this['_cursorInfo$'][_0x553fd7(0x2d2)](_0x1b2883);}[_0x30c27a(0x3a7)](){const _0x2972c4=_0x30c27a;var _0x4ee1d1;if(this[_0x2972c4(0x323)]=!0x0,((_0x4ee1d1=this[_0x2972c4(0x3e3)][_0x2972c4(0x24e)]())==null?void 0x0:_0x4ee1d1[_0x2972c4(0x16f)]())!==this[_0x2972c4(0x2a5)])return;const _0x3e2540=this['_injector'][_0x2972c4(0x235)](Y[_0x2972c4(0x2e8)])['getDocRanges']();Array[_0x2972c4(0x2d5)](_0x3e2540)&&_0x3e2540[_0x2972c4(0x2ff)]>0x0&&this[_0x2972c4(0x3b0)](_0x3e2540);}[_0x30c27a(0x372)](){const _0xd6b4fd=_0x30c27a;this[_0xd6b4fd(0x323)]=!0x1;}};Ie=Qe([L(0x2,a[_0x30c27a(0x34b)](a['Injector'])),L(0x3,a[_0x30c27a(0x34b)](me)),L(0x4,a[_0x30c27a(0x34b)](u[_0x30c27a(0x37f)])),L(0x5,a[_0x30c27a(0x34b)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x30c27a(0x3e0)]),L(0x8,a[_0x30c27a(0x39f)])],Ie);var st=Object[_0x30c27a(0x329)],it=(_0x13ce7a,_0x1f34f7,_0xaa6ea1,_0x551563)=>{const _0x1b22d5=_0x30c27a;for(var _0x50d9a5=_0x551563>0x1?void 0x0:_0x551563?st(_0x1f34f7,_0xaa6ea1):_0x1f34f7,_0x2ee5df=_0x13ce7a[_0x1b22d5(0x2ff)]-0x1,_0x2dd1fc;_0x2ee5df>=0x0;_0x2ee5df--)(_0x2dd1fc=_0x13ce7a[_0x2ee5df])&&(_0x50d9a5=_0x2dd1fc(_0x50d9a5)||_0x50d9a5);return _0x50d9a5;},A=(_0x367d93,_0xc155ed)=>(_0x151bc9,_0x8df936)=>_0xc155ed(_0x151bc9,_0x8df936,_0x367d93);const nt=0x12c,rt=0x64,ot=()=>{let _0x1c8e74=[],_0x4af2df=!0x1;return _0x2c6212=>{_0x1c8e74['push'](_0x2c6212),_0x4af2df||(_0x4af2df=!0x0,setTimeout(()=>{_0x1c8e74['forEach'](_0x17edee=>_0x17edee()),_0x1c8e74=[],_0x4af2df=!0x1;}));};};let Se=class extends a[_0x30c27a(0x2fa)]{constructor(_0x540333,_0x278f35,_0x5058dc,_0x2940f9,_0x8189f7,_0x27816e,_0x30fce9,_0xf1a48e){const _0xeef00c=_0x30c27a;super(),h(this,_0xeef00c(0x323),!0x1),h(this,_0xeef00c(0x271),!0x1),h(this,_0xeef00c(0x3f6),new d[(_0xeef00c(0x299))](new Map())),h(this,_0xeef00c(0x3b3),this[_0xeef00c(0x3f6)]['asObservable']()),h(this,'_roomMembers$',new d[(_0xeef00c(0x299))]([])),h(this,_0xeef00c(0x215),this[_0xeef00c(0x242)][_0xeef00c(0x180)](d[_0xeef00c(0x1ce)](nt))),h(this,'_updateLocalCursor',a[_0xeef00c(0x265)]((_0x24c608,_0x553683)=>{const _0x27b02b=_0xeef00c,_0x39730c={'eventID':m['CollaborationEvent'][_0x27b02b(0x1fe)],'data':{'unitID':this[_0x27b02b(0x2a5)],'memberID':this[_0x27b02b(0x1c4)][_0x27b02b(0x347)](),'selection':be[_0x27b02b(0x314)](_0x24c608,_0x553683[_0x27b02b(0x3d6)])}};this[_0x27b02b(0x1c4)][_0x27b02b(0x37e)](_0x39730c,this['unitID']);},rt)),(this['unitID']=_0x540333,this[_0xeef00c(0x1c4)]=_0x278f35,this[_0xeef00c(0x236)]=_0x5058dc,this['_colorAssignService']=_0x2940f9,this['_memberService']=_0x8189f7,this[_0xeef00c(0x3e3)]=_0x27816e,this['_commandService']=_0x30fce9,this[_0xeef00c(0x186)]=_0xf1a48e);}get[_0x30c27a(0x3ee)](){const _0x3b50a4=_0x30c27a;return this[_0x3b50a4(0x3f6)][_0x3b50a4(0x322)]();}get[_0x30c27a(0x238)](){return this['_roomMembers$']['getValue']();}[_0x30c27a(0x196)](){const _0x39cea6=_0x30c27a;super[_0x39cea6(0x196)](),this[_0x39cea6(0x3f6)][_0x39cea6(0x2d2)](new Map()),this[_0x39cea6(0x3f6)][_0x39cea6(0x39d)](),this[_0x39cea6(0x242)][_0x39cea6(0x2d2)]([]),this['_roomMembers$'][_0x39cea6(0x39d)]();}[_0x30c27a(0x1e7)](){const _0xb4df21=_0x30c27a;this[_0xb4df21(0x271)]||(this['_init']=!0x0,this[_0xb4df21(0x1c4)]['sessionStatus$']['pipe'](d[_0xb4df21(0x23f)](this[_0xb4df21(0x320)]))['subscribe'](_0x31d9c8=>{const _0x44df14=_0xb4df21;_0x31d9c8===u[_0x44df14(0x335)][_0x44df14(0x31e)]?this[_0x44df14(0x3a7)]():this['_toggleOffline']();}),this[_0xb4df21(0x1c4)][_0xb4df21(0x386)][_0xb4df21(0x180)](d['takeUntil'](this[_0xb4df21(0x320)]))[_0xb4df21(0x258)](_0x4961f4=>{const _0x5057c4=_0xb4df21,_0x9a7e7a=_0x4961f4[_0x5057c4(0x1d6)];_0x9a7e7a===m['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x4961f4),_0x9a7e7a===m[_0x5057c4(0x39c)][_0x5057c4(0x2ea)]&&this[_0x5057c4(0x390)](_0x4961f4);}),this[_0xb4df21(0x331)](),this[_0xb4df21(0x20b)](this['_commandService'][_0xb4df21(0x263)](_0x380c0a=>{const _0x147aa8=_0xb4df21;if(this[_0x147aa8(0x323)]&&_0x380c0a['id']===g[_0x147aa8(0x250)]['id']&&_0x380c0a[_0x147aa8(0x222)][_0x147aa8(0x2ed)]===this[_0x147aa8(0x2a5)]){const _0x39975a=_0x380c0a[_0x147aa8(0x222)];this[_0x147aa8(0x3b0)](_0x39975a[_0x147aa8(0x1dd)],_0x39975a['selections'][0x0]);}})));}[_0x30c27a(0x24d)](_0x134e1c){const _0x36b22c=_0x30c27a;var _0xe0b155,_0x27e5f1;const {memberID:_0x3f0220,selection:_0xfb748}=_0x134e1c[_0x36b22c(0x190)],{sheetName:_0x51d1a9,range:_0x515e80}=be[_0x36b22c(0x3b2)](_0xfb748),_0x4233be={'name':(_0x27e5f1=(_0xe0b155=this[_0x36b22c(0x1df)][_0x36b22c(0x370)](this[_0x36b22c(0x2a5)],_0x3f0220))==null?void 0x0:_0xe0b155[_0x36b22c(0x257)])!=null?_0x27e5f1:_0x36b22c(0x211),'range':this['_getMergeRange'](_0x51d1a9,_0x515e80),'sheetID':_0x51d1a9,'color':this[_0x36b22c(0x302)][_0x36b22c(0x387)](_0x3f0220),'selection':_0xfb748},_0x36ade7=this[_0x36b22c(0x3ee)];_0x36ade7['set'](_0x3f0220,_0x4233be),this['_cursorInfo$']['next'](_0x36ade7);}[_0x30c27a(0x390)](_0x4d6bf9){const _0x3a5189=_0x30c27a,{memberID:_0x55a9cb}=_0x4d6bf9['data'],_0x382ae2=this[_0x3a5189(0x3ee)];_0x382ae2[_0x3a5189(0x33a)](_0x55a9cb),this[_0x3a5189(0x3f6)]['next'](_0x382ae2);}[_0x30c27a(0x173)](_0x25eb9e,_0x47e4d1){const _0x59044f=_0x30c27a;var _0x245439,_0x3ac421;const _0x6729be=(_0x3ac421=(_0x245439=this[_0x59044f(0x3e3)][_0x59044f(0x194)](this[_0x59044f(0x2a5)]))==null?void 0x0:_0x245439[_0x59044f(0x2ee)](_0x25eb9e))==null?void 0x0:_0x3ac421[_0x59044f(0x350)]();return(_0x6729be==null?void 0x0:_0x6729be[_0x59044f(0x2cd)](_0x519a50=>a[_0x59044f(0x2c1)]['contains'](_0x519a50,_0x47e4d1)))||_0x47e4d1;}[_0x30c27a(0x331)](){const _0x20647a=_0x30c27a,_0x1e17b2=new a['DisposableCollection'](),_0x1961e9=ot(),_0x31cadc=()=>{const _0xdd8bf9=_0x2320;_0x1e17b2[_0xdd8bf9(0x196)]();const _0x599f8d=(_0x1f90fc,_0x3c4087,_0x47898a,_0x5ed6f8)=>{const _0x3ed547=_0xdd8bf9;let _0x27bee5=[];switch(_0x1f90fc['id']){case g['EffectRefRangId'][_0x3ed547(0x225)]:{_0x27bee5=g[_0x3ed547(0x295)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x1c5)]:{_0x27bee5=g[_0x3ed547(0x349)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x3af)]:{_0x27bee5=g[_0x3ed547(0x3ce)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x2d9)]:{_0x27bee5=g[_0x3ed547(0x357)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x2db)]:{_0x27bee5=g[_0x3ed547(0x311)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)]['InsertRowCommandId']:{_0x27bee5=g['handleInsertRow'](_0x1f90fc,_0x5ed6f8);break;}case g['EffectRefRangId'][_0x3ed547(0x1d1)]:{_0x27bee5=g['handleMoveRange'](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x291)]:{_0x27bee5=g['handleIRemoveCol'](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)]['RemoveRowCommandId']:{_0x27bee5=g[_0x3ed547(0x1e2)](_0x1f90fc,_0x5ed6f8);break;}}const _0x396a00=g['runRefRangeMutations'](_0x27bee5,_0x5ed6f8),_0x35de8a=this[_0x3ed547(0x3ee)]['get'](_0x3c4087);if(_0x35de8a&&_0x396a00){const _0x494e9f={..._0x35de8a,'range':_0x396a00};this[_0x3ed547(0x3ee)]['set'](_0x3c4087,_0x494e9f),_0x1961e9(()=>{const _0x403bfa=_0x3ed547,_0x55bd45=this[_0x403bfa(0x186)][_0x403bfa(0x31c)](_0x396a00,_0xa1e278=>(_0x55bd45[_0x403bfa(0x196)](),_0x599f8d(_0xa1e278,_0x3c4087,_0x47898a,_0x396a00)));_0x1e17b2['add'](_0x55bd45);});}return{'redos':[],'undos':[]};};this[_0xdd8bf9(0x3ee)][_0xdd8bf9(0x232)]((_0x239052,_0x2f422a)=>{const _0x44db86=_0xdd8bf9,{range:_0x2136e3,sheetID:_0xfa09c8}=_0x239052,_0x1907bb=this[_0x44db86(0x186)]['registerRefRange'](_0x2136e3,_0xbef6c3=>(_0x1907bb[_0x44db86(0x196)](),_0x599f8d(_0xbef6c3,_0x2f422a,_0xfa09c8,_0x2136e3)));_0x1e17b2[_0x44db86(0x20f)](_0x1907bb);});};this[_0x20647a(0x20b)](a[_0x20647a(0x19d)](this[_0x20647a(0x3f6)]['subscribe'](()=>{_0x31cadc();})));}[_0x30c27a(0x3a7)](){const _0xbb0c7d=_0x30c27a;var _0x118712,_0x24cd76;if(this['_online']=!0x0,((_0x118712=this[_0xbb0c7d(0x3e3)][_0xbb0c7d(0x24e)]())==null?void 0x0:_0x118712['getUnitId']())!==this[_0xbb0c7d(0x2a5)])return;const _0x29f289=(_0x24cd76=this['_injector']['get'](g[_0xbb0c7d(0x328)])[_0xbb0c7d(0x17e)]())==null?void 0x0:_0x24cd76[0x0],_0xb6dd83=this['_univerInstanceService'][_0xbb0c7d(0x337)](a[_0xbb0c7d(0x38f)][_0xbb0c7d(0x3d2)])[_0xbb0c7d(0x208)]();_0x29f289&&_0xb6dd83&&this[_0xbb0c7d(0x3b0)](_0xb6dd83[_0xbb0c7d(0x18b)](),_0x29f289);}['_toggleOffline'](){const _0x4f3d56=_0x30c27a;this[_0x4f3d56(0x323)]=!0x1;}};Se=it([A(0x2,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x30c27a(0x34b)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x30c27a(0x39f)]),A(0x7,a[_0x30c27a(0x34b)](g[_0x30c27a(0x1cb)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x44db5d,_0x4dc377,_0x599020,_0x344dc0)=>{for(var _0x4e8a93=_0x344dc0>0x1?void 0x0:_0x344dc0?at(_0x4dc377,_0x599020):_0x4dc377,_0x23e199=_0x44db5d['length']-0x1,_0x480d19;_0x23e199>=0x0;_0x23e199--)(_0x480d19=_0x44db5d[_0x23e199])&&(_0x4e8a93=_0x480d19(_0x4e8a93)||_0x4e8a93);return _0x4e8a93;},ie=(_0x365f17,_0x20a4d8)=>(_0x14d6d3,_0x45b59a)=>_0x20a4d8(_0x14d6d3,_0x45b59a,_0x365f17);let x=class extends a[_0x30c27a(0x2fa)]{constructor(_0x1705a8,_0x223fd2,_0x3c303a){const _0x5dec74=_0x30c27a;super(),h(this,_0x5dec74(0x380),new Map()),h(this,'_entityInit$',new d[(_0x5dec74(0x316))]()),(this['_univerInstanceService']=_0x1705a8,this['_injector']=_0x223fd2,this[_0x5dec74(0x1b1)]=_0x3c303a,this[_0x5dec74(0x271)]());}[_0x30c27a(0x196)](){const _0x4dd0c1=_0x30c27a;super[_0x4dd0c1(0x196)](),this[_0x4dd0c1(0x28c)][_0x4dd0c1(0x39d)](),this[_0x4dd0c1(0x380)][_0x4dd0c1(0x232)](_0x4d9df9=>_0x4d9df9['dispose']());}[_0x30c27a(0x3bb)](_0x527c46){const _0x348817=_0x30c27a;return this['_entities'][_0x348817(0x29e)](_0x527c46)?this[_0x348817(0x380)][_0x348817(0x235)](_0x527c46)[_0x348817(0x3b3)]:this[_0x348817(0x28c)][_0x348817(0x180)](d['filter'](_0x43d8cc=>_0x43d8cc[_0x348817(0x2a5)]===_0x527c46),d[_0x348817(0x361)](_0x2cb001=>_0x2cb001[_0x348817(0x3b3)]));}[_0x30c27a(0x271)](){const _0x10d40f=_0x30c27a;this[_0x10d40f(0x3e3)][_0x10d40f(0x30f)](a[_0x10d40f(0x38f)][_0x10d40f(0x3d2)])[_0x10d40f(0x180)](d[_0x10d40f(0x23f)](this['dispose$']))['subscribe'](async _0x155d2c=>{const _0x1766e2=_0x10d40f,_0x402520=_0x155d2c['getUnitId'](),_0x19c1b7=await this[_0x1766e2(0x2cc)](_0x402520);this[_0x1766e2(0x28c)][_0x1766e2(0x2d2)](_0x19c1b7),this[_0x1766e2(0x380)][_0x1766e2(0x2f3)](_0x402520,_0x19c1b7);}),this[_0x10d40f(0x3e3)][_0x10d40f(0x30f)](a[_0x10d40f(0x38f)][_0x10d40f(0x394)])[_0x10d40f(0x180)](d[_0x10d40f(0x23f)](this[_0x10d40f(0x320)]))['pipe'](d[_0x10d40f(0x3f5)](_0x134cbc=>!_0x134cbc[_0x10d40f(0x16f)]()[_0x10d40f(0x1c0)]('__')))[_0x10d40f(0x258)](async _0x2ef52b=>{const _0x36d65d=_0x10d40f,_0x4dcf53=_0x2ef52b[_0x36d65d(0x16f)](),_0x56efde=await this[_0x36d65d(0x25d)](_0x4dcf53);this[_0x36d65d(0x28c)][_0x36d65d(0x2d2)](_0x56efde),this['_entities'][_0x36d65d(0x2f3)](_0x4dcf53,_0x56efde);}),d[_0x10d40f(0x2bb)](this['_univerInstanceService'][_0x10d40f(0x267)](a[_0x10d40f(0x38f)]['UNIVER_DOC']),this[_0x10d40f(0x3e3)][_0x10d40f(0x267)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x10d40f(0x180)](d['takeUntil'](this[_0x10d40f(0x320)]))[_0x10d40f(0x258)](_0x46028b=>{const _0x11e812=_0x10d40f,_0x203419=_0x46028b[_0x11e812(0x16f)](),_0x2d911b=this[_0x11e812(0x380)][_0x11e812(0x235)](_0x203419);_0x2d911b&&(_0x2d911b[_0x11e812(0x196)](),this[_0x11e812(0x380)][_0x11e812(0x33a)](_0x203419));});}async['_startSheetCollabCursor'](_0x22ad37){const _0x15f19a=_0x30c27a,_0x4258b5=await this['_collabSessionService'][_0x15f19a(0x2b8)](_0x22ad37),_0x579746=this['_injector'][_0x15f19a(0x3ad)](Se,_0x22ad37,_0x4258b5);return _0x579746[_0x15f19a(0x1e7)](),_0x579746;}async['_startDocCollabCursor'](_0x47f5ef){const _0x15fa5e=_0x30c27a,_0x387169=await this[_0x15fa5e(0x1b1)][_0x15fa5e(0x2b8)](_0x47f5ef),_0x2760bc=this['_injector'][_0x15fa5e(0x3ad)](Ie,_0x47f5ef,_0x387169);return _0x2760bc[_0x15fa5e(0x1e7)](),_0x2760bc;}};x=ct([ie(0x0,a[_0x30c27a(0x3e0)]),ie(0x1,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),ie(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x1be)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _0x3f13(){const _0x4fb1e8=['MemberService','_entities','code','textRanges','_cachedData','none','unit','event$','assignAColorForMemberID','_drawTextRange','focused$','toStringTag','mapTo','defIds','_removeClearOtherTimer','IMessageService','UniverInstanceType','_onCursorDelete','_docTransformStateCacheService','with','beginPath','UNIVER_DOC','setActiveRange','evenodd','white','TOO_MANY_REQUESTS','transformMutation','_docSyncEditingCollabCursorService','svg','CollaborationEvent','complete','@univerjs/rpc','ICommandService','UniverIcon','SetWorksheetActivateCommand','setParam','updateOfflineData','_registerDependencies','toRgbString','_commandService','_toggleOnline','addObjects','FromArray','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','DocStateChangeManagerService','isTransformMutationsWithChangesetSuccess','createInstance','history','InsertColCommandId','_updateLocalCursor','_cursorShapes','deserializeRangeWithSheet','cursorInfo$','LICENSE_MAX_UNITS_EXCEEDED','translate(.97)','transformRemoteChangeset','unload','_docClipboardService','EffectRefRangId','propertyIsEnumerable','getCollabCursors$','endColumn','INVALID_ARGUMENT','fromEventSubject','getUnitStatus$','_backgroundColor','split','replace','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','defs','_removeCollabCursors','text','93516PBNLok','onLocalMutation','_initDependencies','INVITE_CODE_REQUIRED','INTERNAL_ERROR','Vector2','MUTATION','handleInsertCol','useDependency','_transformUndoRedoStack','_send','UNIVER_SHEET','clearInterval','sheetID','displayName','range','string','_ensureSubject','clearTimeout','AWAITING','then','collabStatus.syncing','_assignedColors','YUUMI_ASYNCIO_CANCELLED','27420IIFeLL','IUniverInstanceService','CHANGESET_REVISION_CONFILICT','addHandlerCallback','_univerInstanceService','YUUMI_UNABLE_LOAD_URL','_hovered','useObservable','mask','_handleHeartbeatEvent','setStateCache','DesktopCollaborationStatusDisplayController','_docTransformSelectionsService','registerDependencies','getRelativeToViewportCoord','cursorInfo','getConfig','OnLineIcon','getDocRanges','trim','_initEvent','m2Prime','filter','_cursorInfo$','executeCommand','_hover','getVpScrollXYInfoByPosToVp','IImageIoService','YUUMI_SUBSCRIPTION_NOT_FOUND','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','className','_transformService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','arc','6109290WGzDRC','DependentOn','_transformPreviousActiveRange','getUnitId','attrs','_createSocketURL','path','_getMergeRange','saveTaskMap','_color','_cursors','_localStorageService','_configService','_name','YUUMI_CONNECTOR_URL_NOT_FOUND','_transformHistoryAndStateStack','forwardRef','CollaborationStatusDisplay','getCurrentSelections','top','pipe','_docTransformIMECacheService','_hideTimer','uni.network.url-service','rxjs','NodePositionConvertToRectRange','_refRangeService','APPLY_PERMISSION_DENIED','registerRenderModule','substring','EMAIL_HAS_BEEN_BOUND','getSheetId','RichTextEditingMutation','[RemoteUniscriptService]:\x20no\x20focused\x20unit','COLORS','_textBubble','data','memberID','mergeOverrideWithDependencies','Warning','getUniverSheetInstance','editingUnit','dispose','_unitStatus','bottom','colorChannel1','save','455199sjbdpS','whenReady','toDisposable','_sheetSkeletonManagerService','_id','newValue','ticket','_handleHover','IURLService','sessionTicket','NOT_COLLAB','collabStatus.offline','ISocketService','APPLY_DUPLICATED','setTimeout','ENSURE_SNAPSHOT_EXECUTION','saveImage','undoState','@univerjs/design','jsx','ACTIVE_UNIT_EVENT_CHANNEL','IRemoteInstanceService','_collabSessionService','pushState','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','defineProperty','DataLoaderService','@univerjs-pro/collaboration-client','combineLatest','push','_collaborationController','_instanceService','LOCAL_CACHE_INTERVAL_KEY','_scene','4196YaCWaF','CollaborationSessionService','stringify','startsWith','source','disableLocalCache','isTransformMutationFailure','_session','DeleteRangeMoveUpCommandId','INVALID_INVITE_CODE','permission.title','DocCollaborationEntity','createIdentifier','getCurrent','RefRangeService','_updateURLWithCurrentState','purple.300','debounceTime','registerComponent','startColumn','MoveRangeCommandId','0\x200\x2017\x2016','getUnhiddenWorksheets','unsubscribe','_uiPartsService','eventID','createSocket','CollaborationUIEventId','ILocalStorageService','round','_getScale','LOGIN_FAILED','subUnitId','univer-mr-2\x20univer-flex\x20univer-text-xl','_memberService','_saveTaskMap','on-line-icon_clip0_910_349','handleIRemoveRow','UniverCollaborationClientUIPlugin','use','symbol','searchParams','init','sessionStatus$','CollaborationStatus','_initCommandExecutedListener','imageSourceType','fromEvent','collab-text-anchor-','Rect','rgba(255,\x20255,\x20255,\x200.01)','_refreshCollabCursors','session.will-retry','concat','isActive','_selfUnitIDs','executionId','1070056xOUxMw','url(#$1','@univerjs/engine-render','function','onPointerLeave$','from','loadUnit','_beforeCloseService','UPDATE_CURSOR','shareReplay','isEditing','invokeId','closePath','PERMISSION_DENIED','syncEditingCollabCursor','_revisionService','_handleLeaveEvent','_config','getActiveSheet','_anchorDot','idSuffix','disposeWithMe','origin','...','_themeService','add','MOBILE_VERIFY_CODE_MISMATCH','Unknown\x20user','doc.mutation.rich-text-editing','LocaleService','skeleton','roomMembers$','collab-text-range-','setAlpha','connectInjector','50SOTNVN','YUUMI_ALL_TABLES_IS_INVALID','moveTo','M0\x200H16V16H0z','urlChange$','_colorIndex','some','DocIMEInputManagerService','NodePositionConvertToCursor','params','14JpQNdO','http://www.w3.org/2000/svg','DeleteRangeMoveLeftCommandId','getStateCache','CONFLICT','collaboration-client-ui.config','INVITE_CODE_ALREADY_BOUND','@univerjs/ui','UNDEFINED','COMPLETION_FINISHED','wsSessionTicketUrl','IConfigService','OffLineIcon','apply','UNAUTHENTICATED','forEach','location','_imageIoService','get','_injector','_scheduleHeartbeat','roomMembers','WECHAT_HAS_BEEN_BOUND','SYNCED','saveOfflineData','MOBILE_HAS_BEEN_BOUND','2DBxwxU','_drawAnchor','takeUntil','ColorKit','_scheduleSaving','_roomMembers$','error','191276PADzWw','1em','setShapeProps','WebURLService','Injector','distinctUntilChanged','CONNECTOR_DATA_TOO_LARGE','_shapes','APPLY_NON_SEQUENTIAL_REVISION','_onCursorUpdate','getFocusedUnit','_docStateChangeManagerService','SetSelectionsOperation','SheetCollabCursorShape','_httpService','onPointerEnter$','ILocalCacheService','getUndoRedoMutationParamsCache','collaboration.closeRoom','name','subscribe','fillStyle','enableLocalCache','YUUMI_TABLE_NOT_FOUND_IN_UNIT','font','_startDocCollabCursor','_notificationService','Optional','unshift','currentColor','findNodePositionByCharIndex','onCommandExecuted','generateRandomId','debounce','CollaborationDataLoaderController','getTypeOfUnitDisposed$','YUUMI_RATE_OVER_LIMIT','mutations','color','_context','_getSessionTicket','IBeforeCloseService','CommandType','all','_localeService','_init','_initResize','off-line-icon_clip0_910_343','deepClone','onMouseMove','_getSaveTimeout','@univerjs/sheets-ui','IDocClipboardService','rxjs/operators','hovered','row','_setupSubUnitSync','Disposable','triggerDblclick','FETCH_MISS','removeParam','getOwnPropertySymbols','SNAPSHOT_INVALID_SNAPSHOT','INotificationService','_initEntityListener','NO_OTHER_CLIENTS_EDITING','@univerjs-pro/collaboration','getRenderById','height','DOC_RANGE_TYPE','JOIN_ROOM_FAILED','_doCreateSocket','_entityInit$','_range','IUIPartsService','restore','toString','RemoveColCommandId','subunit','addClipboardHook','replaceState','handleDeleteRangeMoveLeft','ALREADY_EXISTS','xlink:href','OTHER_CLIENTS_EDITING','BehaviorSubject','green.600','_anchor','fill','m1Prime','has','HEADER_MENU','_collabCursorState$','_logService','Plugin','status$','@univerjs/engine-formula','unitID','@univerjs/docs-ui','lineTo','@univerjs/drawing','size','call','_status$','column','UnitStatus','HTTPService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','random','@univerjs/network','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_syncEditingCollabCursorService','onStarting','fillText','transformStateCache','labelPosition','requireSession','_saveCache','_updateCollabCursors','merge','getCurrentRevOfUnit','selection','_dataLoaderService','getSkeleton','ISnapshotServerService','Rectangle','PY_RUNTIME_SCRIPT_ERROR','assign','_scheduleClearOtherTimer','_messageService','result','entries','Module','SetDocZoomRatioOperation','Tools','CollaborationUIEventService','_startSheetCollabCursor','find','reconnect','icon','extend','values','next','getColor','_render','isArray','currentSkeleton$','asObservable','YUUMI_AI_RUN_FAILED','InsertRangeMoveDownCommandId','getAncestorScale','InsertRangeMoveRightCommandId','blue.400','tag','MessageType','YUUMI_NO_CUBOID_FOR_QUESTION','_setupBeforeClosingHandler','Failed','runOnServer','[CollaborationDataLoaderController]','/run/','jsxs','Error','RegularPolygon','DocSelectionManagerService','resize','USERS_LEAVE','_heartbeatTimer','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','unitId','getSheetBySheetId','LICENSE_DISTRO_REJECTED','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','sheetId','set','LICENSE_EXPORT_SIZE_EXCEEDED','prototype','includes','width','addObject','off-line-icon','RxDisposable','EMAIL_VERIFY_CODE_MISMATCH','min','univer-flex\x20univer-items-center','hide','length','_getSheetObject','NOT_FOUND','_colorAssignService','ranges','debug','div','disposeUnit','IRenderManagerService','body','application/json','getSheetObject','_eventUnsubscribe','_updateSubUnitFromURLParams','pluginName','endRow','getTypeOfUnitAdded$','startRow','handleInsertRangeMoveRight','collabCursorState$','_initStatusComponent','serializeRangeWithSheet','redoState','Subject','black','entityInit$','session.connection-failed','getParam','type','registerRefRange','hasOwnProperty','ONLINE','_disabled','dispose$','RECT','getValue','_online','_handleEvent','setUndoRedoMutationParamsCache','_unitOnClients','APPLY_REVISION_CONFILICT','SheetsSelectionsService','getOwnPropertyDescriptor','backgroundColor','setConfig','show','_labelPosition','APPLY_REJECT','UniverCollaborationClientPlugin','CollaborationSocketService','_onRefRangeChange','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','jiqing.500','getCellPositionByOffset','SessionStatus','SetTextSelectionsOperation','getCurrentUnitForType','on-line-icon','_localCacheService','delete','_urlService','createElement','_lastPointer','indexOf','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ITransformService','TEXT','_docSkeletonManagerService','USER_NOT_INVITED_CODE','TEXT_RANGE_LAYER_INDEX','UNRECOGNIZED','getMemberID','_collaborationUIEventService','handleDeleteRangeMoveUp','DocSkeletonManagerService','Inject','getLocalCacheKey','666iCyVsY','0\x200\x2016\x2016','makeDirty','getMergeData','drawWith','getColorFromTheme','getViewport','_registerRenderDependencies','ILogService','SHEET_VIEWPORT_KEY','handleInsertRangeMoveDown','_clearOtherTimers','INVITE_CODE_HAS_BEEN_UES','getRangePointData','onRendered','popstate','setItem','currentTheme$','CollaborationController','key','switchMap','search','_collabCursorController','subscribeEvent','transformMutationsWithChangeset','actions','react/jsx-runtime','map','touchDependencies','ThemeService','OFFLINE','YUUMI_URL_COL_OUT_OF_RANGE','AWAITING_WITH_PENDING','LOCAL_CACHE_INTERVAL','_cursor','getMember','_drawRectRange','_toggleOffline','href','measureText','_docSkeleton','runId','RemoteUniscriptService','BuiltInUIPart','@univerjs/sheets','children','_renderManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collab-rect-range-','send'];_0x3f13=function(){return _0x4fb1e8;};return _0x3f13();}function _t(_0x31b99e,_0x3c9bc0){const _0x590836=_0x30c27a;let {radius:_0x981ae,width:_0x5374dd,height:_0x10855b}=_0x3c9bc0;_0x981ae=_0x981ae!=null?_0x981ae:0x0,_0x5374dd=_0x5374dd!=null?_0x5374dd:0x1e,_0x10855b=_0x10855b!=null?_0x10855b:0x1e;let _0x5f0e9d=0x0,_0x2baf20=0x0,_0x59863a=0x0;_0x5f0e9d=_0x2baf20=_0x59863a=Math['min'](_0x981ae,_0x5374dd/0x2,_0x10855b/0x2),_0x31b99e[_0x590836(0x393)](),_0x31b99e[_0x590836(0x21b)](_0x5f0e9d,0x0),_0x31b99e[_0x590836(0x2a7)](_0x5374dd-_0x2baf20,0x0),_0x31b99e[_0x590836(0x400)](_0x5374dd-_0x2baf20,_0x2baf20,_0x2baf20,Math['PI']*0x3/0x2,0x0,!0x1),_0x31b99e[_0x590836(0x2a7)](_0x5374dd,_0x10855b-_0x59863a),_0x31b99e[_0x590836(0x400)](_0x5374dd-_0x59863a,_0x10855b-_0x59863a,_0x59863a,0x0,Math['PI']/0x2,!0x1),_0x31b99e[_0x590836(0x2a7)](0x0,_0x10855b),_0x31b99e[_0x590836(0x2a7)](0x0,_0x5f0e9d),_0x31b99e['arc'](_0x5f0e9d,_0x5f0e9d,_0x5f0e9d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x31b99e[_0x590836(0x202)](),_0x3c9bc0[_0x590836(0x29c)]&&(_0x31b99e['save'](),_0x31b99e[_0x590836(0x259)]=_0x3c9bc0['fill'],_0x3c9bc0['fillRule']===_0x590836(0x396)?_0x31b99e[_0x590836(0x29c)](_0x590836(0x396)):_0x31b99e[_0x590836(0x29c)](),_0x31b99e[_0x590836(0x28f)]());}class ee extends p['Shape']{constructor(_0x334201,_0x16cd12){const _0x2564cc=_0x30c27a;super(_0x334201,_0x16cd12),h(this,_0x2564cc(0x26a)),h(this,_0x2564cc(0x3c6)),(this['color']=_0x16cd12==null?void 0x0:_0x16cd12[_0x2564cc(0x26a)],this[_0x2564cc(0x3c6)]=_0x16cd12==null?void 0x0:_0x16cd12[_0x2564cc(0x3c6)]);}static['drawWith'](_0x5b73dd,_0x3b79ac){const _0x12ada3=_0x30c27a,{text:_0x33e0c5,color:_0xb77c04}=_0x3b79ac;_0x5b73dd[_0x12ada3(0x19a)](),_0x5b73dd[_0x12ada3(0x25c)]=_0x12ada3(0x3aa);const _0x3b1eb8=_0x5b73dd[_0x12ada3(0x374)](_0x33e0c5)['width'],_0x276188=Math[_0x12ada3(0x2fc)](_0x3b1eb8+0x2*ne,Re);_t(_0x5b73dd,{'height':K,'radius':0x4,'width':_0x276188,'fill':_0xb77c04}),_0x5b73dd['fillStyle']='#FFF';const _0xf246e3=ne,_0x2087b5=K-lt,_0xd18aee=Re-0x2*ne;if(_0x3b1eb8>_0xd18aee){let _0x185696='',_0x579091=0x0;for(const _0x127a2a of _0x33e0c5){const _0x4827ea=_0x5b73dd[_0x12ada3(0x374)](_0x127a2a)[_0x12ada3(0x2f7)];if(_0x579091+_0x4827ea<=_0xd18aee-_0x5b73dd[_0x12ada3(0x374)](_0x12ada3(0x20d))[_0x12ada3(0x2f7)])_0x185696+=_0x127a2a,_0x579091+=_0x4827ea;else{_0x185696+=_0x12ada3(0x20d);break;}}_0x5b73dd[_0x12ada3(0x2b5)](_0x185696,_0xf246e3,_0x2087b5);}else _0x5b73dd['fillText'](_0x33e0c5,_0xf246e3,_0x2087b5);_0x5b73dd['restore']();}['_draw'](_0x295400){ee['drawWith'](_0x295400,this);}}const re=_0x30c27a(0x1ed),ht=_0x30c27a(0x216),ut=_0x30c27a(0x37d),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x30c27a(0x1ef);class De{constructor(_0x3c028f,_0x21231f,_0x11172a,_0x13fbe0){const _0x306159=_0x30c27a;h(this,'_shapes',[]),h(this,_0x306159(0x29b),null),h(this,_0x306159(0x18f),null),h(this,_0x306159(0x209),null),h(this,_0x306159(0x182),null),h(this,_0x306159(0x30b),null),(this['_cursor']=_0x3c028f,this[_0x306159(0x1bc)]=_0x21231f,this[_0x306159(0x375)]=_0x11172a,this['_document']=_0x13fbe0,this[_0x306159(0x2d4)]());}set[_0x30c27a(0x3f8)](_0x499085){const _0x5774ce=_0x30c27a;_0x499085?(this['_anchorDot']&&this[_0x5774ce(0x209)][_0x5774ce(0x2fe)](),this[_0x5774ce(0x18f)]&&this[_0x5774ce(0x18f)][_0x5774ce(0x32c)]()):(this['_anchorDot']&&this[_0x5774ce(0x209)]['show'](),this[_0x5774ce(0x18f)]&&this[_0x5774ce(0x18f)][_0x5774ce(0x2fe)]());}[_0x30c27a(0x196)](){const _0x2ca18c=_0x30c27a;for(const _0x1f9cd2 of this[_0x2ca18c(0x24b)])_0x1f9cd2['dispose']();this['_textBubble']&&this[_0x2ca18c(0x18f)]['dispose'](),this[_0x2ca18c(0x209)]&&this[_0x2ca18c(0x209)][_0x2ca18c(0x196)](),this[_0x2ca18c(0x29b)]&&this['_anchor'][_0x2ca18c(0x196)](),this[_0x2ca18c(0x30b)]&&this['_eventUnsubscribe']();}['_render'](){const _0x228f5c=_0x30c27a;var _0x55b6b;const {_docSkeleton:_0x3fd6da,_document:_0x5a6678}=this,{color:_0x3351fd,name:_0x35bc33,ranges:_0x5bea79}=this[_0x228f5c(0x36f)],_0xe58d4f=_0x5a6678['getOffsetConfig'](),{docsLeft:_0x848521,docsTop:_0x591122}=_0xe58d4f,_0x4ca715=new E[(_0x228f5c(0x221))](_0xe58d4f,_0x3fd6da);for(const {startOffset:_0x59b4ef,endOffset:_0x1aebc2,rangeType:_0x21403d,segmentId:_0x981303,segmentPage:_0x17d52f,collapsed:_0x1b4cac,isActive:_0x149108}of _0x5bea79){const _0x492fe9=_0x3fd6da['findNodePositionByCharIndex'](_0x59b4ef,!0x0,_0x981303,_0x17d52f);let _0x2db12a=_0x3fd6da[_0x228f5c(0x262)](_0x1aebc2,!0x0,_0x981303,_0x17d52f);if(_0x2db12a==null&&(_0x2db12a=_0x3fd6da[_0x228f5c(0x262)](_0x1aebc2-0x1,!0x1,_0x981303,_0x17d52f)),_0x149108){const {contentBoxPointGroup:_0x38d207}=_0x4ca715[_0x228f5c(0x35a)](_0x2db12a,_0x2db12a);if(_0x38d207[_0x228f5c(0x2ff)]===0x0)continue;this[_0x228f5c(0x23e)](_0x3351fd,_0x38d207,_0x848521,_0x591122,_0x35bc33),this[_0x228f5c(0x30b)]=this[_0x228f5c(0x1a2)]();}if(_0x492fe9&&_0x2db12a){if(_0x21403d===a['DOC_RANGE_TYPE']['RECT']){const _0x8f856d=new E[(_0x228f5c(0x185))](_0xe58d4f,_0x3fd6da),{pointGroup:_0x4995b9}=(_0x55b6b=_0x8f856d[_0x228f5c(0x35a)](_0x492fe9,_0x2db12a))!=null?_0x55b6b:{};if(_0x4995b9==null||_0x4995b9[_0x228f5c(0x2ff)]===0x0)continue;this[_0x228f5c(0x371)](_0x3351fd,_0x4995b9,_0x848521,_0x591122);}else{if(!_0x1b4cac){const {borderBoxPointGroup:_0x5366c9}=_0x4ca715[_0x228f5c(0x35a)](_0x492fe9,_0x2db12a);if(_0x5366c9['length']===0x0)continue;this['_drawTextRange'](_0x3351fd,_0x5366c9,_0x848521,_0x591122);}}}}}[_0x30c27a(0x23e)](_0x5c198a,_0x29d63c,_0x2646ec,_0x65d03e,_0x173830){const _0x42e82d=_0x30c27a,_0x2689c3=this[_0x42e82d(0x2f0)](_0x29d63c),{left:_0x2acb33,top:_0x8f8ed0,height:_0x263a7d}=_0x2689c3,_0x29738b=this['_getScale'](),_0x5ef50a=It/_0x29738b,_0x14e437=new p[(_0x42e82d(0x1ee))](re+a[_0x42e82d(0x2ca)][_0x42e82d(0x264)](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e,'height':_0x263a7d,'width':dt,'fill':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'strokeWidth':_0x5ef50a,'stroke':St,'evented':!0x0});this[_0x42e82d(0x29b)]=_0x14e437,this[_0x42e82d(0x1bc)][_0x42e82d(0x2f8)](_0x14e437,E[_0x42e82d(0x345)]);const _0x3135fc=new p['Rect'](re+a[_0x42e82d(0x2ca)]['generateRandomId'](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e-oe/0x2,'height':oe,'width':oe,'fill':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'strokeWidth':0x0,'stroke':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'evented':!0x1});this[_0x42e82d(0x209)]=_0x3135fc,this[_0x42e82d(0x1bc)][_0x42e82d(0x2f8)](_0x3135fc,E[_0x42e82d(0x345)]);const _0x3dcb5a=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e-K,'text':_0x173830,'color':_0x5c198a});this[_0x42e82d(0x18f)]=_0x3dcb5a,this['_scene'][_0x42e82d(0x2f8)](_0x3dcb5a,E[_0x42e82d(0x345)]),this[_0x42e82d(0x3f8)]=!0x1;}['_handleHover'](){const _0x26cf91=_0x30c27a,_0xbc340e=this['_anchor'][_0x26cf91(0x253)][_0x26cf91(0x364)](()=>{this['_hover']=!0x0;}),_0x4646d1=this[_0x26cf91(0x29b)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x5c7fb0=_0x26cf91;this[_0x5c7fb0(0x182)]&&clearTimeout(this['_hideTimer']),this[_0x5c7fb0(0x182)]=setTimeout(()=>{const _0x364bc5=_0x5c7fb0;this[_0x364bc5(0x3f8)]=!0x1;},0x7d0);});return()=>{const _0x509139=_0x26cf91;_0xbc340e[_0x509139(0x1d4)](),_0x4646d1[_0x509139(0x1d4)]();};}[_0x30c27a(0x388)](_0x4a0524,_0x6be708,_0x3013e0,_0x5651ee){const _0x54e8d5=_0x30c27a,_0x287ddb=new a[(_0x54e8d5(0x240))](_0x4a0524)[_0x54e8d5(0x217)](0.2)[_0x54e8d5(0x3a5)](),_0x39410d=new p[(_0x54e8d5(0x2e7))](ht+a[_0x54e8d5(0x2ca)]['generateRandomId'](k),{'pointsGroup':_0x6be708,'fill':_0x287ddb||p[_0x54e8d5(0x2d3)](a[_0x54e8d5(0x18e)][_0x54e8d5(0x317)],0.2),'left':_0x3013e0,'top':_0x5651ee,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x54e8d5(0x1b8)](_0x39410d),this[_0x54e8d5(0x1bc)]['addObject'](_0x39410d,E[_0x54e8d5(0x345)]);}[_0x30c27a(0x371)](_0x3725f3,_0x9fb14f,_0x34d6c5,_0x4fcec2){const _0x51e55b=_0x30c27a,_0x5e4725=new a[(_0x51e55b(0x240))](_0x3725f3)[_0x51e55b(0x217)](0.2)[_0x51e55b(0x3a5)](),_0x4a689a=new p[(_0x51e55b(0x2e7))](ut+a['Tools'][_0x51e55b(0x264)](k),{'pointsGroup':_0x9fb14f,'fill':_0x5e4725||p[_0x51e55b(0x2d3)](a['COLORS']['black'],0.2),'left':_0x34d6c5,'top':_0x4fcec2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x51e55b(0x1b8)](_0x4a689a),this[_0x51e55b(0x1bc)]['addObject'](_0x4a689a,E['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x43dda6){const _0x1136bb=_0x43dda6[0x0],_0x5ade84=_0x1136bb[0x0],_0x270f2a=_0x1136bb[0x2],{x:_0x67ae77,y:_0x35a9df}=_0x5ade84,{x:_0x11b61a,y:_0x2af72f}=_0x270f2a;return{'left':_0x67ae77,'top':_0x35a9df,'width':_0x11b61a-_0x67ae77,'height':_0x2af72f-_0x35a9df};}[_0x30c27a(0x1db)](){const _0x551eb6=_0x30c27a,{scaleX:_0x52dc73,scaleY:_0x470027}=this[_0x551eb6(0x1bc)][_0x551eb6(0x2da)]();return Math['max'](_0x52dc73,_0x470027);}}var ft=Object[_0x30c27a(0x329)],vt=(_0x27e837,_0xaddbf0,_0xd52471,_0x3c3a67)=>{const _0x4e7433=_0x30c27a;for(var _0x4f794d=_0x3c3a67>0x1?void 0x0:_0x3c3a67?ft(_0xaddbf0,_0xd52471):_0xaddbf0,_0x1d2d4a=_0x27e837[_0x4e7433(0x2ff)]-0x1,_0x243a6a;_0x1d2d4a>=0x0;_0x1d2d4a--)(_0x243a6a=_0x27e837[_0x1d2d4a])&&(_0x4f794d=_0x243a6a(_0x4f794d)||_0x4f794d);return _0x4f794d;},W=(_0x11fb01,_0x155af4)=>(_0xa5648f,_0x232726)=>_0x155af4(_0xa5648f,_0x232726,_0x11fb01);let fe=class extends a[_0x30c27a(0x2fa)]{constructor(_0x19730f,_0x271d10,_0x55b7d5,_0x4de3eb,_0x226cdd){const _0x46a832=_0x30c27a;super(),h(this,_0x46a832(0x3b1),[]),h(this,_0x46a832(0x176),[]),(this[_0x46a832(0x26b)]=_0x19730f,this[_0x46a832(0x343)]=_0x271d10,this['_collabCursorController']=_0x55b7d5,this[_0x46a832(0x3a6)]=_0x4de3eb,this[_0x46a832(0x20e)]=_0x226cdd,this['_init']());}['_init'](){const _0x2c7ac2=_0x30c27a,_0x301402=this[_0x2c7ac2(0x26b)]['unitId'],_0x2c78fa=this['_docSkeletonManagerService'];this[_0x2c7ac2(0x20b)](d[_0x2c7ac2(0x1b7)]([this[_0x2c7ac2(0x363)][_0x2c7ac2(0x3bb)](_0x301402),this[_0x2c7ac2(0x20e)][_0x2c7ac2(0x35e)]])[_0x2c7ac2(0x180)]($[_0x2c7ac2(0x368)](([_0x1589a8,_0x111024])=>({'skeleton':_0x2c78fa['getSkeleton'](),'cursors':[..._0x1589a8[_0x2c7ac2(0x2d1)]()]['flatMap'](_0x35c806=>({..._0x35c806,'color':this[_0x2c7ac2(0x20e)][_0x2c7ac2(0x352)](_0x35c806['color'])}))})))[_0x2c7ac2(0x258)](_0x285613=>{const _0x35d048=_0x2c7ac2;if(this[_0x35d048(0x3c5)](),_0x285613){const {skeleton:_0x4a2f7c,cursors:_0x1e78e6}=_0x285613;this[_0x35d048(0x2ba)](_0x4a2f7c,_0x1e78e6);}})),this[_0x2c7ac2(0x272)](),this[_0x2c7ac2(0x1ea)]();}[_0x30c27a(0x2ba)](_0x5d0a70,_0x3237c7){const _0x193178=_0x30c27a,{scene:_0x2b9c3f,mainComponent:_0x3df2ed}=this[_0x193178(0x26b)],_0x112bc5=_0x3237c7[_0x193178(0x368)](_0xdf95ac=>new De(_0xdf95ac,_0x2b9c3f,_0x5d0a70,_0x3df2ed));this['_cursorShapes']=_0x112bc5,this['_cursors']=_0x3237c7;}[_0x30c27a(0x1f0)](){const _0x5ce21f=_0x30c27a;this[_0x5ce21f(0x3c5)]();const {scene:_0xb4dfe5,mainComponent:_0x4f8c68}=this['_context'],_0x2faa30=this[_0x5ce21f(0x343)][_0x5ce21f(0x2bf)](),_0x54ccae=this[_0x5ce21f(0x176)][_0x5ce21f(0x368)](_0x6d53e7=>new De(_0x6d53e7,_0xb4dfe5,_0x2faa30,_0x4f8c68));this[_0x5ce21f(0x3b1)]=_0x54ccae;}['_removeCollabCursors'](){const _0x3f6179=_0x30c27a;this[_0x3f6179(0x3b1)]['forEach'](_0x46f99d=>_0x46f99d[_0x3f6179(0x196)]()),this[_0x3f6179(0x3b1)]=[];}['_initCommandExecutedListener'](){const _0x1c42f5=_0x30c27a,_0x5b460b=[E[_0x1c42f5(0x2c9)]['id']];this[_0x1c42f5(0x20b)](this[_0x1c42f5(0x3a6)][_0x1c42f5(0x263)](_0x43490b=>{const _0x49c1a3=_0x1c42f5;_0x5b460b[_0x49c1a3(0x2f6)](_0x43490b['id'])&&_0x43490b[_0x49c1a3(0x222)][_0x49c1a3(0x2ed)]===this['_context'][_0x49c1a3(0x2ed)]&&this['_refreshCollabCursors']();}));}[_0x30c27a(0x272)](){const _0x1c553b=_0x30c27a;this[_0x1c553b(0x20b)](a[_0x1c553b(0x3be)](this[_0x1c553b(0x26b)]['engine']['onTransformChange$'])[_0x1c553b(0x180)]($[_0x1c553b(0x3f5)](_0x458026=>_0x458026[_0x1c553b(0x31b)]===p[_0x1c553b(0x3ff)][_0x1c553b(0x2e9)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x30c27a(0x34a)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x30c27a(0x39f)]),W(0x4,a[_0x30c27a(0x34b)](a[_0x30c27a(0x36a)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x25efda,_0x4ace93){const _0x45f375=_0x30c27a;super(_0x25efda,_0x4ace93),h(this,_0x45f375(0x175)),h(this,_0x45f375(0x3e5),!0x1),h(this,_0x45f375(0x28d)),h(this,'_name',''),h(this,'_labelPosition',_0x45f375(0x17f)),h(this,_0x45f375(0x3c0)),(_0x4ace93&&this[_0x45f375(0x246)](_0x4ace93),this[_0x45f375(0x253)][_0x45f375(0x364)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x45f375(0x1fa)]['subscribeEvent'](()=>this[_0x45f375(0x246)]({'hovered':!0x1})));}['setShapeProps'](_0x5dcba4){const _0x5e9f4c=_0x30c27a;var _0x3af954,_0x4e4952,_0x1b3de3,_0x14663c,_0x1fcce3,_0x38f8e9;this[_0x5e9f4c(0x175)]=(_0x3af954=_0x5dcba4[_0x5e9f4c(0x26a)])!=null?_0x3af954:this[_0x5e9f4c(0x175)],this['_hovered']=(_0x4e4952=_0x5dcba4[_0x5e9f4c(0x27a)])!=null?_0x4e4952:this[_0x5e9f4c(0x3e5)],this[_0x5e9f4c(0x28d)]=(_0x1b3de3=_0x5dcba4[_0x5e9f4c(0x3d6)])!=null?_0x1b3de3:this['_range'],this[_0x5e9f4c(0x179)]=(_0x14663c=_0x5dcba4[_0x5e9f4c(0x257)])!=null?_0x14663c:this[_0x5e9f4c(0x179)],this[_0x5e9f4c(0x32d)]=(_0x1fcce3=_0x5dcba4[_0x5e9f4c(0x2b7)])!=null?_0x1fcce3:this[_0x5e9f4c(0x32d)],this[_0x5e9f4c(0x3c0)]=(_0x38f8e9=_0x5dcba4[_0x5e9f4c(0x32a)])!=null?_0x38f8e9:this[_0x5e9f4c(0x3c0)],this['transformByState']({'width':_0x5dcba4['width'],'height':_0x5dcba4[_0x5e9f4c(0x288)]});}['onMouseMove'](_0x35f619){const _0xe19ac6=_0x30c27a,{row:_0x49cbfb,column:_0x165c0c}=_0x35f619;if(_0x49cbfb>=this[_0xe19ac6(0x28d)][_0xe19ac6(0x310)]&&_0x49cbfb<=this[_0xe19ac6(0x28d)][_0xe19ac6(0x30e)]&&_0x165c0c>=this[_0xe19ac6(0x28d)][_0xe19ac6(0x1d0)]&&_0x165c0c<=this[_0xe19ac6(0x28d)][_0xe19ac6(0x3bc)]){this[_0xe19ac6(0x246)]({'hovered':!0x0});return;}this[_0xe19ac6(0x246)]({'hovered':!0x1});}[_0x30c27a(0x27e)](_0x5c7c72){return!0x1;}['_draw'](_0x2abc28){const _0x2adc52=_0x30c27a;p[_0x2adc52(0x1ee)][_0x2adc52(0x351)](_0x2abc28,{'width':this[_0x2adc52(0x2f7)],'height':this[_0x2adc52(0x288)],'strokeWidth':mt,'stroke':this[_0x2adc52(0x175)],'evented':!0x1,'fill':this[_0x2adc52(0x3c0)]}),this[_0x2adc52(0x3e5)]&&(_0x2abc28[_0x2adc52(0x19a)](),_0x2abc28['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x2adc52(0x32d)]===_0x2adc52(0x198)?0x0:-0x14),ee[_0x2adc52(0x351)](_0x2abc28,{'text':this[_0x2adc52(0x179)],'color':this['_color']}),_0x2abc28[_0x2adc52(0x28f)]());}}var Ct=Object[_0x30c27a(0x329)],pt=(_0x31974e,_0x4a5ab9,_0x47b386,_0x1939cc)=>{for(var _0x508ad7=_0x1939cc>0x1?void 0x0:_0x1939cc?Ct(_0x4a5ab9,_0x47b386):_0x4a5ab9,_0x331c23=_0x31974e['length']-0x1,_0x287e4b;_0x331c23>=0x0;_0x331c23--)(_0x287e4b=_0x31974e[_0x331c23])&&(_0x508ad7=_0x287e4b(_0x508ad7)||_0x508ad7);return _0x508ad7;},ae=(_0xafb282,_0x4e0598)=>(_0x2743ec,_0x2d6c4a)=>_0x4e0598(_0x2743ec,_0x2d6c4a,_0xafb282);const Et=0x1389;let ve=class extends a[_0x30c27a(0x2fa)]{constructor(_0x428b5e,_0x43e341,_0x25f411,_0x1ba92b){const _0x4098b=_0x30c27a;super(),h(this,_0x4098b(0x176),new Set()),h(this,_0x4098b(0x33d),null),(this[_0x4098b(0x26b)]=_0x428b5e,this['_sheetSkeletonManagerService']=_0x43e341,this[_0x4098b(0x363)]=_0x25f411,this[_0x4098b(0x20e)]=_0x1ba92b,this['_init']());}[_0x30c27a(0x271)](){const _0x456505=_0x30c27a;this[_0x456505(0x19e)][_0x456505(0x2d6)][_0x456505(0x180)]($[_0x456505(0x23f)](this['dispose$']),$[_0x456505(0x361)](_0x40a45f=>{const _0x5dd519=_0x456505;if(_0x40a45f){const _0x3e6671=_0x40a45f[_0x5dd519(0x2f2)];return d[_0x5dd519(0x1b7)](this['_collabCursorController'][_0x5dd519(0x3bb)](this[_0x5dd519(0x26b)][_0x5dd519(0x2ed)]),this[_0x5dd519(0x20e)]['currentTheme$'])[_0x5dd519(0x180)]($['map'](([_0x6789e2,_0x563d2f])=>{const _0x390bbe=_0x5dd519,_0x4b65fb=new Map();return _0x6789e2[_0x390bbe(0x232)]((_0x596073,_0x4cd742)=>{const _0x266c18=_0x390bbe;if(_0x596073[_0x266c18(0x3d4)]===_0x3e6671){const _0x108866={..._0x596073};_0x108866[_0x266c18(0x26a)]=this[_0x266c18(0x20e)]['getColorFromTheme'](_0x596073[_0x266c18(0x26a)]),_0x4b65fb[_0x266c18(0x2f3)](_0x4cd742,_0x108866);}}),{'skeleton':_0x40a45f,'cursors':_0x4b65fb};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x456505(0x258)](({skeleton:_0x38f80f,cursors:_0xef25ba})=>{const _0x3f31e5=_0x456505;this[_0x3f31e5(0x3c5)](),_0x38f80f&&this[_0x3f31e5(0x2ba)](_0x38f80f,_0xef25ba);}),this[_0x456505(0x19e)][_0x456505(0x2d6)]['subscribe'](_0x180398=>{const _0xc5381=_0x456505;if(_0x180398==null)return;const {skeleton:_0x145f73}=_0x180398,{scene:_0x3ad98f}=this['_context'];_0x3ad98f['onPointerMove$'][_0xc5381(0x364)](a[_0xc5381(0x265)](_0x576080=>{const _0x335417=_0xc5381;var _0xcc9d7c,_0x4ea698;const {offsetX:_0x386cb9,offsetY:_0x115ca0}=_0x576080,{x:_0x8fcb13,y:_0x2031b1}=_0x3ad98f[_0x335417(0x3ed)](p[_0x335417(0x3cc)][_0x335417(0x3a9)]([_0x386cb9,_0x115ca0])),{scaleX:_0x3f7bea,scaleY:_0x100558}=_0x3ad98f[_0x335417(0x2da)](),_0x2c7584=_0x3ad98f[_0x335417(0x353)](p[_0x335417(0x356)]['VIEW_MAIN']),_0x46bebf=_0x3ad98f[_0x335417(0x3f9)](p[_0x335417(0x3cc)]['FromArray']([_0x8fcb13,_0x2031b1]),_0x2c7584),_0xf5f14f=_0x145f73[_0x335417(0x334)](_0x386cb9,_0x115ca0,_0x3f7bea,_0x100558,_0x46bebf);((_0xcc9d7c=this[_0x335417(0x33d)])==null?void 0x0:_0xcc9d7c[_0x335417(0x2ac)])===_0xf5f14f[_0x335417(0x2ac)]&&((_0x4ea698=this[_0x335417(0x33d)])==null?void 0x0:_0x4ea698[_0x335417(0x27b)])===_0xf5f14f['row']||this[_0x335417(0x176)][_0x335417(0x232)](_0x158827=>{const _0x1d83cc=_0x335417;_0x158827[_0x1d83cc(0x275)](_0xf5f14f);});},0x64));});}['_updateCollabCursors'](_0x10ed26,_0x2fafd3){const _0x51d7de=_0x30c27a;var _0x3d7dbc;const _0xafa54=(_0x3d7dbc=this[_0x51d7de(0x19e)][_0x51d7de(0x1ca)]())==null?void 0x0:_0x3d7dbc[_0x51d7de(0x214)];if(!_0xafa54)return;const _0x45f2d1=this['_getSheetObject']();if(!_0x45f2d1)return;this[_0x51d7de(0x176)][_0x51d7de(0x232)](_0x111cd3=>{const _0x455aa2=_0x51d7de;_0x111cd3[_0x455aa2(0x34f)]();});const {scene:_0x21256a}=_0x45f2d1,_0x364ffe=bt(Array['from'](_0x2fafd3[_0x51d7de(0x2d1)]()))[_0x51d7de(0x368)](_0x22177b=>{const _0xab797=_0x51d7de,{color:_0x3881c0,range:_0x4d67e6,name:_0x52a012,selection:_0x916774,sheetID:_0x3f0c93}=_0x22177b,{startColumn:_0x5f4ecf,startRow:_0x5a4704,endColumn:_0x56fd38,endRow:_0x159216}=_0x4d67e6,_0x506bdf=X['getCoordByCell'](_0x5a4704,_0x5f4ecf,_0x21256a,_0xafa54),_0x3e8884=X['getCoordByCell'](_0x159216,_0x56fd38,_0x21256a,_0xafa54),{columnHeaderHeightAndMarginTop:_0x3bf61b}=_0xafa54,{startX:_0x212144,startY:_0x4b25d4}=_0x506bdf,{endX:_0x5bfa6a,endY:_0x1fb670}=_0x3e8884,_0x515a6c=_0x5bfa6a-_0x212144,_0x301ade=_0x1fb670-_0x4b25d4,_0x3f611e={'labelPosition':_0x4b25d4-_0x3bf61b>=K?_0xab797(0x17f):_0xab797(0x198),'sheetID':_0x3f0c93,'range':_0x4d67e6,'color':_0x3881c0,'name':_0x52a012,'selection':_0x916774,'left':_0x212144,'top':_0x4b25d4,'width':_0x515a6c,'height':_0x301ade,'evented':!0x1,'zIndex':Et};return new we(_0x52a012,_0x3f611e);});_0x21256a[_0x51d7de(0x3a8)](_0x364ffe,gt),this[_0x51d7de(0x176)]=new Set(_0x364ffe);}['_removeCollabCursors'](){const _0x3ddc45=_0x30c27a;var _0x160a35;(_0x160a35=this['_cursors'])==null||_0x160a35[_0x3ddc45(0x232)](_0x36f89f=>_0x36f89f['dispose']());}[_0x30c27a(0x300)](){const _0x1b0a07=_0x30c27a;return X[_0x1b0a07(0x30a)](this[_0x1b0a07(0x26b)][_0x1b0a07(0x385)],this[_0x1b0a07(0x26b)]);}};ve=pt([ae(0x1,a[_0x30c27a(0x34b)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x30c27a(0x34b)](a['ThemeService']))],ve);function bt(_0x55c63d){const _0x2f6808=_0x30c27a,_0x1cc4f4=new Map();return _0x55c63d[_0x2f6808(0x232)](_0x5ad960=>{const _0x571aa9=_0x2f6808;if(_0x1cc4f4[_0x571aa9(0x29e)](_0x5ad960[_0x571aa9(0x2bd)])){const _0xaece80=_0x1cc4f4[_0x571aa9(0x235)](_0x5ad960['selection']);_0xaece80['name']+=',\x20'+_0x5ad960[_0x571aa9(0x257)];}else _0x1cc4f4[_0x571aa9(0x2f3)](_0x5ad960['selection'],_0x5ad960);}),Array[_0x2f6808(0x1fb)](_0x1cc4f4['values']());}var b=function(){const _0xf1658b=_0x30c27a;return b=Object[_0xf1658b(0x2c3)]||function(_0xaf9258){const _0x509f1c=_0xf1658b;for(var _0x3a4a53,_0x370c7b=0x1,_0x1dfb1e=arguments[_0x509f1c(0x2ff)];_0x370c7b<_0x1dfb1e;_0x370c7b++){_0x3a4a53=arguments[_0x370c7b];for(var _0xb7691e in _0x3a4a53)Object[_0x509f1c(0x2f5)]['hasOwnProperty']['call'](_0x3a4a53,_0xb7691e)&&(_0xaf9258[_0xb7691e]=_0x3a4a53[_0xb7691e]);}return _0xaf9258;},b[_0xf1658b(0x230)](this,arguments);},Ot=function(_0x2604cc,_0x96ef37){const _0x10e354=_0x30c27a;var _0x35ec96={};for(var _0x189049 in _0x2604cc)Object[_0x10e354(0x2f5)][_0x10e354(0x31d)][_0x10e354(0x2aa)](_0x2604cc,_0x189049)&&_0x96ef37[_0x10e354(0x33e)](_0x189049)<0x0&&(_0x35ec96[_0x189049]=_0x2604cc[_0x189049]);if(_0x2604cc!=null&&typeof Object[_0x10e354(0x281)]==_0x10e354(0x1f9)){for(var _0x1c22c0=0x0,_0x189049=Object[_0x10e354(0x281)](_0x2604cc);_0x1c22c0<_0x189049[_0x10e354(0x2ff)];_0x1c22c0++)_0x96ef37[_0x10e354(0x33e)](_0x189049[_0x1c22c0])<0x0&&Object[_0x10e354(0x2f5)][_0x10e354(0x3ba)]['call'](_0x2604cc,_0x189049[_0x1c22c0])&&(_0x35ec96[_0x189049[_0x1c22c0]]=_0x2604cc[_0x189049[_0x1c22c0]]);}return _0x35ec96;},pe=M[_0x30c27a(0x17c)](function(_0x26a188,_0x3e221e){const _0x493e57=_0x30c27a;var _0x4f0f1a=_0x26a188['icon'],_0x2ae170=_0x26a188['id'],_0x2c62cb=_0x26a188[_0x493e57(0x3fd)],_0xda1145=_0x26a188[_0x493e57(0x2d0)],_0x517b5f=Ot(_0x26a188,[_0x493e57(0x2cf),'id','className',_0x493e57(0x2d0)]),_0x1d688c='univerjs-icon\x20univerjs-icon-'[_0x493e57(0x1f2)](_0x2ae170,'\x20')['concat'](_0x2c62cb||'')[_0x493e57(0x3f2)](),_0xdef6ce=M['useRef']('_'[_0x493e57(0x1f2)](Dt()));return Ae(_0x4f0f1a,''[_0x493e57(0x1f2)](_0x2ae170),{'defIds':_0x4f0f1a[_0x493e57(0x38c)],'idSuffix':_0xdef6ce['current']},b({'ref':_0x3e221e,'className':_0x1d688c},_0x517b5f),_0xda1145);});function Ae(_0x3d997b,_0x2ca1d3,_0x5b5ef8,_0x14cd6f,_0x45a063){const _0x304657=_0x30c27a;return M[_0x304657(0x33c)](_0x3d997b[_0x304657(0x2dd)],b(b({'key':_0x2ca1d3},Tt(_0x3d997b,_0x5b5ef8,_0x45a063)),_0x14cd6f),(Rt(_0x3d997b,_0x5b5ef8)[_0x304657(0x37a)]||[])[_0x304657(0x368)](function(_0x5e9f0d,_0x244b4e){const _0x36a986=_0x304657;return Ae(_0x5e9f0d,''[_0x36a986(0x1f2)](_0x2ca1d3,'-')['concat'](_0x3d997b[_0x36a986(0x2dd)],'-')['concat'](_0x244b4e),_0x5b5ef8,void 0x0,_0x45a063);}));}function Tt(_0x2cab5f,_0x1d478f,_0x53d659){const _0x2d9ee3=_0x30c27a;var _0x106daf=b({},_0x2cab5f[_0x2d9ee3(0x170)]);_0x53d659!=null&&_0x53d659[_0x2d9ee3(0x199)]&&_0x106daf[_0x2d9ee3(0x29c)]===_0x2d9ee3(0x199)&&(_0x106daf[_0x2d9ee3(0x29c)]=_0x53d659[_0x2d9ee3(0x199)]),_0x2cab5f[_0x2d9ee3(0x2dd)]===_0x2d9ee3(0x3e7)&&_0x106daf['id']&&(_0x106daf['id']=_0x106daf['id']+_0x1d478f['idSuffix']),Object[_0x2d9ee3(0x2c7)](_0x106daf)[_0x2d9ee3(0x232)](function(_0x57b3df){const _0x48a075=_0x2d9ee3;var _0x5170d6=_0x57b3df[0x0],_0x21fd75=_0x57b3df[0x1];_0x5170d6===_0x48a075(0x3e7)&&typeof _0x21fd75==_0x48a075(0x3d7)&&(_0x106daf[_0x5170d6]=_0x21fd75[_0x48a075(0x3c2)](/url\(#(.*)\)/,'url(#$1'[_0x48a075(0x1f2)](_0x1d478f[_0x48a075(0x20a)],')')));});var _0x567cb8=_0x1d478f['defIds'];return!_0x567cb8||_0x567cb8['length']===0x0||(_0x2cab5f['tag']===_0x2d9ee3(0x1e4)&&_0x106daf['xlink:href']&&(_0x106daf[_0x2d9ee3(0x297)]=_0x106daf['xlink:href']+_0x1d478f[_0x2d9ee3(0x20a)]),Object[_0x2d9ee3(0x2c7)](_0x106daf)[_0x2d9ee3(0x232)](function(_0x4b5e19){const _0x5530fd=_0x2d9ee3;var _0x43a4d4=_0x4b5e19[0x0],_0x256f24=_0x4b5e19[0x1];typeof _0x256f24==_0x5530fd(0x3d7)&&(_0x106daf[_0x43a4d4]=_0x256f24[_0x5530fd(0x3c2)](/url\(#(.*)\)/,_0x5530fd(0x1f7)[_0x5530fd(0x1f2)](_0x1d478f['idSuffix'],')')));})),_0x106daf;}function Rt(_0x31c126,_0x4cbd06){const _0xbb893d=_0x30c27a;var _0x33c19c,_0x142038=_0x4cbd06[_0xbb893d(0x38c)];return!_0x142038||_0x142038[_0xbb893d(0x2ff)]===0x0?_0x31c126:_0x31c126[_0xbb893d(0x2dd)]===_0xbb893d(0x3c4)&&(!((_0x33c19c=_0x31c126['children'])===null||_0x33c19c===void 0x0)&&_0x33c19c[_0xbb893d(0x2ff)])?b(b({},_0x31c126),{'children':_0x31c126['children']['map'](function(_0x59d184){const _0x3819e2=_0xbb893d;return typeof _0x59d184[_0x3819e2(0x170)]['id']=='string'&&_0x142038&&_0x142038[_0x3819e2(0x2f6)](_0x59d184['attrs']['id'])?b(b({},_0x59d184),{'attrs':b(b({},_0x59d184[_0x3819e2(0x170)]),{'id':_0x59d184[_0x3819e2(0x170)]['id']+_0x4cbd06[_0x3819e2(0x20a)]})}):_0x59d184;})}):_0x31c126;}function Dt(){const _0x7efda=_0x30c27a;return Math[_0x7efda(0x2b0)]()['toString'](0x24)[_0x7efda(0x189)](0x2,0x8);}pe[_0x30c27a(0x3d5)]=_0x30c27a(0x3a0);var Ut={'tag':_0x30c27a(0x39b),'attrs':{'xmlns':_0x30c27a(0x224),'fill':_0x30c27a(0x384),'viewBox':_0x30c27a(0x34e),'width':_0x30c27a(0x245),'height':_0x30c27a(0x245)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x30c27a(0x172),'attrs':{'stroke':_0x30c27a(0x261),'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':_0x30c27a(0x1da),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x30c27a(0x273)},'children':[{'tag':_0x30c27a(0x172),'attrs':{'fill':'white','d':_0x30c27a(0x21c)}}]}]}],'defIds':[_0x30c27a(0x273)]},ye=M[_0x30c27a(0x17c)](function(_0x1235b3,_0x366066){const _0x2368ab=_0x30c27a;return M['createElement'](pe,Object['assign']({},_0x1235b3,{'id':_0x2368ab(0x2f9),'ref':_0x366066,'icon':Ut}));});ye['displayName']=_0x30c27a(0x22f);var Nt={'tag':_0x30c27a(0x39b),'attrs':{'xmlns':_0x30c27a(0x224),'fill':'none','viewBox':_0x30c27a(0x1d2),'width':'1em','height':_0x30c27a(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x30c27a(0x2f1)},'children':[{'tag':'path','attrs':{'stroke':_0x30c27a(0x261),'d':_0x30c27a(0x2ec),'strokeLinecap':_0x30c27a(0x1da),'strokeLinejoin':_0x30c27a(0x1da),'strokeWidth':1.2}}]},{'tag':_0x30c27a(0x3c4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x30c27a(0x1e1)},'children':[{'tag':_0x30c27a(0x172),'attrs':{'fill':_0x30c27a(0x397),'d':_0x30c27a(0x21c),'transform':_0x30c27a(0x3b5)}}]}]}],'defIds':[_0x30c27a(0x1e1)]},$e=M['forwardRef'](function(_0x38e4d5,_0x3fbff1){const _0x178895=_0x30c27a;return M[_0x178895(0x33c)](pe,Object[_0x178895(0x2c3)]({},_0x38e4d5,{'id':_0x178895(0x338),'ref':_0x3fbff1,'icon':Nt}));});$e[_0x30c27a(0x3d5)]=_0x30c27a(0x3f0);function Mt(_0x51a7f5){const _0x2925a4=_0x30c27a;switch(_0x51a7f5){case u[_0x2925a4(0x1e9)][_0x2925a4(0x36b)]:return _0x2925a4(0x1a6);case u[_0x2925a4(0x1e9)][_0x2925a4(0x227)]:return'collabStatus.conflict';case u[_0x2925a4(0x1e9)][_0x2925a4(0x27f)]:return'collabStatus.fetchMiss';case u[_0x2925a4(0x1e9)][_0x2925a4(0x1a5)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x2925a4(0x3da)]:case u[_0x2925a4(0x1e9)][_0x2925a4(0x36d)]:return _0x2925a4(0x3dc);case u[_0x2925a4(0x1e9)][_0x2925a4(0x23a)]:case u[_0x2925a4(0x1e9)]['PENDING']:return'collabStatus.synced';}}function xe(_0xaf8d74){const _0x1bf03a=_0x30c27a,{status$:_0x53ee5c}=_0xaf8d74,_0x3c9c73=O[_0x1bf03a(0x3e6)](_0x53ee5c,u['CollaborationStatus']['NOT_COLLAB']),_0x5371ef=O[_0x1bf03a(0x3cf)](a[_0x1bf03a(0x213)]),_0x4f2771=O[_0x1bf03a(0x3cf)](u[_0x1bf03a(0x1be)]),_0x350f04=_0x3c9c73!==u['CollaborationStatus'][_0x1bf03a(0x36b)],_0x1e4adc=_0x5371ef['t'](Mt(_0x3c9c73)),_0x24e9db=_0x350f04?P['jsx']($e,{}):P[_0x1bf03a(0x1ae)](ye,{}),_0x71a609=M['useCallback'](()=>{const _0x103807=_0x1bf03a;_0x350f04||_0x4f2771[_0x103807(0x2ce)]();},[_0x350f04,_0x4f2771]);function _0x1afb8b(){const _0x44d09e=_0x1bf03a;return P[_0x44d09e(0x2e5)]('div',{'className':_0x44d09e(0x2fd),'onClick':_0x71a609,'children':[P[_0x44d09e(0x1ae)]('div',{'className':D['clsx'](_0x44d09e(0x1de),{'univer-text-green-500':_0x350f04,'univer-text-red-500':!_0x350f04}),'children':_0x24e9db}),P[_0x44d09e(0x1ae)](_0x44d09e(0x305),{'className':_0x44d09e(0x332),'children':_0x1e4adc})]});}return _0x350f04?_0x1afb8b():P[_0x1bf03a(0x1ae)](D['Tooltip'],{'title':_0x5371ef['t']('collab-client.tooltip.reconnect'),'children':_0x1afb8b()});}var Lt=Object[_0x30c27a(0x329)],Pt=(_0x386092,_0x181521,_0x3b8396,_0x2ac141)=>{const _0x4944be=_0x30c27a;for(var _0x3c122a=_0x2ac141>0x1?void 0x0:_0x2ac141?Lt(_0x181521,_0x3b8396):_0x181521,_0x2ad3b9=_0x386092[_0x4944be(0x2ff)]-0x1,_0x56a907;_0x2ad3b9>=0x0;_0x2ad3b9--)(_0x56a907=_0x386092[_0x2ad3b9])&&(_0x3c122a=_0x56a907(_0x3c122a)||_0x3c122a);return _0x3c122a;},V=(_0x57df6f,_0x6b6519)=>(_0x10cf0a,_0x20e8eb)=>_0x6b6519(_0x10cf0a,_0x20e8eb,_0x57df6f);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x30c27a(0x27d)]{constructor(_0x4814cb,_0x2adf30,_0x3d1ccf,_0x2dff4a){const _0x17796a=_0x30c27a;super(),h(this,_0x17796a(0x2ab),new d['BehaviorSubject'](u[_0x17796a(0x1e9)][_0x17796a(0x1a5)])),(this[_0x17796a(0x3e3)]=_0x4814cb,this[_0x17796a(0x236)]=_0x2adf30,this[_0x17796a(0x1b9)]=_0x3d1ccf,this[_0x17796a(0x1d5)]=_0x2dff4a,this[_0x17796a(0x313)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x349127=_0x30c27a;this['disposeWithMe'](this['_univerInstanceService'][_0x349127(0x389)][_0x349127(0x180)](d[_0x349127(0x361)](()=>{const _0x5e521b=_0x349127,_0x2197fa=this['_univerInstanceService'][_0x5e521b(0x24e)]();return _0x2197fa?this[_0x5e521b(0x1b9)]['getCollabEntity$'](_0x2197fa[_0x5e521b(0x16f)]()):d['of'](null);}),d[_0x349127(0x361)](_0x499984=>_0x499984?_0x499984[_0x349127(0x2a3)]:d['of'](u[_0x349127(0x1e9)][_0x349127(0x1a5)])))[_0x349127(0x258)](_0xdbdf0c=>{const _0x20176d=_0x349127;this['_status$'][_0x20176d(0x2d2)](_0xdbdf0c);}));}[_0x30c27a(0x313)](){const _0x578af6=_0x30c27a;this[_0x578af6(0x20b)](this[_0x578af6(0x1d5)][_0x578af6(0x1cf)](O[_0x578af6(0x378)][_0x578af6(0x29f)],()=>O[_0x578af6(0x218)](wt({'status$':this[_0x578af6(0x2ab)]['asObservable']()}),this[_0x578af6(0x236)])));}},exports[_0x30c27a(0x3ea)]=Pt([V(0x0,a[_0x30c27a(0x3e0)]),V(0x1,a['Inject'](a[_0x30c27a(0x248)])),V(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x35f)])),V(0x3,O[_0x30c27a(0x28e)])],exports[_0x30c27a(0x3ea)]);function wt(_0x354863){const {status$:_0x149ae6}=_0x354863;return function(){const _0x29cdb1=_0x2320;return P[_0x29cdb1(0x1ae)](xe,{'status$':_0x149ae6});};}var At=Object[_0x30c27a(0x329)],yt=(_0x2e72ae,_0x49e248,_0x542e95,_0x5a3095)=>{const _0x29b91d=_0x30c27a;for(var _0x116317=_0x5a3095>0x1?void 0x0:_0x5a3095?At(_0x49e248,_0x542e95):_0x49e248,_0x339335=_0x2e72ae[_0x29b91d(0x2ff)]-0x1,_0xa103f4;_0x339335>=0x0;_0x339335--)(_0xa103f4=_0x2e72ae[_0x339335])&&(_0x116317=_0xa103f4(_0x116317)||_0x116317);return _0x116317;},y=(_0x5e4831,_0x433b9d)=>(_0xe0ee80,_0x54425b)=>_0x433b9d(_0xe0ee80,_0x54425b,_0x5e4831);let q=class extends a[_0x30c27a(0x27d)]{constructor(_0x38aeda,_0x422ee2,_0x2ad95b,_0xb584c9,_0x5507de,_0x17c9aa){const _0xfe0b11=_0x30c27a;super(),this['_beforeCloseService']=_0x38aeda,this[_0xfe0b11(0x339)]=_0x422ee2,this[_0xfe0b11(0x348)]=_0x2ad95b,this[_0xfe0b11(0x2c5)]=_0xb584c9,this['_notificationService']=_0x5507de,this[_0xfe0b11(0x270)]=_0x17c9aa,this[_0xfe0b11(0x2e0)](),this['_initEvent']();}[_0x30c27a(0x2e0)](){const _0x49b86e=_0x30c27a;this[_0x49b86e(0x20b)](this[_0x49b86e(0x1fd)]['registerBeforeClose'](()=>{const _0x12becc=_0x49b86e;if(this[_0x12becc(0x339)]['saveTaskMap'][_0x12becc(0x2a9)])return this[_0x12becc(0x270)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x30c27a(0x3f3)](){const _0x14d966=_0x30c27a;this[_0x14d966(0x20b)](this[_0x14d966(0x348)][_0x14d966(0x386)]['subscribe'](_0x3d9522=>{const _0x308d93=_0x14d966;_0x3d9522['id']===u[_0x308d93(0x1d8)]['OTHER_CLIENT_EDITING']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x193)],'content':this[_0x308d93(0x270)]['t']('collaboration.single-unit.warning')}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['CLOSE_ROOM']&&this['_messageService'][_0x308d93(0x32c)]({'type':D['MessageType'][_0x308d93(0x193)],'content':this[_0x308d93(0x270)]['t']('collaboration.closeRoom')}),_0x3d9522['id']===u['CollaborationUIEventId'][_0x308d93(0x203)]&&this[_0x308d93(0x25e)][_0x308d93(0x32c)]({'title':this[_0x308d93(0x270)]['t'](_0x308d93(0x1c7)),'content':this['_localeService']['t']('permission.content'),'type':_0x308d93(0x243),'duration':0x0}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['CONFLICT']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t'](_0x308d93(0x256))+'('+_0x3d9522[_0x308d93(0x190)]+')'}),_0x3d9522['id']===u[_0x308d93(0x1d8)][_0x308d93(0x28a)]&&this['_messageService']['show']({'type':D[_0x308d93(0x2de)]['Warning'],'content':this['_localeService']['t'](_0x3d9522[_0x308d93(0x190)]||'')}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SOCKET_FAILED_RETRY']&&this[_0x308d93(0x2c5)]['show']({'type':D[_0x308d93(0x2de)][_0x308d93(0x193)],'content':this['_localeService']['t'](_0x308d93(0x1f1))}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SOCKET_FAILED']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t'](_0x308d93(0x319))}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,O[_0x30c27a(0x26d)]),y(0x1,u[_0x30c27a(0x254)]),y(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x2cb)])),y(0x3,O[_0x30c27a(0x38e)]),y(0x4,O[_0x30c27a(0x283)]),y(0x5,a[_0x30c27a(0x34b)](a['LocaleService']))],q);const $t=_0x30c27a(0x228),Ue={},Ee=a[_0x30c27a(0x1c9)](_0x30c27a(0x183));var xt=Object[_0x30c27a(0x329)],Bt=(_0x2f3f26,_0x2a6cfc,_0x49ef50,_0x188ac3)=>{const _0x46dd15=_0x30c27a;for(var _0x7a4030=_0x188ac3>0x1?void 0x0:_0x188ac3?xt(_0x2a6cfc,_0x49ef50):_0x2a6cfc,_0x249086=_0x2f3f26[_0x46dd15(0x2ff)]-0x1,_0x2ebd04;_0x249086>=0x0;_0x249086--)(_0x2ebd04=_0x2f3f26[_0x249086])&&(_0x7a4030=_0x2ebd04(_0x7a4030)||_0x7a4030);return _0x7a4030;},F=(_0x30764c,_0x249584)=>(_0x3c0e76,_0x2ed23d)=>_0x249584(_0x3c0e76,_0x2ed23d,_0x30764c);exports[_0x30c27a(0x266)]=class extends a[_0x30c27a(0x2fa)]{constructor(_0x45fc4e,_0x5f365e,_0xa6d653,_0x4ddccb,_0x572141){const _0x11dc56=_0x30c27a;super(),this[_0x11dc56(0x33b)]=_0x45fc4e,this[_0x11dc56(0x2a1)]=_0x5f365e,this[_0x11dc56(0x3a6)]=_0xa6d653,this[_0x11dc56(0x2be)]=_0x4ddccb,_0x572141?_0x572141==null||_0x572141[_0x11dc56(0x19c)]()[_0x11dc56(0x3db)](()=>this[_0x11dc56(0x271)]()):(this[_0x11dc56(0x2a1)][_0x11dc56(0x304)]('[CollaborationDataLoaderController]',_0x11dc56(0x37c)),this[_0x11dc56(0x271)]());}async[_0x30c27a(0x271)](){const _0x1501cf=_0x30c27a,_0x4f8702=this['_urlService'][_0x1501cf(0x31a)]('unit'),_0x40049b=this[_0x1501cf(0x33b)]['getParam'](_0x1501cf(0x31b)),_0x42f27c=this[_0x1501cf(0x33b)]['getParam'](_0x1501cf(0x292));if(!_0x4f8702||!_0x40049b){this[_0x1501cf(0x2a1)][_0x1501cf(0x304)](_0x1501cf(0x2e3),_0x1501cf(0x1b3));return;}const _0xef38fd=await this[_0x1501cf(0x2be)][_0x1501cf(0x1fc)](_0x4f8702,Number(_0x40049b),_0x42f27c);_0xef38fd&&_0xef38fd instanceof a['Workbook']&&this[_0x1501cf(0x27c)](_0xef38fd);}async['_setupSubUnitSync'](_0x4d0596){const _0x11bd78=_0x30c27a;await this[_0x11bd78(0x30c)](_0x4d0596),_0x4d0596['activeSheet$'][_0x11bd78(0x180)](d[_0x11bd78(0x23f)](this['dispose$']))[_0x11bd78(0x258)](_0x217741=>{const _0x43c040=_0x11bd78;_0x217741&&this[_0x43c040(0x1cc)](_0x217741);}),this[_0x11bd78(0x33b)]['urlChange$'][_0x11bd78(0x180)](d['takeUntil'](this[_0x11bd78(0x320)]))[_0x11bd78(0x258)](()=>this[_0x11bd78(0x30c)](_0x4d0596));}[_0x30c27a(0x1cc)](_0x5d9f67,_0xa629b8=!0x1){const _0x18694b=_0x30c27a,_0x2120fe=this['_urlService'][_0x18694b(0x31a)]('subunit');_0x5d9f67[_0x18694b(0x18b)]()!==_0x2120fe&&this[_0x18694b(0x33b)]['setParam']('subunit',_0x5d9f67[_0x18694b(0x18b)](),_0xa629b8);}async[_0x30c27a(0x30c)](_0x1ca243){const _0x536034=_0x30c27a;var _0x347346;const _0x26c788=this[_0x536034(0x33b)][_0x536034(0x31a)]('subunit');if(!_0x26c788||!_0x1ca243['getSheetBySheetId'](_0x26c788)){const _0x299a19=_0x1ca243[_0x536034(0x1d3)]()[0x0],_0x6c1135=_0x1ca243[_0x536034(0x2ee)](_0x299a19);if(!_0x6c1135)return;this[_0x536034(0x1cc)](_0x6c1135,!0x0),await this[_0x536034(0x3a6)][_0x536034(0x3f7)](g[_0x536034(0x3a1)]['id'],{'unitId':_0x1ca243[_0x536034(0x16f)](),'subUnitId':_0x299a19});return;}((_0x347346=_0x1ca243[_0x536034(0x208)]())==null?void 0x0:_0x347346[_0x536034(0x18b)]())!==_0x26c788&&await this[_0x536034(0x3a6)][_0x536034(0x3f7)](g[_0x536034(0x3a1)]['id'],{'unitId':_0x1ca243[_0x536034(0x16f)](),'subUnitId':_0x26c788});}},exports['CollaborationDataLoaderController']=Bt([F(0x0,Ee),F(0x1,a[_0x30c27a(0x355)]),F(0x2,a[_0x30c27a(0x39f)]),F(0x3,a[_0x30c27a(0x34b)](u[_0x30c27a(0x1b5)])),F(0x4,a[_0x30c27a(0x25f)](Ke[_0x30c27a(0x1b0)]))],exports[_0x30c27a(0x266)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x223097,_0x2a27ac,_0x475b41,_0x3f6813)=>{for(var _0x19414f=_0x3f6813>0x1?void 0x0:_0x3f6813?jt(_0x2a27ac,_0x475b41):_0x2a27ac,_0x32e4ac=_0x223097['length']-0x1,_0x123c45;_0x32e4ac>=0x0;_0x32e4ac--)(_0x123c45=_0x223097[_0x32e4ac])&&(_0x19414f=_0x123c45(_0x19414f)||_0x19414f);return _0x19414f;},ce=(_0x2c43c4,_0xb1529b)=>(_0x4bf248,_0x34912e)=>_0xb1529b(_0x4bf248,_0x34912e,_0x2c43c4);let z=class{constructor(_0x4cd140,_0x5457ba,_0x486599){const _0x2f56a6=_0x30c27a;this[_0x2f56a6(0x236)]=_0x4cd140,this[_0x2f56a6(0x3fe)]=_0x5457ba,this[_0x2f56a6(0x37b)]=_0x486599;}['transformIMECache'](_0xb5e2bf){const _0x240313=_0x30c27a;this[_0x240313(0x3d0)](_0xb5e2bf),this[_0x240313(0x16e)](_0xb5e2bf);}['transformRemoteChangeset'](_0x177a97){const _0x16e415=_0x30c27a,{unitID:_0x274400}=_0x177a97,_0x1800c6=this[_0x16e415(0x37b)][_0x16e415(0x287)](_0x274400)['with'](E[_0x16e415(0x220)]),{redoCache:_0x4571c8}=_0x1800c6[_0x16e415(0x255)]();if(_0x4571c8[_0x16e415(0x2ff)]===0x0)return _0x177a97;let _0xc5ee9b=a[_0x16e415(0x2ca)]['deepClone'](_0x177a97[_0x16e415(0x269)][0x0]);for(let _0x523fc8=0x0;_0x523fc8<_0x4571c8['length'];_0x523fc8++){const _0x2582e7={'id':_0x16e415(0x212),'params':{..._0x4571c8[_0x523fc8]}},_0x3e62a=this[_0x16e415(0x3fe)][_0x16e415(0x399)](_0xc5ee9b,_0x2582e7,!0x1);if(m[_0x16e415(0x1c3)](_0x3e62a))throw _0x3e62a[_0x16e415(0x243)];_0xc5ee9b=_0x3e62a[_0x16e415(0x29d)];}return{...a[_0x16e415(0x2ca)][_0x16e415(0x274)](_0x177a97),'mutations':[_0xc5ee9b]};}['_transformUndoRedoStack'](_0x420854){const _0x583203=_0x30c27a,{unitID:_0x497cce}=_0x420854,_0x38276b=this[_0x583203(0x37b)][_0x583203(0x287)](_0x497cce)[_0x583203(0x392)](E[_0x583203(0x220)]),{undoCache:_0x213b42,redoCache:_0x1cfb3e}=_0x38276b[_0x583203(0x255)]();if(_0x213b42[_0x583203(0x2ff)]===0x0||_0x1cfb3e[_0x583203(0x2ff)]===0x0)return;const _0x59382d=[],_0x22188e=[];let _0x142c5a=a[_0x583203(0x2ca)][_0x583203(0x274)](_0x420854[_0x583203(0x269)][0x0]),_0x9420a6=a[_0x583203(0x2ca)][_0x583203(0x274)](_0x420854[_0x583203(0x269)][0x0]);for(let _0x86509d=_0x213b42[_0x583203(0x2ff)]-0x1;_0x86509d>=0x0;_0x86509d--){const _0x3ac5b3={'id':_0x583203(0x212),'params':{..._0x213b42[_0x86509d]}},_0xfbec2a={'id':_0x583203(0x212),'params':{..._0x1cfb3e[_0x86509d]}},_0x1a4c04=this[_0x583203(0x3fe)][_0x583203(0x399)](_0x142c5a,_0x3ac5b3,!0x1),_0x1d2f1a=this['_transformService'][_0x583203(0x399)](_0x9420a6,_0xfbec2a,!0x1);if(m['isTransformMutationFailure'](_0x1a4c04))throw _0x1a4c04[_0x583203(0x243)];if(m[_0x583203(0x1c3)](_0x1d2f1a))throw _0x1d2f1a[_0x583203(0x243)];_0x59382d['unshift'](_0x1a4c04['m2Prime'][_0x583203(0x222)]),_0x22188e[_0x583203(0x260)](_0x1d2f1a[_0x583203(0x3f4)][_0x583203(0x222)]),_0x142c5a=_0x1a4c04[_0x583203(0x29d)],_0x9420a6=_0x1d2f1a[_0x583203(0x29d)];}_0x38276b[_0x583203(0x325)]({'undoCache':_0x59382d,'redoCache':_0x22188e});}[_0x30c27a(0x16e)](_0x453307){const _0x3702ab=_0x30c27a,{unitID:_0x2dfb4e}=_0x453307,_0x52c099=this[_0x3702ab(0x37b)][_0x3702ab(0x287)](_0x2dfb4e)[_0x3702ab(0x392)](E[_0x3702ab(0x220)]),_0x32116d=_0x52c099['getActiveRange']();if(_0x32116d==null)return;const _0x3038b1=[{'id':_0x3702ab(0x212),'params':{'unitId':_0x453307[_0x3702ab(0x2a5)],'actions':null,'textRanges':[_0x32116d]}}],_0x2ed315=this[_0x3702ab(0x3fe)][_0x3702ab(0x365)](_0x453307,_0x3038b1);if(!m[_0x3702ab(0x3ac)](_0x2ed315))throw _0x2ed315[_0x3702ab(0x243)];const _0x48b00b=_0x2ed315[_0x3702ab(0x3f4)][0x0]['params'][_0x3702ab(0x382)];Array['isArray'](_0x48b00b)&&_0x48b00b[_0x3702ab(0x2ff)]&&_0x52c099[_0x3702ab(0x395)](_0x48b00b[0x0]);}};z=kt([ce(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),ce(0x1,m[_0x30c27a(0x341)]),ce(0x2,p[_0x30c27a(0x307)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x4a8143,_0x41c7ae,_0x51c066,_0x488326)=>{const _0x3d83c5=_0x30c27a;for(var _0x1424b0=_0x488326>0x1?void 0x0:_0x488326?Ft(_0x41c7ae,_0x51c066):_0x41c7ae,_0x302491=_0x4a8143[_0x3d83c5(0x2ff)]-0x1,_0x2560b4;_0x302491>=0x0;_0x302491--)(_0x2560b4=_0x4a8143[_0x302491])&&(_0x1424b0=_0x2560b4(_0x1424b0)||_0x1424b0);return _0x1424b0;},le=(_0x4a1978,_0x1ea768)=>(_0x348fba,_0x121066)=>_0x1ea768(_0x348fba,_0x121066,_0x4a1978);let J=class{constructor(_0x393d17,_0x2ee9fa,_0x1b9369){const _0x5dd8f7=_0x30c27a;this[_0x5dd8f7(0x236)]=_0x393d17,this[_0x5dd8f7(0x3fe)]=_0x2ee9fa,this[_0x5dd8f7(0x24f)]=_0x1b9369;}[_0x30c27a(0x2b6)](_0x32eeed){const _0x4b009f=_0x30c27a;this[_0x4b009f(0x17b)](_0x32eeed);}[_0x30c27a(0x3b6)](_0x4cfc4e){const _0x2e9fbf=_0x30c27a,{unitID:_0x5cab30}=_0x4cfc4e,{collaboration:_0x41ae1e}=this[_0x2e9fbf(0x24f)][_0x2e9fbf(0x226)](_0x5cab30);if(_0x41ae1e['length']===0x0)return _0x4cfc4e;let _0x438785=a['Tools'][_0x2e9fbf(0x274)](_0x4cfc4e['mutations'][0x0]);for(let _0x4233a1=0x0;_0x4233a1<_0x41ae1e[_0x2e9fbf(0x2ff)];_0x4233a1++){const _0x5cecb7={'id':_0x2e9fbf(0x212),'params':{'unitId':_0x41ae1e[_0x4233a1][_0x2e9fbf(0x2ed)],..._0x41ae1e[_0x4233a1]['redoState']}},_0x2db438=this[_0x2e9fbf(0x3fe)][_0x2e9fbf(0x399)](_0x438785,_0x5cecb7,!0x1);if(m['isTransformMutationFailure'](_0x2db438))throw _0x2db438[_0x2e9fbf(0x243)];_0x438785=_0x2db438[_0x2e9fbf(0x29d)];}return{...a[_0x2e9fbf(0x2ca)]['deepClone'](_0x4cfc4e),'mutations':[_0x438785]};}[_0x30c27a(0x17b)](_0xed7001){const _0x5a261d=_0x30c27a,{unitID:_0x149c45}=_0xed7001,{history:_0x386624,collaboration:_0x18825b}=this['_docStateChangeManagerService']['getStateCache'](_0x149c45);if(_0x386624[_0x5a261d(0x2ff)]===0x0&&_0x18825b[_0x5a261d(0x2ff)]===0x0)return;const _0x35d2f0=[],_0x1af1a6=[];let _0x50653b=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]),_0x2e3e84=a[_0x5a261d(0x2ca)]['deepClone'](_0xed7001[_0x5a261d(0x269)][0x0]);for(let _0x4cca0d=_0x386624[_0x5a261d(0x2ff)]-0x1;_0x4cca0d>=0x0;_0x4cca0d--){const _0x350602={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x386624[_0x4cca0d]['unitId'],..._0x386624[_0x4cca0d][_0x5a261d(0x1ac)]}},_0x328c2a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x386624[_0x4cca0d][_0x5a261d(0x2ed)],..._0x386624[_0x4cca0d][_0x5a261d(0x315)]}},_0x18b1ed=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x50653b,_0x350602,!0x1),_0x2514d8=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x2e3e84,_0x328c2a,!0x1);if(m[_0x5a261d(0x1c3)](_0x18b1ed))throw _0x18b1ed[_0x5a261d(0x243)];if(m['isTransformMutationFailure'](_0x2514d8))throw _0x2514d8[_0x5a261d(0x243)];_0x35d2f0[_0x5a261d(0x260)]({..._0x386624[_0x4cca0d],'undoState':_0x18b1ed[_0x5a261d(0x3f4)]['params'],'redoState':_0x2514d8['m2Prime'][_0x5a261d(0x222)]}),_0x50653b=_0x18b1ed[_0x5a261d(0x29d)],_0x2e3e84=_0x2514d8[_0x5a261d(0x29d)];}_0x50653b=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]),_0x2e3e84=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]);for(let _0x598ce3=_0x18825b[_0x5a261d(0x2ff)]-0x1;_0x598ce3>=0x0;_0x598ce3--){const _0x51f876={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18825b[_0x598ce3][_0x5a261d(0x2ed)],..._0x18825b[_0x598ce3][_0x5a261d(0x1ac)]}},_0x4ee016={'id':_0x5a261d(0x212),'params':{'unitId':_0x18825b[_0x598ce3][_0x5a261d(0x2ed)],..._0x18825b[_0x598ce3]['redoState']}},_0x9d230=this[_0x5a261d(0x3fe)]['transformMutation'](_0x50653b,_0x51f876,!0x1),_0x3066f3=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x2e3e84,_0x4ee016,!0x1);if(m['isTransformMutationFailure'](_0x9d230))throw _0x9d230[_0x5a261d(0x243)];if(m[_0x5a261d(0x1c3)](_0x3066f3))throw _0x3066f3['error'];_0x1af1a6['unshift']({..._0x18825b[_0x598ce3],'undoState':_0x9d230[_0x5a261d(0x3f4)][_0x5a261d(0x222)],'redoState':_0x3066f3[_0x5a261d(0x3f4)][_0x5a261d(0x222)]}),_0x50653b=_0x9d230[_0x5a261d(0x29d)],_0x2e3e84=_0x3066f3[_0x5a261d(0x29d)];}this[_0x5a261d(0x24f)][_0x5a261d(0x3e9)](_0x149c45,{'history':_0x35d2f0,'collaboration':_0x1af1a6});}};J=Ht([le(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),le(0x1,m[_0x30c27a(0x341)]),le(0x2,a['Inject'](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x30c27a(0x329)],Wt=(_0x168d70,_0x574458,_0x355db2,_0x4cd4ab)=>{for(var _0x1906f4=_0x4cd4ab>0x1?void 0x0:_0x4cd4ab?Yt(_0x574458,_0x355db2):_0x574458,_0x159532=_0x168d70['length']-0x1,_0x1609c3;_0x159532>=0x0;_0x159532--)(_0x1609c3=_0x168d70[_0x159532])&&(_0x1906f4=_0x1609c3(_0x1906f4)||_0x1906f4);return _0x1906f4;},Ne=(_0x1054eb,_0x5e6c3b)=>(_0x343eea,_0x11634c)=>_0x5e6c3b(_0x343eea,_0x11634c,_0x1054eb);let Z=class{constructor(_0x505015,_0x4ba11e){const _0x4d6eaf=_0x30c27a;this[_0x4d6eaf(0x236)]=_0x505015,this[_0x4d6eaf(0x3fe)]=_0x4ba11e;}['transformSelections'](_0x107f91){const _0x212cab=_0x30c27a;var _0x21fb94;const _0x4408e5=this[_0x212cab(0x236)][_0x212cab(0x235)](Y[_0x212cab(0x2e8)]),_0x59ea37=(_0x21fb94=_0x4408e5[_0x212cab(0x3f1)]())!=null?_0x21fb94:[];if(_0x59ea37[_0x212cab(0x2ff)]===0x0)return;const _0x172f65=_0x107f91[_0x212cab(0x2a5)],_0x2074a7=[{'id':_0x212cab(0x212),'params':{'unitId':_0x172f65,'actions':null,'textRanges':_0x59ea37}}],_0x339fd3=this[_0x212cab(0x3fe)][_0x212cab(0x365)](_0x107f91,_0x2074a7);if(!m['isTransformMutationsWithChangesetSuccess'](_0x339fd3))throw _0x339fd3['error'];const _0x99a394=_0x339fd3['m2Prime'][0x0][_0x212cab(0x222)][_0x212cab(0x382)];Array[_0x212cab(0x2d5)](_0x99a394)&&_0x99a394[_0x212cab(0x2ff)]&&_0x4408e5['replaceDocRanges'](_0x99a394,{'unitId':_0x172f65,'subUnitId':_0x172f65},!0x1);}};Z=Wt([Ne(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),Ne(0x1,m[_0x30c27a(0x341)])],Z);var Vt=Object[_0x30c27a(0x329)],Xt=(_0x296c91,_0x329236,_0x3c65cf,_0xfa8985)=>{const _0x4ac1ad=_0x30c27a;for(var _0x32ab90=_0xfa8985>0x1?void 0x0:_0xfa8985?Vt(_0x329236,_0x3c65cf):_0x329236,_0x48b359=_0x296c91[_0x4ac1ad(0x2ff)]-0x1,_0x4ef5cf;_0x48b359>=0x0;_0x48b359--)(_0x4ef5cf=_0x296c91[_0x48b359])&&(_0x32ab90=_0x4ef5cf(_0x32ab90)||_0x32ab90);return _0x32ab90;},N=(_0x228ab0,_0x5e9c9c)=>(_0x2fea0,_0x2e2e9a)=>_0x5e9c9c(_0x2fea0,_0x2e2e9a,_0x228ab0);let Q=class extends a[_0x30c27a(0x27d)]{constructor(_0x4e8c94,_0x4ea2ef,_0x4d16f8,_0x4e5fb9,_0x3f41d0,_0x179046,_0x40a82c,_0x2d2d9b){const _0x370518=_0x30c27a;super(),h(this,_0x370518(0x2ab),new d[(_0x370518(0x299))](u[_0x370518(0x1e9)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x4e8c94,this['_collaborationController']=_0x4ea2ef,this[_0x370518(0x181)]=_0x4d16f8,this[_0x370518(0x391)]=_0x4e5fb9,this['_docTransformSelectionsService']=_0x3f41d0,this[_0x370518(0x39a)]=_0x179046,this['_messageService']=_0x40a82c,this[_0x370518(0x270)]=_0x2d2d9b,this['_initEntityListener']());}[_0x30c27a(0x284)](){const _0xddc989=_0x30c27a;this[_0xddc989(0x20b)](this[_0xddc989(0x1b9)][_0xddc989(0x318)][_0xddc989(0x258)](_0x223f9d=>{const _0x3591b7=_0xddc989,_0x5996ec=this['_docStateChangeManagerService']['docStateChange$'][_0x3591b7(0x258)](_0x4ebdab=>{const _0x2f3ee3=_0x3591b7;if(_0x4ebdab==null)return;const {unitId:_0x558f45,redoState:_0x3e5ffa,commandId:_0xe5be61}=_0x4ebdab;if(_0x558f45!==_0x223f9d['unitID'])return;const _0x5c9559={'id':_0xe5be61,'type':a[_0x2f3ee3(0x26e)][_0x2f3ee3(0x3cd)],'params':{'unitId':_0x558f45,'actions':_0x3e5ffa[_0x2f3ee3(0x366)],'textRanges':null}};_0x223f9d[_0x2f3ee3(0x3c8)](_0x5c9559);});if(_0x223f9d[_0x3591b7(0x20b)](_0x5996ec),_0x223f9d instanceof u[_0x3591b7(0x1c8)]){const _0xffafa9={'onTransformIME':_0xa7d108=>this[_0x3591b7(0x181)]['transformIMECache'](_0xa7d108),'onTransformState':_0xdb24ed=>this[_0x3591b7(0x391)][_0x3591b7(0x2b6)](_0xdb24ed),'onTransformSelections':_0x1249b6=>this[_0x3591b7(0x3eb)]['transformSelections'](_0x1249b6),'onSyncEditingCollabCursor':_0x2b5e75=>this['_docSyncEditingCollabCursorService'][_0x3591b7(0x204)](_0x2b5e75),'onTransformRemoteChangesetByIMECache':_0x4d9ec1=>this[_0x3591b7(0x181)]['transformRemoteChangeset'](_0x4d9ec1),'onTransformRemoteChangesetByStateCache':_0x9645cb=>this[_0x3591b7(0x391)][_0x3591b7(0x3b6)](_0x9645cb)};_0x223f9d[_0x3591b7(0x3e2)](_0xffafa9);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x30c27a(0x3ab)])),N(0x1,a[_0x30c27a(0x34b)](u['CollaborationController'])),N(0x2,a[_0x30c27a(0x34b)](z)),N(0x3,a[_0x30c27a(0x34b)](J)),N(0x4,a[_0x30c27a(0x34b)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x30c27a(0x213)]))],Q);function _0x2320(_0x117683,_0x40b712){const _0x3f1352=_0x3f13();return _0x2320=function(_0x23200e,_0x4f1a04){_0x23200e=_0x23200e-0x16c;let _0x344daa=_0x3f1352[_0x23200e];return _0x344daa;},_0x2320(_0x117683,_0x40b712);}var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x19e10b,_0x34ad0d,_0x460f05,_0x3c3bb8)=>{const _0x46ed96=_0x30c27a;for(var _0x51b5b0=_0x3c3bb8>0x1?void 0x0:_0x3c3bb8?Gt(_0x34ad0d,_0x460f05):_0x34ad0d,_0x4bd166=_0x19e10b[_0x46ed96(0x2ff)]-0x1,_0x259ba7;_0x4bd166>=0x0;_0x4bd166--)(_0x259ba7=_0x19e10b[_0x4bd166])&&(_0x51b5b0=_0x259ba7(_0x51b5b0)||_0x51b5b0);return _0x51b5b0;},_e=(_0x58b0f3,_0x575842)=>(_0x1491a8,_0x3535a4)=>_0x575842(_0x1491a8,_0x3535a4,_0x58b0f3);let ge=class extends a[_0x30c27a(0x27d)]{constructor(_0x5b3505,_0x17153f,_0x4911a9){const _0x36a1d1=_0x30c27a;super(),h(this,'_cachedData',new Map()),h(this,_0x36a1d1(0x1e0),new Map()),h(this,_0x36a1d1(0x31f),!0x1),(this[_0x36a1d1(0x178)]=_0x5b3505,this['_localStorageService']=_0x17153f,this[_0x36a1d1(0x205)]=_0x4911a9);}[_0x30c27a(0x1c2)](){const _0x5af95e=_0x30c27a;this[_0x5af95e(0x31f)]=!0x0;}[_0x30c27a(0x25a)](){const _0x27220a=_0x30c27a;this[_0x27220a(0x31f)]=!0x1;}get[_0x30c27a(0x174)](){const _0x498e00=_0x30c27a;return this[_0x498e00(0x1e0)];}['dispose'](){const _0x343e5a=_0x30c27a;this['exhaustSavingTask']()[_0x343e5a(0x3db)](()=>super['dispose']());}async['loadOfflineData'](_0x2e64c9){const _0x261208=_0x30c27a;return this[_0x261208(0x31f)]?null:this['_localStorageService']['getItem'](u[_0x261208(0x34c)](_0x2e64c9));}async[_0x30c27a(0x23b)](_0x57a181,_0x5d4671){const _0x435ff2=_0x30c27a;return!!this[_0x435ff2(0x177)][_0x435ff2(0x35d)](_0x57a181,_0x5d4671);}[_0x30c27a(0x3a3)](_0x1b8462,_0x5d4bb8,_0x47cbe0,_0x3f7fc3){const _0x4638ec=_0x30c27a,_0xad3556=this['_revisionService'][_0x4638ec(0x2bc)](_0x1b8462);this[_0x4638ec(0x383)][_0x4638ec(0x2f3)](_0x1b8462,{'unitID':_0x1b8462,'type':_0x5d4bb8,'awaitingChangeset':_0x47cbe0,'mutations':_0x3f7fc3,'rev':_0xad3556}),this[_0x4638ec(0x1e0)][_0x4638ec(0x29e)](_0x1b8462)||this[_0x4638ec(0x241)](_0x1b8462);}[_0x30c27a(0x241)](_0x20c2cd){const _0x130731=_0x30c27a,_0x313318=this['_getSaveTimeout']();_0x313318===0x0?this[_0x130731(0x2b9)](_0x20c2cd):this[_0x130731(0x1e0)]['set'](_0x20c2cd,setTimeout(()=>this['_saveCache'](_0x20c2cd),_0x313318));}[_0x30c27a(0x276)](){const _0x91d210=_0x30c27a;var _0x4ac611;return(_0x4ac611=this['_configService'][_0x91d210(0x3ef)](u[_0x91d210(0x1bb)]))!=null?_0x4ac611:u[_0x91d210(0x36e)];}[_0x30c27a(0x2b9)](_0x27404e){const _0x55e3b6=_0x30c27a,_0x5b9ed3=this['_saveTaskMap'][_0x55e3b6(0x235)](_0x27404e);return _0x5b9ed3!==void 0x0&&window[_0x55e3b6(0x3d9)](_0x5b9ed3),this['_localStorageService']['setItem'](u[_0x55e3b6(0x34c)](_0x27404e),this['_cachedData'][_0x55e3b6(0x235)](_0x27404e))['then'](()=>this[_0x55e3b6(0x1e0)]['delete'](_0x27404e));}async['exhaustSavingTask'](){const _0x8d667b=_0x30c27a,_0x38046b=[];this[_0x8d667b(0x1e0)][_0x8d667b(0x232)]((_0x93b406,_0x42934a)=>{const _0x1cf5cb=_0x8d667b;window[_0x1cf5cb(0x3d9)](_0x93b406),_0x38046b[_0x1cf5cb(0x1b8)](this[_0x1cf5cb(0x2b9)](_0x42934a)[_0x1cf5cb(0x3db)](()=>{const _0x4e6258=_0x1cf5cb;this[_0x4e6258(0x1e0)][_0x4e6258(0x33a)](_0x42934a);}));}),await Promise[_0x8d667b(0x26f)](_0x38046b);}};ge=Kt([_e(0x0,a[_0x30c27a(0x22e)]),_e(0x1,a[_0x30c27a(0x1d9)]),_e(0x2,a[_0x30c27a(0x34b)](m['RevisionService']))],ge);class Be extends a[_0x30c27a(0x2fa)]{constructor(){const _0x44d6fb=_0x30c27a;super(),h(this,_0x44d6fb(0x21d)),this['urlChange$']=d[_0x44d6fb(0x1ec)](window,_0x44d6fb(0x35c))[_0x44d6fb(0x180)](d[_0x44d6fb(0x23f)](this[_0x44d6fb(0x320)]),d[_0x44d6fb(0x1ff)](0x1),d[_0x44d6fb(0x38b)](void 0x0));}[_0x30c27a(0x3a2)](_0x4aa6d5,_0x4df8e7,_0x3767f0=!0x1){const _0x4681df=_0x30c27a,_0x459246=new URL(window[_0x4681df(0x233)][_0x4681df(0x373)]);_0x459246[_0x4681df(0x1e6)]['set'](_0x4aa6d5,_0x4df8e7),_0x3767f0?window[_0x4681df(0x3ae)][_0x4681df(0x294)]('','',_0x459246['toString']()):window[_0x4681df(0x3ae)][_0x4681df(0x1b2)]('','',_0x459246[_0x4681df(0x290)]());}[_0x30c27a(0x280)](_0x5a00b7,_0x6d061b=!0x1){const _0x40470e=_0x30c27a,_0x396a2e=new URL(window[_0x40470e(0x233)][_0x40470e(0x373)]);_0x396a2e[_0x40470e(0x1e6)][_0x40470e(0x33a)](_0x5a00b7),_0x6d061b?window['history'][_0x40470e(0x294)]('','',_0x396a2e[_0x40470e(0x290)]()):window[_0x40470e(0x3ae)][_0x40470e(0x1b2)]('','',_0x396a2e[_0x40470e(0x290)]());}[_0x30c27a(0x31a)](_0x42cbec){const _0x2280ae=_0x30c27a;var _0x25d258;return(_0x25d258=new URL(window['location']['href'])['searchParams'][_0x2280ae(0x235)](_0x42cbec))!=null?_0x25d258:void 0x0;}}var qt=Object[_0x30c27a(0x1b4)],zt=Object[_0x30c27a(0x329)],Jt=(_0xb4c9bf,_0x1bac7e,_0x26bab7)=>_0x1bac7e in _0xb4c9bf?qt(_0xb4c9bf,_0x1bac7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26bab7}):_0xb4c9bf[_0x1bac7e]=_0x26bab7,Zt=(_0x47ac5e,_0x16cf86,_0x268c07,_0x1df82e)=>{const _0x31b26c=_0x30c27a;for(var _0x5d43e9=_0x1df82e>0x1?void 0x0:_0x1df82e?zt(_0x16cf86,_0x268c07):_0x16cf86,_0x99d5dc=_0x47ac5e[_0x31b26c(0x2ff)]-0x1,_0x236425;_0x99d5dc>=0x0;_0x99d5dc--)(_0x236425=_0x47ac5e[_0x99d5dc])&&(_0x5d43e9=_0x236425(_0x5d43e9)||_0x5d43e9);return _0x5d43e9;},he=(_0x1ffa1f,_0x5f5567)=>(_0x4ba7c1,_0x2c2093)=>_0x5f5567(_0x4ba7c1,_0x2c2093,_0x1ffa1f),Qt=(_0x218af2,_0x133bbf,_0x4ca6ad)=>Jt(_0x218af2,_0x133bbf+'',_0x4ca6ad);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x30c27a(0x1e3)]=class extends a[_0x30c27a(0x2a2)]{constructor(_0x18f200=Ue,_0x1be29e,_0x1aaa6f,_0x1dcff6){const _0x12e84d=_0x30c27a;super(),this['_config']=_0x18f200,this[_0x12e84d(0x37b)]=_0x1be29e,this[_0x12e84d(0x236)]=_0x1aaa6f,this[_0x12e84d(0x178)]=_0x1dcff6;const {..._0x4134f3}=a[_0x12e84d(0x2bb)]({},Ue,this[_0x12e84d(0x207)]);this[_0x12e84d(0x178)][_0x12e84d(0x32b)]($t,_0x4134f3);}[_0x30c27a(0x2b4)](){const _0x2d5659=_0x30c27a;this[_0x2d5659(0x3a4)](),this['_initDependencies']();}[_0x30c27a(0x35b)](){const _0x224470=_0x30c27a;this[_0x224470(0x354)]();}['_registerDependencies'](){const _0x341d7b=_0x30c27a;var _0x596b3f;const _0x4de388=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x341d7b(0x1a7)],{'useClass':G['WebSocketService']}],[u[_0x341d7b(0x254)],{'useClass':ge}],[exports[_0x341d7b(0x3ea)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x341d7b(0x3ec)](this[_0x341d7b(0x236)],a[_0x341d7b(0x192)](_0x4de388,(_0x596b3f=this[_0x341d7b(0x207)])==null?void 0x0:_0x596b3f['override']));}['_registerRenderDependencies'](){const _0xad452a=_0x30c27a;this[_0xad452a(0x20b)](this[_0xad452a(0x37b)][_0xad452a(0x188)](a[_0xad452a(0x38f)][_0xad452a(0x394)],[fe])),this[_0xad452a(0x20b)](this[_0xad452a(0x37b)]['registerRenderModule'](a[_0xad452a(0x38f)][_0xad452a(0x3d2)],[ve]));}[_0x30c27a(0x3c9)](){const _0x215466=_0x30c27a;a[_0x215466(0x369)](this[_0x215466(0x236)],[[x],[exports[_0x215466(0x3ea)]],[Q],[q],[exports[_0x215466(0x266)]]]);}},Qt(exports[_0x30c27a(0x1e3)],_0x30c27a(0x30d),es),exports[_0x30c27a(0x1e3)]=Zt([a[_0x30c27a(0x16d)](u[_0x30c27a(0x32f)]),he(0x1,p[_0x30c27a(0x307)]),he(0x2,a[_0x30c27a(0x34b)](a['Injector'])),he(0x3,a[_0x30c27a(0x22e)])],exports[_0x30c27a(0x1e3)]);var ts=Object[_0x30c27a(0x329)],ss=(_0x4e2033,_0x1757ef,_0x216bac,_0x289f7d)=>{for(var _0x2f5cdd=_0x289f7d>0x1?void 0x0:_0x289f7d?ts(_0x1757ef,_0x216bac):_0x1757ef,_0x4843d2=_0x4e2033['length']-0x1,_0x595ffb;_0x4843d2>=0x0;_0x4843d2--)(_0x595ffb=_0x4e2033[_0x4843d2])&&(_0x2f5cdd=_0x595ffb(_0x2f5cdd)||_0x2f5cdd);return _0x2f5cdd;},H=(_0x12944e,_0x1048cc)=>(_0x5d33b7,_0x4a9d4d)=>_0x1048cc(_0x5d33b7,_0x4a9d4d,_0x12944e);exports['BrowserCollaborationSocketService']=class extends u[_0x30c27a(0x330)]{constructor(_0x5a203c,_0x47e5d9,_0x9ac870,_0x16d5e1,_0x7f511){super(_0x5a203c,_0x47e5d9,_0x9ac870,_0x16d5e1,_0x7f511);}async[_0x30c27a(0x1d7)](_0x2c0aca){const _0x18364e=_0x30c27a,_0xf09d6e=await this[_0x18364e(0x26c)](),_0x3474d5=this[_0x18364e(0x171)](_0x2c0aca,_0xf09d6e);return this[_0x18364e(0x28b)](_0x3474d5);}[_0x30c27a(0x171)](_0x35375f,_0x498e6e){const _0x38743d=_0x30c27a,_0x428e3e=typeof window>'u'?new URL(_0x35375f):new URL(_0x35375f,window[_0x38743d(0x233)][_0x38743d(0x20c)]);_0x428e3e['searchParams'][_0x38743d(0x2f3)](_0x38743d(0x1a4),_0x498e6e);const _0x28d84d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x38743d(0x233)][_0x38743d(0x362)]);return _0x28d84d[_0x38743d(0x235)](_0x38743d(0x376))&&_0x428e3e[_0x38743d(0x1e6)][_0x38743d(0x2f3)](_0x38743d(0x376),_0x28d84d[_0x38743d(0x235)](_0x38743d(0x376))),_0x428e3e[_0x38743d(0x290)]();}async[_0x30c27a(0x26c)](){const _0x3f1b77=_0x30c27a;var _0x12a00c,_0x2f49c6,_0x329cf5;const _0x59f62c=this[_0x3f1b77(0x178)]['getConfig'](u[_0x3f1b77(0x3fc)]),_0x41c66e=(_0x12a00c=_0x59f62c==null?void 0x0:_0x59f62c[_0x3f1b77(0x22d)])!=null?_0x12a00c:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x329cf5=(_0x2f49c6=(await this[_0x3f1b77(0x252)][_0x3f1b77(0x235)](_0x41c66e,{'headers':{'Content-Type':_0x3f1b77(0x309)}}))[_0x3f1b77(0x308)])==null?void 0x0:_0x2f49c6[_0x3f1b77(0x1a1)])!=null?_0x329cf5:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a['Inject'](a[_0x30c27a(0x248)])),H(0x1,a[_0x30c27a(0x34b)](G[_0x30c27a(0x2ae)])),H(0x2,a[_0x30c27a(0x22e)]),H(0x3,a['ILogService']),H(0x4,m[_0x30c27a(0x2c0)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x30c27a(0x1af);class is extends a[_0x30c27a(0x27d)]{constructor(){const _0x80fa2f=_0x30c27a;super(),h(this,_0x80fa2f(0x19f),a[_0x80fa2f(0x264)]()),h(this,_0x80fa2f(0x1f4),new Set()),h(this,_0x80fa2f(0x326),new Map()),h(this,_0x80fa2f(0x2eb),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x80fa2f(0x197),new Map()),this[_0x80fa2f(0x271)]();}[_0x30c27a(0x196)](){const _0x5d71e2=_0x30c27a;super[_0x5d71e2(0x196)](),this[_0x5d71e2(0x358)][_0x5d71e2(0x232)]((_0xeada82,_0x1ce5bf)=>this[_0x5d71e2(0x38d)](_0x1ce5bf)),this[_0x5d71e2(0x2eb)]&&window[_0x5d71e2(0x3d3)](this['_heartbeatTimer']);}[_0x30c27a(0x3bf)](_0x49df1c){const _0x176341=_0x30c27a;return this['_ensureSubject'](_0x49df1c)[_0x176341(0x180)](d[_0x176341(0x249)]());}[_0x30c27a(0x195)](_0x2fa11b){const _0x540095=_0x30c27a;this[_0x540095(0x1f4)][_0x540095(0x2a9)]===0x0&&this[_0x540095(0x237)](),this[_0x540095(0x1f4)][_0x540095(0x20f)](_0x2fa11b),this[_0x540095(0x3d1)]({'type':0x0,'memberID':this[_0x540095(0x19f)],'unitIDs':[_0x2fa11b],'isForwarded':!0x1});}[_0x30c27a(0x306)](_0x1f90ae){const _0x143e32=_0x30c27a;this[_0x143e32(0x1f4)][_0x143e32(0x33a)](_0x1f90ae),this[_0x143e32(0x1f4)][_0x143e32(0x2a9)]===0x0&&this[_0x143e32(0x2eb)]&&window[_0x143e32(0x3d3)](this['_heartbeatTimer']);}[_0x30c27a(0x271)](){const _0x57d713=_0x30c27a;this[_0x57d713(0x20b)](a[_0x57d713(0x19d)](d[_0x57d713(0x1ec)](window,'storage')[_0x57d713(0x258)](_0x47d37a=>{const _0x2f1577=_0x57d713;if(_0x47d37a[_0x2f1577(0x360)]!==Le||!_0x47d37a[_0x2f1577(0x1a0)])return;const _0x15b7ae=JSON['parse'](_0x47d37a[_0x2f1577(0x1a0)]);this['_handleEvent'](_0x15b7ae);}))),window['addEventListener'](_0x57d713(0x3b7),()=>this[_0x57d713(0x3d1)]({'type':0x1,'memberID':this[_0x57d713(0x19f)],'unitIDs':Array[_0x57d713(0x1fb)](this[_0x57d713(0x1f4)])}));}[_0x30c27a(0x324)](_0x57d468){const _0x350a05=_0x30c27a;switch(_0x57d468[_0x350a05(0x31b)]){case 0x0:this['_handleJoinEvent'](_0x57d468);break;case 0x1:this[_0x350a05(0x206)](_0x57d468);break;case 0x2:this[_0x350a05(0x3e8)](_0x57d468);break;}}['_handleJoinEvent'](_0x1ca726){const _0x1a116d=_0x30c27a,{unitIDs:_0x13d13f,memberID:_0x26aeed,isForwarded:_0x36ef6c}=_0x1ca726;_0x13d13f[_0x1a116d(0x232)](_0x2cffb2=>{const _0x2e8222=_0x1a116d;if(!_0x36ef6c&&this[_0x2e8222(0x326)][_0x2e8222(0x29e)](_0x2cffb2)&&this[_0x2e8222(0x3d8)](_0x2cffb2)['next'](u[_0x2e8222(0x2ad)]['OTHER_CLIENTS_EDITING']),!this[_0x2e8222(0x326)][_0x2e8222(0x29e)](_0x2cffb2)||!this['_unitOnClients']['get'](_0x2cffb2)[_0x2e8222(0x29e)](_0x26aeed)){const _0x1ae4b7=this[_0x2e8222(0x326)][_0x2e8222(0x235)](_0x2cffb2)||new Set();_0x1ae4b7[_0x2e8222(0x20f)](_0x26aeed),this[_0x2e8222(0x326)][_0x2e8222(0x2f3)](_0x2cffb2,_0x1ae4b7),this[_0x2e8222(0x2c4)](_0x26aeed);}}),_0x36ef6c||this[_0x1a116d(0x3d1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x30c27a(0x2c4)](_0x5a3ce6){const _0x134856=_0x30c27a;this[_0x134856(0x38d)](_0x5a3ce6);const _0x4cf2dc=window[_0x134856(0x1a9)](()=>{const _0x54499d=_0x134856;this['_unitOnClients'][_0x54499d(0x232)](_0x5d746f=>{_0x5d746f['delete'](_0x5a3ce6);});},Me*0x2);this['_clearOtherTimers'][_0x134856(0x2f3)](_0x5a3ce6,_0x4cf2dc);}[_0x30c27a(0x38d)](_0x4c442d){const _0x121cde=_0x30c27a;if(this[_0x121cde(0x358)][_0x121cde(0x29e)](_0x4c442d)){const _0x46b2ac=this[_0x121cde(0x358)][_0x121cde(0x235)](_0x4c442d);_0x46b2ac&&window[_0x121cde(0x3d9)](_0x46b2ac),this[_0x121cde(0x358)]['set'](_0x4c442d,null);}}[_0x30c27a(0x206)](_0x211153){const _0x23627d=_0x30c27a,{memberID:_0xf468ad,unitIDs:_0x5d569c}=_0x211153;_0x5d569c['forEach'](_0x103793=>{const _0x574464=_0x2320;var _0x277784;const _0xf2edb9=this[_0x574464(0x326)]['get'](_0x103793);_0xf2edb9&&(_0xf2edb9[_0x574464(0x33a)](_0xf468ad),(_0x277784=this[_0x574464(0x3d8)](_0x103793))==null||_0x277784[_0x574464(0x2d2)](_0xf2edb9[_0x574464(0x2a9)]===0x0?u[_0x574464(0x2ad)][_0x574464(0x285)]:u[_0x574464(0x2ad)][_0x574464(0x298)]));}),this[_0x23627d(0x38d)](_0xf468ad);}[_0x30c27a(0x3e8)](_0x27ec46){const _0x4f08c7=_0x30c27a;this[_0x4f08c7(0x2c4)](_0x27ec46[_0x4f08c7(0x191)]);}[_0x30c27a(0x3d1)](_0x25fc2f){const _0x208a92=_0x30c27a;localStorage[_0x208a92(0x35d)](Le,JSON[_0x208a92(0x1bf)](_0x25fc2f));}[_0x30c27a(0x237)](){const _0x1090fb=_0x30c27a;this[_0x1090fb(0x2eb)]=window['setInterval'](()=>{const _0x28299f=_0x1090fb;this['_send']({'type':0x2,'memberID':this[_0x28299f(0x19f)]});},Me);}['_ensureSubject'](_0x468e73){const _0x5ba413=_0x30c27a;return this[_0x5ba413(0x197)][_0x5ba413(0x29e)](_0x468e73)||this[_0x5ba413(0x197)][_0x5ba413(0x2f3)](_0x468e73,new d[(_0x5ba413(0x299))](u[_0x5ba413(0x2ad)][_0x5ba413(0x285)])),this[_0x5ba413(0x197)]['get'](_0x468e73);}}var je=(_0x2316fd=>(_0x2316fd[_0x2316fd['UNDEFINED']=0x0]=_0x30c27a(0x22b),_0x2316fd[_0x2316fd['OK']=0x1]='OK',_0x2316fd[_0x2316fd[_0x30c27a(0x3cb)]=0x2]=_0x30c27a(0x3cb),_0x2316fd[_0x2316fd[_0x30c27a(0x203)]=0x3]=_0x30c27a(0x203),_0x2316fd[_0x2316fd[_0x30c27a(0x301)]=0x4]=_0x30c27a(0x301),_0x2316fd[_0x2316fd[_0x30c27a(0x231)]=0x5]=_0x30c27a(0x231),_0x2316fd[_0x2316fd[_0x30c27a(0x296)]=0x6]='ALREADY_EXISTS',_0x2316fd[_0x2316fd[_0x30c27a(0x3bd)]=0x7]=_0x30c27a(0x3bd),_0x2316fd[_0x2316fd[_0x30c27a(0x398)]=0x8]='TOO_MANY_REQUESTS',_0x2316fd[_0x2316fd[_0x30c27a(0x22c)]=0x9]=_0x30c27a(0x22c),_0x2316fd[_0x2316fd[_0x30c27a(0x1dc)]=0xa]=_0x30c27a(0x1dc),_0x2316fd[_0x2316fd[_0x30c27a(0x210)]=0xb]=_0x30c27a(0x210),_0x2316fd[_0x2316fd[_0x30c27a(0x33f)]=0xc]=_0x30c27a(0x33f),_0x2316fd[_0x2316fd[_0x30c27a(0x2fb)]=0xd]=_0x30c27a(0x2fb),_0x2316fd[_0x2316fd[_0x30c27a(0x2af)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2316fd[_0x2316fd[_0x30c27a(0x3e1)]=0x1389]=_0x30c27a(0x3e1),_0x2316fd[_0x2316fd[_0x30c27a(0x282)]=0x1771]=_0x30c27a(0x282),_0x2316fd[_0x2316fd['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2316fd[_0x2316fd[_0x30c27a(0x1aa)]=0x1773]=_0x30c27a(0x1aa),_0x2316fd[_0x2316fd['APPLY_REJECT']=0x1b59]=_0x30c27a(0x32e),_0x2316fd[_0x2316fd[_0x30c27a(0x24c)]=0x1b5a]=_0x30c27a(0x24c),_0x2316fd[_0x2316fd['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30c27a(0x327),_0x2316fd[_0x2316fd[_0x30c27a(0x187)]=0x1b5c]=_0x30c27a(0x187),_0x2316fd[_0x2316fd[_0x30c27a(0x1a8)]=0x1b5d]=_0x30c27a(0x1a8),_0x2316fd[_0x2316fd[_0x30c27a(0x24a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2316fd[_0x2316fd[_0x30c27a(0x3b4)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2316fd[_0x2316fd[_0x30c27a(0x340)]=0x232a]=_0x30c27a(0x340),_0x2316fd[_0x2316fd['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2316fd[_0x2316fd[_0x30c27a(0x2f4)]=0x232c]=_0x30c27a(0x2f4),_0x2316fd[_0x2316fd[_0x30c27a(0x2ef)]=0x232d]=_0x30c27a(0x2ef),_0x2316fd[_0x2316fd[_0x30c27a(0x3e4)]=0x2711]=_0x30c27a(0x3e4),_0x2316fd[_0x2316fd[_0x30c27a(0x36c)]=0x2712]=_0x30c27a(0x36c),_0x2316fd[_0x2316fd[_0x30c27a(0x268)]=0x2713]=_0x30c27a(0x268),_0x2316fd[_0x2316fd[_0x30c27a(0x3fb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2316fd[_0x2316fd[_0x30c27a(0x2df)]=0x271a]=_0x30c27a(0x2df),_0x2316fd[_0x2316fd['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x30c27a(0x3de),_0x2316fd[_0x2316fd[_0x30c27a(0x25b)]=0x271c]=_0x30c27a(0x25b),_0x2316fd[_0x2316fd[_0x30c27a(0x21a)]=0x271d]=_0x30c27a(0x21a),_0x2316fd[_0x2316fd[_0x30c27a(0x3c3)]=0x271e]=_0x30c27a(0x3c3),_0x2316fd[_0x2316fd[_0x30c27a(0x2d8)]=0x271f]=_0x30c27a(0x2d8),_0x2316fd[_0x2316fd[_0x30c27a(0x17a)]=0x2720]=_0x30c27a(0x17a),_0x2316fd[_0x2316fd[_0x30c27a(0x2c2)]=0x2af9]=_0x30c27a(0x2c2),_0x2316fd[_0x2316fd[_0x30c27a(0x359)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2316fd[_0x2316fd[_0x30c27a(0x1c6)]=0x2ee2]='INVALID_INVITE_CODE',_0x2316fd[_0x2316fd[_0x30c27a(0x3ca)]=0x2ee3]=_0x30c27a(0x3ca),_0x2316fd[_0x2316fd[_0x30c27a(0x344)]=0x2ee4]=_0x30c27a(0x344),_0x2316fd[_0x2316fd[_0x30c27a(0x229)]=0x2ee5]=_0x30c27a(0x229),_0x2316fd[_0x2316fd[_0x30c27a(0x239)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2316fd[_0x2316fd[_0x30c27a(0x23c)]=0x32ca]=_0x30c27a(0x23c),_0x2316fd[_0x2316fd[_0x30c27a(0x18a)]=0x32cb]=_0x30c27a(0x18a),_0x2316fd[_0x2316fd[_0x30c27a(0x346)]=-0x1]='UNRECOGNIZED',_0x2316fd))(je||{}),ns=Object[_0x30c27a(0x329)],rs=(_0x17e2a4,_0x4d5f10,_0x322355,_0x2765f5)=>{const _0x43a802=_0x30c27a;for(var _0x5327b0=_0x2765f5>0x1?void 0x0:_0x2765f5?ns(_0x4d5f10,_0x322355):_0x4d5f10,_0x2b0d16=_0x17e2a4[_0x43a802(0x2ff)]-0x1,_0x3f75a3;_0x2b0d16>=0x0;_0x2b0d16--)(_0x3f75a3=_0x17e2a4[_0x2b0d16])&&(_0x5327b0=_0x3f75a3(_0x5327b0)||_0x5327b0);return _0x5327b0;},ue=(_0x48061b,_0x5200bc)=>(_0x23732a,_0x11c3af)=>_0x5200bc(_0x23732a,_0x11c3af,_0x48061b);exports[_0x30c27a(0x377)]=class extends a[_0x30c27a(0x27d)]{constructor(_0x547763,_0x40e530,_0x23a603){const _0x3d1bc8=_0x30c27a;super(),this[_0x3d1bc8(0x1ba)]=_0x547763,this['_httpService']=_0x40e530,this[_0x3d1bc8(0x178)]=_0x23a603;}async[_0x30c27a(0x2e2)](_0x38b8d8,_0x1abb7f,_0x3711a2,..._0xcc287b){const _0x4f53ed=_0x30c27a;var _0x57db3b,_0x2f2dfd,_0x23424d,_0x57ac7f;const _0x175691=this[_0x4f53ed(0x1ba)][_0x4f53ed(0x24e)]();if(!_0x175691)throw new Error(_0x4f53ed(0x18d));const _0x21aaf3=((_0x57db3b=this[_0x4f53ed(0x178)]['getConfig'](u[_0x4f53ed(0x2b2)]))!=null?_0x57db3b:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x38b8d8+_0x4f53ed(0x2e4)+_0x1abb7f,_0x3b58be=new URL(window[_0x4f53ed(0x233)][_0x4f53ed(0x373)]),_0x4dcc6d={'scriptId':_0x38b8d8,'runId':(_0x2f2dfd=_0x3b58be[_0x4f53ed(0x1e6)][_0x4f53ed(0x235)](_0x4f53ed(0x376)))!=null?_0x2f2dfd:'','function':_0x1abb7f,'unitId':_0x175691[_0x4f53ed(0x16f)](),'argsOfFunction':JSON[_0x4f53ed(0x1bf)](_0xcc287b),'invokeId':(_0x23424d=_0x3711a2[_0x4f53ed(0x201)])!=null?_0x23424d:'','executionId':(_0x57ac7f=_0x3711a2[_0x4f53ed(0x1f5)])!=null?_0x57ac7f:''};try{const _0x1fd334=await this[_0x4f53ed(0x252)]['post'](_0x21aaf3,{'body':_0x4dcc6d});return _0x1fd334[_0x4f53ed(0x308)]['error']&&_0x1fd334[_0x4f53ed(0x308)][_0x4f53ed(0x243)][_0x4f53ed(0x381)]!==je['OK']?_0x4f53ed(0x2e1):_0x1fd334['body'][_0x4f53ed(0x2c6)];}catch{return _0x4f53ed(0x2e1);}}},exports[_0x30c27a(0x377)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G['HTTPService'])),ue(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports[_0x30c27a(0x17d)]=xe,exports[_0x30c27a(0x1a3)]=Ee,exports[_0x30c27a(0x251)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x30c27a(0x247)]=Be;
|