@univerjs-pro/collaboration-client-ui 0.9.2-nightly.202507121606 → 0.9.2-nightly.202507131606
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/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/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/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/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/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x1982af=_0x219e;(function(_0x4af050,_0x5ee188){const _0x53e651=_0x219e,_0x4e8d5e=_0x4af050();while(!![]){try{const _0x5ba4dc=-parseInt(_0x53e651(0x164))/0x1+parseInt(_0x53e651(0x163))/0x2*(-parseInt(_0x53e651(0x157))/0x3)+parseInt(_0x53e651(0x162))/0x4*(-parseInt(_0x53e651(0x15e))/0x5)+parseInt(_0x53e651(0x156))/0x6+parseInt(_0x53e651(0x160))/0x7*(-parseInt(_0x53e651(0x15b))/0x8)+parseInt(_0x53e651(0x161))/0x9*(-parseInt(_0x53e651(0x15d))/0xa)+-parseInt(_0x53e651(0x15f))/0xb*(-parseInt(_0x53e651(0x158))/0xc);if(_0x5ba4dc===_0x5ee188)break;else _0x4e8d5e['push'](_0x4e8d5e['shift']());}catch(_0x2b2886){_0x4e8d5e['push'](_0x4e8d5e['shift']());}}}(_0x1462,0x75cc1));function _0x219e(_0x2838e9,_0x8beec3){const _0x1462ef=_0x1462();return _0x219e=function(_0x219e9d,_0x29096c){_0x219e9d=_0x219e9d-0x156;let _0x1932e6=_0x1462ef[_0x219e9d];return _0x1932e6;},_0x219e(_0x2838e9,_0x8beec3);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x1982af(0x165)]{['runOnServer'](_0x521613,_0x26bcea,..._0xa0973e){const _0x446980=_0x1982af;return this['_injector'][_0x446980(0x15c)](t[_0x446980(0x15a)])['runOnServer'](_0x521613,_0x26bcea,{},..._0xa0973e);}}e[_0x1982af(0x165)][_0x1982af(0x159)](c);function _0x1462(){const _0x508e7f=['20YRhilT','5YVLpJm','1241933GPbieA','4571zJXFuy','497196SLHDXH','1303104HcIysZ','2QaZGTc','800730MLimSB','FUniver','2137590TgOXVo','2364789BYEpHU','264zsHhJz','extend','RemoteUniscriptService','4072jrGQaR','get'];_0x1462=function(){return _0x508e7f;};return _0x1462();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xc4034=_0x7c6d;(function(_0x162b4b,_0x2a5be7){const _0x4a1890=_0x7c6d,_0x308f62=_0x162b4b();while(!![]){try{const _0x1c2cfa=-parseInt(_0x4a1890(0x144))/0x1*(-parseInt(_0x4a1890(0x169))/0x2)+parseInt(_0x4a1890(0x2e4))/0x3+-parseInt(_0x4a1890(0x27c))/0x4+-parseInt(_0x4a1890(0x1b8))/0x5+-parseInt(_0x4a1890(0x20f))/0x6*(-parseInt(_0x4a1890(0x1e7))/0x7)+-parseInt(_0x4a1890(0x11a))/0x8*(-parseInt(_0x4a1890(0x27d))/0x9)+-parseInt(_0x4a1890(0xfe))/0xa*(parseInt(_0x4a1890(0x237))/0xb);if(_0x1c2cfa===_0x2a5be7)break;else _0x308f62['push'](_0x308f62['shift']());}catch(_0x42699a){_0x308f62['push'](_0x308f62['shift']());}}}(_0x5c7c,0xd490a));function _0x7c6d(_0x3cf02a,_0x52cbcc){const _0x5c7c6c=_0x5c7c();return _0x7c6d=function(_0x7c6dd4,_0x37aadd){_0x7c6dd4=_0x7c6dd4-0xb3;let _0x1afb3a=_0x5c7c6c[_0x7c6dd4];return _0x1afb3a;},_0x7c6d(_0x3cf02a,_0x52cbcc);}var Ve=Object[_0xc4034(0x305)],Xe=(_0x489d9f,_0x3cbbb9,_0x3082b5)=>_0x3cbbb9 in _0x489d9f?Ve(_0x489d9f,_0x3cbbb9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3082b5}):_0x489d9f[_0x3cbbb9]=_0x3082b5,h=(_0x11c357,_0x10f251,_0x156f33)=>Xe(_0x11c357,typeof _0x10f251!=_0xc4034(0x22e)?_0x10f251+'':_0x10f251,_0x156f33);Object['defineProperty'](exports,Symbol[_0xc4034(0x25b)],{'value':_0xc4034(0x1db)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0xc4034(0x2b1)],ze=(_0x40e27b,_0x3110ce,_0x1f47df,_0x45d1f8)=>{const _0x5b082a=_0xc4034;for(var _0x299174=_0x45d1f8>0x1?void 0x0:_0x45d1f8?qe(_0x3110ce,_0x1f47df):_0x3110ce,_0x3bb586=_0x40e27b[_0x5b082a(0x23b)]-0x1,_0x50db49;_0x3bb586>=0x0;_0x3bb586--)(_0x50db49=_0x40e27b[_0x3bb586])&&(_0x299174=_0x50db49(_0x299174)||_0x299174);return _0x299174;},Oe=(_0x47a90e,_0x21217e)=>(_0x4ceb97,_0xe087df)=>_0x21217e(_0x4ceb97,_0xe087df,_0x47a90e);let de=class extends a[_0xc4034(0x2ab)]{constructor(_0x27bd40,_0x5eaba1){const _0x16d17d=_0xc4034;super(),this[_0x16d17d(0x271)]=_0x27bd40,this[_0x16d17d(0x1a9)]=_0x5eaba1,this[_0x16d17d(0xed)]();}[_0xc4034(0xed)](){const _0x428ef3=_0xc4034,_0x1f3f6d=this;this[_0x428ef3(0x27e)](this[_0x428ef3(0x271)][_0x428ef3(0x2ba)]({'onBeforePasteImage':async _0x2d4657=>{const _0x272673=_0x428ef3,_0x5ee341=await _0x1f3f6d[_0x272673(0x1a9)][_0x272673(0x1ee)](_0x2d4657);return _0x5ee341?{'source':_0x5ee341['source'],'imageSourceType':_0x5ee341[_0x272673(0x108)]}:null;}}));}};de=ze([Oe(0x0,E[_0xc4034(0xea)]),Oe(0x1,Ge[_0xc4034(0x201)])],de);const Te=['purple.300','jiqing.500','green.600',_0xc4034(0x249),'blue.400',_0xc4034(0x156)];class me extends a['Disposable']{constructor(){super(...arguments),h(this,'_assignedColors',new Map()),h(this,'_colorIndex',0x0);}[_0xc4034(0x190)](_0x5a70af){const _0x52c3c1=_0xc4034;if(this[_0x52c3c1(0x235)][_0x52c3c1(0x213)](_0x5a70af))return this[_0x52c3c1(0x235)][_0x52c3c1(0x2a1)](_0x5a70af);const _0xc616b9=Te[this[_0x52c3c1(0x162)]];return this[_0x52c3c1(0x162)]=(this[_0x52c3c1(0x162)]+0x1)%Te[_0x52c3c1(0x23b)],this[_0x52c3c1(0x235)][_0x52c3c1(0x270)](_0x5a70af,_0xc616b9),_0xc616b9;}}function Pe(_0x4e8a7f){const _0x47413b=_0xc4034;let _0x506f79='';for(const _0x17b6bf of _0x4e8a7f){const {startOffset:_0x1841c2,endOffset:_0x20dfbb,isActive:_0x34293c,rangeType:_0x16121c,segmentId:_0x489e44,segmentPage:_0x45fda8}=_0x17b6bf;_0x506f79[_0x47413b(0x23b)]&&(_0x506f79+=','),_0x506f79+=_0x1841c2+':'+_0x20dfbb+':'+(_0x34293c?'1':'0')+':'+_0x16121c+':'+_0x489e44+':'+_0x45fda8;}return _0x506f79;}function Je(_0x338b7c){const _0xc03c48=_0xc4034,_0x3cab93=_0x338b7c['split'](','),_0x489b42=[];for(const _0x5e05f7 of _0x3cab93){const [_0x581845,_0x4dd599,_0x361e26,_0x51bafb,_0x5805da,_0x2c6052]=_0x5e05f7[_0xc03c48(0xd2)](':');_0x489b42[_0xc03c48(0x17e)]({'startOffset':Number(_0x581845),'endOffset':Number(_0x4dd599),'collapsed':_0x581845===_0x4dd599,'isActive':_0x361e26==='1','rangeType':_0x51bafb===a['DOC_RANGE_TYPE'][_0xc03c48(0x262)]?a[_0xc03c48(0x2d4)][_0xc03c48(0x262)]:a[_0xc03c48(0x2d4)][_0xc03c48(0x14b)],'segmentId':typeof _0x5805da=='string'?String(_0x5805da):'','segmentPage':Number(_0x2c6052!=null?_0x2c6052:-0x1)});}return _0x489b42[_0xc03c48(0x133)](_0xbd38bc=>_0xbd38bc[_0xc03c48(0x250)])||(_0x489b42[0x0][_0xc03c48(0x250)]=!0x0),_0x489b42;}class Ce extends a[_0xc4034(0x2ab)]{constructor(){const _0x462da4=_0xc4034;super(...arguments),h(this,_0x462da4(0x12d),new d[(_0x462da4(0x265))](null)),h(this,_0x462da4(0x31f),this[_0x462da4(0x12d)][_0x462da4(0xf8)]());}[_0xc4034(0x2ce)](_0x4e6dec){const _0x113c7c=_0xc4034,{unitID:_0x4c4dfb,memberID:_0x3eaa5c,textRanges:_0x3591f9}=_0x4e6dec,_0x201223=Pe(_0x3591f9);if(_0x201223==='')return;const _0x244500={'unitID':_0x4c4dfb,'memberID':_0x3eaa5c,'selection':_0x201223};this[_0x113c7c(0x12d)][_0x113c7c(0x120)](_0x244500);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0xdca5ef,_0x201dfb,_0x4dca8a,_0x4eaaf4)=>{for(var _0x5b7f8c=_0x4eaaf4>0x1?void 0x0:_0x4eaaf4?Ze(_0x201dfb,_0x4dca8a):_0x201dfb,_0x22a3da=_0xdca5ef['length']-0x1,_0x2881d3;_0x22a3da>=0x0;_0x22a3da--)(_0x2881d3=_0xdca5ef[_0x22a3da])&&(_0x5b7f8c=_0x2881d3(_0x5b7f8c)||_0x5b7f8c);return _0x5b7f8c;},L=(_0x2bb2c9,_0x5a69bd)=>(_0x18a69e,_0x4fb375)=>_0x5a69bd(_0x18a69e,_0x4fb375,_0x2bb2c9);const et=0x12c,tt=0x64;let Ie=class extends a[_0xc4034(0x2ab)]{constructor(_0x576f96,_0x1754d2,_0x549ad3,_0x18c7eb,_0xcf0d02,_0x36e036,_0x3504fd,_0x43a209,_0x187a3e){const _0x5e2f03=_0xc4034;super(),h(this,_0x5e2f03(0x198),!0x1),h(this,'_init',!0x1),h(this,_0x5e2f03(0x1ef),new d[(_0x5e2f03(0x265))](new Map())),h(this,_0x5e2f03(0x131),this[_0x5e2f03(0x1ef)]['asObservable']()),h(this,_0x5e2f03(0x2f4),new d[(_0x5e2f03(0x265))]([])),h(this,'roomMembers$',this['_roomMembers$']['pipe'](d[_0x5e2f03(0x26f)](et))),h(this,_0x5e2f03(0x327),a[_0x5e2f03(0x174)](_0x6c3c79=>{const _0x3cd9e5=_0x5e2f03,_0x228de1={'eventID':m[_0x3cd9e5(0xcd)][_0x3cd9e5(0x113)],'data':{'unitID':this[_0x3cd9e5(0x2a4)],'memberID':this['_session']['getMemberID'](),'selection':Pe(_0x6c3c79)}};this[_0x3cd9e5(0x228)][_0x3cd9e5(0xc7)](_0x228de1,this['unitID']);},tt)),(this[_0x5e2f03(0x2a4)]=_0x576f96,this[_0x5e2f03(0x228)]=_0x1754d2,this[_0x5e2f03(0x1d5)]=_0x549ad3,this[_0x5e2f03(0x15e)]=_0x18c7eb,this[_0x5e2f03(0x159)]=_0xcf0d02,this['_syncEditingCollabCursorService']=_0x36e036,this[_0x5e2f03(0x2e0)]=_0x3504fd,this[_0x5e2f03(0xd7)]=_0x43a209,this[_0x5e2f03(0x268)]=_0x187a3e);}get[_0xc4034(0x260)](){const _0x323bac=_0xc4034;return this['_cursorInfo$'][_0x323bac(0x1c6)]();}get[_0xc4034(0x2a8)](){const _0x1daaa9=_0xc4034;return this[_0x1daaa9(0x2f4)]['getValue']();}['dispose'](){const _0x13e29a=_0xc4034;super[_0x13e29a(0x164)](),this[_0x13e29a(0x1ef)]['next'](new Map()),this[_0x13e29a(0x1ef)]['complete'](),this[_0x13e29a(0x2f4)][_0x13e29a(0x120)]([]),this['_roomMembers$'][_0x13e29a(0x207)]();}[_0xc4034(0x2d2)](){const _0x2fca9e=_0xc4034;this[_0x2fca9e(0xed)]||(this[_0x2fca9e(0xed)]=!0x0,this[_0x2fca9e(0x228)][_0x2fca9e(0x227)][_0x2fca9e(0x181)](d[_0x2fca9e(0x242)](this['dispose$']))[_0x2fca9e(0x2cb)](_0xcaea8a=>{const _0x52024a=_0x2fca9e;_0xcaea8a===u[_0x52024a(0x272)][_0x52024a(0x226)]?this[_0x52024a(0x1ae)]():this['_toggleOffline']();}),this['_session']['event$'][_0x2fca9e(0x181)](d['takeUntil'](this[_0x2fca9e(0x1a5)]))[_0x2fca9e(0x2cb)](_0x3a50b6=>{const _0x4aae4a=_0x2fca9e,_0x5029ef=_0x3a50b6['eventID'];_0x5029ef===m[_0x4aae4a(0xcd)][_0x4aae4a(0x113)]&&this[_0x4aae4a(0xd6)](_0x3a50b6),_0x5029ef===m[_0x4aae4a(0xcd)]['USERS_LEAVE']&&this[_0x4aae4a(0x244)](_0x3a50b6);}),this[_0x2fca9e(0x27e)](this[_0x2fca9e(0x268)][_0x2fca9e(0x10b)](_0x488bf9=>{const _0x15fe62=_0x2fca9e,_0x2c7e6f=_0x488bf9['params'];_0x2c7e6f!=null&&this['_online']&&_0x488bf9['id']===Y['SetTextSelectionsOperation']['id']&&_0x2c7e6f[_0x15fe62(0x2e6)]===this[_0x15fe62(0x2a4)]&&_0x2c7e6f[_0x15fe62(0x199)]===!0x1&&_0x2c7e6f[_0x15fe62(0x1a2)][_0x15fe62(0x23b)]>0x0&&this['_updateLocalCursor'](_0x2c7e6f[_0x15fe62(0x1a2)]);})),this['_syncEditingCollabCursorService'][_0x2fca9e(0x31f)][_0x2fca9e(0x181)](d[_0x2fca9e(0x242)](this['dispose$']))[_0x2fca9e(0x2cb)](_0x1b478f=>{const _0x5b2981=_0x2fca9e;if((_0x1b478f==null?void 0x0:_0x1b478f[_0x5b2981(0x2a4)])!==this[_0x5b2981(0x2a4)])return;const _0xc44c77={'eventID':m[_0x5b2981(0xcd)][_0x5b2981(0x113)],'data':_0x1b478f};this['_onCursorUpdate'](_0xc44c77);}),this[_0x2fca9e(0x27e)](this[_0x2fca9e(0x268)]['onCommandExecuted'](_0x1fe679=>{const _0x2e03ae=_0x2fca9e;if(_0x1fe679[_0x2e03ae(0xe1)]==null)return;const _0x10da9a=_0x1fe679[_0x2e03ae(0xe1)];if(_0x1fe679['id']!==Y[_0x2e03ae(0xc3)]['id']||_0x10da9a[_0x2e03ae(0x2e6)]!==this[_0x2e03ae(0x2a4)])return;const _0x907519={'id':_0x2e03ae(0x25f),'params':_0x10da9a},_0x1a827a=this[_0x2e03ae(0x260)];for(const [_0x17277c,_0x62f45c]of _0x1a827a){const _0x5bdc0e={'id':_0x2e03ae(0x25f),'params':{'unitId':this[_0x2e03ae(0x2a4)],'actions':null,'textRanges':_0x62f45c['ranges']}},_0x2fb194=this[_0x2e03ae(0x2e0)]['transformMutation'](_0x907519,_0x5bdc0e,!0x1);if(m[_0x2e03ae(0x1ec)](_0x2fb194))throw _0x2fb194[_0x2e03ae(0x203)];_0x1a827a[_0x2e03ae(0x270)](_0x17277c,{..._0x62f45c,'ranges':_0x2fb194[_0x2e03ae(0x11b)]['params']['textRanges']});}queueMicrotask(()=>{const _0xf14ed7=_0x2e03ae;this['_cursorInfo$'][_0xf14ed7(0x120)](_0x1a827a);});})));}['_onCursorUpdate'](_0x1f6d81){const _0x3214a1=_0xc4034;var _0x705701,_0xb1f339;const {memberID:_0x3d8b60,selection:_0x288418}=_0x1f6d81[_0x3214a1(0xdd)],_0x127f3c=Je(_0x288418),_0x5e08ef=(_0xb1f339=(_0x705701=this[_0x3214a1(0x159)][_0x3214a1(0x2f8)](this['unitID'],_0x3d8b60))==null?void 0x0:_0x705701[_0x3214a1(0x2a0)])!=null?_0xb1f339:_0x3214a1(0x214),_0x811e40={'color':this[_0x3214a1(0x15e)][_0x3214a1(0x190)](_0x3d8b60),'name':_0x5e08ef,'ranges':_0x127f3c},_0x1e8248=this[_0x3214a1(0x260)];_0x1e8248[_0x3214a1(0x270)](_0x3d8b60,_0x811e40),this[_0x3214a1(0x1ef)][_0x3214a1(0x120)](_0x1e8248);}[_0xc4034(0x244)](_0x21fd1a){const _0x3e1c99=_0xc4034,{memberID:_0x378e8b}=_0x21fd1a[_0x3e1c99(0xdd)],_0x18392c=this[_0x3e1c99(0x260)];_0x18392c[_0x3e1c99(0x1dc)](_0x378e8b),this[_0x3e1c99(0x1ef)][_0x3e1c99(0x120)](_0x18392c);}[_0xc4034(0x1ae)](){const _0x15b619=_0xc4034;var _0x1881ec;if(this[_0x15b619(0x198)]=!0x0,((_0x1881ec=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1881ec[_0x15b619(0x1e1)]())!==this[_0x15b619(0x2a4)])return;const _0x16270b=this[_0x15b619(0x1d5)][_0x15b619(0x2a1)](Y[_0x15b619(0xb5)])['getDocRanges']();Array[_0x15b619(0x1ab)](_0x16270b)&&_0x16270b[_0x15b619(0x23b)]>0x0&&this[_0x15b619(0x327)](_0x16270b);}['_toggleOffline'](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a[_0xc4034(0x132)](a[_0xc4034(0x103)])),L(0x3,a[_0xc4034(0x132)](me)),L(0x4,a[_0xc4034(0x132)](u[_0xc4034(0x1e2)])),L(0x5,a[_0xc4034(0x132)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0xc4034(0x247)]),L(0x8,a[_0xc4034(0x134)])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x46c7f8,_0x1d144d,_0x1d5483,_0x2c2c20)=>{for(var _0x3b1777=_0x2c2c20>0x1?void 0x0:_0x2c2c20?st(_0x1d144d,_0x1d5483):_0x1d144d,_0x35b796=_0x46c7f8['length']-0x1,_0x1a1b5c;_0x35b796>=0x0;_0x35b796--)(_0x1a1b5c=_0x46c7f8[_0x35b796])&&(_0x3b1777=_0x1a1b5c(_0x3b1777)||_0x3b1777);return _0x3b1777;},A=(_0x5d24ba,_0x11cc98)=>(_0x4a1d0e,_0x140b99)=>_0x11cc98(_0x4a1d0e,_0x140b99,_0x5d24ba);const nt=0x12c,rt=0x64,ot=()=>{let _0x355693=[],_0x36da60=!0x1;return _0x391914=>{_0x355693['push'](_0x391914),_0x36da60||(_0x36da60=!0x0,setTimeout(()=>{const _0x53a146=_0x7c6d;_0x355693[_0x53a146(0x117)](_0x1c0bb6=>_0x1c0bb6()),_0x355693=[],_0x36da60=!0x1;}));};};let Se=class extends a[_0xc4034(0x2ab)]{constructor(_0x5ae6ab,_0x5e3403,_0xe38f02,_0x3484b5,_0x59eeb6,_0x410283,_0xf55b2d,_0x46d02a){const _0x8fb780=_0xc4034;super(),h(this,_0x8fb780(0x198),!0x1),h(this,_0x8fb780(0xed),!0x1),h(this,_0x8fb780(0x1ef),new d[(_0x8fb780(0x265))](new Map())),h(this,_0x8fb780(0x131),this[_0x8fb780(0x1ef)][_0x8fb780(0xf8)]()),h(this,_0x8fb780(0x2f4),new d[(_0x8fb780(0x265))]([])),h(this,_0x8fb780(0x319),this[_0x8fb780(0x2f4)]['pipe'](d[_0x8fb780(0x26f)](nt))),h(this,_0x8fb780(0x327),a[_0x8fb780(0x174)]((_0x50ae98,_0x3d1831)=>{const _0x49b8f0=_0x8fb780,_0x2771ab={'eventID':m[_0x49b8f0(0xcd)][_0x49b8f0(0x113)],'data':{'unitID':this[_0x49b8f0(0x2a4)],'memberID':this[_0x49b8f0(0x228)][_0x49b8f0(0x147)](),'selection':be['serializeRangeWithSheet'](_0x50ae98,_0x3d1831[_0x49b8f0(0x1df)])}};this[_0x49b8f0(0x228)]['send'](_0x2771ab,this[_0x49b8f0(0x2a4)]);},rt)),(this['unitID']=_0x5ae6ab,this[_0x8fb780(0x228)]=_0x5e3403,this[_0x8fb780(0x1d5)]=_0xe38f02,this[_0x8fb780(0x15e)]=_0x3484b5,this[_0x8fb780(0x159)]=_0x59eeb6,this[_0x8fb780(0xd7)]=_0x410283,this[_0x8fb780(0x268)]=_0xf55b2d,this['_refRangeService']=_0x46d02a);}get['cursorInfo'](){const _0x2da015=_0xc4034;return this[_0x2da015(0x1ef)][_0x2da015(0x1c6)]();}get[_0xc4034(0x2a8)](){const _0x2119a6=_0xc4034;return this[_0x2119a6(0x2f4)]['getValue']();}[_0xc4034(0x164)](){const _0x3eb855=_0xc4034;super['dispose'](),this[_0x3eb855(0x1ef)][_0x3eb855(0x120)](new Map()),this[_0x3eb855(0x1ef)][_0x3eb855(0x207)](),this[_0x3eb855(0x2f4)][_0x3eb855(0x120)]([]),this['_roomMembers$'][_0x3eb855(0x207)]();}['init'](){const _0x4e7433=_0xc4034;this[_0x4e7433(0xed)]||(this[_0x4e7433(0xed)]=!0x0,this[_0x4e7433(0x228)][_0x4e7433(0x227)][_0x4e7433(0x181)](d['takeUntil'](this['dispose$']))[_0x4e7433(0x2cb)](_0x1aed28=>{const _0x421c26=_0x4e7433;_0x1aed28===u[_0x421c26(0x272)]['ONLINE']?this[_0x421c26(0x1ae)]():this[_0x421c26(0x2d5)]();}),this[_0x4e7433(0x228)]['event$'][_0x4e7433(0x181)](d[_0x4e7433(0x242)](this[_0x4e7433(0x1a5)]))[_0x4e7433(0x2cb)](_0x38a554=>{const _0xf431e5=_0x4e7433,_0x136f2e=_0x38a554['eventID'];_0x136f2e===m['CollaborationEvent'][_0xf431e5(0x113)]&&this[_0xf431e5(0xd6)](_0x38a554),_0x136f2e===m[_0xf431e5(0xcd)][_0xf431e5(0x1d0)]&&this[_0xf431e5(0x244)](_0x38a554);}),this[_0x4e7433(0x1ca)](),this[_0x4e7433(0x27e)](this[_0x4e7433(0x268)][_0x4e7433(0x10b)](_0x220c9b=>{const _0x10935d=_0x4e7433;if(this[_0x10935d(0x198)]&&_0x220c9b['id']===g[_0x10935d(0x115)]['id']&&_0x220c9b['params'][_0x10935d(0x2e6)]===this[_0x10935d(0x2a4)]){const _0x174c1a=_0x220c9b[_0x10935d(0xe1)];this['_updateLocalCursor'](_0x174c1a[_0x10935d(0xb7)],_0x174c1a[_0x10935d(0x20c)][0x0]);}})));}[_0xc4034(0xd6)](_0x220239){const _0xd70706=_0xc4034;var _0x1153f3,_0x28f10a;const {memberID:_0x585854,selection:_0x43ec1c}=_0x220239[_0xd70706(0xdd)],{sheetName:_0x41c06b,range:_0x3fd595}=be[_0xd70706(0x230)](_0x43ec1c),_0x45a378={'name':(_0x28f10a=(_0x1153f3=this[_0xd70706(0x159)][_0xd70706(0x2f8)](this[_0xd70706(0x2a4)],_0x585854))==null?void 0x0:_0x1153f3[_0xd70706(0x2a0)])!=null?_0x28f10a:'Unknown\x20user','range':this['_getMergeRange'](_0x41c06b,_0x3fd595),'sheetID':_0x41c06b,'color':this[_0xd70706(0x15e)][_0xd70706(0x190)](_0x585854),'selection':_0x43ec1c},_0x2e91a0=this[_0xd70706(0x260)];_0x2e91a0[_0xd70706(0x270)](_0x585854,_0x45a378),this['_cursorInfo$'][_0xd70706(0x120)](_0x2e91a0);}[_0xc4034(0x244)](_0x5e545e){const _0x24a7bc=_0xc4034,{memberID:_0x1c6963}=_0x5e545e['data'],_0x5f20c5=this[_0x24a7bc(0x260)];_0x5f20c5[_0x24a7bc(0x1dc)](_0x1c6963),this[_0x24a7bc(0x1ef)][_0x24a7bc(0x120)](_0x5f20c5);}['_getMergeRange'](_0x2ae252,_0x44c27b){const _0x4a9585=_0xc4034;var _0x4369c4,_0x3b56ff;const _0x3b25d3=(_0x3b56ff=(_0x4369c4=this[_0x4a9585(0xd7)][_0x4a9585(0x277)](this['unitID']))==null?void 0x0:_0x4369c4[_0x4a9585(0x315)](_0x2ae252))==null?void 0x0:_0x3b56ff[_0x4a9585(0x24a)]();return(_0x3b25d3==null?void 0x0:_0x3b25d3[_0x4a9585(0x154)](_0x324176=>a[_0x4a9585(0x23f)][_0x4a9585(0xdf)](_0x324176,_0x44c27b)))||_0x44c27b;}[_0xc4034(0x1ca)](){const _0xfffc45=_0xc4034,_0x49df6d=new a['DisposableCollection'](),_0x7e090c=ot(),_0x25d412=()=>{const _0x43a938=_0x7c6d;_0x49df6d[_0x43a938(0x164)]();const _0x173633=(_0x3b5833,_0x3d553e,_0x5a5470,_0x3efc13)=>{const _0x561d1d=_0x43a938;let _0x10d947=[];switch(_0x3b5833['id']){case g[_0x561d1d(0x1c2)][_0x561d1d(0xd0)]:{_0x10d947=g[_0x561d1d(0x182)](_0x3b5833,_0x3efc13);break;}case g[_0x561d1d(0x1c2)][_0x561d1d(0x317)]:{_0x10d947=g[_0x561d1d(0x2b5)](_0x3b5833,_0x3efc13);break;}case g[_0x561d1d(0x1c2)][_0x561d1d(0x18b)]:{_0x10d947=g[_0x561d1d(0x304)](_0x3b5833,_0x3efc13);break;}case g['EffectRefRangId'][_0x561d1d(0xfb)]:{_0x10d947=g['handleInsertRangeMoveDown'](_0x3b5833,_0x3efc13);break;}case g[_0x561d1d(0x1c2)][_0x561d1d(0x2de)]:{_0x10d947=g[_0x561d1d(0x1e3)](_0x3b5833,_0x3efc13);break;}case g[_0x561d1d(0x1c2)][_0x561d1d(0x16c)]:{_0x10d947=g[_0x561d1d(0x303)](_0x3b5833,_0x3efc13);break;}case g[_0x561d1d(0x1c2)]['MoveRangeCommandId']:{_0x10d947=g['handleMoveRange'](_0x3b5833,_0x3efc13);break;}case g['EffectRefRangId']['RemoveColCommandId']:{_0x10d947=g[_0x561d1d(0xba)](_0x3b5833,_0x3efc13);break;}case g[_0x561d1d(0x1c2)]['RemoveRowCommandId']:{_0x10d947=g[_0x561d1d(0x2ca)](_0x3b5833,_0x3efc13);break;}}const _0x372a38=g['runRefRangeMutations'](_0x10d947,_0x3efc13),_0x13eb4d=this['cursorInfo'][_0x561d1d(0x2a1)](_0x3d553e);if(_0x13eb4d&&_0x372a38){const _0x2852de={..._0x13eb4d,'range':_0x372a38};this[_0x561d1d(0x260)][_0x561d1d(0x270)](_0x3d553e,_0x2852de),_0x7e090c(()=>{const _0x50fa06=_0x561d1d,_0x5e4d6b=this[_0x50fa06(0x282)]['registerRefRange'](_0x372a38,_0x28ebc2=>(_0x5e4d6b['dispose'](),_0x173633(_0x28ebc2,_0x3d553e,_0x5a5470,_0x372a38)));_0x49df6d[_0x50fa06(0x29a)](_0x5e4d6b);});}return{'redos':[],'undos':[]};};this[_0x43a938(0x260)]['forEach']((_0x15ef41,_0x12af9f)=>{const _0x21dbbe=_0x43a938,{range:_0x4a805f,sheetID:_0x3be65d}=_0x15ef41,_0x11d621=this[_0x21dbbe(0x282)]['registerRefRange'](_0x4a805f,_0x2fedff=>(_0x11d621[_0x21dbbe(0x164)](),_0x173633(_0x2fedff,_0x12af9f,_0x3be65d,_0x4a805f)));_0x49df6d['add'](_0x11d621);});};this['disposeWithMe'](a[_0xfffc45(0x22c)](this[_0xfffc45(0x1ef)][_0xfffc45(0x2cb)](()=>{_0x25d412();})));}[_0xc4034(0x1ae)](){const _0x14dd76=_0xc4034;var _0x5b5262,_0x34f5a0;if(this['_online']=!0x0,((_0x5b5262=this[_0x14dd76(0xd7)][_0x14dd76(0xd4)]())==null?void 0x0:_0x5b5262[_0x14dd76(0x1e1)]())!==this[_0x14dd76(0x2a4)])return;const _0xf1fba9=(_0x34f5a0=this['_injector'][_0x14dd76(0x2a1)](g[_0x14dd76(0x1ac)])[_0x14dd76(0x10e)]())==null?void 0x0:_0x34f5a0[0x0],_0x549de3=this[_0x14dd76(0xd7)][_0x14dd76(0x30e)](a[_0x14dd76(0xd3)][_0x14dd76(0x188)])[_0x14dd76(0x2fc)]();_0xf1fba9&&_0x549de3&&this[_0x14dd76(0x327)](_0x549de3[_0x14dd76(0x127)](),_0xf1fba9);}[_0xc4034(0x2d5)](){const _0x58184f=_0xc4034;this[_0x58184f(0x198)]=!0x1;}};Se=it([A(0x2,a[_0xc4034(0x132)](a['Injector'])),A(0x3,a[_0xc4034(0x132)](me)),A(0x4,a[_0xc4034(0x132)](u[_0xc4034(0x1e2)])),A(0x5,a[_0xc4034(0x247)]),A(0x6,a[_0xc4034(0x134)]),A(0x7,a[_0xc4034(0x132)](g[_0xc4034(0x17d)]))],Se);var at=Object[_0xc4034(0x2b1)],ct=(_0x254d69,_0x2638f3,_0x53b6ec,_0x5e024f)=>{const _0x5de011=_0xc4034;for(var _0x3e8b7f=_0x5e024f>0x1?void 0x0:_0x5e024f?at(_0x2638f3,_0x53b6ec):_0x2638f3,_0x56aeac=_0x254d69[_0x5de011(0x23b)]-0x1,_0x42288f;_0x56aeac>=0x0;_0x56aeac--)(_0x42288f=_0x254d69[_0x56aeac])&&(_0x3e8b7f=_0x42288f(_0x3e8b7f)||_0x3e8b7f);return _0x3e8b7f;},ie=(_0x2eb124,_0x422fb2)=>(_0x40b252,_0x4553ef)=>_0x422fb2(_0x40b252,_0x4553ef,_0x2eb124);let x=class extends a[_0xc4034(0x2ab)]{constructor(_0x23996c,_0x1b5d6a,_0x3fb906){const _0x55da45=_0xc4034;super(),h(this,_0x55da45(0xc9),new Map()),h(this,_0x55da45(0x318),new d['Subject']()),(this[_0x55da45(0xd7)]=_0x23996c,this['_injector']=_0x1b5d6a,this[_0x55da45(0x143)]=_0x3fb906,this[_0x55da45(0xed)]());}[_0xc4034(0x164)](){const _0x19d426=_0xc4034;super[_0x19d426(0x164)](),this[_0x19d426(0x318)][_0x19d426(0x207)](),this[_0x19d426(0xc9)][_0x19d426(0x117)](_0x53071a=>_0x53071a['dispose']());}[_0xc4034(0x119)](_0x5eded9){const _0x3b5a76=_0xc4034;return this['_entities']['has'](_0x5eded9)?this[_0x3b5a76(0xc9)][_0x3b5a76(0x2a1)](_0x5eded9)[_0x3b5a76(0x131)]:this[_0x3b5a76(0x318)]['pipe'](d[_0x3b5a76(0xe9)](_0x3ab221=>_0x3ab221[_0x3b5a76(0x2a4)]===_0x5eded9),d[_0x3b5a76(0x1d8)](_0x319535=>_0x319535[_0x3b5a76(0x131)]));}[_0xc4034(0xed)](){const _0x3cd339=_0xc4034;this[_0x3cd339(0xd7)][_0x3cd339(0x2cf)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3cd339(0x181)](d[_0x3cd339(0x242)](this['dispose$']))['subscribe'](async _0xcfb660=>{const _0x1761b2=_0x3cd339,_0x196077=_0xcfb660['getUnitId'](),_0x21d0c2=await this[_0x1761b2(0x211)](_0x196077);this[_0x1761b2(0x318)][_0x1761b2(0x120)](_0x21d0c2),this[_0x1761b2(0xc9)][_0x1761b2(0x270)](_0x196077,_0x21d0c2);}),this[_0x3cd339(0xd7)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC'])['pipe'](d[_0x3cd339(0x242)](this[_0x3cd339(0x1a5)]))['pipe'](d[_0x3cd339(0xe9)](_0x2421f8=>!_0x2421f8['getUnitId']()[_0x3cd339(0x180)]('__')))[_0x3cd339(0x2cb)](async _0x59876b=>{const _0xa51669=_0x3cd339,_0x2883b0=_0x59876b['getUnitId'](),_0x23818b=await this['_startDocCollabCursor'](_0x2883b0);this['_entityInit$'][_0xa51669(0x120)](_0x23818b),this[_0xa51669(0xc9)][_0xa51669(0x270)](_0x2883b0,_0x23818b);}),d[_0x3cd339(0x185)](this['_univerInstanceService'][_0x3cd339(0x1b0)](a['UniverInstanceType'][_0x3cd339(0xca)]),this[_0x3cd339(0xd7)][_0x3cd339(0x1b0)](a[_0x3cd339(0xd3)]['UNIVER_SHEET']))[_0x3cd339(0x181)](d[_0x3cd339(0x242)](this[_0x3cd339(0x1a5)]))[_0x3cd339(0x2cb)](_0x24c6e1=>{const _0x57ec13=_0x3cd339,_0x517015=_0x24c6e1[_0x57ec13(0x1e1)](),_0x5d9aff=this['_entities'][_0x57ec13(0x2a1)](_0x517015);_0x5d9aff&&(_0x5d9aff['dispose'](),this[_0x57ec13(0xc9)]['delete'](_0x517015));});}async[_0xc4034(0x211)](_0x289b65){const _0x26e69d=_0xc4034,_0x519a8d=await this[_0x26e69d(0x143)][_0x26e69d(0x31e)](_0x289b65),_0x359bbe=this[_0x26e69d(0x1d5)][_0x26e69d(0x246)](Se,_0x289b65,_0x519a8d);return _0x359bbe[_0x26e69d(0x2d2)](),_0x359bbe;}async['_startDocCollabCursor'](_0x34facf){const _0x1ccbc0=_0xc4034,_0x23dc92=await this['_collabSessionService'][_0x1ccbc0(0x31e)](_0x34facf),_0x4d4b2b=this[_0x1ccbc0(0x1d5)][_0x1ccbc0(0x246)](Ie,_0x34facf,_0x23dc92);return _0x4d4b2b[_0x1ccbc0(0x2d2)](),_0x4d4b2b;}};x=ct([ie(0x0,a[_0xc4034(0x247)]),ie(0x1,a[_0xc4034(0x132)](a[_0xc4034(0x103)])),ie(0x2,a[_0xc4034(0x132)](u[_0xc4034(0x25c)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _0x5c7c(){const _0x126c47=['key','CONNECTOR_DATA_TOO_LARGE','RECT','PENDING','_shapes','ILocalCacheService','ThemeService','stringify','closePath','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Warning','find','location','yellow.400','getColor','...','_memberService','INotificationService','_handleEvent','_localCacheService','_renderManagerService','_colorAssignService','JOIN_ROOM_FAILED','_urlService','Failed','_colorIndex','IUIPartsService','dispose','transform','LICENSE_MAX_UNITS_EXCEEDED','_textBubble','_configService','2TsbFyV','getCollabEntity$','ILogService','InsertRowCommandId','_anchorDot','_cursorShapes','_revisionService','UniverIcon','_initStatusComponent','CollaborationDataLoaderController','docStateChange$','debounce','svg','_hovered','_context','collabStatus.conflict','_docTransformIMECacheService','CollaborationUIEventService','OnLineIcon','application/json','RefRangeService','push','whenReady','startsWith','pipe','handleDeleteRangeMoveLeft','evenodd','getUnitStatus$','merge','undoState','isTransformMutationsWithChangesetSuccess','UNIVER_SHEET','_docSkeletonManagerService','UniverCollaborationClientUIPlugin','InsertColCommandId','moveTo','tag','transformSelections','m1Prime','assignAColorForMemberID','IRemoteInstanceService','_httpService','on-line-icon_clip0_910_349','DocStateChangeManagerService','hovered','_status$','_unitOnClients','_online','isEditing','_unitStatus','throttleTime','deepClone','fillText','BrowserCollaborationSocketService','off-line-icon','loadOfflineData','getParam','ranges','use','_name','dispose$','href','jsxs','DataLoaderService','_imageIoService','SNAPSHOT_HAS_BEEN_REMOVED','isArray','SheetsSelectionsService','getUnhiddenWorksheets','_toggleOnline','startRow','getTypeOfUnitDisposed$','debug','INVITE_CODE_REQUIRED','_config','EMAIL_VERIFY_CODE_MISMATCH','_messageService','_getSessionTicket','WECHAT_HAS_BEEN_BOUND','7570945FAPyqO','getUndoRedoMutationParamsCache','FETCH_MISS','WebBrowserSingleActiveUnitService','event$','_scheduleClearOtherTimer','concat','NodePositionConvertToRectRange','currentSkeleton$','with','EffectRefRangId','SUBMIT_CHANGESET_TIMEOUT','result','row','getValue','createIdentifier','PERMISSION_DENIED','DependentOn','_onRefRangeChange','_saveTaskMap','_setupSubUnitSync','UNAUTHENTICATED','_initStatusListener','_anchor','USERS_LEAVE','addObject','clipPath','mask','SNAPSHOT_INVALID_SNAPSHOT','_injector','clearInterval','useCallback','switchMap','_backgroundColor','replace','Module','delete','TOO_MANY_REQUESTS','width','range','currentTheme$','getUnitId','MemberService','handleInsertRangeMoveRight','DEFAULT_WS_SESSION_TICKET_URL','selection','IRenderManagerService','162771eCmlIe','substring','setShapeProps','restore','children','isTransformMutationFailure','_cursors','saveImage','_cursorInfo$','setStateCache','APPLY_DUPLICATED','trim','collaboration-client.offline-data-not-saved','RevisionService','all','override','_send','endColumn','addHandlerCallback','save','_hideTimer','_beforeCloseService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','runOnServer','_handleLeaveEvent','map','IImageIoService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','error','_cursor','_getSheetObject','getSkeleton','complete','setParam','parse','MessageType','_transformHistoryAndStateStack','selections','displayName','NOT_COLLAB','234IIcCxz','_getAnchorBounding','_startSheetCollabCursor','Shape','has','Unknown\x20user','_removeClearOtherTimer','getStateCache','_docSyncEditingCollabCursorService','LOCAL_CACHE_INTERVAL_KEY','mergeOverrideWithDependencies','_collaborationUIEventService','body','unshift','_handleHover','setItem','getOffsetConfig','WebSocketService','searchParams','defs','OTHER_CLIENTS_EDITING','UNDEFINED','YUUMI_ASYNCIO_CANCELLED','ONLINE','sessionStatus$','_session','USER_NOT_INVITED_CODE','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','univerjs-icon\x20univerjs-icon-','toDisposable','_localeService','symbol','url(#off-line-icon_clip0_910_343)','deserializeRangeWithSheet','random','INVALID_INVITE_CODE','transformMutationsWithChangeset','registerBeforeClose','_assignedColors','endRow','951511MYKTTS','string','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Tools','length','_handleHeartbeatEvent','size','registerDependencies','Rectangle','status$','onTransformChange$','takeUntil','INVITE_CODE_HAS_BEEN_UES','_onCursorDelete','function','createInstance','IUniverInstanceService','off-line-icon_clip0_910_343','red.300','getMergeData','LICENSE_DISTRO_REJECTED','_scheduleHeartbeat','_lastPointer','Optional','_handleJoinEvent','isActive','permission.content','UNRECOGNIZED','onLocalMutation','translate(.97)','urlChange$','BuiltInUIPart','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','engine','ColorKit','getCurrentRevOfUnit','toStringTag','CollaborationSessionService','storage','registerRenderModule','doc.mutation.rich-text-editing','cursorInfo','_ensureSubject','TEXT','transformStateCache','getItem','BehaviorSubject','Plugin','getSheetObject','_commandService','SHEET_VIEWPORT_KEY','focused$','onStarting','sheetId','removeParam','newValue','debounceTime','set','_docClipboardService','SessionStatus','exhaustSavingTask','_saveCache','hasOwnProperty','collaboration-client-ui.config','getUniverSheetInstance','getConfig','collabStatus.syncing','generateRandomId','_document','1821764RJRScs','104715kjNRRO','disposeWithMe','getVpScrollXYInfoByPosToVp','_dataLoaderService','className','_refRangeService','white','jsx','combineLatest','replaceState','onPointerLeave$','M0\x200H16V16H0z','permission.title','collab-client.tooltip.reconnect','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','disposeUnit','INVITE_CODE_ALREADY_BOUND','toString','collab-text-range-','defIds','collab-rect-range-','Error','mapTo','collabStatus.notCollab','fromEventSubject','_initEntityListener','LOCAL_CACHE_INTERVAL','_themeService','currentColor','add','ISnapshotServerService','type','FromArray','fill','Tooltip','name','get','url(#on-line-icon_clip0_910_349)','MUTATION','unitID','runId','EMAIL_HAS_BEEN_BOUND','INTERNAL_ERROR','roomMembers','createSocket','_getScale','RxDisposable','setAlpha','session.connection-failed','_scheduleSaving','forwardRef','_render','getOwnPropertyDescriptor','unit','YUUMI_AI_RUN_FAILED','DocIMEInputManagerService','handleDeleteRangeMoveUp','_initEvent','registerComponent','transformIMECache','LICENSE_IMPORT_SIZE_EXCEEDED','addClipboardHook','_heartbeatTimer','_drawAnchor','UniverCollaborationClientPlugin','history','memberID','_scene','getRenderById','_doCreateSocket','http://www.w3.org/2000/svg','useRef','IConfigService','xlink:href','_sheetSkeletonManagerService','CONFLICT','_logService','handleIRemoveRow','subscribe','idSuffix','height','syncEditingCollabCursor','getTypeOfUnitAdded$','show','_registerDependencies','init','attrs','DOC_RANGE_TYPE','_toggleOffline','_getSaveTimeout','findNodePositionByCharIndex','HTTPService','prototype','call','_removeCollabCursors','YUUMI_URL_COL_OUT_OF_RANGE','_hover','InsertRangeMoveRightCommandId','saveTaskMap','_transformService','IURLService','_transformPreviousActiveRange','_localStorageService','3268554aEqClv','ENSURE_SNAPSHOT_EXECUTION','unitId','MOBILE_VERIFY_CODE_MISMATCH','uni.network.url-service','Vector2','OFFLINE','Rect','collabStatus.fetchMiss','hide','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','TEXT_RANGE_LAYER_INDEX','NOT_FOUND','_eventUnsubscribe','ALREADY_EXISTS','touchDependencies','_roomMembers$','transformByState','univer-mr-2\x20univer-flex\x20univer-text-xl','rgba(255,\x20255,\x20255,\x200.01)','getMember','WebURLService','_setupBeforeClosingHandler','assign','getActiveSheet','IMessageService','SheetCollabCursorShape','beginPath','min','startColumn','YUUMI_CONNECTOR_URL_NOT_FOUND','handleInsertRow','handleInsertCol','defineProperty','_docTransformSelectionsService','transformMutation','APPLY_REVISION_CONFILICT','subunit','entries','transformRemoteChangeset','arc','_transformUndoRedoStack','getCurrentUnitForType','includes','CollaborationController','search','redoState','SYNCED','_docStateChangeManagerService','getSheetBySheetId','invokeId','DeleteRangeMoveUpCommandId','_entityInit$','roomMembers$','onMouseMove','session.will-retry','APPLY_PERMISSION_DENIED','HEADER_MENU','requireSession','collabCursorState$','extend','enableLocalCache','icon','_collaborationController','_drawTextRange','then','COLORS','_updateLocalCursor','bottom','measureText','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','textRanges','post','getLocalCacheKey','top','path','_disabled','CollaborationStatusDisplay','YUUMI_ALL_TABLES_IS_INVALID','DocSelectionManagerService','addEventListener','subUnitId','setConfig','_updateSubUnitFromURLParams','handleIRemoveCol','getRelativeToViewportCoord','getViewport','fromEvent','_registerRenderDependencies','div','mutations','wsSessionTicketUrl','text','RichTextEditingMutation','SetDocZoomRatioOperation','_initResize','LICENSE_EXPORT_SIZE_EXCEEDED','send','color','_entities','UNIVER_DOC','drawWith','_clearOtherTimers','CollaborationEvent','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','_initCommandExecutedListener','DeleteRangeMoveLeftCommandId','1em','split','UniverInstanceType','getFocusedUnit','activeSheet$','_onCursorUpdate','_univerInstanceService','url(#$1','round','CollaborationUIEventId','NO_OTHER_CLIENTS_EDITING','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','data','getDocRanges','contains','APPLY_REJECT','params','TRANSFORM_CHANGE_OBSERVABLE_TYPE','RegularPolygon','APPLY_NON_SEQUENTIAL_REVISION','_initDependencies','triggerDblclick','getAncestorScale','DocCollaborationEntity','filter','IDocClipboardService','UnitStatus','_updateCollabCursors','_init','DesktopCollaborationStatusDisplayController','unsubscribe','univer-flex\x20univer-items-center','MOBILE_HAS_BEEN_BOUND','lineTo','YUUMI_SUBSCRIPTION_NOT_FOUND','sessionTicket','clearTimeout','_range','_cachedData','asObservable','executeCommand','useObservable','InsertRangeMoveDownCommandId','SOCKET_FAILED_RETRY','ITransformService','50geTODP','AWAITING_WITH_PENDING','SetWorksheetActivateCommand','getCoordByCell','[CollaborationDataLoaderController]','Injector','CollaborationStatus','from','onPointerEnter$','getCellPositionByOffset','imageSourceType','_refreshCollabCursors','_color','onCommandExecuted','NodePositionConvertToCursor','unload','getCurrentSelections','RemoteUniscriptService','LocaleService','_labelPosition','values','UPDATE_CURSOR','black','SetSelectionsOperation','collaboration.closeRoom','forEach','flatMap','getCollabCursors$','88kEpPfl','m2Prime','[RemoteUniscriptService]:\x20no\x20focused\x20unit','YUUMI_RATE_OVER_LIMIT','YUUMI_NO_CUBOID_FOR_QUESTION','setUndoRedoMutationParamsCache','next','_draw','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','colorChannel1','_selfUnitIDs','AWAITING','_id','getSheetId','setInterval','fillStyle','INVALID_ARGUMENT','code','/run/','_collabCursorState$','_instanceService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','collab-text-anchor-','cursorInfo$','Inject','some','ICommandService','createElement','YUUMI_TABLE_NOT_FOUND_IN_UNIT','connectInjector','_collabCursorController','0\x200\x2017\x2016','replaceDocRanges','_docTransformStateCacheService','column','useDependency','Disposable','subscribeEvent','ILocalStorageService','getColorFromTheme','pushState','_collabSessionService','1148431wuEYON','_notificationService','getRangePointData','getMemberID','makeDirty'];_0x5c7c=function(){return _0x126c47;};return _0x5c7c();}function _t(_0x14ca0c,_0x28d7b7){const _0x42a782=_0xc4034;let {radius:_0x223d51,width:_0x112af2,height:_0x3dc78f}=_0x28d7b7;_0x223d51=_0x223d51!=null?_0x223d51:0x0,_0x112af2=_0x112af2!=null?_0x112af2:0x1e,_0x3dc78f=_0x3dc78f!=null?_0x3dc78f:0x1e;let _0x178c29=0x0,_0x525fca=0x0,_0x2a2084=0x0;_0x178c29=_0x525fca=_0x2a2084=Math[_0x42a782(0x300)](_0x223d51,_0x112af2/0x2,_0x3dc78f/0x2),_0x14ca0c[_0x42a782(0x2ff)](),_0x14ca0c[_0x42a782(0x18c)](_0x178c29,0x0),_0x14ca0c[_0x42a782(0xf2)](_0x112af2-_0x525fca,0x0),_0x14ca0c[_0x42a782(0x30c)](_0x112af2-_0x525fca,_0x525fca,_0x525fca,Math['PI']*0x3/0x2,0x0,!0x1),_0x14ca0c['lineTo'](_0x112af2,_0x3dc78f-_0x2a2084),_0x14ca0c[_0x42a782(0x30c)](_0x112af2-_0x2a2084,_0x3dc78f-_0x2a2084,_0x2a2084,0x0,Math['PI']/0x2,!0x1),_0x14ca0c['lineTo'](0x0,_0x3dc78f),_0x14ca0c[_0x42a782(0xf2)](0x0,_0x178c29),_0x14ca0c[_0x42a782(0x30c)](_0x178c29,_0x178c29,_0x178c29,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14ca0c[_0x42a782(0x151)](),_0x28d7b7[_0x42a782(0x29e)]&&(_0x14ca0c[_0x42a782(0x1fa)](),_0x14ca0c['fillStyle']=_0x28d7b7[_0x42a782(0x29e)],_0x28d7b7['fillRule']===_0x42a782(0x183)?_0x14ca0c['fill'](_0x42a782(0x183)):_0x14ca0c[_0x42a782(0x29e)](),_0x14ca0c[_0x42a782(0x1ea)]());}class ee extends p[_0xc4034(0x212)]{constructor(_0x3d2113,_0x251c9c){const _0x3e444d=_0xc4034;super(_0x3d2113,_0x251c9c),h(this,_0x3e444d(0xc8)),h(this,_0x3e444d(0xc2)),(this['color']=_0x251c9c==null?void 0x0:_0x251c9c[_0x3e444d(0xc8)],this[_0x3e444d(0xc2)]=_0x251c9c==null?void 0x0:_0x251c9c[_0x3e444d(0xc2)]);}static[_0xc4034(0xcb)](_0x4aba97,_0x9a0ceb){const _0x2116e1=_0xc4034,{text:_0xfd12b2,color:_0x4867eb}=_0x9a0ceb;_0x4aba97[_0x2116e1(0x1fa)](),_0x4aba97['font']=_0x2116e1(0x152);const _0x56dbfb=_0x4aba97['measureText'](_0xfd12b2)[_0x2116e1(0x1de)],_0x23e248=Math[_0x2116e1(0x300)](_0x56dbfb+0x2*ne,Re);_t(_0x4aba97,{'height':K,'radius':0x4,'width':_0x23e248,'fill':_0x4867eb}),_0x4aba97[_0x2116e1(0x129)]='#FFF';const _0x46c7b3=ne,_0x5b9548=K-lt,_0x2f873f=Re-0x2*ne;if(_0x56dbfb>_0x2f873f){let _0x476897='',_0xc8c95=0x0;for(const _0xa11975 of _0xfd12b2){const _0x58e8e9=_0x4aba97['measureText'](_0xa11975)['width'];if(_0xc8c95+_0x58e8e9<=_0x2f873f-_0x4aba97[_0x2116e1(0x329)](_0x2116e1(0x158))[_0x2116e1(0x1de)])_0x476897+=_0xa11975,_0xc8c95+=_0x58e8e9;else{_0x476897+='...';break;}}_0x4aba97[_0x2116e1(0x19d)](_0x476897,_0x46c7b3,_0x5b9548);}else _0x4aba97[_0x2116e1(0x19d)](_0xfd12b2,_0x46c7b3,_0x5b9548);_0x4aba97[_0x2116e1(0x1ea)]();}[_0xc4034(0x121)](_0x3708ff){const _0x1aa2c3=_0xc4034;ee[_0x1aa2c3(0xcb)](_0x3708ff,this);}}const re=_0xc4034(0x130),ht=_0xc4034(0x28f),ut=_0xc4034(0x291),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0xc4034(0x2f7);class De{constructor(_0x38d339,_0xdfaa1c,_0x501d0a,_0x44af4f){const _0x46d89e=_0xc4034;h(this,_0x46d89e(0x14d),[]),h(this,_0x46d89e(0x1cf),null),h(this,_0x46d89e(0x167),null),h(this,_0x46d89e(0x16d),null),h(this,_0x46d89e(0x1fb),null),h(this,_0x46d89e(0x2f1),null),(this[_0x46d89e(0x204)]=_0x38d339,this[_0x46d89e(0x2c0)]=_0xdfaa1c,this['_docSkeleton']=_0x501d0a,this[_0x46d89e(0x27b)]=_0x44af4f,this[_0x46d89e(0x2b0)]());}set[_0xc4034(0x2dd)](_0x5759e6){const _0x305044=_0xc4034;_0x5759e6?(this[_0x305044(0x16d)]&&this[_0x305044(0x16d)][_0x305044(0x2ed)](),this['_textBubble']&&this[_0x305044(0x167)]['show']()):(this['_anchorDot']&&this[_0x305044(0x16d)]['show'](),this[_0x305044(0x167)]&&this[_0x305044(0x167)][_0x305044(0x2ed)]());}[_0xc4034(0x164)](){const _0x4034a1=_0xc4034;for(const _0x33ea0c of this['_shapes'])_0x33ea0c['dispose']();this[_0x4034a1(0x167)]&&this[_0x4034a1(0x167)]['dispose'](),this[_0x4034a1(0x16d)]&&this['_anchorDot'][_0x4034a1(0x164)](),this[_0x4034a1(0x1cf)]&&this[_0x4034a1(0x1cf)]['dispose'](),this[_0x4034a1(0x2f1)]&&this['_eventUnsubscribe']();}[_0xc4034(0x2b0)](){const _0x57e3fa=_0xc4034;var _0x19b849;const {_docSkeleton:_0x3191bc,_document:_0x513e8c}=this,{color:_0x4e4408,name:_0xb51617,ranges:_0xe92cfb}=this['_cursor'],_0x31cfaf=_0x513e8c[_0x57e3fa(0x21f)](),{docsLeft:_0x4b6385,docsTop:_0x303913}=_0x31cfaf,_0x46ccc1=new E[(_0x57e3fa(0x10c))](_0x31cfaf,_0x3191bc);for(const {startOffset:_0xf1aa13,endOffset:_0x32414d,rangeType:_0x8ee846,segmentId:_0x13c4c2,segmentPage:_0x44753a,collapsed:_0x332d8f,isActive:_0x2169b4}of _0xe92cfb){const _0x33da9c=_0x3191bc[_0x57e3fa(0x2d7)](_0xf1aa13,!0x0,_0x13c4c2,_0x44753a);let _0x12be13=_0x3191bc[_0x57e3fa(0x2d7)](_0x32414d,!0x0,_0x13c4c2,_0x44753a);if(_0x12be13==null&&(_0x12be13=_0x3191bc[_0x57e3fa(0x2d7)](_0x32414d-0x1,!0x1,_0x13c4c2,_0x44753a)),_0x2169b4){const {contentBoxPointGroup:_0x13bc75}=_0x46ccc1[_0x57e3fa(0x146)](_0x12be13,_0x12be13);if(_0x13bc75[_0x57e3fa(0x23b)]===0x0)continue;this[_0x57e3fa(0x2bc)](_0x4e4408,_0x13bc75,_0x4b6385,_0x303913,_0xb51617),this[_0x57e3fa(0x2f1)]=this[_0x57e3fa(0x21d)]();}if(_0x33da9c&&_0x12be13){if(_0x8ee846===a[_0x57e3fa(0x2d4)][_0x57e3fa(0x14b)]){const _0x3e9f7b=new E[(_0x57e3fa(0x1bf))](_0x31cfaf,_0x3191bc),{pointGroup:_0x48207f}=(_0x19b849=_0x3e9f7b['getRangePointData'](_0x33da9c,_0x12be13))!=null?_0x19b849:{};if(_0x48207f==null||_0x48207f[_0x57e3fa(0x23b)]===0x0)continue;this['_drawRectRange'](_0x4e4408,_0x48207f,_0x4b6385,_0x303913);}else{if(!_0x332d8f){const {borderBoxPointGroup:_0x500982}=_0x46ccc1[_0x57e3fa(0x146)](_0x33da9c,_0x12be13);if(_0x500982[_0x57e3fa(0x23b)]===0x0)continue;this[_0x57e3fa(0x324)](_0x4e4408,_0x500982,_0x4b6385,_0x303913);}}}}}['_drawAnchor'](_0x573c9f,_0x3c525f,_0x43cbbc,_0xdf09b2,_0x2dd0e3){const _0x37ec80=_0xc4034,_0x2290a6=this[_0x37ec80(0x210)](_0x3c525f),{left:_0x45ff90,top:_0x1cca20,height:_0x458326}=_0x2290a6,_0x562e33=this[_0x37ec80(0x2aa)](),_0x33e615=It/_0x562e33,_0x49692e=new p[(_0x37ec80(0x2eb))](re+a[_0x37ec80(0x23a)][_0x37ec80(0x27a)](k),{'left':_0x45ff90+_0x43cbbc-_0x33e615,'top':_0x1cca20+_0xdf09b2,'height':_0x458326,'width':dt,'fill':_0x573c9f||p['getColor'](a['COLORS']['black'],0x0),'strokeWidth':_0x33e615,'stroke':St,'evented':!0x0});this['_anchor']=_0x49692e,this[_0x37ec80(0x2c0)]['addObject'](_0x49692e,E[_0x37ec80(0x2ef)]);const _0x4cfb87=new p['Rect'](re+a[_0x37ec80(0x23a)][_0x37ec80(0x27a)](k),{'left':_0x45ff90+_0x43cbbc-_0x33e615,'top':_0x1cca20+_0xdf09b2-oe/0x2,'height':oe,'width':oe,'fill':_0x573c9f||p[_0x37ec80(0x157)](a['COLORS'][_0x37ec80(0x114)],0x0),'strokeWidth':0x0,'stroke':_0x573c9f||p[_0x37ec80(0x157)](a[_0x37ec80(0x326)]['black'],0x0),'evented':!0x1});this[_0x37ec80(0x16d)]=_0x4cfb87,this[_0x37ec80(0x2c0)][_0x37ec80(0x1d1)](_0x4cfb87,E[_0x37ec80(0x2ef)]);const _0x58fd19=new ee(re+a[_0x37ec80(0x23a)][_0x37ec80(0x27a)](k),{'left':_0x45ff90+_0x43cbbc-_0x33e615,'top':_0x1cca20+_0xdf09b2-K,'text':_0x2dd0e3,'color':_0x573c9f});this['_textBubble']=_0x58fd19,this[_0x37ec80(0x2c0)][_0x37ec80(0x1d1)](_0x58fd19,E['TEXT_RANGE_LAYER_INDEX']),this[_0x37ec80(0x2dd)]=!0x1;}[_0xc4034(0x21d)](){const _0x368273=_0xc4034,_0x24d5c1=this['_anchor'][_0x368273(0x106)][_0x368273(0x13f)](()=>{const _0x59a1b8=_0x368273;this[_0x59a1b8(0x2dd)]=!0x0;}),_0x5404ca=this[_0x368273(0x1cf)][_0x368273(0x287)]['subscribeEvent'](()=>{const _0x553706=_0x368273;this[_0x553706(0x1fb)]&&clearTimeout(this[_0x553706(0x1fb)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x445382=_0x368273;_0x24d5c1[_0x445382(0xef)](),_0x5404ca[_0x445382(0xef)]();};}[_0xc4034(0x324)](_0x2f068e,_0x213cf2,_0xb104f4,_0x81d5a4){const _0xe0291f=_0xc4034,_0x30983e=new a[(_0xe0291f(0x259))](_0x2f068e)[_0xe0291f(0x2ac)](0.2)['toRgbString'](),_0x4e4af0=new p[(_0xe0291f(0xe3))](ht+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x213cf2,'fill':_0x30983e||p[_0xe0291f(0x157)](a['COLORS'][_0xe0291f(0x114)],0.2),'left':_0xb104f4,'top':_0x81d5a4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe0291f(0x14d)][_0xe0291f(0x17e)](_0x4e4af0),this['_scene'][_0xe0291f(0x1d1)](_0x4e4af0,E['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x351f47,_0x485a2d,_0x4c6203,_0x4d080a){const _0x438c95=_0xc4034,_0x2d4e7f=new a[(_0x438c95(0x259))](_0x351f47)['setAlpha'](0.2)['toRgbString'](),_0x466670=new p[(_0x438c95(0xe3))](ut+a[_0x438c95(0x23a)][_0x438c95(0x27a)](k),{'pointsGroup':_0x485a2d,'fill':_0x2d4e7f||p[_0x438c95(0x157)](a[_0x438c95(0x326)]['black'],0.2),'left':_0x4c6203,'top':_0x4d080a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x438c95(0x14d)][_0x438c95(0x17e)](_0x466670),this[_0x438c95(0x2c0)][_0x438c95(0x1d1)](_0x466670,E[_0x438c95(0x2ef)]);}['_getAnchorBounding'](_0x3a0401){const _0x2ebd95=_0x3a0401[0x0],_0x1a58b2=_0x2ebd95[0x0],_0x132938=_0x2ebd95[0x2],{x:_0x2cf43c,y:_0x15bf24}=_0x1a58b2,{x:_0x1a8399,y:_0x559008}=_0x132938;return{'left':_0x2cf43c,'top':_0x15bf24,'width':_0x1a8399-_0x2cf43c,'height':_0x559008-_0x15bf24};}[_0xc4034(0x2aa)](){const _0xe3f810=_0xc4034,{scaleX:_0xff6475,scaleY:_0x13aa69}=this[_0xe3f810(0x2c0)][_0xe3f810(0xe7)]();return Math['max'](_0xff6475,_0x13aa69);}}var ft=Object[_0xc4034(0x2b1)],vt=(_0x1f1e4e,_0x3a4cd8,_0x353614,_0x9bf60)=>{const _0x48e476=_0xc4034;for(var _0x4088a8=_0x9bf60>0x1?void 0x0:_0x9bf60?ft(_0x3a4cd8,_0x353614):_0x3a4cd8,_0xf7aa87=_0x1f1e4e[_0x48e476(0x23b)]-0x1,_0x469706;_0xf7aa87>=0x0;_0xf7aa87--)(_0x469706=_0x1f1e4e[_0xf7aa87])&&(_0x4088a8=_0x469706(_0x4088a8)||_0x4088a8);return _0x4088a8;},W=(_0x5d00c2,_0x295586)=>(_0xa05d59,_0x276c98)=>_0x295586(_0xa05d59,_0x276c98,_0x5d00c2);let fe=class extends a[_0xc4034(0x2ab)]{constructor(_0x364a13,_0xcf5991,_0x42dd99,_0x19adc0,_0x542d2a){const _0x2b8bae=_0xc4034;super(),h(this,_0x2b8bae(0x16e),[]),h(this,_0x2b8bae(0x1ed),[]),(this[_0x2b8bae(0x177)]=_0x364a13,this[_0x2b8bae(0x189)]=_0xcf5991,this[_0x2b8bae(0x138)]=_0x42dd99,this[_0x2b8bae(0x268)]=_0x19adc0,this[_0x2b8bae(0x298)]=_0x542d2a,this[_0x2b8bae(0xed)]());}[_0xc4034(0xed)](){const _0x31396a=_0xc4034,_0x576ba3=this['_context'][_0x31396a(0x2e6)],_0x1f0111=this[_0x31396a(0x189)];this[_0x31396a(0x27e)](d[_0x31396a(0x285)]([this[_0x31396a(0x138)][_0x31396a(0x119)](_0x576ba3),this[_0x31396a(0x298)][_0x31396a(0x1e0)]])[_0x31396a(0x181)]($['map'](([_0x69dc8a,_0x415c78])=>({'skeleton':_0x1f0111[_0x31396a(0x206)](),'cursors':[..._0x69dc8a[_0x31396a(0x112)]()][_0x31396a(0x118)](_0xff0612=>({..._0xff0612,'color':this[_0x31396a(0x298)][_0x31396a(0x141)](_0xff0612['color'])}))})))[_0x31396a(0x2cb)](_0x2feb92=>{const _0x7bcd98=_0x31396a;if(this[_0x7bcd98(0x2db)](),_0x2feb92){const {skeleton:_0x5516cf,cursors:_0x7b924b}=_0x2feb92;this[_0x7bcd98(0xec)](_0x5516cf,_0x7b924b);}})),this[_0x31396a(0xc5)](),this[_0x31396a(0xcf)]();}[_0xc4034(0xec)](_0x19d5cf,_0x538aa6){const _0x5562f0=_0xc4034,{scene:_0x195aa4,mainComponent:_0xd74b9f}=this[_0x5562f0(0x177)],_0x450d0c=_0x538aa6[_0x5562f0(0x200)](_0x1b662e=>new De(_0x1b662e,_0x195aa4,_0x19d5cf,_0xd74b9f));this[_0x5562f0(0x16e)]=_0x450d0c,this[_0x5562f0(0x1ed)]=_0x538aa6;}[_0xc4034(0x109)](){const _0x47e423=_0xc4034;this[_0x47e423(0x2db)]();const {scene:_0x26b7e7,mainComponent:_0x46acc4}=this[_0x47e423(0x177)],_0x1cb455=this['_docSkeletonManagerService']['getSkeleton'](),_0x514533=this[_0x47e423(0x1ed)][_0x47e423(0x200)](_0x50567e=>new De(_0x50567e,_0x26b7e7,_0x1cb455,_0x46acc4));this[_0x47e423(0x16e)]=_0x514533;}[_0xc4034(0x2db)](){const _0x23cbf9=_0xc4034;this[_0x23cbf9(0x16e)][_0x23cbf9(0x117)](_0x38c1dd=>_0x38c1dd[_0x23cbf9(0x164)]()),this['_cursorShapes']=[];}[_0xc4034(0xcf)](){const _0x277f0f=_0xc4034,_0x1ada38=[E[_0x277f0f(0xc4)]['id']];this['disposeWithMe'](this[_0x277f0f(0x268)][_0x277f0f(0x10b)](_0xc26fd4=>{const _0x22ed5d=_0x277f0f;_0x1ada38[_0x22ed5d(0x30f)](_0xc26fd4['id'])&&_0xc26fd4[_0x22ed5d(0xe1)][_0x22ed5d(0x2e6)]===this[_0x22ed5d(0x177)][_0x22ed5d(0x2e6)]&&this[_0x22ed5d(0x109)]();}));}['_initResize'](){const _0x303481=_0xc4034;this[_0x303481(0x27e)](a[_0x303481(0x295)](this['_context'][_0x303481(0x258)][_0x303481(0x241)])[_0x303481(0x181)]($['filter'](_0x198883=>_0x198883[_0x303481(0x29c)]===p[_0x303481(0xe2)]['resize']),$[_0x303481(0x19b)](0x10))[_0x303481(0x2cb)](()=>{const _0x1576da=_0x303481;this[_0x1576da(0x109)]();}));}};fe=vt([W(0x1,a[_0xc4034(0x132)](Y['DocSkeletonManagerService'])),W(0x2,a[_0xc4034(0x132)](x)),W(0x3,a[_0xc4034(0x134)]),W(0x4,a[_0xc4034(0x132)](a[_0xc4034(0x14f)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0xc4034(0x212)]{constructor(_0x2a5e7f,_0x1c87d6){const _0x229745=_0xc4034;super(_0x2a5e7f,_0x1c87d6),h(this,'_color'),h(this,_0x229745(0x176),!0x1),h(this,_0x229745(0xf6)),h(this,_0x229745(0x1a4),''),h(this,'_labelPosition',_0x229745(0x32e)),h(this,_0x229745(0x1d9)),(_0x1c87d6&&this['setShapeProps'](_0x1c87d6),this[_0x229745(0x106)][_0x229745(0x13f)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x229745(0x287)][_0x229745(0x13f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0xc4034(0x1e9)](_0x1e81da){const _0x544063=_0xc4034;var _0x17315f,_0x378a7a,_0x250f74,_0x54d7ed,_0x2803d7,_0x2c4184;this[_0x544063(0x10a)]=(_0x17315f=_0x1e81da[_0x544063(0xc8)])!=null?_0x17315f:this['_color'],this[_0x544063(0x176)]=(_0x378a7a=_0x1e81da[_0x544063(0x195)])!=null?_0x378a7a:this[_0x544063(0x176)],this[_0x544063(0xf6)]=(_0x250f74=_0x1e81da['range'])!=null?_0x250f74:this['_range'],this[_0x544063(0x1a4)]=(_0x54d7ed=_0x1e81da[_0x544063(0x2a0)])!=null?_0x54d7ed:this['_name'],this[_0x544063(0x111)]=(_0x2803d7=_0x1e81da['labelPosition'])!=null?_0x2803d7:this[_0x544063(0x111)],this[_0x544063(0x1d9)]=(_0x2c4184=_0x1e81da['backgroundColor'])!=null?_0x2c4184:this[_0x544063(0x1d9)],this[_0x544063(0x2f5)]({'width':_0x1e81da[_0x544063(0x1de)],'height':_0x1e81da['height']});}[_0xc4034(0x31a)](_0x29af5d){const _0x27c16c=_0xc4034,{row:_0x1c47f7,column:_0x448740}=_0x29af5d;if(_0x1c47f7>=this[_0x27c16c(0xf6)][_0x27c16c(0x1af)]&&_0x1c47f7<=this[_0x27c16c(0xf6)][_0x27c16c(0x236)]&&_0x448740>=this[_0x27c16c(0xf6)][_0x27c16c(0x301)]&&_0x448740<=this['_range'][_0x27c16c(0x1f8)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0xc4034(0xe6)](_0x1c14db){return!0x1;}[_0xc4034(0x121)](_0x4ff25a){const _0xa22e7d=_0xc4034;p[_0xa22e7d(0x2eb)][_0xa22e7d(0xcb)](_0x4ff25a,{'width':this[_0xa22e7d(0x1de)],'height':this[_0xa22e7d(0x2cd)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xa22e7d(0x1d9)]}),this[_0xa22e7d(0x176)]&&(_0x4ff25a[_0xa22e7d(0x1fa)](),_0x4ff25a[_0xa22e7d(0x165)](0x1,0x0,0x0,0x1,this[_0xa22e7d(0x1de)],this['_labelPosition']===_0xa22e7d(0x328)?0x0:-0x14),ee['drawWith'](_0x4ff25a,{'text':this[_0xa22e7d(0x1a4)],'color':this[_0xa22e7d(0x10a)]}),_0x4ff25a['restore']());}}var Ct=Object[_0xc4034(0x2b1)],pt=(_0x3d6275,_0x23c496,_0x364da2,_0x3beeae)=>{const _0x42aaea=_0xc4034;for(var _0x488a13=_0x3beeae>0x1?void 0x0:_0x3beeae?Ct(_0x23c496,_0x364da2):_0x23c496,_0x37dfb4=_0x3d6275[_0x42aaea(0x23b)]-0x1,_0x5ca525;_0x37dfb4>=0x0;_0x37dfb4--)(_0x5ca525=_0x3d6275[_0x37dfb4])&&(_0x488a13=_0x5ca525(_0x488a13)||_0x488a13);return _0x488a13;},ae=(_0x460847,_0x10c007)=>(_0xcc8f31,_0x1465d0)=>_0x10c007(_0xcc8f31,_0x1465d0,_0x460847);const Et=0x1389;let ve=class extends a[_0xc4034(0x2ab)]{constructor(_0x65582d,_0x5556da,_0x336477,_0x578418){const _0x5c3976=_0xc4034;super(),h(this,_0x5c3976(0x1ed),new Set()),h(this,'_lastPointer',null),(this[_0x5c3976(0x177)]=_0x65582d,this[_0x5c3976(0x2c7)]=_0x5556da,this[_0x5c3976(0x138)]=_0x336477,this['_themeService']=_0x578418,this[_0x5c3976(0xed)]());}[_0xc4034(0xed)](){const _0x49d640=_0xc4034;this['_sheetSkeletonManagerService'][_0x49d640(0x1c0)][_0x49d640(0x181)]($['takeUntil'](this[_0x49d640(0x1a5)]),$[_0x49d640(0x1d8)](_0x12649b=>{const _0x717b51=_0x49d640;if(_0x12649b){const _0x448947=_0x12649b[_0x717b51(0x26c)];return d['combineLatest'](this[_0x717b51(0x138)][_0x717b51(0x119)](this[_0x717b51(0x177)][_0x717b51(0x2e6)]),this[_0x717b51(0x298)][_0x717b51(0x1e0)])['pipe']($[_0x717b51(0x200)](([_0x4d21f2,_0x26705a])=>{const _0x180703=new Map();return _0x4d21f2['forEach']((_0x20b331,_0x1204cf)=>{const _0x2a6f23=_0x7c6d;if(_0x20b331['sheetID']===_0x448947){const _0x41d339={..._0x20b331};_0x41d339['color']=this['_themeService'][_0x2a6f23(0x141)](_0x20b331[_0x2a6f23(0xc8)]),_0x180703['set'](_0x1204cf,_0x41d339);}}),{'skeleton':_0x12649b,'cursors':_0x180703};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x49d640(0x2cb)](({skeleton:_0x584994,cursors:_0x346bfd})=>{const _0x3bb75f=_0x49d640;this[_0x3bb75f(0x2db)](),_0x584994&&this['_updateCollabCursors'](_0x584994,_0x346bfd);}),this['_sheetSkeletonManagerService'][_0x49d640(0x1c0)][_0x49d640(0x2cb)](_0x32274f=>{const _0x59e302=_0x49d640;if(_0x32274f==null)return;const {skeleton:_0x379399}=_0x32274f,{scene:_0x4959c7}=this[_0x59e302(0x177)];_0x4959c7['onPointerMove$'][_0x59e302(0x13f)](a[_0x59e302(0x174)](_0x179c15=>{const _0x894787=_0x59e302;var _0x1e7d4f,_0x31cfac;const {offsetX:_0x303f81,offsetY:_0x3e0e38}=_0x179c15,{x:_0x2a829c,y:_0x18303f}=_0x4959c7[_0x894787(0xbb)](p[_0x894787(0x2e9)][_0x894787(0x29d)]([_0x303f81,_0x3e0e38])),{scaleX:_0xde5793,scaleY:_0x3ddb11}=_0x4959c7['getAncestorScale'](),_0x2644e7=_0x4959c7[_0x894787(0xbc)](p[_0x894787(0x269)]['VIEW_MAIN']),_0x4a8316=_0x4959c7[_0x894787(0x27f)](p[_0x894787(0x2e9)][_0x894787(0x29d)]([_0x2a829c,_0x18303f]),_0x2644e7),_0x3b33ec=_0x379399[_0x894787(0x107)](_0x303f81,_0x3e0e38,_0xde5793,_0x3ddb11,_0x4a8316);((_0x1e7d4f=this[_0x894787(0x24d)])==null?void 0x0:_0x1e7d4f[_0x894787(0x13c)])===_0x3b33ec[_0x894787(0x13c)]&&((_0x31cfac=this['_lastPointer'])==null?void 0x0:_0x31cfac['row'])===_0x3b33ec[_0x894787(0x1c5)]||this[_0x894787(0x1ed)][_0x894787(0x117)](_0x207e55=>{const _0x285f35=_0x894787;_0x207e55[_0x285f35(0x31a)](_0x3b33ec);});},0x64));});}['_updateCollabCursors'](_0x590ec3,_0x49a18e){const _0x387cd7=_0xc4034;var _0x1ba06f;const _0x55bb21=(_0x1ba06f=this[_0x387cd7(0x2c7)]['getCurrent']())==null?void 0x0:_0x1ba06f['skeleton'];if(!_0x55bb21)return;const _0x99f051=this['_getSheetObject']();if(!_0x99f051)return;this['_cursors'][_0x387cd7(0x117)](_0x180723=>{const _0x5d4af0=_0x387cd7;_0x180723[_0x5d4af0(0x148)]();});const {scene:_0x3a0334}=_0x99f051,_0x3f055a=bt(Array[_0x387cd7(0x105)](_0x49a18e[_0x387cd7(0x112)]()))[_0x387cd7(0x200)](_0x5e2281=>{const _0x3e0310=_0x387cd7,{color:_0xe40e4e,range:_0x17b646,name:_0x1400e3,selection:_0x413f2e,sheetID:_0x498c63}=_0x5e2281,{startColumn:_0x429e9b,startRow:_0x2a07bd,endColumn:_0x584abe,endRow:_0x2eb4bf}=_0x17b646,_0x1d4a59=X[_0x3e0310(0x101)](_0x2a07bd,_0x429e9b,_0x3a0334,_0x55bb21),_0x5f468f=X['getCoordByCell'](_0x2eb4bf,_0x584abe,_0x3a0334,_0x55bb21),{columnHeaderHeightAndMarginTop:_0x16fe3e}=_0x55bb21,{startX:_0x4da128,startY:_0x490ded}=_0x1d4a59,{endX:_0x5459e9,endY:_0x2c4292}=_0x5f468f,_0x3ac1ce=_0x5459e9-_0x4da128,_0x513efd=_0x2c4292-_0x490ded,_0x1cb515={'labelPosition':_0x490ded-_0x16fe3e>=K?_0x3e0310(0x32e):_0x3e0310(0x328),'sheetID':_0x498c63,'range':_0x17b646,'color':_0xe40e4e,'name':_0x1400e3,'selection':_0x413f2e,'left':_0x4da128,'top':_0x490ded,'width':_0x3ac1ce,'height':_0x513efd,'evented':!0x1,'zIndex':Et};return new we(_0x1400e3,_0x1cb515);});_0x3a0334['addObjects'](_0x3f055a,gt),this[_0x387cd7(0x1ed)]=new Set(_0x3f055a);}[_0xc4034(0x2db)](){const _0xd6dfa0=_0xc4034;var _0xb14dd7;(_0xb14dd7=this[_0xd6dfa0(0x1ed)])==null||_0xb14dd7[_0xd6dfa0(0x117)](_0x228e00=>_0x228e00[_0xd6dfa0(0x164)]());}[_0xc4034(0x205)](){const _0x33470e=_0xc4034;return X[_0x33470e(0x267)](this[_0x33470e(0x177)][_0x33470e(0x2b2)],this[_0x33470e(0x177)]);}};ve=pt([ae(0x1,a[_0xc4034(0x132)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xc4034(0x132)](a[_0xc4034(0x14f)]))],ve);function bt(_0x3a2a00){const _0x482a15=_0xc4034,_0x10013e=new Map();return _0x3a2a00[_0x482a15(0x117)](_0x4c4f21=>{const _0x2a9737=_0x482a15;if(_0x10013e[_0x2a9737(0x213)](_0x4c4f21['selection'])){const _0x5b981d=_0x10013e[_0x2a9737(0x2a1)](_0x4c4f21[_0x2a9737(0x1e5)]);_0x5b981d['name']+=',\x20'+_0x4c4f21[_0x2a9737(0x2a0)];}else _0x10013e[_0x2a9737(0x270)](_0x4c4f21[_0x2a9737(0x1e5)],_0x4c4f21);}),Array[_0x482a15(0x105)](_0x10013e['values']());}var b=function(){const _0x316c81=_0xc4034;return b=Object[_0x316c81(0x2fb)]||function(_0x4e47f7){const _0x2feed2=_0x316c81;for(var _0x12faed,_0x190e43=0x1,_0x346439=arguments[_0x2feed2(0x23b)];_0x190e43<_0x346439;_0x190e43++){_0x12faed=arguments[_0x190e43];for(var _0x685988 in _0x12faed)Object[_0x2feed2(0x2d9)][_0x2feed2(0x275)][_0x2feed2(0x2da)](_0x12faed,_0x685988)&&(_0x4e47f7[_0x685988]=_0x12faed[_0x685988]);}return _0x4e47f7;},b['apply'](this,arguments);},Ot=function(_0x5414e3,_0x19a049){const _0x5f813=_0xc4034;var _0x4ee476={};for(var _0x50bda0 in _0x5414e3)Object['prototype'][_0x5f813(0x275)]['call'](_0x5414e3,_0x50bda0)&&_0x19a049['indexOf'](_0x50bda0)<0x0&&(_0x4ee476[_0x50bda0]=_0x5414e3[_0x50bda0]);if(_0x5414e3!=null&&typeof Object['getOwnPropertySymbols']==_0x5f813(0x245)){for(var _0x534234=0x0,_0x50bda0=Object['getOwnPropertySymbols'](_0x5414e3);_0x534234<_0x50bda0[_0x5f813(0x23b)];_0x534234++)_0x19a049['indexOf'](_0x50bda0[_0x534234])<0x0&&Object[_0x5f813(0x2d9)]['propertyIsEnumerable'][_0x5f813(0x2da)](_0x5414e3,_0x50bda0[_0x534234])&&(_0x4ee476[_0x50bda0[_0x534234]]=_0x5414e3[_0x50bda0[_0x534234]]);}return _0x4ee476;},pe=M['forwardRef'](function(_0x5864ea,_0x26e9ad){const _0x26bab2=_0xc4034;var _0x526281=_0x5864ea[_0x26bab2(0x322)],_0x2a215c=_0x5864ea['id'],_0x1764f9=_0x5864ea[_0x26bab2(0x281)],_0x1282d8=_0x5864ea[_0x26bab2(0x320)],_0x38eca9=Ot(_0x5864ea,[_0x26bab2(0x322),'id',_0x26bab2(0x281),_0x26bab2(0x320)]),_0x337028=_0x26bab2(0x22b)[_0x26bab2(0x1be)](_0x2a215c,'\x20')['concat'](_0x1764f9||'')[_0x26bab2(0x1f2)](),_0x1b2a7b=M[_0x26bab2(0x2c4)]('_'[_0x26bab2(0x1be)](Dt()));return Ae(_0x526281,''[_0x26bab2(0x1be)](_0x2a215c),{'defIds':_0x526281[_0x26bab2(0x290)],'idSuffix':_0x1b2a7b['current']},b({'ref':_0x26e9ad,'className':_0x337028},_0x38eca9),_0x1282d8);});function Ae(_0x124e70,_0x4fc9fe,_0x540d8f,_0xeccfa6,_0x390167){const _0x396bb0=_0xc4034;return M[_0x396bb0(0x135)](_0x124e70[_0x396bb0(0x18d)],b(b({'key':_0x4fc9fe},Tt(_0x124e70,_0x540d8f,_0x390167)),_0xeccfa6),(Rt(_0x124e70,_0x540d8f)[_0x396bb0(0x1eb)]||[])['map'](function(_0x4f77d1,_0x1b81c6){const _0x5142ac=_0x396bb0;return Ae(_0x4f77d1,''[_0x5142ac(0x1be)](_0x4fc9fe,'-')[_0x5142ac(0x1be)](_0x124e70[_0x5142ac(0x18d)],'-')[_0x5142ac(0x1be)](_0x1b81c6),_0x540d8f,void 0x0,_0x390167);}));}function Tt(_0x43ce27,_0x50fc73,_0x56314c){const _0x409e48=_0xc4034;var _0x5352d3=b({},_0x43ce27[_0x409e48(0x2d3)]);_0x56314c!=null&&_0x56314c[_0x409e48(0x123)]&&_0x5352d3[_0x409e48(0x29e)]===_0x409e48(0x123)&&(_0x5352d3[_0x409e48(0x29e)]=_0x56314c[_0x409e48(0x123)]),_0x43ce27[_0x409e48(0x18d)]===_0x409e48(0x1d3)&&_0x5352d3['id']&&(_0x5352d3['id']=_0x5352d3['id']+_0x50fc73[_0x409e48(0x2cc)]),Object[_0x409e48(0x30a)](_0x5352d3)['forEach'](function(_0x2eb364){const _0x3e88bf=_0x409e48;var _0x4cd280=_0x2eb364[0x0],_0x3576a8=_0x2eb364[0x1];_0x4cd280===_0x3e88bf(0x1d3)&&typeof _0x3576a8==_0x3e88bf(0x238)&&(_0x5352d3[_0x4cd280]=_0x3576a8['replace'](/url\(#(.*)\)/,_0x3e88bf(0xd8)[_0x3e88bf(0x1be)](_0x50fc73[_0x3e88bf(0x2cc)],')')));});var _0x5e92cb=_0x50fc73[_0x409e48(0x290)];return!_0x5e92cb||_0x5e92cb[_0x409e48(0x23b)]===0x0||(_0x43ce27['tag']===_0x409e48(0x1a3)&&_0x5352d3['xlink:href']&&(_0x5352d3[_0x409e48(0x2c6)]=_0x5352d3['xlink:href']+_0x50fc73['idSuffix']),Object[_0x409e48(0x30a)](_0x5352d3)[_0x409e48(0x117)](function(_0xb50e2d){const _0x4f98f4=_0x409e48;var _0x11292b=_0xb50e2d[0x0],_0x201184=_0xb50e2d[0x1];typeof _0x201184==_0x4f98f4(0x238)&&(_0x5352d3[_0x11292b]=_0x201184[_0x4f98f4(0x1da)](/url\(#(.*)\)/,_0x4f98f4(0xd8)[_0x4f98f4(0x1be)](_0x50fc73[_0x4f98f4(0x2cc)],')')));})),_0x5352d3;}function Rt(_0x11321c,_0x1ebf83){const _0x5401ba=_0xc4034;var _0x4d1274,_0xc3355c=_0x1ebf83[_0x5401ba(0x290)];return!_0xc3355c||_0xc3355c['length']===0x0?_0x11321c:_0x11321c['tag']===_0x5401ba(0x222)&&(!((_0x4d1274=_0x11321c[_0x5401ba(0x1eb)])===null||_0x4d1274===void 0x0)&&_0x4d1274[_0x5401ba(0x23b)])?b(b({},_0x11321c),{'children':_0x11321c['children'][_0x5401ba(0x200)](function(_0x293971){const _0x349a74=_0x5401ba;return typeof _0x293971[_0x349a74(0x2d3)]['id']==_0x349a74(0x238)&&_0xc3355c&&_0xc3355c[_0x349a74(0x30f)](_0x293971[_0x349a74(0x2d3)]['id'])?b(b({},_0x293971),{'attrs':b(b({},_0x293971[_0x349a74(0x2d3)]),{'id':_0x293971[_0x349a74(0x2d3)]['id']+_0x1ebf83['idSuffix']})}):_0x293971;})}):_0x11321c;}function Dt(){const _0x39c71e=_0xc4034;return Math[_0x39c71e(0x231)]()[_0x39c71e(0x28e)](0x24)[_0x39c71e(0x1e8)](0x2,0x8);}pe[_0xc4034(0x20d)]=_0xc4034(0x170);var Ut={'tag':_0xc4034(0x175),'attrs':{'xmlns':_0xc4034(0x2c3),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0xc4034(0xd1)},'children':[{'tag':'g','attrs':{'clipPath':_0xc4034(0x22f)},'children':[{'tag':_0xc4034(0x32f),'attrs':{'stroke':_0xc4034(0x299),'d':_0xc4034(0xdc),'strokeLinecap':_0xc4034(0xd9),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xc4034(0x222),'attrs':{},'children':[{'tag':_0xc4034(0x1d2),'attrs':{'id':_0xc4034(0x248)},'children':[{'tag':_0xc4034(0x32f),'attrs':{'fill':_0xc4034(0x283),'d':_0xc4034(0x288)}}]}]}],'defIds':[_0xc4034(0x248)]},ye=M[_0xc4034(0x2af)](function(_0x1748ce,_0x159a5b){const _0x528d54=_0xc4034;return M[_0x528d54(0x135)](pe,Object[_0x528d54(0x2fb)]({},_0x1748ce,{'id':_0x528d54(0x19f),'ref':_0x159a5b,'icon':Ut}));});ye[_0xc4034(0x20d)]='OffLineIcon';var Nt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xc4034(0x139),'width':_0xc4034(0xd1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xc4034(0x2a2)},'children':[{'tag':'path','attrs':{'stroke':_0xc4034(0x299),'d':_0xc4034(0xce),'strokeLinecap':_0xc4034(0xd9),'strokeLinejoin':_0xc4034(0xd9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xc4034(0x193)},'children':[{'tag':_0xc4034(0x32f),'attrs':{'fill':_0xc4034(0x283),'d':_0xc4034(0x288),'transform':_0xc4034(0x254)}}]}]}],'defIds':[_0xc4034(0x193)]},$e=M['forwardRef'](function(_0x36f05f,_0x3f0ae1){const _0xa9990e=_0xc4034;return M[_0xa9990e(0x135)](pe,Object[_0xa9990e(0x2fb)]({},_0x36f05f,{'id':'on-line-icon','ref':_0x3f0ae1,'icon':Nt}));});$e[_0xc4034(0x20d)]=_0xc4034(0x17b);function Mt(_0xd479d2){const _0xa5ca92=_0xc4034;switch(_0xd479d2){case u[_0xa5ca92(0x104)][_0xa5ca92(0x2ea)]:return'collabStatus.offline';case u[_0xa5ca92(0x104)][_0xa5ca92(0x2c8)]:return _0xa5ca92(0x178);case u['CollaborationStatus'][_0xa5ca92(0x1ba)]:return _0xa5ca92(0x2ec);case u[_0xa5ca92(0x104)][_0xa5ca92(0x20e)]:return _0xa5ca92(0x294);case u[_0xa5ca92(0x104)][_0xa5ca92(0x125)]:case u[_0xa5ca92(0x104)][_0xa5ca92(0xff)]:return _0xa5ca92(0x279);case u['CollaborationStatus'][_0xa5ca92(0x313)]:case u[_0xa5ca92(0x104)][_0xa5ca92(0x14c)]:return'collabStatus.synced';}}function xe(_0x43fc7){const _0x1ebc6a=_0xc4034,{status$:_0x57b75c}=_0x43fc7,_0x4aefce=O[_0x1ebc6a(0xfa)](_0x57b75c,u[_0x1ebc6a(0x104)]['NOT_COLLAB']),_0x53bf5a=O[_0x1ebc6a(0x13d)](a[_0x1ebc6a(0x110)]),_0x4c6572=O[_0x1ebc6a(0x13d)](u[_0x1ebc6a(0x25c)]),_0x2dcbac=_0x4aefce!==u[_0x1ebc6a(0x104)]['OFFLINE'],_0x1f3a48=_0x53bf5a['t'](Mt(_0x4aefce)),_0x539345=_0x2dcbac?P['jsx']($e,{}):P[_0x1ebc6a(0x284)](ye,{}),_0x23d3e8=M[_0x1ebc6a(0x1d7)](()=>{_0x2dcbac||_0x4c6572['reconnect']();},[_0x2dcbac,_0x4c6572]);function _0x2f197e(){const _0x5f0d7b=_0x1ebc6a;return P[_0x5f0d7b(0x1a7)](_0x5f0d7b(0xbf),{'className':_0x5f0d7b(0xf0),'onClick':_0x23d3e8,'children':[P['jsx'](_0x5f0d7b(0xbf),{'className':D['clsx'](_0x5f0d7b(0x2f6),{'univer-text-green-500':_0x2dcbac,'univer-text-red-500':!_0x2dcbac}),'children':_0x539345}),P[_0x5f0d7b(0x284)](_0x5f0d7b(0xbf),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1f3a48})]});}return _0x2dcbac?_0x2f197e():P[_0x1ebc6a(0x284)](D[_0x1ebc6a(0x29f)],{'title':_0x53bf5a['t'](_0x1ebc6a(0x28a)),'children':_0x2f197e()});}var Lt=Object[_0xc4034(0x2b1)],Pt=(_0x2e87a8,_0x2f8779,_0x5a4c68,_0x31962e)=>{const _0x20c7fd=_0xc4034;for(var _0x1c7996=_0x31962e>0x1?void 0x0:_0x31962e?Lt(_0x2f8779,_0x5a4c68):_0x2f8779,_0x4ddbf3=_0x2e87a8[_0x20c7fd(0x23b)]-0x1,_0x210ba2;_0x4ddbf3>=0x0;_0x4ddbf3--)(_0x210ba2=_0x2e87a8[_0x4ddbf3])&&(_0x1c7996=_0x210ba2(_0x1c7996)||_0x1c7996);return _0x1c7996;},V=(_0x293360,_0x17ea44)=>(_0x407597,_0x3b6fe3)=>_0x17ea44(_0x407597,_0x3b6fe3,_0x293360);exports[_0xc4034(0xee)]=class extends a['Disposable']{constructor(_0x3ca3c5,_0x414fd1,_0x53c88f,_0x4779cd){const _0x59f349=_0xc4034;super(),h(this,_0x59f349(0x196),new d[(_0x59f349(0x265))](u[_0x59f349(0x104)][_0x59f349(0x20e)])),(this[_0x59f349(0xd7)]=_0x3ca3c5,this['_injector']=_0x414fd1,this[_0x59f349(0x323)]=_0x53c88f,this['_uiPartsService']=_0x4779cd,this[_0x59f349(0x171)](),this['_initStatusListener']());}[_0xc4034(0x1ce)](){const _0x196dd4=_0xc4034;this[_0x196dd4(0x27e)](this[_0x196dd4(0xd7)][_0x196dd4(0x26a)][_0x196dd4(0x181)](d[_0x196dd4(0x1d8)](()=>{const _0x49977f=_0x196dd4,_0x25a36f=this[_0x49977f(0xd7)][_0x49977f(0xd4)]();return _0x25a36f?this[_0x49977f(0x323)][_0x49977f(0x16a)](_0x25a36f['getUnitId']()):d['of'](null);}),d[_0x196dd4(0x1d8)](_0x5bf918=>_0x5bf918?_0x5bf918[_0x196dd4(0x240)]:d['of'](u[_0x196dd4(0x104)][_0x196dd4(0x20e)])))['subscribe'](_0x4b2b88=>{const _0x36b65b=_0x196dd4;this[_0x36b65b(0x196)][_0x36b65b(0x120)](_0x4b2b88);}));}[_0xc4034(0x171)](){const _0x31e31b=_0xc4034;this[_0x31e31b(0x27e)](this['_uiPartsService'][_0x31e31b(0x2b7)](O[_0x31e31b(0x256)][_0x31e31b(0x31d)],()=>O[_0x31e31b(0x137)](wt({'status$':this['_status$'][_0x31e31b(0xf8)]()}),this[_0x31e31b(0x1d5)])));}},exports[_0xc4034(0xee)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0xc4034(0x132)](a[_0xc4034(0x103)])),V(0x2,a[_0xc4034(0x132)](u[_0xc4034(0x310)])),V(0x3,O[_0xc4034(0x163)])],exports[_0xc4034(0xee)]);function wt(_0xc7e780){const {status$:_0x337387}=_0xc7e780;return function(){const _0x35e569=_0x7c6d;return P[_0x35e569(0x284)](xe,{'status$':_0x337387});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x8f859c,_0xc79879,_0x280c8b,_0x1790a3)=>{for(var _0x322346=_0x1790a3>0x1?void 0x0:_0x1790a3?At(_0xc79879,_0x280c8b):_0xc79879,_0x4447a4=_0x8f859c['length']-0x1,_0x56b871;_0x4447a4>=0x0;_0x4447a4--)(_0x56b871=_0x8f859c[_0x4447a4])&&(_0x322346=_0x56b871(_0x322346)||_0x322346);return _0x322346;},y=(_0xe12b33,_0x416cd5)=>(_0x178280,_0xfc0fde)=>_0x416cd5(_0x178280,_0xfc0fde,_0xe12b33);let q=class extends a['Disposable']{constructor(_0x38ba66,_0x49cbaf,_0xaaba7,_0x4bb6b7,_0x30fe8d,_0x31ccd4){const _0x5ffa66=_0xc4034;super(),this[_0x5ffa66(0x1fc)]=_0x38ba66,this[_0x5ffa66(0x15c)]=_0x49cbaf,this['_collaborationUIEventService']=_0xaaba7,this[_0x5ffa66(0x1b5)]=_0x4bb6b7,this[_0x5ffa66(0x145)]=_0x30fe8d,this[_0x5ffa66(0x22d)]=_0x31ccd4,this[_0x5ffa66(0x2fa)](),this['_initEvent']();}[_0xc4034(0x2fa)](){const _0x902973=_0xc4034;this[_0x902973(0x27e)](this['_beforeCloseService'][_0x902973(0x234)](()=>{const _0xd1f37=_0x902973;if(this[_0xd1f37(0x15c)][_0xd1f37(0x2df)][_0xd1f37(0x23d)])return this[_0xd1f37(0x22d)]['t'](_0xd1f37(0x1f3));}));}[_0xc4034(0x2b6)](){const _0x360f9a=_0xc4034;this['disposeWithMe'](this[_0x360f9a(0x21a)][_0x360f9a(0x1bc)][_0x360f9a(0x2cb)](_0x3ed62a=>{const _0xe8ac47=_0x360f9a;_0x3ed62a['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0xe8ac47(0x1b5)][_0xe8ac47(0x2d0)]({'type':D[_0xe8ac47(0x20a)][_0xe8ac47(0x153)],'content':this[_0xe8ac47(0x22d)]['t']('collaboration.single-unit.warning')}),_0x3ed62a['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this['_messageService']['show']({'type':D['MessageType'][_0xe8ac47(0x153)],'content':this[_0xe8ac47(0x22d)]['t'](_0xe8ac47(0x116))}),_0x3ed62a['id']===u[_0xe8ac47(0xda)]['PERMISSION_DENIED']&&this[_0xe8ac47(0x145)][_0xe8ac47(0x2d0)]({'title':this[_0xe8ac47(0x22d)]['t'](_0xe8ac47(0x289)),'content':this[_0xe8ac47(0x22d)]['t'](_0xe8ac47(0x251)),'type':_0xe8ac47(0x203),'duration':0x0}),_0x3ed62a['id']===u[_0xe8ac47(0xda)][_0xe8ac47(0x2c8)]&&this['_messageService'][_0xe8ac47(0x2d0)]({'type':D[_0xe8ac47(0x20a)]['Error'],'content':this[_0xe8ac47(0x22d)]['t'](_0xe8ac47(0x116))+'('+_0x3ed62a[_0xe8ac47(0xdd)]+')'}),_0x3ed62a['id']===u[_0xe8ac47(0xda)][_0xe8ac47(0x15f)]&&this[_0xe8ac47(0x1b5)][_0xe8ac47(0x2d0)]({'type':D[_0xe8ac47(0x20a)][_0xe8ac47(0x153)],'content':this[_0xe8ac47(0x22d)]['t'](_0x3ed62a['data']||'')}),_0x3ed62a['id']===u['CollaborationUIEventId'][_0xe8ac47(0xfc)]&&this[_0xe8ac47(0x1b5)][_0xe8ac47(0x2d0)]({'type':D[_0xe8ac47(0x20a)][_0xe8ac47(0x153)],'content':this[_0xe8ac47(0x22d)]['t'](_0xe8ac47(0x31b))}),_0x3ed62a['id']===u[_0xe8ac47(0xda)]['SOCKET_FAILED']&&this[_0xe8ac47(0x1b5)][_0xe8ac47(0x2d0)]({'type':D[_0xe8ac47(0x20a)][_0xe8ac47(0x292)],'content':this[_0xe8ac47(0x22d)]['t'](_0xe8ac47(0x2ad))}),_0x3ed62a['id']===u['CollaborationUIEventId'][_0xe8ac47(0x1c3)]&&this[_0xe8ac47(0x1b5)][_0xe8ac47(0x2d0)]({'type':D[_0xe8ac47(0x20a)]['Error'],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0xc4034(0x17a)])),y(0x3,O['IMessageService']),y(0x4,O[_0xc4034(0x15a)]),y(0x5,a[_0xc4034(0x132)](a[_0xc4034(0x110)]))],q);const $t=_0xc4034(0x276),Ue={},Ee=a[_0xc4034(0x1c7)](_0xc4034(0x2e8));var xt=Object[_0xc4034(0x2b1)],Bt=(_0x2c510c,_0x2f034b,_0x243bd3,_0x4e986e)=>{const _0x54a5b8=_0xc4034;for(var _0x11708a=_0x4e986e>0x1?void 0x0:_0x4e986e?xt(_0x2f034b,_0x243bd3):_0x2f034b,_0x5c00f6=_0x2c510c[_0x54a5b8(0x23b)]-0x1,_0x488b24;_0x5c00f6>=0x0;_0x5c00f6--)(_0x488b24=_0x2c510c[_0x5c00f6])&&(_0x11708a=_0x488b24(_0x11708a)||_0x11708a);return _0x11708a;},F=(_0x2013bc,_0x2574ce)=>(_0x444fba,_0x19bccd)=>_0x2574ce(_0x444fba,_0x19bccd,_0x2013bc);exports[_0xc4034(0x172)]=class extends a[_0xc4034(0x2ab)]{constructor(_0x3ad92a,_0x41cc7f,_0x3f5605,_0x1504d1,_0x52104f){const _0x17fc00=_0xc4034;super(),this[_0x17fc00(0x160)]=_0x3ad92a,this[_0x17fc00(0x2c9)]=_0x41cc7f,this[_0x17fc00(0x268)]=_0x3f5605,this[_0x17fc00(0x280)]=_0x1504d1,_0x52104f?_0x52104f==null||_0x52104f[_0x17fc00(0x17f)]()[_0x17fc00(0x325)](()=>this[_0x17fc00(0xed)]()):(this[_0x17fc00(0x2c9)][_0x17fc00(0x1b1)](_0x17fc00(0x102),_0x17fc00(0x1fd)),this[_0x17fc00(0xed)]());}async[_0xc4034(0xed)](){const _0x1803e5=_0xc4034,_0x1d2613=this[_0x1803e5(0x160)][_0x1803e5(0x1a1)](_0x1803e5(0x2b2)),_0x3a4e73=this[_0x1803e5(0x160)][_0x1803e5(0x1a1)](_0x1803e5(0x29c)),_0x49465c=this['_urlService'][_0x1803e5(0x1a1)](_0x1803e5(0x309));if(!_0x1d2613||!_0x3a4e73){this[_0x1803e5(0x2c9)][_0x1803e5(0x1b1)](_0x1803e5(0x102),_0x1803e5(0x239));return;}const _0x4420c0=await this[_0x1803e5(0x280)]['loadUnit'](_0x1d2613,Number(_0x3a4e73),_0x49465c);_0x4420c0&&_0x4420c0 instanceof a['Workbook']&&this[_0x1803e5(0x1cc)](_0x4420c0);}async[_0xc4034(0x1cc)](_0x4fa330){const _0xa8c905=_0xc4034;await this[_0xa8c905(0xb9)](_0x4fa330),_0x4fa330[_0xa8c905(0xd5)][_0xa8c905(0x181)](d[_0xa8c905(0x242)](this['dispose$']))[_0xa8c905(0x2cb)](_0x2fb9e0=>{_0x2fb9e0&&this['_updateURLWithCurrentState'](_0x2fb9e0);}),this[_0xa8c905(0x160)][_0xa8c905(0x255)]['pipe'](d[_0xa8c905(0x242)](this[_0xa8c905(0x1a5)]))[_0xa8c905(0x2cb)](()=>this[_0xa8c905(0xb9)](_0x4fa330));}['_updateURLWithCurrentState'](_0x25a5ba,_0x58c17f=!0x1){const _0x3ae2f6=_0xc4034,_0x52e937=this[_0x3ae2f6(0x160)]['getParam']('subunit');_0x25a5ba['getSheetId']()!==_0x52e937&&this[_0x3ae2f6(0x160)][_0x3ae2f6(0x208)](_0x3ae2f6(0x309),_0x25a5ba['getSheetId'](),_0x58c17f);}async[_0xc4034(0xb9)](_0x3ff274){const _0x1ab81f=_0xc4034;var _0x503111;const _0x47a9dd=this[_0x1ab81f(0x160)][_0x1ab81f(0x1a1)](_0x1ab81f(0x309));if(!_0x47a9dd||!_0x3ff274[_0x1ab81f(0x315)](_0x47a9dd)){const _0x2b75ed=_0x3ff274[_0x1ab81f(0x1ad)]()[0x0],_0x595ab7=_0x3ff274['getSheetBySheetId'](_0x2b75ed);if(!_0x595ab7)return;this['_updateURLWithCurrentState'](_0x595ab7,!0x0),await this[_0x1ab81f(0x268)]['executeCommand'](g[_0x1ab81f(0x100)]['id'],{'unitId':_0x3ff274[_0x1ab81f(0x1e1)](),'subUnitId':_0x2b75ed});return;}((_0x503111=_0x3ff274[_0x1ab81f(0x2fc)]())==null?void 0x0:_0x503111[_0x1ab81f(0x127)]())!==_0x47a9dd&&await this[_0x1ab81f(0x268)][_0x1ab81f(0xf9)](g[_0x1ab81f(0x100)]['id'],{'unitId':_0x3ff274[_0x1ab81f(0x1e1)](),'subUnitId':_0x47a9dd});}},exports[_0xc4034(0x172)]=Bt([F(0x0,Ee),F(0x1,a[_0xc4034(0x16b)]),F(0x2,a[_0xc4034(0x134)]),F(0x3,a['Inject'](u[_0xc4034(0x1a8)])),F(0x4,a[_0xc4034(0x24e)](Ke[_0xc4034(0x191)]))],exports['CollaborationDataLoaderController']);var jt=Object[_0xc4034(0x2b1)],kt=(_0x21c352,_0x3bf4b9,_0x54928b,_0x179723)=>{const _0x3a17b0=_0xc4034;for(var _0x5593b5=_0x179723>0x1?void 0x0:_0x179723?jt(_0x3bf4b9,_0x54928b):_0x3bf4b9,_0x58d567=_0x21c352[_0x3a17b0(0x23b)]-0x1,_0x520dd6;_0x58d567>=0x0;_0x58d567--)(_0x520dd6=_0x21c352[_0x58d567])&&(_0x5593b5=_0x520dd6(_0x5593b5)||_0x5593b5);return _0x5593b5;},ce=(_0x36d70e,_0x575889)=>(_0x2bd101,_0xaf6cf4)=>_0x575889(_0x2bd101,_0xaf6cf4,_0x36d70e);let z=class{constructor(_0x1af994,_0x3ace27,_0x2d6805){const _0x5a01f4=_0xc4034;this[_0x5a01f4(0x1d5)]=_0x1af994,this[_0x5a01f4(0x2e0)]=_0x3ace27,this['_renderManagerService']=_0x2d6805;}[_0xc4034(0x2b8)](_0x2d3089){const _0x2927e1=_0xc4034;this['_transformUndoRedoStack'](_0x2d3089),this[_0x2927e1(0x2e2)](_0x2d3089);}[_0xc4034(0x30b)](_0x10caff){const _0x3988ed=_0xc4034,{unitID:_0x102294}=_0x10caff,_0x4a4d3a=this['_renderManagerService']['getRenderById'](_0x102294)[_0x3988ed(0x1c1)](E[_0x3988ed(0x2b4)]),{redoCache:_0x2052d9}=_0x4a4d3a[_0x3988ed(0x1b9)]();if(_0x2052d9['length']===0x0)return _0x10caff;let _0x3e4697=a[_0x3988ed(0x23a)]['deepClone'](_0x10caff[_0x3988ed(0xc0)][0x0]);for(let _0x1d68d1=0x0;_0x1d68d1<_0x2052d9['length'];_0x1d68d1++){const _0x4e54b8={'id':_0x3988ed(0x25f),'params':{..._0x2052d9[_0x1d68d1]}},_0x12e0df=this['_transformService'][_0x3988ed(0x307)](_0x3e4697,_0x4e54b8,!0x1);if(m[_0x3988ed(0x1ec)](_0x12e0df))throw _0x12e0df[_0x3988ed(0x203)];_0x3e4697=_0x12e0df['m1Prime'];}return{...a[_0x3988ed(0x23a)]['deepClone'](_0x10caff),'mutations':[_0x3e4697]};}[_0xc4034(0x30d)](_0x1db761){const _0x4d3da0=_0xc4034,{unitID:_0x1df380}=_0x1db761,_0xea922e=this[_0x4d3da0(0x15d)]['getRenderById'](_0x1df380)[_0x4d3da0(0x1c1)](E[_0x4d3da0(0x2b4)]),{undoCache:_0x2f4544,redoCache:_0x473bcd}=_0xea922e[_0x4d3da0(0x1b9)]();if(_0x2f4544[_0x4d3da0(0x23b)]===0x0||_0x473bcd[_0x4d3da0(0x23b)]===0x0)return;const _0x1dafbb=[],_0x24074f=[];let _0xde90b3=a[_0x4d3da0(0x23a)][_0x4d3da0(0x19c)](_0x1db761[_0x4d3da0(0xc0)][0x0]),_0x157f5d=a[_0x4d3da0(0x23a)][_0x4d3da0(0x19c)](_0x1db761[_0x4d3da0(0xc0)][0x0]);for(let _0x2f43a1=_0x2f4544[_0x4d3da0(0x23b)]-0x1;_0x2f43a1>=0x0;_0x2f43a1--){const _0x3ade80={'id':'doc.mutation.rich-text-editing','params':{..._0x2f4544[_0x2f43a1]}},_0x2f285b={'id':_0x4d3da0(0x25f),'params':{..._0x473bcd[_0x2f43a1]}},_0x19eb73=this['_transformService'][_0x4d3da0(0x307)](_0xde90b3,_0x3ade80,!0x1),_0x445d43=this['_transformService'][_0x4d3da0(0x307)](_0x157f5d,_0x2f285b,!0x1);if(m[_0x4d3da0(0x1ec)](_0x19eb73))throw _0x19eb73['error'];if(m[_0x4d3da0(0x1ec)](_0x445d43))throw _0x445d43['error'];_0x1dafbb[_0x4d3da0(0x21c)](_0x19eb73['m2Prime'][_0x4d3da0(0xe1)]),_0x24074f[_0x4d3da0(0x21c)](_0x445d43['m2Prime'][_0x4d3da0(0xe1)]),_0xde90b3=_0x19eb73[_0x4d3da0(0x18f)],_0x157f5d=_0x445d43[_0x4d3da0(0x18f)];}_0xea922e[_0x4d3da0(0x11f)]({'undoCache':_0x1dafbb,'redoCache':_0x24074f});}[_0xc4034(0x2e2)](_0xa7d2de){const _0x2250c4=_0xc4034,{unitID:_0x26fab2}=_0xa7d2de,_0x1bd11f=this[_0x2250c4(0x15d)][_0x2250c4(0x2c1)](_0x26fab2)[_0x2250c4(0x1c1)](E[_0x2250c4(0x2b4)]),_0x202807=_0x1bd11f['getActiveRange']();if(_0x202807==null)return;const _0x90dbe4=[{'id':_0x2250c4(0x25f),'params':{'unitId':_0xa7d2de['unitID'],'actions':null,'textRanges':[_0x202807]}}],_0x10f488=this[_0x2250c4(0x2e0)][_0x2250c4(0x233)](_0xa7d2de,_0x90dbe4);if(!m['isTransformMutationsWithChangesetSuccess'](_0x10f488))throw _0x10f488[_0x2250c4(0x203)];const _0x51f1df=_0x10f488[_0x2250c4(0x11b)][0x0][_0x2250c4(0xe1)][_0x2250c4(0x32b)];Array[_0x2250c4(0x1ab)](_0x51f1df)&&_0x51f1df[_0x2250c4(0x23b)]&&_0x1bd11f['setActiveRange'](_0x51f1df[0x0]);}};z=kt([ce(0x0,a[_0xc4034(0x132)](a[_0xc4034(0x103)])),ce(0x1,m[_0xc4034(0xfd)]),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object[_0xc4034(0x2b1)],Ht=(_0x321b38,_0x10fe4e,_0x333a09,_0x417fea)=>{const _0x588ce7=_0xc4034;for(var _0x4aa892=_0x417fea>0x1?void 0x0:_0x417fea?Ft(_0x10fe4e,_0x333a09):_0x10fe4e,_0x5862da=_0x321b38[_0x588ce7(0x23b)]-0x1,_0x2cc004;_0x5862da>=0x0;_0x5862da--)(_0x2cc004=_0x321b38[_0x5862da])&&(_0x4aa892=_0x2cc004(_0x4aa892)||_0x4aa892);return _0x4aa892;},le=(_0x2d90fd,_0x3180b4)=>(_0x11b254,_0x22bea6)=>_0x3180b4(_0x11b254,_0x22bea6,_0x2d90fd);let J=class{constructor(_0x7fc1ab,_0x5a607f,_0x1d6e33){const _0x26478f=_0xc4034;this[_0x26478f(0x1d5)]=_0x7fc1ab,this[_0x26478f(0x2e0)]=_0x5a607f,this['_docStateChangeManagerService']=_0x1d6e33;}[_0xc4034(0x263)](_0x47a815){const _0x2a96ca=_0xc4034;this[_0x2a96ca(0x20b)](_0x47a815);}[_0xc4034(0x30b)](_0x4288f0){const _0x379bef=_0xc4034,{unitID:_0x2f718f}=_0x4288f0,{collaboration:_0xd4d8e}=this[_0x379bef(0x314)]['getStateCache'](_0x2f718f);if(_0xd4d8e['length']===0x0)return _0x4288f0;let _0x2679e3=a['Tools']['deepClone'](_0x4288f0[_0x379bef(0xc0)][0x0]);for(let _0x261544=0x0;_0x261544<_0xd4d8e['length'];_0x261544++){const _0x1583ca={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xd4d8e[_0x261544]['unitId'],..._0xd4d8e[_0x261544][_0x379bef(0x312)]}},_0xf46fc=this[_0x379bef(0x2e0)]['transformMutation'](_0x2679e3,_0x1583ca,!0x1);if(m[_0x379bef(0x1ec)](_0xf46fc))throw _0xf46fc['error'];_0x2679e3=_0xf46fc[_0x379bef(0x18f)];}return{...a[_0x379bef(0x23a)]['deepClone'](_0x4288f0),'mutations':[_0x2679e3]};}[_0xc4034(0x20b)](_0x562c1f){const _0xae5303=_0xc4034,{unitID:_0x515163}=_0x562c1f,{history:_0x366295,collaboration:_0x50d7f2}=this['_docStateChangeManagerService'][_0xae5303(0x216)](_0x515163);if(_0x366295[_0xae5303(0x23b)]===0x0&&_0x50d7f2['length']===0x0)return;const _0x4e62bb=[],_0x4744ef=[];let _0x28924e=a[_0xae5303(0x23a)]['deepClone'](_0x562c1f['mutations'][0x0]),_0xbfdeeb=a[_0xae5303(0x23a)][_0xae5303(0x19c)](_0x562c1f['mutations'][0x0]);for(let _0x544e85=_0x366295[_0xae5303(0x23b)]-0x1;_0x544e85>=0x0;_0x544e85--){const _0x448567={'id':_0xae5303(0x25f),'params':{'unitId':_0x366295[_0x544e85][_0xae5303(0x2e6)],..._0x366295[_0x544e85]['undoState']}},_0x4455c8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x366295[_0x544e85][_0xae5303(0x2e6)],..._0x366295[_0x544e85][_0xae5303(0x312)]}},_0x3008fa=this['_transformService'][_0xae5303(0x307)](_0x28924e,_0x448567,!0x1),_0x325394=this['_transformService'][_0xae5303(0x307)](_0xbfdeeb,_0x4455c8,!0x1);if(m[_0xae5303(0x1ec)](_0x3008fa))throw _0x3008fa['error'];if(m[_0xae5303(0x1ec)](_0x325394))throw _0x325394[_0xae5303(0x203)];_0x4e62bb[_0xae5303(0x21c)]({..._0x366295[_0x544e85],'undoState':_0x3008fa['m2Prime'][_0xae5303(0xe1)],'redoState':_0x325394[_0xae5303(0x11b)]['params']}),_0x28924e=_0x3008fa[_0xae5303(0x18f)],_0xbfdeeb=_0x325394[_0xae5303(0x18f)];}_0x28924e=a['Tools'][_0xae5303(0x19c)](_0x562c1f[_0xae5303(0xc0)][0x0]),_0xbfdeeb=a[_0xae5303(0x23a)][_0xae5303(0x19c)](_0x562c1f[_0xae5303(0xc0)][0x0]);for(let _0x1e1755=_0x50d7f2[_0xae5303(0x23b)]-0x1;_0x1e1755>=0x0;_0x1e1755--){const _0x1feb78={'id':_0xae5303(0x25f),'params':{'unitId':_0x50d7f2[_0x1e1755][_0xae5303(0x2e6)],..._0x50d7f2[_0x1e1755][_0xae5303(0x186)]}},_0x3525e2={'id':_0xae5303(0x25f),'params':{'unitId':_0x50d7f2[_0x1e1755]['unitId'],..._0x50d7f2[_0x1e1755][_0xae5303(0x312)]}},_0x131127=this[_0xae5303(0x2e0)][_0xae5303(0x307)](_0x28924e,_0x1feb78,!0x1),_0x4273cd=this[_0xae5303(0x2e0)][_0xae5303(0x307)](_0xbfdeeb,_0x3525e2,!0x1);if(m[_0xae5303(0x1ec)](_0x131127))throw _0x131127[_0xae5303(0x203)];if(m[_0xae5303(0x1ec)](_0x4273cd))throw _0x4273cd[_0xae5303(0x203)];_0x4744ef['unshift']({..._0x50d7f2[_0x1e1755],'undoState':_0x131127['m2Prime'][_0xae5303(0xe1)],'redoState':_0x4273cd['m2Prime'][_0xae5303(0xe1)]}),_0x28924e=_0x131127[_0xae5303(0x18f)],_0xbfdeeb=_0x4273cd[_0xae5303(0x18f)];}this['_docStateChangeManagerService'][_0xae5303(0x1f0)](_0x515163,{'history':_0x4e62bb,'collaboration':_0x4744ef});}};J=Ht([le(0x0,a[_0xc4034(0x132)](a[_0xc4034(0x103)])),le(0x1,m['ITransformService']),le(0x2,a[_0xc4034(0x132)](E[_0xc4034(0x194)]))],J);var Yt=Object[_0xc4034(0x2b1)],Wt=(_0x38e79d,_0x2ec71e,_0x6f672,_0x4966ae)=>{const _0x40bb17=_0xc4034;for(var _0x232fd6=_0x4966ae>0x1?void 0x0:_0x4966ae?Yt(_0x2ec71e,_0x6f672):_0x2ec71e,_0x7575a9=_0x38e79d[_0x40bb17(0x23b)]-0x1,_0x2f5728;_0x7575a9>=0x0;_0x7575a9--)(_0x2f5728=_0x38e79d[_0x7575a9])&&(_0x232fd6=_0x2f5728(_0x232fd6)||_0x232fd6);return _0x232fd6;},Ne=(_0x14c124,_0x460378)=>(_0x2ee645,_0x40d1aa)=>_0x460378(_0x2ee645,_0x40d1aa,_0x14c124);let Z=class{constructor(_0x245bb2,_0x2d2b00){const _0x3a61a0=_0xc4034;this[_0x3a61a0(0x1d5)]=_0x245bb2,this['_transformService']=_0x2d2b00;}[_0xc4034(0x18e)](_0x1cbadf){const _0x2838dd=_0xc4034;var _0x1eaa4f;const _0x3c9bce=this[_0x2838dd(0x1d5)][_0x2838dd(0x2a1)](Y[_0x2838dd(0xb5)]),_0x35148b=(_0x1eaa4f=_0x3c9bce[_0x2838dd(0xde)]())!=null?_0x1eaa4f:[];if(_0x35148b[_0x2838dd(0x23b)]===0x0)return;const _0x363e9f=_0x1cbadf['unitID'],_0x52f53b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x363e9f,'actions':null,'textRanges':_0x35148b}}],_0x47c0a7=this['_transformService'][_0x2838dd(0x233)](_0x1cbadf,_0x52f53b);if(!m[_0x2838dd(0x187)](_0x47c0a7))throw _0x47c0a7[_0x2838dd(0x203)];const _0x2c675d=_0x47c0a7[_0x2838dd(0x11b)][0x0][_0x2838dd(0xe1)]['textRanges'];Array['isArray'](_0x2c675d)&&_0x2c675d['length']&&_0x3c9bce[_0x2838dd(0x13a)](_0x2c675d,{'unitId':_0x363e9f,'subUnitId':_0x363e9f},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0xc4034(0x103)])),Ne(0x1,m[_0xc4034(0xfd)])],Z);var Vt=Object[_0xc4034(0x2b1)],Xt=(_0x218841,_0x422113,_0x41255a,_0x1f7a80)=>{const _0x3c23d1=_0xc4034;for(var _0x53e96f=_0x1f7a80>0x1?void 0x0:_0x1f7a80?Vt(_0x422113,_0x41255a):_0x422113,_0x578628=_0x218841[_0x3c23d1(0x23b)]-0x1,_0x467ae4;_0x578628>=0x0;_0x578628--)(_0x467ae4=_0x218841[_0x578628])&&(_0x53e96f=_0x467ae4(_0x53e96f)||_0x53e96f);return _0x53e96f;},N=(_0x1fdd13,_0x3d2946)=>(_0x160abc,_0x243fd5)=>_0x3d2946(_0x160abc,_0x243fd5,_0x1fdd13);let Q=class extends a[_0xc4034(0x13e)]{constructor(_0x1246e7,_0xbc2800,_0x21abbd,_0x1cabbc,_0x3cfb68,_0x5b8ba8,_0x51e5d1,_0x1a534c){const _0x2d0377=_0xc4034;super(),h(this,_0x2d0377(0x196),new d[(_0x2d0377(0x265))](u['CollaborationStatus'][_0x2d0377(0x20e)])),(this[_0x2d0377(0x314)]=_0x1246e7,this[_0x2d0377(0x323)]=_0xbc2800,this[_0x2d0377(0x179)]=_0x21abbd,this[_0x2d0377(0x13b)]=_0x1cabbc,this[_0x2d0377(0x306)]=_0x3cfb68,this['_docSyncEditingCollabCursorService']=_0x5b8ba8,this[_0x2d0377(0x1b5)]=_0x51e5d1,this[_0x2d0377(0x22d)]=_0x1a534c,this[_0x2d0377(0x296)]());}[_0xc4034(0x296)](){const _0x24cfa3=_0xc4034;this[_0x24cfa3(0x27e)](this[_0x24cfa3(0x323)]['entityInit$']['subscribe'](_0x195f97=>{const _0x120e4d=_0x24cfa3,_0x587692=this[_0x120e4d(0x314)][_0x120e4d(0x173)][_0x120e4d(0x2cb)](_0x4642e6=>{const _0xf9e981=_0x120e4d;if(_0x4642e6==null)return;const {unitId:_0xd951f7,redoState:_0x773e00,commandId:_0x10ab6d}=_0x4642e6;if(_0xd951f7!==_0x195f97['unitID'])return;const _0x235a2e={'id':_0x10ab6d,'type':a['CommandType'][_0xf9e981(0x2a3)],'params':{'unitId':_0xd951f7,'actions':_0x773e00['actions'],'textRanges':null}};_0x195f97[_0xf9e981(0x253)](_0x235a2e);});if(_0x195f97[_0x120e4d(0x27e)](_0x587692),_0x195f97 instanceof u[_0x120e4d(0xe8)]){const _0x2c8cab={'onTransformIME':_0x1eeedc=>this[_0x120e4d(0x179)][_0x120e4d(0x2b8)](_0x1eeedc),'onTransformState':_0x3d7f3a=>this[_0x120e4d(0x13b)][_0x120e4d(0x263)](_0x3d7f3a),'onTransformSelections':_0x965282=>this['_docTransformSelectionsService']['transformSelections'](_0x965282),'onSyncEditingCollabCursor':_0x1ff45a=>this[_0x120e4d(0x217)][_0x120e4d(0x2ce)](_0x1ff45a),'onTransformRemoteChangesetByIMECache':_0x71a73c=>this[_0x120e4d(0x179)][_0x120e4d(0x30b)](_0x71a73c),'onTransformRemoteChangesetByStateCache':_0x14f86d=>this[_0x120e4d(0x13b)][_0x120e4d(0x30b)](_0x14f86d)};_0x195f97[_0x120e4d(0x1f9)](_0x2c8cab);}}));}};Q=Xt([N(0x0,a[_0xc4034(0x132)](E[_0xc4034(0x194)])),N(0x1,a[_0xc4034(0x132)](u[_0xc4034(0x310)])),N(0x2,a[_0xc4034(0x132)](z)),N(0x3,a['Inject'](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0xc4034(0x132)](Ce)),N(0x6,O[_0xc4034(0x2fd)]),N(0x7,a[_0xc4034(0x132)](a[_0xc4034(0x110)]))],Q);var Gt=Object[_0xc4034(0x2b1)],Kt=(_0x20fb25,_0x117d48,_0xfe46a5,_0x13cc76)=>{const _0x42cdf6=_0xc4034;for(var _0x28c1bd=_0x13cc76>0x1?void 0x0:_0x13cc76?Gt(_0x117d48,_0xfe46a5):_0x117d48,_0x7e93df=_0x20fb25[_0x42cdf6(0x23b)]-0x1,_0x4f6da8;_0x7e93df>=0x0;_0x7e93df--)(_0x4f6da8=_0x20fb25[_0x7e93df])&&(_0x28c1bd=_0x4f6da8(_0x28c1bd)||_0x28c1bd);return _0x28c1bd;},_e=(_0x48f7d9,_0x457d64)=>(_0x4c191f,_0x1187a7)=>_0x457d64(_0x4c191f,_0x1187a7,_0x48f7d9);let ge=class extends a['Disposable']{constructor(_0x4afd42,_0x5407c3,_0x1506d0){const _0x52de82=_0xc4034;super(),h(this,_0x52de82(0xf7),new Map()),h(this,_0x52de82(0x1cb),new Map()),h(this,_0x52de82(0x330),!0x1),(this[_0x52de82(0x168)]=_0x4afd42,this['_localStorageService']=_0x5407c3,this[_0x52de82(0x16f)]=_0x1506d0);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0xc4034(0x321)](){const _0x2bdd65=_0xc4034;this[_0x2bdd65(0x330)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x4e0a67=_0xc4034;this[_0x4e0a67(0x273)]()[_0x4e0a67(0x325)](()=>super[_0x4e0a67(0x164)]());}async[_0xc4034(0x1a0)](_0x416437){const _0x3e19fa=_0xc4034;return this[_0x3e19fa(0x330)]?null:this[_0x3e19fa(0x2e3)][_0x3e19fa(0x264)](u[_0x3e19fa(0x32d)](_0x416437));}async['saveOfflineData'](_0x163036,_0x58fb88){const _0x559d7a=_0xc4034;return!!this[_0x559d7a(0x2e3)]['setItem'](_0x163036,_0x58fb88);}['updateOfflineData'](_0x8ecdcf,_0x557469,_0x2def60,_0x191e6c){const _0x5153a0=_0xc4034,_0x3a6a35=this[_0x5153a0(0x16f)][_0x5153a0(0x25a)](_0x8ecdcf);this[_0x5153a0(0xf7)][_0x5153a0(0x270)](_0x8ecdcf,{'unitID':_0x8ecdcf,'type':_0x557469,'awaitingChangeset':_0x2def60,'mutations':_0x191e6c,'rev':_0x3a6a35}),this[_0x5153a0(0x1cb)][_0x5153a0(0x213)](_0x8ecdcf)||this[_0x5153a0(0x2ae)](_0x8ecdcf);}['_scheduleSaving'](_0x59e64a){const _0x1fc1b2=_0xc4034,_0x17aa49=this[_0x1fc1b2(0x2d6)]();_0x17aa49===0x0?this[_0x1fc1b2(0x274)](_0x59e64a):this[_0x1fc1b2(0x1cb)][_0x1fc1b2(0x270)](_0x59e64a,setTimeout(()=>this[_0x1fc1b2(0x274)](_0x59e64a),_0x17aa49));}[_0xc4034(0x2d6)](){const _0x4df117=_0xc4034;var _0x19281e;return(_0x19281e=this[_0x4df117(0x168)][_0x4df117(0x278)](u[_0x4df117(0x218)]))!=null?_0x19281e:u[_0x4df117(0x297)];}['_saveCache'](_0x2e767d){const _0x14b0d5=_0xc4034,_0x61aa51=this['_saveTaskMap'][_0x14b0d5(0x2a1)](_0x2e767d);return _0x61aa51!==void 0x0&&window[_0x14b0d5(0xf5)](_0x61aa51),this[_0x14b0d5(0x2e3)][_0x14b0d5(0x21e)](u[_0x14b0d5(0x32d)](_0x2e767d),this[_0x14b0d5(0xf7)][_0x14b0d5(0x2a1)](_0x2e767d))['then'](()=>this[_0x14b0d5(0x1cb)][_0x14b0d5(0x1dc)](_0x2e767d));}async['exhaustSavingTask'](){const _0x1eee33=_0xc4034,_0x578cd8=[];this['_saveTaskMap'][_0x1eee33(0x117)]((_0x4c9bfc,_0x288dfe)=>{const _0x277035=_0x1eee33;window[_0x277035(0xf5)](_0x4c9bfc),_0x578cd8['push'](this[_0x277035(0x274)](_0x288dfe)[_0x277035(0x325)](()=>{const _0x38fb50=_0x277035;this['_saveTaskMap'][_0x38fb50(0x1dc)](_0x288dfe);}));}),await Promise[_0x1eee33(0x1f5)](_0x578cd8);}};ge=Kt([_e(0x0,a[_0xc4034(0x2c5)]),_e(0x1,a[_0xc4034(0x140)]),_e(0x2,a[_0xc4034(0x132)](m[_0xc4034(0x1f4)]))],ge);class Be extends a[_0xc4034(0x2ab)]{constructor(){const _0x263284=_0xc4034;super(),h(this,'urlChange$'),this[_0x263284(0x255)]=d[_0x263284(0xbd)](window,'popstate')[_0x263284(0x181)](d[_0x263284(0x242)](this[_0x263284(0x1a5)]),d['shareReplay'](0x1),d[_0x263284(0x293)](void 0x0));}[_0xc4034(0x208)](_0x4a4cdc,_0x1e461e,_0x512ba9=!0x1){const _0x5dc54f=_0xc4034,_0x1bcad3=new URL(window[_0x5dc54f(0x155)][_0x5dc54f(0x1a6)]);_0x1bcad3[_0x5dc54f(0x221)][_0x5dc54f(0x270)](_0x4a4cdc,_0x1e461e),_0x512ba9?window['history'][_0x5dc54f(0x286)]('','',_0x1bcad3[_0x5dc54f(0x28e)]()):window[_0x5dc54f(0x2be)][_0x5dc54f(0x142)]('','',_0x1bcad3[_0x5dc54f(0x28e)]());}[_0xc4034(0x26d)](_0x29b250,_0x16e6dc=!0x1){const _0x4fe178=_0xc4034,_0x67a5ce=new URL(window[_0x4fe178(0x155)][_0x4fe178(0x1a6)]);_0x67a5ce[_0x4fe178(0x221)][_0x4fe178(0x1dc)](_0x29b250),_0x16e6dc?window[_0x4fe178(0x2be)][_0x4fe178(0x286)]('','',_0x67a5ce['toString']()):window[_0x4fe178(0x2be)][_0x4fe178(0x142)]('','',_0x67a5ce['toString']());}[_0xc4034(0x1a1)](_0x3cb8b7){const _0x47c55=_0xc4034;var _0x5df534;return(_0x5df534=new URL(window['location'][_0x47c55(0x1a6)])[_0x47c55(0x221)][_0x47c55(0x2a1)](_0x3cb8b7))!=null?_0x5df534:void 0x0;}}var qt=Object[_0xc4034(0x305)],zt=Object[_0xc4034(0x2b1)],Jt=(_0x27b29e,_0x4fbd21,_0x2798e4)=>_0x4fbd21 in _0x27b29e?qt(_0x27b29e,_0x4fbd21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2798e4}):_0x27b29e[_0x4fbd21]=_0x2798e4,Zt=(_0x3e3699,_0x2e89fb,_0x9dcf05,_0x3eaa98)=>{const _0x78ad90=_0xc4034;for(var _0x1b02c7=_0x3eaa98>0x1?void 0x0:_0x3eaa98?zt(_0x2e89fb,_0x9dcf05):_0x2e89fb,_0x34cab4=_0x3e3699[_0x78ad90(0x23b)]-0x1,_0x39b6a1;_0x34cab4>=0x0;_0x34cab4--)(_0x39b6a1=_0x3e3699[_0x34cab4])&&(_0x1b02c7=_0x39b6a1(_0x1b02c7)||_0x1b02c7);return _0x1b02c7;},he=(_0x2f9ab6,_0x502ab6)=>(_0x608c9f,_0x1ce28d)=>_0x502ab6(_0x608c9f,_0x1ce28d,_0x2f9ab6),Qt=(_0x9c9254,_0x497595,_0xc1faf)=>Jt(_0x9c9254,_0x497595+'',_0xc1faf);const es=_0xc4034(0x122);exports[_0xc4034(0x18a)]=class extends a[_0xc4034(0x266)]{constructor(_0xa0acff=Ue,_0x5d0d1f,_0x2369b1,_0x335435){const _0xac53b0=_0xc4034;super(),this[_0xac53b0(0x1b3)]=_0xa0acff,this['_renderManagerService']=_0x5d0d1f,this[_0xac53b0(0x1d5)]=_0x2369b1,this[_0xac53b0(0x168)]=_0x335435;const {..._0x1cccec}=a[_0xac53b0(0x185)]({},Ue,this[_0xac53b0(0x1b3)]);this['_configService'][_0xac53b0(0xb8)]($t,_0x1cccec);}[_0xc4034(0x26b)](){const _0x1e25e5=_0xc4034;this['_registerDependencies'](),this[_0x1e25e5(0xe5)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0xc4034(0x2d1)](){const _0x306b1f=_0xc4034;var _0x36b846;const _0x387890=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G[_0x306b1f(0x220)]}],[u[_0x306b1f(0x14e)],{'useClass':ge}],[exports[_0x306b1f(0xee)]],[Q],[q],[x],[de],[exports[_0x306b1f(0x172)]]];a[_0x306b1f(0x23e)](this['_injector'],a[_0x306b1f(0x219)](_0x387890,(_0x36b846=this[_0x306b1f(0x1b3)])==null?void 0x0:_0x36b846[_0x306b1f(0x1f6)]));}[_0xc4034(0xbe)](){const _0x29bfcf=_0xc4034;this[_0x29bfcf(0x27e)](this[_0x29bfcf(0x15d)][_0x29bfcf(0x25e)](a['UniverInstanceType'][_0x29bfcf(0xca)],[fe])),this['disposeWithMe'](this[_0x29bfcf(0x15d)][_0x29bfcf(0x25e)](a[_0x29bfcf(0xd3)][_0x29bfcf(0x188)],[ve]));}[_0xc4034(0xe5)](){const _0x158fa0=_0xc4034;a[_0x158fa0(0x2f3)](this[_0x158fa0(0x1d5)],[[x],[exports[_0x158fa0(0xee)]],[Q],[q],[exports[_0x158fa0(0x172)]]]);}},Qt(exports[_0xc4034(0x18a)],'pluginName',es),exports[_0xc4034(0x18a)]=Zt([a[_0xc4034(0x1c9)](u[_0xc4034(0x2bd)]),he(0x1,p[_0xc4034(0x1e6)]),he(0x2,a[_0xc4034(0x132)](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0xc4034(0x18a)]);var ts=Object[_0xc4034(0x2b1)],ss=(_0x381a11,_0x2e6255,_0x3c4ede,_0x455813)=>{const _0x531a1c=_0xc4034;for(var _0x72db44=_0x455813>0x1?void 0x0:_0x455813?ts(_0x2e6255,_0x3c4ede):_0x2e6255,_0x385bef=_0x381a11[_0x531a1c(0x23b)]-0x1,_0x2d04e8;_0x385bef>=0x0;_0x385bef--)(_0x2d04e8=_0x381a11[_0x385bef])&&(_0x72db44=_0x2d04e8(_0x72db44)||_0x72db44);return _0x72db44;},H=(_0x460086,_0x125e07)=>(_0x28e18f,_0x1b8501)=>_0x125e07(_0x28e18f,_0x1b8501,_0x460086);exports['BrowserCollaborationSocketService']=class extends u['CollaborationSocketService']{constructor(_0x420bd7,_0x4f036f,_0x5dc0f0,_0x3c30ed,_0x4e263d){super(_0x420bd7,_0x4f036f,_0x5dc0f0,_0x3c30ed,_0x4e263d);}async[_0xc4034(0x2a9)](_0x1a6faf){const _0x291aea=_0xc4034,_0x20aef8=await this[_0x291aea(0x1b6)](),_0x5ad36a=this['_createSocketURL'](_0x1a6faf,_0x20aef8);return this[_0x291aea(0x2c2)](_0x5ad36a);}['_createSocketURL'](_0x4e4471,_0x5845f4){const _0x57195d=_0xc4034,_0x1e981b=typeof window>'u'?new URL(_0x4e4471):new URL(_0x4e4471,window['location']['origin']);_0x1e981b[_0x57195d(0x221)][_0x57195d(0x270)](_0x57195d(0xf4),_0x5845f4);const _0x48bb8c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x57195d(0x155)][_0x57195d(0x311)]);return _0x48bb8c['get'](_0x57195d(0x2a5))&&_0x1e981b['searchParams'][_0x57195d(0x270)](_0x57195d(0x2a5),_0x48bb8c[_0x57195d(0x2a1)](_0x57195d(0x2a5))),_0x1e981b[_0x57195d(0x28e)]();}async[_0xc4034(0x1b6)](){const _0x3b2ce1=_0xc4034;var _0x11466b,_0x5b9dd3,_0x3e2adb;const _0x42b20f=this[_0x3b2ce1(0x168)][_0x3b2ce1(0x278)](u[_0x3b2ce1(0x202)]),_0x4d0cee=(_0x11466b=_0x42b20f==null?void 0x0:_0x42b20f[_0x3b2ce1(0xc1)])!=null?_0x11466b:u[_0x3b2ce1(0x1e4)];return(_0x3e2adb=(_0x5b9dd3=(await this[_0x3b2ce1(0x192)][_0x3b2ce1(0x2a1)](_0x4d0cee,{'headers':{'Content-Type':_0x3b2ce1(0x17c)}}))['body'])==null?void 0x0:_0x5b9dd3['ticket'])!=null?_0x3e2adb:'';}},exports[_0xc4034(0x19e)]=ss([H(0x0,a[_0xc4034(0x132)](a[_0xc4034(0x103)])),H(0x1,a[_0xc4034(0x132)](G[_0xc4034(0x2d8)])),H(0x2,a[_0xc4034(0x2c5)]),H(0x3,a['ILogService']),H(0x4,m[_0xc4034(0x29b)])],exports[_0xc4034(0x19e)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0xc4034(0x13e)]{constructor(){const _0x10ff13=_0xc4034;super(),h(this,_0x10ff13(0x126),a['generateRandomId']()),h(this,_0x10ff13(0x124),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x10ff13(0x2bb),null),h(this,_0x10ff13(0xcc),new Map()),h(this,_0x10ff13(0x19a),new Map()),this[_0x10ff13(0xed)]();}[_0xc4034(0x164)](){const _0x3900bc=_0xc4034;super[_0x3900bc(0x164)](),this[_0x3900bc(0xcc)][_0x3900bc(0x117)]((_0x3526e3,_0x4429b1)=>this[_0x3900bc(0x215)](_0x4429b1)),this[_0x3900bc(0x2bb)]&&window[_0x3900bc(0x1d6)](this[_0x3900bc(0x2bb)]);}[_0xc4034(0x184)](_0x42b186){return this['_ensureSubject'](_0x42b186)['pipe'](d['distinctUntilChanged']());}['editingUnit'](_0x10df60){const _0x5a1e28=_0xc4034;this[_0x5a1e28(0x124)]['size']===0x0&&this[_0x5a1e28(0x24c)](),this['_selfUnitIDs'][_0x5a1e28(0x29a)](_0x10df60),this[_0x5a1e28(0x1f7)]({'type':0x0,'memberID':this[_0x5a1e28(0x126)],'unitIDs':[_0x10df60],'isForwarded':!0x1});}[_0xc4034(0x28c)](_0x328830){const _0x34f6ea=_0xc4034;this[_0x34f6ea(0x124)][_0x34f6ea(0x1dc)](_0x328830),this['_selfUnitIDs'][_0x34f6ea(0x23d)]===0x0&&this[_0x34f6ea(0x2bb)]&&window[_0x34f6ea(0x1d6)](this[_0x34f6ea(0x2bb)]);}['_init'](){const _0x158524=_0xc4034;this[_0x158524(0x27e)](a['toDisposable'](d[_0x158524(0xbd)](window,_0x158524(0x25d))[_0x158524(0x2cb)](_0x4b9d80=>{const _0x4452a4=_0x158524;if(_0x4b9d80[_0x4452a4(0x149)]!==Le||!_0x4b9d80[_0x4452a4(0x26e)])return;const _0x17601a=JSON[_0x4452a4(0x209)](_0x4b9d80['newValue']);this[_0x4452a4(0x15b)](_0x17601a);}))),window[_0x158524(0xb6)](_0x158524(0x10d),()=>this['_send']({'type':0x1,'memberID':this[_0x158524(0x126)],'unitIDs':Array[_0x158524(0x105)](this[_0x158524(0x124)])}));}['_handleEvent'](_0x40e267){const _0x5a8f3a=_0xc4034;switch(_0x40e267[_0x5a8f3a(0x29c)]){case 0x0:this[_0x5a8f3a(0x24f)](_0x40e267);break;case 0x1:this['_handleLeaveEvent'](_0x40e267);break;case 0x2:this['_handleHeartbeatEvent'](_0x40e267);break;}}['_handleJoinEvent'](_0x34abb7){const _0x2bd6e3=_0xc4034,{unitIDs:_0x14d3f3,memberID:_0x179897,isForwarded:_0x1eb9f9}=_0x34abb7;_0x14d3f3[_0x2bd6e3(0x117)](_0x3dff2b=>{const _0x3aeb36=_0x2bd6e3;if(!_0x1eb9f9&&this['_unitOnClients'][_0x3aeb36(0x213)](_0x3dff2b)&&this['_ensureSubject'](_0x3dff2b)[_0x3aeb36(0x120)](u['UnitStatus'][_0x3aeb36(0x223)]),!this[_0x3aeb36(0x197)][_0x3aeb36(0x213)](_0x3dff2b)||!this['_unitOnClients']['get'](_0x3dff2b)[_0x3aeb36(0x213)](_0x179897)){const _0x3f7db7=this[_0x3aeb36(0x197)][_0x3aeb36(0x2a1)](_0x3dff2b)||new Set();_0x3f7db7['add'](_0x179897),this[_0x3aeb36(0x197)]['set'](_0x3dff2b,_0x3f7db7),this[_0x3aeb36(0x1bd)](_0x179897);}}),_0x1eb9f9||this[_0x2bd6e3(0x1f7)]({'type':0x0,'memberID':this[_0x2bd6e3(0x126)],'unitIDs':[...this[_0x2bd6e3(0x124)]],'isForwarded':!0x0});}[_0xc4034(0x1bd)](_0x497830){const _0x1758b9=_0xc4034;this[_0x1758b9(0x215)](_0x497830);const _0x42a956=window['setTimeout'](()=>{const _0x24bcf8=_0x1758b9;this[_0x24bcf8(0x197)][_0x24bcf8(0x117)](_0x2e5cb4=>{const _0x40c450=_0x24bcf8;_0x2e5cb4[_0x40c450(0x1dc)](_0x497830);});},Me*0x2);this['_clearOtherTimers'][_0x1758b9(0x270)](_0x497830,_0x42a956);}['_removeClearOtherTimer'](_0x5f4ff6){const _0x17d78d=_0xc4034;if(this[_0x17d78d(0xcc)][_0x17d78d(0x213)](_0x5f4ff6)){const _0x34dafb=this[_0x17d78d(0xcc)][_0x17d78d(0x2a1)](_0x5f4ff6);_0x34dafb&&window[_0x17d78d(0xf5)](_0x34dafb),this[_0x17d78d(0xcc)][_0x17d78d(0x270)](_0x5f4ff6,null);}}[_0xc4034(0x1ff)](_0x1b71d0){const _0x43094a=_0xc4034,{memberID:_0x78e9a6,unitIDs:_0xb01932}=_0x1b71d0;_0xb01932[_0x43094a(0x117)](_0x50552d=>{const _0x3b9b92=_0x43094a;var _0x14c3c3;const _0x360c67=this[_0x3b9b92(0x197)]['get'](_0x50552d);_0x360c67&&(_0x360c67[_0x3b9b92(0x1dc)](_0x78e9a6),(_0x14c3c3=this[_0x3b9b92(0x261)](_0x50552d))==null||_0x14c3c3['next'](_0x360c67['size']===0x0?u[_0x3b9b92(0xeb)][_0x3b9b92(0xdb)]:u['UnitStatus'][_0x3b9b92(0x223)]));}),this['_removeClearOtherTimer'](_0x78e9a6);}[_0xc4034(0x23c)](_0x45dbfd){const _0x249d99=_0xc4034;this['_scheduleClearOtherTimer'](_0x45dbfd[_0x249d99(0x2bf)]);}[_0xc4034(0x1f7)](_0x227bc5){const _0x378851=_0xc4034;localStorage[_0x378851(0x21e)](Le,JSON[_0x378851(0x150)](_0x227bc5));}[_0xc4034(0x24c)](){const _0x598da7=_0xc4034;this[_0x598da7(0x2bb)]=window[_0x598da7(0x128)](()=>{const _0x1daf49=_0x598da7;this[_0x1daf49(0x1f7)]({'type':0x2,'memberID':this[_0x1daf49(0x126)]});},Me);}[_0xc4034(0x261)](_0x25d631){const _0x21e046=_0xc4034;return this[_0x21e046(0x19a)][_0x21e046(0x213)](_0x25d631)||this[_0x21e046(0x19a)][_0x21e046(0x270)](_0x25d631,new d['BehaviorSubject'](u[_0x21e046(0xeb)][_0x21e046(0xdb)])),this[_0x21e046(0x19a)][_0x21e046(0x2a1)](_0x25d631);}}var je=(_0x5afaca=>(_0x5afaca[_0x5afaca['UNDEFINED']=0x0]=_0xc4034(0x224),_0x5afaca[_0x5afaca['OK']=0x1]='OK',_0x5afaca[_0x5afaca['INTERNAL_ERROR']=0x2]=_0xc4034(0x2a7),_0x5afaca[_0x5afaca[_0xc4034(0x1c8)]=0x3]=_0xc4034(0x1c8),_0x5afaca[_0x5afaca[_0xc4034(0x2f0)]=0x4]=_0xc4034(0x2f0),_0x5afaca[_0x5afaca[_0xc4034(0x1cd)]=0x5]=_0xc4034(0x1cd),_0x5afaca[_0x5afaca[_0xc4034(0x2f2)]=0x6]=_0xc4034(0x2f2),_0x5afaca[_0x5afaca[_0xc4034(0x12a)]=0x7]='INVALID_ARGUMENT',_0x5afaca[_0x5afaca['TOO_MANY_REQUESTS']=0x8]=_0xc4034(0x1dd),_0x5afaca[_0x5afaca['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5afaca[_0x5afaca['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x5afaca[_0x5afaca['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0xc4034(0x2e7),_0x5afaca[_0x5afaca[_0xc4034(0x28b)]=0xc]=_0xc4034(0x28b),_0x5afaca[_0x5afaca[_0xc4034(0x1b4)]=0xd]=_0xc4034(0x1b4),_0x5afaca[_0x5afaca['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0xc4034(0x32a),_0x5afaca[_0x5afaca['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5afaca[_0x5afaca[_0xc4034(0x1d4)]=0x1771]=_0xc4034(0x1d4),_0x5afaca[_0x5afaca[_0xc4034(0x1aa)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5afaca[_0x5afaca[_0xc4034(0x2e5)]=0x1773]=_0xc4034(0x2e5),_0x5afaca[_0x5afaca[_0xc4034(0xe0)]=0x1b59]='APPLY_REJECT',_0x5afaca[_0x5afaca[_0xc4034(0xe4)]=0x1b5a]=_0xc4034(0xe4),_0x5afaca[_0x5afaca[_0xc4034(0x308)]=0x1b5b]=_0xc4034(0x308),_0x5afaca[_0x5afaca[_0xc4034(0x31c)]=0x1b5c]=_0xc4034(0x31c),_0x5afaca[_0x5afaca[_0xc4034(0x1f1)]=0x1b5d]=_0xc4034(0x1f1),_0x5afaca[_0x5afaca[_0xc4034(0x14a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5afaca[_0x5afaca[_0xc4034(0x166)]=0x2329]=_0xc4034(0x166),_0x5afaca[_0x5afaca['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xc4034(0x257),_0x5afaca[_0x5afaca[_0xc4034(0x2b9)]=0x232b]=_0xc4034(0x2b9),_0x5afaca[_0x5afaca['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0xc4034(0xc6),_0x5afaca[_0x5afaca['LICENSE_DISTRO_REJECTED']=0x232d]=_0xc4034(0x24b),_0x5afaca[_0x5afaca['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5afaca[_0x5afaca[_0xc4034(0x2dc)]=0x2712]=_0xc4034(0x2dc),_0x5afaca[_0x5afaca[_0xc4034(0x11d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5afaca[_0x5afaca[_0xc4034(0xf3)]=0x2714]=_0xc4034(0xf3),_0x5afaca[_0x5afaca[_0xc4034(0x11e)]=0x271a]=_0xc4034(0x11e),_0x5afaca[_0x5afaca[_0xc4034(0x225)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5afaca[_0x5afaca[_0xc4034(0x136)]=0x271c]=_0xc4034(0x136),_0x5afaca[_0x5afaca['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0xc4034(0xb4),_0x5afaca[_0x5afaca[_0xc4034(0x2ee)]=0x271e]=_0xc4034(0x2ee),_0x5afaca[_0x5afaca[_0xc4034(0x2b3)]=0x271f]=_0xc4034(0x2b3),_0x5afaca[_0x5afaca['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0xc4034(0x302),_0x5afaca[_0x5afaca['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x5afaca[_0x5afaca['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0xc4034(0x243),_0x5afaca[_0x5afaca[_0xc4034(0x232)]=0x2ee2]='INVALID_INVITE_CODE',_0x5afaca[_0x5afaca[_0xc4034(0x1b2)]=0x2ee3]=_0xc4034(0x1b2),_0x5afaca[_0x5afaca[_0xc4034(0x229)]=0x2ee4]=_0xc4034(0x229),_0x5afaca[_0x5afaca[_0xc4034(0x28d)]=0x2ee5]=_0xc4034(0x28d),_0x5afaca[_0x5afaca[_0xc4034(0x1b7)]=0x32c9]=_0xc4034(0x1b7),_0x5afaca[_0x5afaca[_0xc4034(0xf1)]=0x32ca]=_0xc4034(0xf1),_0x5afaca[_0x5afaca[_0xc4034(0x2a6)]=0x32cb]=_0xc4034(0x2a6),_0x5afaca[_0x5afaca[_0xc4034(0x252)]=-0x1]=_0xc4034(0x252),_0x5afaca))(je||{}),ns=Object[_0xc4034(0x2b1)],rs=(_0x58e9b8,_0x4cc590,_0x1f98ff,_0x2e9250)=>{for(var _0x35b64f=_0x2e9250>0x1?void 0x0:_0x2e9250?ns(_0x4cc590,_0x1f98ff):_0x4cc590,_0x4373fd=_0x58e9b8['length']-0x1,_0x5b84d4;_0x4373fd>=0x0;_0x4373fd--)(_0x5b84d4=_0x58e9b8[_0x4373fd])&&(_0x35b64f=_0x5b84d4(_0x35b64f)||_0x35b64f);return _0x35b64f;},ue=(_0x3b4cc5,_0x342f16)=>(_0xdd3c11,_0x1d9737)=>_0x342f16(_0xdd3c11,_0x1d9737,_0x3b4cc5);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x3f3986,_0x193970,_0x499d33){const _0x1aa23f=_0xc4034;super(),this[_0x1aa23f(0x12e)]=_0x3f3986,this[_0x1aa23f(0x192)]=_0x193970,this[_0x1aa23f(0x168)]=_0x499d33;}async[_0xc4034(0x1fe)](_0x1d3705,_0x633515,_0xc7b613,..._0x30b864){const _0x4636f6=_0xc4034;var _0x569b4d,_0x2b53c9,_0x2ecc5a,_0x1fa87b;const _0x27637f=this[_0x4636f6(0x12e)][_0x4636f6(0xd4)]();if(!_0x27637f)throw new Error(_0x4636f6(0x11c));const _0xdc7ee=((_0x569b4d=this[_0x4636f6(0x168)][_0x4636f6(0x278)](u[_0x4636f6(0x22a)]))!=null?_0x569b4d:u[_0x4636f6(0x12f)])+'/'+_0x1d3705+_0x4636f6(0x12c)+_0x633515,_0x6d3396=new URL(window[_0x4636f6(0x155)][_0x4636f6(0x1a6)]),_0x116d05={'scriptId':_0x1d3705,'runId':(_0x2b53c9=_0x6d3396[_0x4636f6(0x221)][_0x4636f6(0x2a1)](_0x4636f6(0x2a5)))!=null?_0x2b53c9:'','function':_0x633515,'unitId':_0x27637f[_0x4636f6(0x1e1)](),'argsOfFunction':JSON[_0x4636f6(0x150)](_0x30b864),'invokeId':(_0x2ecc5a=_0xc7b613[_0x4636f6(0x316)])!=null?_0x2ecc5a:'','executionId':(_0x1fa87b=_0xc7b613['executionId'])!=null?_0x1fa87b:''};try{const _0x473f3a=await this[_0x4636f6(0x192)][_0x4636f6(0x32c)](_0xdc7ee,{'body':_0x116d05});return _0x473f3a[_0x4636f6(0x21b)][_0x4636f6(0x203)]&&_0x473f3a['body'][_0x4636f6(0x203)][_0x4636f6(0x12b)]!==je['OK']?_0x4636f6(0x161):_0x473f3a[_0x4636f6(0x21b)][_0x4636f6(0x1c4)];}catch{return _0x4636f6(0x161);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0xc4034(0x247)]),ue(0x1,a[_0xc4034(0x132)](G['HTTPService'])),ue(0x2,a[_0xc4034(0x2c5)])],exports[_0xc4034(0x10f)]),exports[_0xc4034(0xb3)]=xe,exports[_0xc4034(0x2e1)]=Ee,exports[_0xc4034(0x2fe)]=we,exports[_0xc4034(0x1bb)]=is,exports[_0xc4034(0x2f9)]=Be;
|
|
1
|
+
'use strict';const _0x3568b7=_0x489f;(function(_0x358203,_0x41a98f){const _0x5a7620=_0x489f,_0x102145=_0x358203();while(!![]){try{const _0x8d1491=-parseInt(_0x5a7620(0x322))/0x1+parseInt(_0x5a7620(0x30f))/0x2*(-parseInt(_0x5a7620(0x344))/0x3)+-parseInt(_0x5a7620(0x27b))/0x4+-parseInt(_0x5a7620(0x33e))/0x5*(parseInt(_0x5a7620(0x148))/0x6)+-parseInt(_0x5a7620(0x15b))/0x7+parseInt(_0x5a7620(0x2cf))/0x8+parseInt(_0x5a7620(0x105))/0x9*(parseInt(_0x5a7620(0x199))/0xa);if(_0x8d1491===_0x41a98f)break;else _0x102145['push'](_0x102145['shift']());}catch(_0x582427){_0x102145['push'](_0x102145['shift']());}}}(_0x4645,0x3f9ad));var Ve=Object['defineProperty'],Xe=(_0x53c591,_0x43cab3,_0x5cbf2c)=>_0x43cab3 in _0x53c591?Ve(_0x53c591,_0x43cab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cbf2c}):_0x53c591[_0x43cab3]=_0x5cbf2c,h=(_0x17547b,_0x24c33b,_0x42fc64)=>Xe(_0x17547b,typeof _0x24c33b!='symbol'?_0x24c33b+'':_0x24c33b,_0x42fc64);Object[_0x3568b7(0x18b)](exports,Symbol['toStringTag'],{'value':_0x3568b7(0x210)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x3568b7(0x14f)],ze=(_0x3b4799,_0x7c3955,_0x3d3ca6,_0x5b0ac1)=>{const _0x133147=_0x3568b7;for(var _0x523bf1=_0x5b0ac1>0x1?void 0x0:_0x5b0ac1?qe(_0x7c3955,_0x3d3ca6):_0x7c3955,_0x2b461f=_0x3b4799[_0x133147(0xde)]-0x1,_0x3ba9af;_0x2b461f>=0x0;_0x2b461f--)(_0x3ba9af=_0x3b4799[_0x2b461f])&&(_0x523bf1=_0x3ba9af(_0x523bf1)||_0x523bf1);return _0x523bf1;},Oe=(_0x21c6aa,_0x2eb8e4)=>(_0x13cb63,_0x54814d)=>_0x2eb8e4(_0x13cb63,_0x54814d,_0x21c6aa);let de=class extends a[_0x3568b7(0x1ae)]{constructor(_0x2e60d7,_0x2eb268){const _0xe8c2c1=_0x3568b7;super(),this['_docClipboardService']=_0x2e60d7,this[_0xe8c2c1(0x16d)]=_0x2eb268,this['_init']();}[_0x3568b7(0x25f)](){const _0x1f09f=_0x3568b7,_0x4fdcff=this;this['disposeWithMe'](this[_0x1f09f(0x116)][_0x1f09f(0x1d3)]({'onBeforePasteImage':async _0x4511de=>{const _0x31205e=_0x1f09f,_0x7efac5=await _0x4fdcff[_0x31205e(0x16d)][_0x31205e(0x1f2)](_0x4511de);return _0x7efac5?{'source':_0x7efac5['source'],'imageSourceType':_0x7efac5[_0x31205e(0xf3)]}:null;}}));}};de=ze([Oe(0x0,E['IDocClipboardService']),Oe(0x1,Ge['IImageIoService'])],de);const Te=['purple.300',_0x3568b7(0x291),_0x3568b7(0xf7),_0x3568b7(0x267),_0x3568b7(0x10c),'yellow.400'];class me extends a[_0x3568b7(0x306)]{constructor(){const _0x1bfaaa=_0x3568b7;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x1bfaaa(0xfe),0x0);}[_0x3568b7(0x16a)](_0x126bb8){const _0x94c557=_0x3568b7;if(this['_assignedColors'][_0x94c557(0x2ce)](_0x126bb8))return this['_assignedColors'][_0x94c557(0x261)](_0x126bb8);const _0x560430=Te[this['_colorIndex']];return this[_0x94c557(0xfe)]=(this[_0x94c557(0xfe)]+0x1)%Te[_0x94c557(0xde)],this['_assignedColors'][_0x94c557(0x213)](_0x126bb8,_0x560430),_0x560430;}}function Pe(_0x6a747f){const _0x5b69c0=_0x3568b7;let _0x438291='';for(const _0xca9659 of _0x6a747f){const {startOffset:_0x1c24e8,endOffset:_0x2de12b,isActive:_0x4a14d2,rangeType:_0xcf1c88,segmentId:_0x12dcd3,segmentPage:_0xabfdd0}=_0xca9659;_0x438291[_0x5b69c0(0xde)]&&(_0x438291+=','),_0x438291+=_0x1c24e8+':'+_0x2de12b+':'+(_0x4a14d2?'1':'0')+':'+_0xcf1c88+':'+_0x12dcd3+':'+_0xabfdd0;}return _0x438291;}function Je(_0x50c799){const _0x1cb5cb=_0x3568b7,_0x440758=_0x50c799[_0x1cb5cb(0xdd)](','),_0x570d69=[];for(const _0x496f39 of _0x440758){const [_0x55a6e8,_0x2f829e,_0x3ffb27,_0x201abe,_0x4dcce7,_0x929ce8]=_0x496f39[_0x1cb5cb(0xdd)](':');_0x570d69[_0x1cb5cb(0x28f)]({'startOffset':Number(_0x55a6e8),'endOffset':Number(_0x2f829e),'collapsed':_0x55a6e8===_0x2f829e,'isActive':_0x3ffb27==='1','rangeType':_0x201abe===a[_0x1cb5cb(0x273)][_0x1cb5cb(0x171)]?a[_0x1cb5cb(0x273)][_0x1cb5cb(0x171)]:a[_0x1cb5cb(0x273)]['RECT'],'segmentId':typeof _0x4dcce7==_0x1cb5cb(0xe0)?String(_0x4dcce7):'','segmentPage':Number(_0x929ce8!=null?_0x929ce8:-0x1)});}return _0x570d69['some'](_0x368ae5=>_0x368ae5[_0x1cb5cb(0x18e)])||(_0x570d69[0x0]['isActive']=!0x0),_0x570d69;}class Ce extends a[_0x3568b7(0x1ae)]{constructor(){const _0x24679c=_0x3568b7;super(...arguments),h(this,_0x24679c(0x24b),new d[(_0x24679c(0x150))](null)),h(this,_0x24679c(0x2f6),this[_0x24679c(0x24b)][_0x24679c(0x107)]());}['syncEditingCollabCursor'](_0x213168){const {unitID:_0x43ccb5,memberID:_0x3e0bdb,textRanges:_0x2e4682}=_0x213168,_0x567bfc=Pe(_0x2e4682);if(_0x567bfc==='')return;const _0xa5d21c={'unitID':_0x43ccb5,'memberID':_0x3e0bdb,'selection':_0x567bfc};this['_collabCursorState$']['next'](_0xa5d21c);}}var Ze=Object[_0x3568b7(0x14f)],Qe=(_0x290914,_0x5e210a,_0x140806,_0x59f443)=>{const _0x65cade=_0x3568b7;for(var _0x51b36b=_0x59f443>0x1?void 0x0:_0x59f443?Ze(_0x5e210a,_0x140806):_0x5e210a,_0xae0c83=_0x290914[_0x65cade(0xde)]-0x1,_0x1bf065;_0xae0c83>=0x0;_0xae0c83--)(_0x1bf065=_0x290914[_0xae0c83])&&(_0x51b36b=_0x1bf065(_0x51b36b)||_0x51b36b);return _0x51b36b;},L=(_0x30f20c,_0x4ff126)=>(_0x534536,_0x303f6a)=>_0x4ff126(_0x534536,_0x303f6a,_0x30f20c);const et=0x12c,tt=0x64;let Ie=class extends a[_0x3568b7(0x1ae)]{constructor(_0x2d552f,_0x2c325d,_0x5a113d,_0x453643,_0x203e64,_0x3d61ef,_0x53137b,_0x4e972c,_0xe1a43e){const _0x377f7a=_0x3568b7;super(),h(this,_0x377f7a(0x179),!0x1),h(this,_0x377f7a(0x25f),!0x1),h(this,_0x377f7a(0x11d),new d[(_0x377f7a(0x150))](new Map())),h(this,_0x377f7a(0x13a),this[_0x377f7a(0x11d)]['asObservable']()),h(this,_0x377f7a(0x326),new d[(_0x377f7a(0x150))]([])),h(this,_0x377f7a(0x253),this[_0x377f7a(0x326)]['pipe'](d[_0x377f7a(0x25c)](et))),h(this,_0x377f7a(0xfa),a[_0x377f7a(0x32e)](_0x2a602d=>{const _0x1a32b0=_0x377f7a,_0x1958ea={'eventID':m[_0x1a32b0(0x128)][_0x1a32b0(0x348)],'data':{'unitID':this['unitID'],'memberID':this[_0x1a32b0(0x289)][_0x1a32b0(0x2a4)](),'selection':Pe(_0x2a602d)}};this[_0x1a32b0(0x289)][_0x1a32b0(0x151)](_0x1958ea,this[_0x1a32b0(0x339)]);},tt)),(this[_0x377f7a(0x339)]=_0x2d552f,this['_session']=_0x2c325d,this['_injector']=_0x5a113d,this[_0x377f7a(0x347)]=_0x453643,this[_0x377f7a(0x1de)]=_0x203e64,this[_0x377f7a(0x113)]=_0x3d61ef,this[_0x377f7a(0x246)]=_0x53137b,this['_univerInstanceService']=_0x4e972c,this[_0x377f7a(0x129)]=_0xe1a43e);}get[_0x3568b7(0x188)](){const _0x2606cf=_0x3568b7;return this[_0x2606cf(0x11d)]['getValue']();}get['roomMembers'](){const _0x47b092=_0x3568b7;return this['_roomMembers$'][_0x47b092(0x1c6)]();}['dispose'](){const _0xc4570d=_0x3568b7;super[_0xc4570d(0x2ea)](),this[_0xc4570d(0x11d)][_0xc4570d(0xe6)](new Map()),this['_cursorInfo$'][_0xc4570d(0x2d0)](),this[_0xc4570d(0x326)]['next']([]),this[_0xc4570d(0x326)][_0xc4570d(0x2d0)]();}[_0x3568b7(0x16e)](){const _0x2b1b66=_0x3568b7;this['_init']||(this[_0x2b1b66(0x25f)]=!0x0,this[_0x2b1b66(0x289)][_0x2b1b66(0x29c)][_0x2b1b66(0x17f)](d[_0x2b1b66(0x19e)](this[_0x2b1b66(0x248)]))[_0x2b1b66(0x21b)](_0x26ed7a=>{const _0x2e3c33=_0x2b1b66;_0x26ed7a===u['SessionStatus'][_0x2e3c33(0x1c3)]?this[_0x2e3c33(0x2a8)]():this[_0x2e3c33(0x2cd)]();}),this[_0x2b1b66(0x289)][_0x2b1b66(0x2ec)][_0x2b1b66(0x17f)](d[_0x2b1b66(0x19e)](this[_0x2b1b66(0x248)]))[_0x2b1b66(0x21b)](_0x504e8b=>{const _0xd2c1fa=_0x2b1b66,_0x5b0a5e=_0x504e8b[_0xd2c1fa(0x311)];_0x5b0a5e===m['CollaborationEvent'][_0xd2c1fa(0x348)]&&this[_0xd2c1fa(0x308)](_0x504e8b),_0x5b0a5e===m[_0xd2c1fa(0x128)][_0xd2c1fa(0x2ab)]&&this['_onCursorDelete'](_0x504e8b);}),this['disposeWithMe'](this['_commandService'][_0x2b1b66(0x30e)](_0x11898a=>{const _0x5dff11=_0x2b1b66,_0x389c42=_0x11898a[_0x5dff11(0x1d1)];_0x389c42!=null&&this[_0x5dff11(0x179)]&&_0x11898a['id']===Y['SetTextSelectionsOperation']['id']&&_0x389c42[_0x5dff11(0x138)]===this[_0x5dff11(0x339)]&&_0x389c42[_0x5dff11(0x176)]===!0x1&&_0x389c42[_0x5dff11(0x21c)][_0x5dff11(0xde)]>0x0&&this[_0x5dff11(0xfa)](_0x389c42[_0x5dff11(0x21c)]);})),this[_0x2b1b66(0x113)][_0x2b1b66(0x2f6)][_0x2b1b66(0x17f)](d[_0x2b1b66(0x19e)](this[_0x2b1b66(0x248)]))[_0x2b1b66(0x21b)](_0x353aa3=>{const _0x23cdf0=_0x2b1b66;if((_0x353aa3==null?void 0x0:_0x353aa3[_0x23cdf0(0x339)])!==this[_0x23cdf0(0x339)])return;const _0x4d5844={'eventID':m[_0x23cdf0(0x128)]['UPDATE_CURSOR'],'data':_0x353aa3};this[_0x23cdf0(0x308)](_0x4d5844);}),this['disposeWithMe'](this[_0x2b1b66(0x129)]['onCommandExecuted'](_0x9704ff=>{const _0x38a398=_0x2b1b66;if(_0x9704ff[_0x38a398(0x1d1)]==null)return;const _0x2ec907=_0x9704ff[_0x38a398(0x1d1)];if(_0x9704ff['id']!==Y[_0x38a398(0x11a)]['id']||_0x2ec907[_0x38a398(0x138)]!==this[_0x38a398(0x339)])return;const _0x537067={'id':'doc.mutation.rich-text-editing','params':_0x2ec907},_0x298fa7=this[_0x38a398(0x188)];for(const [_0x51eb00,_0x25fd51]of _0x298fa7){const _0x1f8f8f={'id':_0x38a398(0x1e1),'params':{'unitId':this[_0x38a398(0x339)],'actions':null,'textRanges':_0x25fd51['ranges']}},_0x29d268=this['_transformService'][_0x38a398(0x205)](_0x537067,_0x1f8f8f,!0x1);if(m['isTransformMutationFailure'](_0x29d268))throw _0x29d268['error'];_0x298fa7['set'](_0x51eb00,{..._0x25fd51,'ranges':_0x29d268[_0x38a398(0xce)][_0x38a398(0x1d1)][_0x38a398(0x1cd)]});}queueMicrotask(()=>{const _0x304f97=_0x38a398;this[_0x304f97(0x11d)][_0x304f97(0xe6)](_0x298fa7);});})));}[_0x3568b7(0x308)](_0x1340bc){const _0x644ad7=_0x3568b7;var _0x5aefb8,_0x49c54a;const {memberID:_0x78c81c,selection:_0x7c4fad}=_0x1340bc['data'],_0x1d1eb8=Je(_0x7c4fad),_0x5ac0d4=(_0x49c54a=(_0x5aefb8=this[_0x644ad7(0x1de)][_0x644ad7(0x236)](this['unitID'],_0x78c81c))==null?void 0x0:_0x5aefb8['name'])!=null?_0x49c54a:_0x644ad7(0x2d1),_0x88868b={'color':this[_0x644ad7(0x347)][_0x644ad7(0x16a)](_0x78c81c),'name':_0x5ac0d4,'ranges':_0x1d1eb8},_0x39d88c=this['cursorInfo'];_0x39d88c['set'](_0x78c81c,_0x88868b),this[_0x644ad7(0x11d)]['next'](_0x39d88c);}[_0x3568b7(0x275)](_0x297a3d){const _0x46c3ca=_0x3568b7,{memberID:_0x233d6d}=_0x297a3d[_0x46c3ca(0xe4)],_0x5b0a2c=this[_0x46c3ca(0x188)];_0x5b0a2c[_0x46c3ca(0x2d6)](_0x233d6d),this[_0x46c3ca(0x11d)]['next'](_0x5b0a2c);}[_0x3568b7(0x2a8)](){const _0x2a1c43=_0x3568b7;var _0x38fc27;if(this[_0x2a1c43(0x179)]=!0x0,((_0x38fc27=this[_0x2a1c43(0x11b)][_0x2a1c43(0x1e4)]())==null?void 0x0:_0x38fc27[_0x2a1c43(0x23c)]())!==this[_0x2a1c43(0x339)])return;const _0x21e976=this[_0x2a1c43(0x216)][_0x2a1c43(0x261)](Y[_0x2a1c43(0x24a)])[_0x2a1c43(0x1b9)]();Array[_0x2a1c43(0x10a)](_0x21e976)&&_0x21e976[_0x2a1c43(0xde)]>0x0&&this['_updateLocalCursor'](_0x21e976);}[_0x3568b7(0x2cd)](){const _0x30a883=_0x3568b7;this[_0x30a883(0x179)]=!0x1;}};Ie=Qe([L(0x2,a['Inject'](a[_0x3568b7(0x178)])),L(0x3,a[_0x3568b7(0x104)](me)),L(0x4,a[_0x3568b7(0x104)](u['MemberService'])),L(0x5,a[_0x3568b7(0x104)](Ce)),L(0x6,m[_0x3568b7(0x2dd)]),L(0x7,a[_0x3568b7(0x249)]),L(0x8,a[_0x3568b7(0x1df)])],Ie);var st=Object[_0x3568b7(0x14f)],it=(_0x39270f,_0x5f8f9e,_0x2985c0,_0x31ed3b)=>{const _0xeedc1a=_0x3568b7;for(var _0x5dc9c2=_0x31ed3b>0x1?void 0x0:_0x31ed3b?st(_0x5f8f9e,_0x2985c0):_0x5f8f9e,_0xc24d75=_0x39270f[_0xeedc1a(0xde)]-0x1,_0x1c0eda;_0xc24d75>=0x0;_0xc24d75--)(_0x1c0eda=_0x39270f[_0xc24d75])&&(_0x5dc9c2=_0x1c0eda(_0x5dc9c2)||_0x5dc9c2);return _0x5dc9c2;},A=(_0x5859d9,_0x54aeca)=>(_0x500de9,_0xd5951d)=>_0x54aeca(_0x500de9,_0xd5951d,_0x5859d9);const nt=0x12c,rt=0x64,ot=()=>{let _0x135004=[],_0x1a8791=!0x1;return _0x21cdf8=>{const _0x22d604=_0x489f;_0x135004[_0x22d604(0x28f)](_0x21cdf8),_0x1a8791||(_0x1a8791=!0x0,setTimeout(()=>{const _0x23149d=_0x22d604;_0x135004[_0x23149d(0xe8)](_0x39d683=>_0x39d683()),_0x135004=[],_0x1a8791=!0x1;}));};};let Se=class extends a[_0x3568b7(0x1ae)]{constructor(_0x57f6ef,_0x2cb31d,_0x4fada2,_0x2d2f34,_0x319bf8,_0xf583f1,_0x34a0c2,_0x2530a2){const _0x50b57c=_0x3568b7;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x50b57c(0x11d),new d['BehaviorSubject'](new Map())),h(this,_0x50b57c(0x13a),this[_0x50b57c(0x11d)][_0x50b57c(0x107)]()),h(this,_0x50b57c(0x326),new d['BehaviorSubject']([])),h(this,_0x50b57c(0x253),this[_0x50b57c(0x326)][_0x50b57c(0x17f)](d[_0x50b57c(0x25c)](nt))),h(this,_0x50b57c(0xfa),a[_0x50b57c(0x32e)]((_0x585ae0,_0x2f02f7)=>{const _0x10d1ff=_0x50b57c,_0x2e7bcc={'eventID':m[_0x10d1ff(0x128)][_0x10d1ff(0x348)],'data':{'unitID':this[_0x10d1ff(0x339)],'memberID':this[_0x10d1ff(0x289)][_0x10d1ff(0x2a4)](),'selection':be[_0x10d1ff(0x1b3)](_0x585ae0,_0x2f02f7[_0x10d1ff(0x1bd)])}};this[_0x10d1ff(0x289)]['send'](_0x2e7bcc,this[_0x10d1ff(0x339)]);},rt)),(this[_0x50b57c(0x339)]=_0x57f6ef,this['_session']=_0x2cb31d,this[_0x50b57c(0x216)]=_0x4fada2,this[_0x50b57c(0x347)]=_0x2d2f34,this[_0x50b57c(0x1de)]=_0x319bf8,this['_univerInstanceService']=_0xf583f1,this[_0x50b57c(0x129)]=_0x34a0c2,this[_0x50b57c(0x108)]=_0x2530a2);}get['cursorInfo'](){const _0x49a854=_0x3568b7;return this[_0x49a854(0x11d)]['getValue']();}get[_0x3568b7(0x27c)](){const _0x59a215=_0x3568b7;return this[_0x59a215(0x326)]['getValue']();}[_0x3568b7(0x2ea)](){const _0x1dc9f7=_0x3568b7;super[_0x1dc9f7(0x2ea)](),this[_0x1dc9f7(0x11d)][_0x1dc9f7(0xe6)](new Map()),this[_0x1dc9f7(0x11d)][_0x1dc9f7(0x2d0)](),this[_0x1dc9f7(0x326)][_0x1dc9f7(0xe6)]([]),this['_roomMembers$'][_0x1dc9f7(0x2d0)]();}[_0x3568b7(0x16e)](){const _0x1d5399=_0x3568b7;this[_0x1d5399(0x25f)]||(this[_0x1d5399(0x25f)]=!0x0,this[_0x1d5399(0x289)][_0x1d5399(0x29c)]['pipe'](d[_0x1d5399(0x19e)](this[_0x1d5399(0x248)]))[_0x1d5399(0x21b)](_0x51c95a=>{const _0x5f2da8=_0x1d5399;_0x51c95a===u[_0x5f2da8(0x237)][_0x5f2da8(0x1c3)]?this[_0x5f2da8(0x2a8)]():this[_0x5f2da8(0x2cd)]();}),this[_0x1d5399(0x289)][_0x1d5399(0x2ec)][_0x1d5399(0x17f)](d[_0x1d5399(0x19e)](this[_0x1d5399(0x248)]))[_0x1d5399(0x21b)](_0x5c3bca=>{const _0x4976b4=_0x1d5399,_0x278667=_0x5c3bca[_0x4976b4(0x311)];_0x278667===m['CollaborationEvent'][_0x4976b4(0x348)]&&this['_onCursorUpdate'](_0x5c3bca),_0x278667===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x4976b4(0x275)](_0x5c3bca);}),this[_0x1d5399(0x2c6)](),this[_0x1d5399(0x345)](this['_commandService']['onCommandExecuted'](_0x300d3b=>{const _0x3bfed9=_0x1d5399;if(this[_0x3bfed9(0x179)]&&_0x300d3b['id']===g[_0x3bfed9(0x31a)]['id']&&_0x300d3b[_0x3bfed9(0x1d1)][_0x3bfed9(0x138)]===this[_0x3bfed9(0x339)]){const _0x3adbd6=_0x300d3b[_0x3bfed9(0x1d1)];this[_0x3bfed9(0xfa)](_0x3adbd6['subUnitId'],_0x3adbd6[_0x3bfed9(0x315)][0x0]);}})));}[_0x3568b7(0x308)](_0x359b2f){const _0xeac8b=_0x3568b7;var _0x250cbe,_0x5439ed;const {memberID:_0x27f810,selection:_0x223b74}=_0x359b2f[_0xeac8b(0xe4)],{sheetName:_0x3073a5,range:_0xdd5dcf}=be[_0xeac8b(0xf1)](_0x223b74),_0xc02737={'name':(_0x5439ed=(_0x250cbe=this[_0xeac8b(0x1de)]['getMember'](this[_0xeac8b(0x339)],_0x27f810))==null?void 0x0:_0x250cbe[_0xeac8b(0x31e)])!=null?_0x5439ed:_0xeac8b(0x2d1),'range':this[_0xeac8b(0x271)](_0x3073a5,_0xdd5dcf),'sheetID':_0x3073a5,'color':this[_0xeac8b(0x347)]['assignAColorForMemberID'](_0x27f810),'selection':_0x223b74},_0x2bd99a=this[_0xeac8b(0x188)];_0x2bd99a['set'](_0x27f810,_0xc02737),this[_0xeac8b(0x11d)][_0xeac8b(0xe6)](_0x2bd99a);}[_0x3568b7(0x275)](_0x30a559){const _0x4deaea=_0x3568b7,{memberID:_0x35faf7}=_0x30a559['data'],_0x1989ab=this['cursorInfo'];_0x1989ab['delete'](_0x35faf7),this[_0x4deaea(0x11d)][_0x4deaea(0xe6)](_0x1989ab);}[_0x3568b7(0x271)](_0x485f01,_0x4ad53b){const _0xf28def=_0x3568b7;var _0x190a85,_0x49a6e4;const _0x15b028=(_0x49a6e4=(_0x190a85=this[_0xf28def(0x11b)][_0xf28def(0x211)](this[_0xf28def(0x339)]))==null?void 0x0:_0x190a85[_0xf28def(0x119)](_0x485f01))==null?void 0x0:_0x49a6e4[_0xf28def(0x1c4)]();return(_0x15b028==null?void 0x0:_0x15b028['find'](_0x5dd5d4=>a[_0xf28def(0x2ef)][_0xf28def(0x174)](_0x5dd5d4,_0x4ad53b)))||_0x4ad53b;}['_onRefRangeChange'](){const _0x1d3a88=_0x3568b7,_0x397e3d=new a[(_0x1d3a88(0x1fd))](),_0x45fc1c=ot(),_0x1d377d=()=>{const _0x23650a=_0x1d3a88;_0x397e3d[_0x23650a(0x2ea)]();const _0x5b9945=(_0x528ede,_0x5ca2ce,_0x4d761e,_0x49d270)=>{const _0x183be1=_0x23650a;let _0x4d373c=[];switch(_0x528ede['id']){case g[_0x183be1(0x23b)][_0x183be1(0x204)]:{_0x4d373c=g[_0x183be1(0x266)](_0x528ede,_0x49d270);break;}case g[_0x183be1(0x23b)][_0x183be1(0x1c0)]:{_0x4d373c=g[_0x183be1(0x2b8)](_0x528ede,_0x49d270);break;}case g[_0x183be1(0x23b)][_0x183be1(0x1bc)]:{_0x4d373c=g[_0x183be1(0x2fa)](_0x528ede,_0x49d270);break;}case g[_0x183be1(0x23b)][_0x183be1(0xd7)]:{_0x4d373c=g[_0x183be1(0x2bf)](_0x528ede,_0x49d270);break;}case g[_0x183be1(0x23b)][_0x183be1(0x1a7)]:{_0x4d373c=g[_0x183be1(0x309)](_0x528ede,_0x49d270);break;}case g[_0x183be1(0x23b)][_0x183be1(0x20c)]:{_0x4d373c=g[_0x183be1(0x34e)](_0x528ede,_0x49d270);break;}case g[_0x183be1(0x23b)][_0x183be1(0x22e)]:{_0x4d373c=g[_0x183be1(0x2df)](_0x528ede,_0x49d270);break;}case g[_0x183be1(0x23b)]['RemoveColCommandId']:{_0x4d373c=g[_0x183be1(0x130)](_0x528ede,_0x49d270);break;}case g[_0x183be1(0x23b)]['RemoveRowCommandId']:{_0x4d373c=g[_0x183be1(0x24f)](_0x528ede,_0x49d270);break;}}const _0x196f3e=g[_0x183be1(0x168)](_0x4d373c,_0x49d270),_0x456b3d=this[_0x183be1(0x188)][_0x183be1(0x261)](_0x5ca2ce);if(_0x456b3d&&_0x196f3e){const _0x1229a0={..._0x456b3d,'range':_0x196f3e};this['cursorInfo']['set'](_0x5ca2ce,_0x1229a0),_0x45fc1c(()=>{const _0x3786a6=_0x183be1,_0x49184c=this[_0x3786a6(0x108)][_0x3786a6(0x24e)](_0x196f3e,_0x274a25=>(_0x49184c[_0x3786a6(0x2ea)](),_0x5b9945(_0x274a25,_0x5ca2ce,_0x4d761e,_0x196f3e)));_0x397e3d['add'](_0x49184c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x23650a(0xe8)]((_0x159e6e,_0x292bdf)=>{const _0x203f2f=_0x23650a,{range:_0x2377ec,sheetID:_0x53e61f}=_0x159e6e,_0x1d1bda=this[_0x203f2f(0x108)]['registerRefRange'](_0x2377ec,_0x387830=>(_0x1d1bda['dispose'](),_0x5b9945(_0x387830,_0x292bdf,_0x53e61f,_0x2377ec)));_0x397e3d[_0x203f2f(0x254)](_0x1d1bda);});};this[_0x1d3a88(0x345)](a[_0x1d3a88(0x33d)](this[_0x1d3a88(0x11d)]['subscribe'](()=>{_0x1d377d();})));}['_toggleOnline'](){const _0x4f161f=_0x3568b7;var _0x4aeb7d,_0x3d6461;if(this['_online']=!0x0,((_0x4aeb7d=this[_0x4f161f(0x11b)]['getFocusedUnit']())==null?void 0x0:_0x4aeb7d[_0x4f161f(0x23c)]())!==this[_0x4f161f(0x339)])return;const _0x182f8d=(_0x3d6461=this['_injector'][_0x4f161f(0x261)](g[_0x4f161f(0x25b)])[_0x4f161f(0x11c)]())==null?void 0x0:_0x3d6461[0x0],_0x565885=this[_0x4f161f(0x11b)][_0x4f161f(0x241)](a[_0x4f161f(0x1e3)][_0x4f161f(0x193)])[_0x4f161f(0x293)]();_0x182f8d&&_0x565885&&this[_0x4f161f(0xfa)](_0x565885[_0x4f161f(0xda)](),_0x182f8d);}[_0x3568b7(0x2cd)](){const _0x18a017=_0x3568b7;this[_0x18a017(0x179)]=!0x1;}};Se=it([A(0x2,a[_0x3568b7(0x104)](a[_0x3568b7(0x178)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x3568b7(0x104)](u[_0x3568b7(0x1ba)])),A(0x5,a[_0x3568b7(0x249)]),A(0x6,a[_0x3568b7(0x1df)]),A(0x7,a[_0x3568b7(0x104)](g['RefRangeService']))],Se);var at=Object[_0x3568b7(0x14f)],ct=(_0x47cec5,_0x3ec19f,_0x6570c7,_0x59001e)=>{const _0x108f03=_0x3568b7;for(var _0x2206ee=_0x59001e>0x1?void 0x0:_0x59001e?at(_0x3ec19f,_0x6570c7):_0x3ec19f,_0x12c12b=_0x47cec5[_0x108f03(0xde)]-0x1,_0x4e9d63;_0x12c12b>=0x0;_0x12c12b--)(_0x4e9d63=_0x47cec5[_0x12c12b])&&(_0x2206ee=_0x4e9d63(_0x2206ee)||_0x2206ee);return _0x2206ee;},ie=(_0x5e8c25,_0x2ac092)=>(_0x5e9aa2,_0x45a1ab)=>_0x2ac092(_0x5e9aa2,_0x45a1ab,_0x5e8c25);let x=class extends a['RxDisposable']{constructor(_0xd68248,_0x25dbb1,_0x200f6b){const _0x3c1b83=_0x3568b7;super(),h(this,_0x3c1b83(0x1b8),new Map()),h(this,_0x3c1b83(0x1d7),new d['Subject']()),(this[_0x3c1b83(0x11b)]=_0xd68248,this[_0x3c1b83(0x216)]=_0x25dbb1,this[_0x3c1b83(0x34b)]=_0x200f6b,this['_init']());}[_0x3568b7(0x2ea)](){const _0x39e470=_0x3568b7;super[_0x39e470(0x2ea)](),this[_0x39e470(0x1d7)]['complete'](),this[_0x39e470(0x1b8)][_0x39e470(0xe8)](_0xb07e07=>_0xb07e07[_0x39e470(0x2ea)]());}[_0x3568b7(0x29b)](_0x55a67f){const _0x14cb05=_0x3568b7;return this[_0x14cb05(0x1b8)]['has'](_0x55a67f)?this[_0x14cb05(0x1b8)][_0x14cb05(0x261)](_0x55a67f)[_0x14cb05(0x13a)]:this[_0x14cb05(0x1d7)]['pipe'](d['filter'](_0x25cb6c=>_0x25cb6c[_0x14cb05(0x339)]===_0x55a67f),d[_0x14cb05(0x10d)](_0x30757e=>_0x30757e[_0x14cb05(0x13a)]));}['_init'](){const _0x4951e4=_0x3568b7;this[_0x4951e4(0x11b)][_0x4951e4(0x2de)](a[_0x4951e4(0x1e3)][_0x4951e4(0x193)])['pipe'](d[_0x4951e4(0x19e)](this[_0x4951e4(0x248)]))[_0x4951e4(0x21b)](async _0x222997=>{const _0x28bdf8=_0x4951e4,_0xeb6030=_0x222997[_0x28bdf8(0x23c)](),_0x3eee48=await this[_0x28bdf8(0x19c)](_0xeb6030);this['_entityInit$']['next'](_0x3eee48),this['_entities'][_0x28bdf8(0x213)](_0xeb6030,_0x3eee48);}),this[_0x4951e4(0x11b)][_0x4951e4(0x2de)](a[_0x4951e4(0x1e3)][_0x4951e4(0x2b7)])['pipe'](d[_0x4951e4(0x19e)](this[_0x4951e4(0x248)]))[_0x4951e4(0x17f)](d['filter'](_0xfd1453=>!_0xfd1453[_0x4951e4(0x23c)]()[_0x4951e4(0x22f)]('__')))['subscribe'](async _0xa354d9=>{const _0x2bb7d7=_0x4951e4,_0x313b45=_0xa354d9[_0x2bb7d7(0x23c)](),_0xbaa0b9=await this[_0x2bb7d7(0x183)](_0x313b45);this[_0x2bb7d7(0x1d7)][_0x2bb7d7(0xe6)](_0xbaa0b9),this[_0x2bb7d7(0x1b8)][_0x2bb7d7(0x213)](_0x313b45,_0xbaa0b9);}),d[_0x4951e4(0x189)](this[_0x4951e4(0x11b)][_0x4951e4(0x274)](a['UniverInstanceType'][_0x4951e4(0x2b7)]),this['_univerInstanceService'][_0x4951e4(0x274)](a['UniverInstanceType'][_0x4951e4(0x193)]))[_0x4951e4(0x17f)](d[_0x4951e4(0x19e)](this[_0x4951e4(0x248)]))[_0x4951e4(0x21b)](_0x426c8d=>{const _0x5bbbee=_0x4951e4,_0x2e11b7=_0x426c8d[_0x5bbbee(0x23c)](),_0x5e2d82=this[_0x5bbbee(0x1b8)][_0x5bbbee(0x261)](_0x2e11b7);_0x5e2d82&&(_0x5e2d82[_0x5bbbee(0x2ea)](),this[_0x5bbbee(0x1b8)][_0x5bbbee(0x2d6)](_0x2e11b7));});}async['_startSheetCollabCursor'](_0x442c3f){const _0xb1db51=_0x3568b7,_0x3138f3=await this[_0xb1db51(0x34b)][_0xb1db51(0x166)](_0x442c3f),_0x455ff2=this['_injector'][_0xb1db51(0xfc)](Se,_0x442c3f,_0x3138f3);return _0x455ff2[_0xb1db51(0x16e)](),_0x455ff2;}async[_0x3568b7(0x183)](_0x9e3e88){const _0x1ded1a=_0x3568b7,_0x4671a9=await this['_collabSessionService'][_0x1ded1a(0x166)](_0x9e3e88),_0x4d4d60=this[_0x1ded1a(0x216)][_0x1ded1a(0xfc)](Ie,_0x9e3e88,_0x4671a9);return _0x4d4d60['init'](),_0x4d4d60;}};x=ct([ie(0x0,a[_0x3568b7(0x249)]),ie(0x1,a[_0x3568b7(0x104)](a[_0x3568b7(0x178)])),ie(0x2,a[_0x3568b7(0x104)](u[_0x3568b7(0x230)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x49d905,_0x3574d2){const _0x4714c8=_0x3568b7;let {radius:_0x45aa7f,width:_0x4c53e3,height:_0x5961d5}=_0x3574d2;_0x45aa7f=_0x45aa7f!=null?_0x45aa7f:0x0,_0x4c53e3=_0x4c53e3!=null?_0x4c53e3:0x1e,_0x5961d5=_0x5961d5!=null?_0x5961d5:0x1e;let _0x296b09=0x0,_0x4e8a26=0x0,_0x48de58=0x0;_0x296b09=_0x4e8a26=_0x48de58=Math[_0x4714c8(0x302)](_0x45aa7f,_0x4c53e3/0x2,_0x5961d5/0x2),_0x49d905[_0x4714c8(0x1fe)](),_0x49d905[_0x4714c8(0x13c)](_0x296b09,0x0),_0x49d905[_0x4714c8(0xf4)](_0x4c53e3-_0x4e8a26,0x0),_0x49d905[_0x4714c8(0x19a)](_0x4c53e3-_0x4e8a26,_0x4e8a26,_0x4e8a26,Math['PI']*0x3/0x2,0x0,!0x1),_0x49d905[_0x4714c8(0xf4)](_0x4c53e3,_0x5961d5-_0x48de58),_0x49d905[_0x4714c8(0x19a)](_0x4c53e3-_0x48de58,_0x5961d5-_0x48de58,_0x48de58,0x0,Math['PI']/0x2,!0x1),_0x49d905[_0x4714c8(0xf4)](0x0,_0x5961d5),_0x49d905[_0x4714c8(0xf4)](0x0,_0x296b09),_0x49d905[_0x4714c8(0x19a)](_0x296b09,_0x296b09,_0x296b09,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x49d905['closePath'](),_0x3574d2[_0x4714c8(0x2c7)]&&(_0x49d905['save'](),_0x49d905['fillStyle']=_0x3574d2['fill'],_0x3574d2[_0x4714c8(0x300)]===_0x4714c8(0x25d)?_0x49d905[_0x4714c8(0x2c7)](_0x4714c8(0x25d)):_0x49d905[_0x4714c8(0x2c7)](),_0x49d905[_0x4714c8(0x2e4)]());}class ee extends p['Shape']{constructor(_0x5143f2,_0x444670){const _0x2ab275=_0x3568b7;super(_0x5143f2,_0x444670),h(this,_0x2ab275(0xdb)),h(this,'text'),(this['color']=_0x444670==null?void 0x0:_0x444670[_0x2ab275(0xdb)],this['text']=_0x444670==null?void 0x0:_0x444670[_0x2ab275(0x28a)]);}static[_0x3568b7(0x34d)](_0x43b656,_0x2a874a){const _0x55d3d6=_0x3568b7,{text:_0x5255bf,color:_0x56a5de}=_0x2a874a;_0x43b656['save'](),_0x43b656[_0x55d3d6(0x115)]=_0x55d3d6(0x1ee);const _0x5a44b5=_0x43b656[_0x55d3d6(0x2d7)](_0x5255bf)[_0x55d3d6(0x1d5)],_0x5e9239=Math[_0x55d3d6(0x302)](_0x5a44b5+0x2*ne,Re);_t(_0x43b656,{'height':K,'radius':0x4,'width':_0x5e9239,'fill':_0x56a5de}),_0x43b656[_0x55d3d6(0x218)]=_0x55d3d6(0x114);const _0x5ef105=ne,_0x37ed75=K-lt,_0x4e0ac6=Re-0x2*ne;if(_0x5a44b5>_0x4e0ac6){let _0x2c40a7='',_0x98311a=0x0;for(const _0x7392d7 of _0x5255bf){const _0x997166=_0x43b656[_0x55d3d6(0x2d7)](_0x7392d7)[_0x55d3d6(0x1d5)];if(_0x98311a+_0x997166<=_0x4e0ac6-_0x43b656[_0x55d3d6(0x2d7)]('...')[_0x55d3d6(0x1d5)])_0x2c40a7+=_0x7392d7,_0x98311a+=_0x997166;else{_0x2c40a7+=_0x55d3d6(0x338);break;}}_0x43b656[_0x55d3d6(0x197)](_0x2c40a7,_0x5ef105,_0x37ed75);}else _0x43b656[_0x55d3d6(0x197)](_0x5255bf,_0x5ef105,_0x37ed75);_0x43b656[_0x55d3d6(0x2e4)]();}[_0x3568b7(0x202)](_0x49bec){const _0x46f032=_0x3568b7;ee[_0x46f032(0x34d)](_0x49bec,this);}}function _0x4645(){const _0x80125d=['_selfUnitIDs','resize','hasOwnProperty','_logService','getMemberID','from','hide','YUUMI_RATE_OVER_LIMIT','_toggleOnline','makeDirty','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','USERS_LEAVE','_httpService','function','defIds','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','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','clearTimeout','_refreshCollabCursors','colorChannel1','_removeCollabCursors','OTHER_CLIENT_EDITING','IRenderManagerService','UNIVER_DOC','handleDeleteRangeMoveUp','YUUMI_CONNECTOR_URL_NOT_FOUND','forwardRef','_range','DocCollaborationEntity','_initEntityListener','_anchor','handleInsertRangeMoveDown','INVITE_CODE_REQUIRED','0\x200\x2017\x2016','result','registerBeforeClose','_scheduleHeartbeat','_textBubble','_onRefRangeChange','fill','_eventUnsubscribe','EMAIL_VERIFY_CODE_MISMATCH','_hover','collaboration-client-ui.config','CollaborationDataLoaderController','_toggleOffline','has','2128616kVHoOu','complete','Unknown\x20user','xlink:href','_handleLeaveEvent','INVALID_INVITE_CODE','CollaborationStatus','delete','measureText','onLocalMutation','black','sheetID','defs','setActiveRange','ITransformService','getTypeOfUnitAdded$','handleMoveRange','COLORS','enableLocalCache','_getSheetObject','whenReady','restore','SetWorksheetActivateCommand','RemoteUniscriptService','collabStatus.syncing','APPLY_REJECT','SYNCED','dispose','useRef','event$','MOBILE_HAS_BEEN_BOUND','_backgroundColor','Rectangle','pushState','collabStatus.notCollab','IURLService','OnLineIcon','NOT_COLLAB','on-line-icon','collabCursorState$','_send','_transformHistoryAndStateStack','getSheetObject','handleInsertCol','HTTPService','clipPath','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','save','_transformUndoRedoStack','fillRule','setUndoRedoMutationParamsCache','min','runId','UNAUTHENTICATED','_initCommandExecutedListener','Disposable','_docSyncEditingCollabCursorService','_onCursorUpdate','handleInsertRangeMoveRight','apply','INTERNAL_ERROR','_shapes','getRangePointData','onCommandExecuted','137318MdFrFk','includes','eventID','_disabled','concat','_setupSubUnitSync','selections','getVpScrollXYInfoByPosToVp','IBeforeCloseService','_docTransformStateCacheService','_scheduleSaving','SetSelectionsOperation','NO_OTHER_CLIENTS_EDITING','reconnect','runOnServer','name','activeSheet$','throttleTime','collaboration.single-unit.warning','446114VbWfsT','_scene','top','APPLY_PERMISSION_DENIED','_roomMembers$','_labelPosition','svg','unit','fromEventSubject','ACTIVE_UNIT_EVENT_CHANNEL','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','WECHAT_HAS_BEEN_BOUND','debounce','_collaborationUIEventService','INVITE_CODE_HAS_BEEN_UES','YUUMI_UNABLE_LOAD_URL','debug','univer-flex\x20univer-items-center','WebURLService','docStateChange$','ILocalStorageService','_scheduleClearOtherTimer','...','unitID','_transformPreviousActiveRange','_render','prototype','toDisposable','484955qvJxjU','getViewport','IRemoteInstanceService','application/json','CHANGESET_REVISION_CONFILICT','_getSessionTicket','9JblkHp','disposeWithMe','addObjects','_colorAssignService','UPDATE_CURSOR','setAlpha','connectInjector','_collabSessionService','COMPLETION_FINISHED','drawWith','handleInsertRow','m2Prime','AWAITING','ILogService','then','createElement','urlChange$','idSuffix','BuiltInUIPart','disposeUnit','InsertRangeMoveDownCommandId','loadUnit','url(#on-line-icon_clip0_910_349)','getSheetId','color','UniverCollaborationClientPlugin','split','length','saveOfflineData','string','JOIN_ROOM_FAILED','path','_handleJoinEvent','data','override','next','CollaborationStatusDisplay','forEach','stringify','setConfig','HEADER_MENU','error','triggerDblclick','LocaleService','SheetSkeletonManagerService','FETCH_MISS','deserializeRangeWithSheet','MUTATION','imageSourceType','lineTo','_themeService','url(#$1','green.600','RegularPolygon','collab-text-anchor-','_updateLocalCursor','engine','createInstance','USER_NOT_INVITED_CODE','_colorIndex','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','size','_updateCollabCursors','_messageService','Rect','Inject','583173TosxqA','type','asObservable','_refRangeService','show','isArray','transformIMECache','blue.400','switchMap','YUUMI_SUBSCRIPTION_NOT_FOUND','selection','TOO_MANY_REQUESTS','UniverCollaborationClientUIPlugin','wsSessionTicketUrl','_syncEditingCollabCursorService','#FFF','font','_docClipboardService','generateRandomId','LICENSE_DISTRO_REJECTED','getSheetBySheetId','RichTextEditingMutation','_univerInstanceService','getCurrentSelections','_cursorInfo$','m1Prime','mapTo','none','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','VIEW_MAIN','toRgbString','with','_handleHeartbeatEvent','getColorFromTheme','flatMap','CollaborationEvent','_commandService','Error','labelPosition','deepClone','subscribeEvent','loadOfflineData','useDependency','handleIRemoveCol','_lastPointer','INVITE_CODE_ALREADY_BOUND','getOffsetConfig','displayName','setShapeProps','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_localStorageService','unitId','getUndoRedoMutationParamsCache','cursorInfo$','ENSURE_SNAPSHOT_EXECUTION','moveTo','Vector2','_registerRenderDependencies','values','LOCAL_CACHE_INTERVAL_KEY','code','_context','Workbook','collabStatus.conflict','_localeService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_beforeCloseService','24jswmlP','RevisionService','distinctUntilChanged','session.will-retry','getRelativeToViewportCoord','ALREADY_EXISTS','ILocalCacheService','getOwnPropertyDescriptor','BehaviorSubject','send','getParam','sheetId','SNAPSHOT_INVALID_SNAPSHOT','OFFLINE','_cursors','collabStatus.synced','DocIMEInputManagerService','_heartbeatTimer','IUIPartsService','1817039HFQYcv','_initStatusListener','isTransformMutationsWithChangesetSuccess','1em','AWAITING_WITH_PENDING','_updateURLWithCurrentState','fromEvent','onRendered','clearInterval','column','_initResize','requireSession','isTransformMutationFailure','runRefRangeMutations','CONFLICT','assignAColorForMemberID','0\x200\x2016\x2016','transformStateCache','_imageIoService','init','getColor','bottom','TEXT','OTHER_CLIENTS_EDITING','transformSelections','contains','getActiveRange','isEditing','MessageType','Injector','_online','max','PENDING','history','LICENSE_EXPORT_SIZE_EXCEEDED','entityInit$','pipe','registerRenderModule','href','CollaborationUIEventId','_startDocCollabCursor','LICENSE_IMPORT_SIZE_EXCEEDED','LOGIN_FAILED','PERMISSION_DENIED','transformMutationsWithChangeset','cursorInfo','merge','map','defineProperty','getRenderById','MOBILE_VERIFY_CODE_MISMATCH','isActive','_color','saveTaskMap','hovered','onPointerEnter$','UNIVER_SHEET','post','univer-mr-2\x20univer-flex\x20univer-text-xl','_removeClearOtherTimer','fillText','_hovered','270VrArND','arc','_cachedData','_startSheetCollabCursor','_handleEvent','takeUntil','currentSkeleton$','_collaborationController','YUUMI_URL_COL_OUT_OF_RANGE','_initStatusComponent','_docStateChangeManagerService','_ensureSubject','getUnitStatus$','_configService','InsertRangeMoveRightCommandId','FromArray','rgba(255,\x20255,\x20255,\x200.01)','all','_docTransformSelectionsService','unshift','addEventListener','RxDisposable','Warning','currentColor','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_cursor','serializeRangeWithSheet','currentTheme$','getCoordByCell','executeCommand','replaceState','_entities','getDocRanges','MemberService','_id','InsertColCommandId','range','pluginName','_docTransformIMECacheService','DeleteRangeMoveUpCommandId','collaboration.closeRoom','_instanceService','ONLINE','getMergeData','ColorKit','getValue','_config','YUUMI_AI_RUN_FAILED','_docSkeletonManagerService','collabStatus.fetchMiss','createIdentifier','_localCacheService','textRanges','div','SheetCollabCursorShape','DocStateChangeManagerService','params','univerjs-icon\x20univerjs-icon-','addClipboardHook','row','width','jsx','_entityInit$','createSocket','Tools','_drawTextRange','_urlService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','IMessageService','_memberService','ICommandService','invokeId','doc.mutation.rich-text-editing','getSkeleton','UniverInstanceType','getFocusedUnit','DocSkeletonManagerService','mask','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_createSocketURL','assign','collaboration-client.offline-data-not-saved','filter','exhaustSavingTask','CollaborationController','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','use','setTimeout','round','saveImage','status$','transformRemoteChangeset','IConfigService','_initEvent','setParam','propertyIsEnumerable','redoState','BrowserCollaborationSocketService','children','UNRECOGNIZED','DisposableCollection','beginPath','findNodePositionByCharIndex','_saveCache','M0\x200H16V16H0z','_draw','getConfig','DeleteRangeMoveLeftCommandId','transformMutation','actions','DesktopCollaborationStatusDisplayController','skeleton','YUUMI_ASYNCIO_CANCELLED','Failed','APPLY_REVISION_CONFILICT','InsertRowCommandId','_status$','LICENSE_MAX_UNITS_EXCEEDED','call','Module','getUniverSheetInstance','CommandType','set','_renderManagerService','random','_injector','collabStatus.offline','fillStyle','_anchorDot','getStateCache','subscribe','ranges','UnitStatus','extend','_saveTaskMap','[CollaborationDataLoaderController]','_cursorShapes','onPointerLeave$','CONNECTOR_DATA_TOO_LARGE','_revisionService','session.connection-failed','Optional','NodePositionConvertToCursor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_unitOnClients','collab-rect-range-','location','substring','registerDependencies','MoveRangeCommandId','startsWith','CollaborationSessionService','_unitStatus','_document','indexOf','on-line-icon_clip0_910_349','INotificationService','getMember','SessionStatus','_collabCursorController','off-line-icon_clip0_910_343','focused$','EffectRefRangId','getUnitId','_clearOtherTimers','icon','YUUMI_ALL_TABLES_IS_INVALID','Plugin','getCurrentUnitForType','onStarting','sessionTicket','setItem','height','_transformService','getLocalCacheKey','dispose$','IUniverInstanceService','DocSelectionManagerService','_collabCursorState$','UniverIcon','_hideTimer','registerRefRange','handleIRemoveRow','origin','url(#off-line-icon_clip0_910_343)','APPLY_DUPLICATED','roomMembers$','add','DependentOn','getUnhiddenWorksheets','_uiPartsService','useCallback','_drawAnchor','jsxs','SheetsSelectionsService','debounceTime','evenodd','shareReplay','_init','startRow','get','off-line-icon','UNDEFINED','YUUMI_NO_CUBOID_FOR_QUESTION','entries','handleDeleteRangeMoveLeft','red.300','_name','SNAPSHOT_HAS_BEEN_REMOVED','_updateSubUnitFromURLParams','_docSkeleton','TEXT_RANGE_LAYER_INDEX','transformByState','searchParams','tag','undoState','_getMergeRange','SetDocZoomRatioOperation','DOC_RANGE_TYPE','getTypeOfUnitDisposed$','_onCursorDelete','toString','search','onMouseMove','session.collaboration-timeout','removeParam','1821756kIdNdY','roomMembers','attrs','body','TRANSFORM_CHANGE_OBSERVABLE_TYPE','unload','Shape','memberID','_doCreateSocket','OffLineIcon','NodePositionConvertToRectRange','white','onPointerMove$','INVALID_ARGUMENT','_session','text','combineLatest','setStateCache','ISocketService','NOT_FOUND','push','Tooltip','jiqing.500','replace','getActiveSheet','transform','getAncestorScale','registerComponent','subunit','popstate','newValue','addObject','getCollabCursors$','sessionStatus$','onTransformChange$','_sheetSkeletonManagerService','mutations'];_0x4645=function(){return _0x80125d;};return _0x4645();}const re=_0x3568b7(0xf9),ht='collab-text-range-',ut=_0x3568b7(0x22a),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x3568b7(0x1a9);class De{constructor(_0x108aa3,_0x184536,_0x1dcb95,_0x435a4e){const _0x5e2a5b=_0x3568b7;h(this,_0x5e2a5b(0x30c),[]),h(this,_0x5e2a5b(0x2be),null),h(this,_0x5e2a5b(0x2c5),null),h(this,'_anchorDot',null),h(this,_0x5e2a5b(0x24d),null),h(this,'_eventUnsubscribe',null),(this[_0x5e2a5b(0x1b2)]=_0x108aa3,this[_0x5e2a5b(0x323)]=_0x184536,this[_0x5e2a5b(0x26b)]=_0x1dcb95,this[_0x5e2a5b(0x232)]=_0x435a4e,this[_0x5e2a5b(0x33b)]());}set[_0x3568b7(0x2ca)](_0xb5190a){const _0x433bf7=_0x3568b7;_0xb5190a?(this['_anchorDot']&&this['_anchorDot'][_0x433bf7(0x2a6)](),this[_0x433bf7(0x2c5)]&&this['_textBubble']['show']()):(this[_0x433bf7(0x219)]&&this[_0x433bf7(0x219)][_0x433bf7(0x109)](),this[_0x433bf7(0x2c5)]&&this['_textBubble'][_0x433bf7(0x2a6)]());}[_0x3568b7(0x2ea)](){const _0x4164b1=_0x3568b7;for(const _0x396f54 of this[_0x4164b1(0x30c)])_0x396f54[_0x4164b1(0x2ea)]();this['_textBubble']&&this[_0x4164b1(0x2c5)][_0x4164b1(0x2ea)](),this['_anchorDot']&&this[_0x4164b1(0x219)][_0x4164b1(0x2ea)](),this[_0x4164b1(0x2be)]&&this[_0x4164b1(0x2be)][_0x4164b1(0x2ea)](),this[_0x4164b1(0x2c8)]&&this['_eventUnsubscribe']();}[_0x3568b7(0x33b)](){const _0x13a214=_0x3568b7;var _0x4cc5b3;const {_docSkeleton:_0x22bb24,_document:_0x10c97c}=this,{color:_0x650a2c,name:_0x386a14,ranges:_0xa95aea}=this['_cursor'],_0x4a702b=_0x10c97c[_0x13a214(0x133)](),{docsLeft:_0x4ef6ab,docsTop:_0x54e6ab}=_0x4a702b,_0x1ff72c=new E[(_0x13a214(0x227))](_0x4a702b,_0x22bb24);for(const {startOffset:_0x21f209,endOffset:_0x42f792,rangeType:_0x441729,segmentId:_0x308177,segmentPage:_0xcd6c1f,collapsed:_0x11b815,isActive:_0x4f9c13}of _0xa95aea){const _0x132645=_0x22bb24[_0x13a214(0x1ff)](_0x21f209,!0x0,_0x308177,_0xcd6c1f);let _0x4f5114=_0x22bb24['findNodePositionByCharIndex'](_0x42f792,!0x0,_0x308177,_0xcd6c1f);if(_0x4f5114==null&&(_0x4f5114=_0x22bb24[_0x13a214(0x1ff)](_0x42f792-0x1,!0x1,_0x308177,_0xcd6c1f)),_0x4f9c13){const {contentBoxPointGroup:_0x3d0281}=_0x1ff72c[_0x13a214(0x30d)](_0x4f5114,_0x4f5114);if(_0x3d0281[_0x13a214(0xde)]===0x0)continue;this[_0x13a214(0x259)](_0x650a2c,_0x3d0281,_0x4ef6ab,_0x54e6ab,_0x386a14),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x132645&&_0x4f5114){if(_0x441729===a['DOC_RANGE_TYPE']['RECT']){const _0x1aba6d=new E[(_0x13a214(0x285))](_0x4a702b,_0x22bb24),{pointGroup:_0x552461}=(_0x4cc5b3=_0x1aba6d[_0x13a214(0x30d)](_0x132645,_0x4f5114))!=null?_0x4cc5b3:{};if(_0x552461==null||_0x552461[_0x13a214(0xde)]===0x0)continue;this['_drawRectRange'](_0x650a2c,_0x552461,_0x4ef6ab,_0x54e6ab);}else{if(!_0x11b815){const {borderBoxPointGroup:_0x42001c}=_0x1ff72c[_0x13a214(0x30d)](_0x132645,_0x4f5114);if(_0x42001c[_0x13a214(0xde)]===0x0)continue;this[_0x13a214(0x1da)](_0x650a2c,_0x42001c,_0x4ef6ab,_0x54e6ab);}}}}}[_0x3568b7(0x259)](_0x50ddaf,_0x2272ff,_0x5e7433,_0x53f396,_0x39a25b){const _0x3ba17c=_0x3568b7,_0x4fa834=this['_getAnchorBounding'](_0x2272ff),{left:_0x36928f,top:_0x31f37c,height:_0x3f51ff}=_0x4fa834,_0x3337fd=this['_getScale'](),_0x1faf15=It/_0x3337fd,_0x59f8a0=new p['Rect'](re+a[_0x3ba17c(0x1d9)]['generateRandomId'](k),{'left':_0x36928f+_0x5e7433-_0x1faf15,'top':_0x31f37c+_0x53f396,'height':_0x3f51ff,'width':dt,'fill':_0x50ddaf||p[_0x3ba17c(0x16f)](a[_0x3ba17c(0x2e0)][_0x3ba17c(0x2d9)],0x0),'strokeWidth':_0x1faf15,'stroke':St,'evented':!0x0});this['_anchor']=_0x59f8a0,this[_0x3ba17c(0x323)][_0x3ba17c(0x29a)](_0x59f8a0,E['TEXT_RANGE_LAYER_INDEX']);const _0x235ea9=new p[(_0x3ba17c(0x103))](re+a['Tools']['generateRandomId'](k),{'left':_0x36928f+_0x5e7433-_0x1faf15,'top':_0x31f37c+_0x53f396-oe/0x2,'height':oe,'width':oe,'fill':_0x50ddaf||p[_0x3ba17c(0x16f)](a[_0x3ba17c(0x2e0)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x50ddaf||p[_0x3ba17c(0x16f)](a['COLORS'][_0x3ba17c(0x2d9)],0x0),'evented':!0x1});this[_0x3ba17c(0x219)]=_0x235ea9,this[_0x3ba17c(0x323)]['addObject'](_0x235ea9,E['TEXT_RANGE_LAYER_INDEX']);const _0x5a1142=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0x36928f+_0x5e7433-_0x1faf15,'top':_0x31f37c+_0x53f396-K,'text':_0x39a25b,'color':_0x50ddaf});this[_0x3ba17c(0x2c5)]=_0x5a1142,this[_0x3ba17c(0x323)][_0x3ba17c(0x29a)](_0x5a1142,E[_0x3ba17c(0x26c)]),this['_hover']=!0x1;}['_handleHover'](){const _0x5d2227=_0x3568b7,_0x4d8588=this[_0x5d2227(0x2be)][_0x5d2227(0x192)][_0x5d2227(0x12d)](()=>{const _0x16f292=_0x5d2227;this[_0x16f292(0x2ca)]=!0x0;}),_0x2d04c6=this[_0x5d2227(0x2be)][_0x5d2227(0x222)][_0x5d2227(0x12d)](()=>{const _0x39efda=_0x5d2227;this[_0x39efda(0x24d)]&&clearTimeout(this['_hideTimer']),this[_0x39efda(0x24d)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x4d8588['unsubscribe'](),_0x2d04c6['unsubscribe']();};}['_drawTextRange'](_0x25fd21,_0x5b0c53,_0x4719cc,_0x2b675c){const _0x4b528d=_0x3568b7,_0x168a86=new a['ColorKit'](_0x25fd21)[_0x4b528d(0x349)](0.2)[_0x4b528d(0x123)](),_0x2c984c=new p['RegularPolygon'](ht+a[_0x4b528d(0x1d9)]['generateRandomId'](k),{'pointsGroup':_0x5b0c53,'fill':_0x168a86||p['getColor'](a[_0x4b528d(0x2e0)]['black'],0.2),'left':_0x4719cc,'top':_0x2b675c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4b528d(0x30c)][_0x4b528d(0x28f)](_0x2c984c),this[_0x4b528d(0x323)][_0x4b528d(0x29a)](_0x2c984c,E[_0x4b528d(0x26c)]);}['_drawRectRange'](_0x229e03,_0x12d86b,_0x82c68e,_0x3b582d){const _0x4443c3=_0x3568b7,_0x549da8=new a[(_0x4443c3(0x1c5))](_0x229e03)[_0x4443c3(0x349)](0.2)[_0x4443c3(0x123)](),_0x476c46=new p[(_0x4443c3(0xf8))](ut+a[_0x4443c3(0x1d9)][_0x4443c3(0x117)](k),{'pointsGroup':_0x12d86b,'fill':_0x549da8||p[_0x4443c3(0x16f)](a['COLORS'][_0x4443c3(0x2d9)],0.2),'left':_0x82c68e,'top':_0x3b582d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4443c3(0x28f)](_0x476c46),this[_0x4443c3(0x323)][_0x4443c3(0x29a)](_0x476c46,E[_0x4443c3(0x26c)]);}['_getAnchorBounding'](_0x9b7677){const _0x3977c5=_0x9b7677[0x0],_0x568bed=_0x3977c5[0x0],_0x24187a=_0x3977c5[0x2],{x:_0x598516,y:_0x56319a}=_0x568bed,{x:_0x43c315,y:_0xfaaa50}=_0x24187a;return{'left':_0x598516,'top':_0x56319a,'width':_0x43c315-_0x598516,'height':_0xfaaa50-_0x56319a};}['_getScale'](){const _0x4a4301=_0x3568b7,{scaleX:_0x30c69c,scaleY:_0xa432aa}=this[_0x4a4301(0x323)]['getAncestorScale']();return Math[_0x4a4301(0x17a)](_0x30c69c,_0xa432aa);}}var ft=Object[_0x3568b7(0x14f)],vt=(_0x263154,_0x57fdd2,_0x4d0b98,_0x1b0a89)=>{const _0xac156b=_0x3568b7;for(var _0x56f26d=_0x1b0a89>0x1?void 0x0:_0x1b0a89?ft(_0x57fdd2,_0x4d0b98):_0x57fdd2,_0x4fb4ba=_0x263154[_0xac156b(0xde)]-0x1,_0x424cff;_0x4fb4ba>=0x0;_0x4fb4ba--)(_0x424cff=_0x263154[_0x4fb4ba])&&(_0x56f26d=_0x424cff(_0x56f26d)||_0x56f26d);return _0x56f26d;},W=(_0x4fbefb,_0x1e8ae0)=>(_0x3a7a89,_0x53c648)=>_0x1e8ae0(_0x3a7a89,_0x53c648,_0x4fbefb);let fe=class extends a['RxDisposable']{constructor(_0x18dec0,_0xaf230f,_0x114855,_0x469c93,_0x9bd990){const _0x274a04=_0x3568b7;super(),h(this,'_cursorShapes',[]),h(this,_0x274a04(0x156),[]),(this[_0x274a04(0x142)]=_0x18dec0,this[_0x274a04(0x1c9)]=_0xaf230f,this[_0x274a04(0x238)]=_0x114855,this['_commandService']=_0x469c93,this[_0x274a04(0xf5)]=_0x9bd990,this[_0x274a04(0x25f)]());}[_0x3568b7(0x25f)](){const _0x1c514e=_0x3568b7,_0x50a1e6=this['_context']['unitId'],_0x148a89=this[_0x1c514e(0x1c9)];this['disposeWithMe'](d[_0x1c514e(0x28b)]([this[_0x1c514e(0x238)][_0x1c514e(0x29b)](_0x50a1e6),this['_themeService'][_0x1c514e(0x1b4)]])[_0x1c514e(0x17f)]($[_0x1c514e(0x18a)](([_0x1b167a,_0x2226fd])=>({'skeleton':_0x148a89[_0x1c514e(0x1e2)](),'cursors':[..._0x1b167a[_0x1c514e(0x13f)]()][_0x1c514e(0x127)](_0x4cf548=>({..._0x4cf548,'color':this['_themeService']['getColorFromTheme'](_0x4cf548['color'])}))})))['subscribe'](_0x39cbcb=>{const _0x105403=_0x1c514e;if(this[_0x105403(0x2b4)](),_0x39cbcb){const {skeleton:_0x3d42e3,cursors:_0x466225}=_0x39cbcb;this[_0x105403(0x101)](_0x3d42e3,_0x466225);}})),this[_0x1c514e(0x165)](),this[_0x1c514e(0x305)]();}[_0x3568b7(0x101)](_0x481c28,_0x1177aa){const _0x48cc97=_0x3568b7,{scene:_0x289b25,mainComponent:_0x4de9fd}=this[_0x48cc97(0x142)],_0x13c747=_0x1177aa[_0x48cc97(0x18a)](_0x17f13e=>new De(_0x17f13e,_0x289b25,_0x481c28,_0x4de9fd));this[_0x48cc97(0x221)]=_0x13c747,this[_0x48cc97(0x156)]=_0x1177aa;}['_refreshCollabCursors'](){const _0x2e4bfe=_0x3568b7;this[_0x2e4bfe(0x2b4)]();const {scene:_0x446d8a,mainComponent:_0x4e3e3f}=this[_0x2e4bfe(0x142)],_0x43e2ba=this['_docSkeletonManagerService'][_0x2e4bfe(0x1e2)](),_0x39a116=this[_0x2e4bfe(0x156)][_0x2e4bfe(0x18a)](_0x3b18ff=>new De(_0x3b18ff,_0x446d8a,_0x43e2ba,_0x4e3e3f));this[_0x2e4bfe(0x221)]=_0x39a116;}[_0x3568b7(0x2b4)](){const _0x267ae4=_0x3568b7;this[_0x267ae4(0x221)][_0x267ae4(0xe8)](_0x2e17d7=>_0x2e17d7[_0x267ae4(0x2ea)]()),this['_cursorShapes']=[];}[_0x3568b7(0x305)](){const _0x260f07=_0x3568b7,_0x31ecd9=[E[_0x260f07(0x272)]['id']];this[_0x260f07(0x345)](this[_0x260f07(0x129)][_0x260f07(0x30e)](_0x5d10c4=>{const _0x47cb1f=_0x260f07;_0x31ecd9['includes'](_0x5d10c4['id'])&&_0x5d10c4['params']['unitId']===this[_0x47cb1f(0x142)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x3568b7(0x165)](){const _0x178db5=_0x3568b7;this[_0x178db5(0x345)](a[_0x178db5(0x32a)](this['_context'][_0x178db5(0xfb)][_0x178db5(0x29d)])[_0x178db5(0x17f)]($[_0x178db5(0x1eb)](_0x2b5bb2=>_0x2b5bb2[_0x178db5(0x106)]===p[_0x178db5(0x27f)][_0x178db5(0x2a1)]),$[_0x178db5(0x320)](0x10))['subscribe'](()=>{const _0x421c29=_0x178db5;this[_0x421c29(0x2b2)]();}));}};fe=vt([W(0x1,a[_0x3568b7(0x104)](Y[_0x3568b7(0x1e5)])),W(0x2,a[_0x3568b7(0x104)](x)),W(0x3,a[_0x3568b7(0x1df)]),W(0x4,a[_0x3568b7(0x104)](a['ThemeService']))],fe);const gt=0x1,mt=1.5;class we extends p[_0x3568b7(0x281)]{constructor(_0x1dbbc7,_0x18bdf9){const _0x1cbd19=_0x3568b7;super(_0x1dbbc7,_0x18bdf9),h(this,_0x1cbd19(0x18f)),h(this,_0x1cbd19(0x198),!0x1),h(this,_0x1cbd19(0x2bb)),h(this,'_name',''),h(this,_0x1cbd19(0x327),_0x1cbd19(0x324)),h(this,_0x1cbd19(0x2ee)),(_0x18bdf9&&this[_0x1cbd19(0x135)](_0x18bdf9),this['onPointerEnter$'][_0x1cbd19(0x12d)](()=>this[_0x1cbd19(0x135)]({'hovered':!0x0})),this[_0x1cbd19(0x222)][_0x1cbd19(0x12d)](()=>this[_0x1cbd19(0x135)]({'hovered':!0x1})));}[_0x3568b7(0x135)](_0xf20b07){const _0x13531e=_0x3568b7;var _0x136be0,_0x3ce558,_0x56ab89,_0x2a3a70,_0x392597,_0x578b66;this['_color']=(_0x136be0=_0xf20b07['color'])!=null?_0x136be0:this[_0x13531e(0x18f)],this[_0x13531e(0x198)]=(_0x3ce558=_0xf20b07[_0x13531e(0x191)])!=null?_0x3ce558:this[_0x13531e(0x198)],this[_0x13531e(0x2bb)]=(_0x56ab89=_0xf20b07[_0x13531e(0x1bd)])!=null?_0x56ab89:this[_0x13531e(0x2bb)],this[_0x13531e(0x268)]=(_0x2a3a70=_0xf20b07['name'])!=null?_0x2a3a70:this[_0x13531e(0x268)],this[_0x13531e(0x327)]=(_0x392597=_0xf20b07[_0x13531e(0x12b)])!=null?_0x392597:this[_0x13531e(0x327)],this[_0x13531e(0x2ee)]=(_0x578b66=_0xf20b07['backgroundColor'])!=null?_0x578b66:this[_0x13531e(0x2ee)],this[_0x13531e(0x26d)]({'width':_0xf20b07['width'],'height':_0xf20b07[_0x13531e(0x245)]});}[_0x3568b7(0x278)](_0x437c2a){const _0x4b6ffc=_0x3568b7,{row:_0x4403d5,column:_0x45fedd}=_0x437c2a;if(_0x4403d5>=this[_0x4b6ffc(0x2bb)][_0x4b6ffc(0x260)]&&_0x4403d5<=this['_range']['endRow']&&_0x45fedd>=this[_0x4b6ffc(0x2bb)]['startColumn']&&_0x45fedd<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4b6ffc(0x135)]({'hovered':!0x1});}[_0x3568b7(0xed)](_0x40d3ee){return!0x1;}[_0x3568b7(0x202)](_0x56b4b6){const _0x43e377=_0x3568b7;p[_0x43e377(0x103)][_0x43e377(0x34d)](_0x56b4b6,{'width':this[_0x43e377(0x1d5)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x43e377(0x18f)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x43e377(0x198)]&&(_0x56b4b6[_0x43e377(0x2fe)](),_0x56b4b6[_0x43e377(0x294)](0x1,0x0,0x0,0x1,this['width'],this[_0x43e377(0x327)]==='bottom'?0x0:-0x14),ee[_0x43e377(0x34d)](_0x56b4b6,{'text':this[_0x43e377(0x268)],'color':this[_0x43e377(0x18f)]}),_0x56b4b6['restore']());}}var Ct=Object[_0x3568b7(0x14f)],pt=(_0x155b02,_0x4d6822,_0x247b38,_0x30c17b)=>{const _0x42ece0=_0x3568b7;for(var _0x94c4df=_0x30c17b>0x1?void 0x0:_0x30c17b?Ct(_0x4d6822,_0x247b38):_0x4d6822,_0xa0a0bb=_0x155b02[_0x42ece0(0xde)]-0x1,_0x1f7b6f;_0xa0a0bb>=0x0;_0xa0a0bb--)(_0x1f7b6f=_0x155b02[_0xa0a0bb])&&(_0x94c4df=_0x1f7b6f(_0x94c4df)||_0x94c4df);return _0x94c4df;},ae=(_0x4c970b,_0x1ef4a5)=>(_0x5c46a2,_0x11efc5)=>_0x1ef4a5(_0x5c46a2,_0x11efc5,_0x4c970b);function _0x489f(_0x21379c,_0x3b86f4){const _0x4645d7=_0x4645();return _0x489f=function(_0x489ff1,_0x5f4004){_0x489ff1=_0x489ff1-0xce;let _0x31beef=_0x4645d7[_0x489ff1];return _0x31beef;},_0x489f(_0x21379c,_0x3b86f4);}const Et=0x1389;let ve=class extends a[_0x3568b7(0x1ae)]{constructor(_0x43f09a,_0x37e4ec,_0x5dc516,_0x2e991a){const _0x4e0bb9=_0x3568b7;super(),h(this,_0x4e0bb9(0x156),new Set()),h(this,_0x4e0bb9(0x131),null),(this['_context']=_0x43f09a,this['_sheetSkeletonManagerService']=_0x37e4ec,this[_0x4e0bb9(0x238)]=_0x5dc516,this[_0x4e0bb9(0xf5)]=_0x2e991a,this[_0x4e0bb9(0x25f)]());}[_0x3568b7(0x25f)](){const _0x1c407c=_0x3568b7;this[_0x1c407c(0x29e)]['currentSkeleton$'][_0x1c407c(0x17f)]($['takeUntil'](this[_0x1c407c(0x248)]),$['switchMap'](_0x2406a0=>{const _0x2ebda8=_0x1c407c;if(_0x2406a0){const _0x3f1f29=_0x2406a0[_0x2ebda8(0x153)];return d[_0x2ebda8(0x28b)](this[_0x2ebda8(0x238)][_0x2ebda8(0x29b)](this[_0x2ebda8(0x142)][_0x2ebda8(0x138)]),this[_0x2ebda8(0xf5)][_0x2ebda8(0x1b4)])[_0x2ebda8(0x17f)]($[_0x2ebda8(0x18a)](([_0x4341b6,_0x17e1b4])=>{const _0x858832=new Map();return _0x4341b6['forEach']((_0x183776,_0x24aa54)=>{const _0x147f25=_0x489f;if(_0x183776[_0x147f25(0x2da)]===_0x3f1f29){const _0x158152={..._0x183776};_0x158152[_0x147f25(0xdb)]=this[_0x147f25(0xf5)][_0x147f25(0x126)](_0x183776[_0x147f25(0xdb)]),_0x858832['set'](_0x24aa54,_0x158152);}}),{'skeleton':_0x2406a0,'cursors':_0x858832};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1c407c(0x21b)](({skeleton:_0x5de104,cursors:_0x22b002})=>{const _0xfdb81f=_0x1c407c;this[_0xfdb81f(0x2b4)](),_0x5de104&&this['_updateCollabCursors'](_0x5de104,_0x22b002);}),this[_0x1c407c(0x29e)][_0x1c407c(0x19f)]['subscribe'](_0x13226b=>{const _0x18c41f=_0x1c407c;if(_0x13226b==null)return;const {skeleton:_0x4febc8}=_0x13226b,{scene:_0xa13b62}=this[_0x18c41f(0x142)];_0xa13b62[_0x18c41f(0x287)][_0x18c41f(0x12d)](a[_0x18c41f(0x32e)](_0x292083=>{const _0xc2efd0=_0x18c41f;var _0x5845ed,_0x463358;const {offsetX:_0x33c4f5,offsetY:_0x14851c}=_0x292083,{x:_0x19cbbb,y:_0x5e5c34}=_0xa13b62[_0xc2efd0(0x14c)](p[_0xc2efd0(0x13d)][_0xc2efd0(0x1a8)]([_0x33c4f5,_0x14851c])),{scaleX:_0x5b03d9,scaleY:_0x1e2527}=_0xa13b62[_0xc2efd0(0x295)](),_0x14e11d=_0xa13b62[_0xc2efd0(0x33f)](p['SHEET_VIEWPORT_KEY'][_0xc2efd0(0x122)]),_0x325fb6=_0xa13b62[_0xc2efd0(0x316)](p[_0xc2efd0(0x13d)][_0xc2efd0(0x1a8)]([_0x19cbbb,_0x5e5c34]),_0x14e11d),_0x116327=_0x4febc8['getCellPositionByOffset'](_0x33c4f5,_0x14851c,_0x5b03d9,_0x1e2527,_0x325fb6);((_0x5845ed=this[_0xc2efd0(0x131)])==null?void 0x0:_0x5845ed[_0xc2efd0(0x164)])===_0x116327[_0xc2efd0(0x164)]&&((_0x463358=this['_lastPointer'])==null?void 0x0:_0x463358['row'])===_0x116327[_0xc2efd0(0x1d4)]||this['_cursors'][_0xc2efd0(0xe8)](_0x592d9b=>{const _0x235387=_0xc2efd0;_0x592d9b[_0x235387(0x278)](_0x116327);});},0x64));});}[_0x3568b7(0x101)](_0x17e4df,_0x166a05){const _0x36bd1d=_0x3568b7;var _0x376dfd;const _0x3bf1f9=(_0x376dfd=this[_0x36bd1d(0x29e)]['getCurrent']())==null?void 0x0:_0x376dfd[_0x36bd1d(0x208)];if(!_0x3bf1f9)return;const _0x17bb42=this[_0x36bd1d(0x2e2)]();if(!_0x17bb42)return;this[_0x36bd1d(0x156)][_0x36bd1d(0xe8)](_0x1230d4=>{const _0x30036e=_0x36bd1d;_0x1230d4[_0x30036e(0x2a9)]();});const {scene:_0x8d39ec}=_0x17bb42,_0x5bfd34=bt(Array[_0x36bd1d(0x2a5)](_0x166a05[_0x36bd1d(0x13f)]()))[_0x36bd1d(0x18a)](_0x595742=>{const _0x390ee3=_0x36bd1d,{color:_0xb7ca64,range:_0x325a6b,name:_0x3d7e2d,selection:_0x10b671,sheetID:_0x1dc08f}=_0x595742,{startColumn:_0x5664e5,startRow:_0x5c4886,endColumn:_0x2ce493,endRow:_0x1fab9c}=_0x325a6b,_0x378020=X[_0x390ee3(0x1b5)](_0x5c4886,_0x5664e5,_0x8d39ec,_0x3bf1f9),_0x36609d=X[_0x390ee3(0x1b5)](_0x1fab9c,_0x2ce493,_0x8d39ec,_0x3bf1f9),{columnHeaderHeightAndMarginTop:_0x5a0f42}=_0x3bf1f9,{startX:_0x332573,startY:_0xae167a}=_0x378020,{endX:_0x3a09f9,endY:_0x585851}=_0x36609d,_0x2ccfd2=_0x3a09f9-_0x332573,_0x55cd3c=_0x585851-_0xae167a,_0x424297={'labelPosition':_0xae167a-_0x5a0f42>=K?'top':_0x390ee3(0x170),'sheetID':_0x1dc08f,'range':_0x325a6b,'color':_0xb7ca64,'name':_0x3d7e2d,'selection':_0x10b671,'left':_0x332573,'top':_0xae167a,'width':_0x2ccfd2,'height':_0x55cd3c,'evented':!0x1,'zIndex':Et};return new we(_0x3d7e2d,_0x424297);});_0x8d39ec[_0x36bd1d(0x346)](_0x5bfd34,gt),this[_0x36bd1d(0x156)]=new Set(_0x5bfd34);}['_removeCollabCursors'](){const _0x385047=_0x3568b7;var _0x3b89f2;(_0x3b89f2=this[_0x385047(0x156)])==null||_0x3b89f2[_0x385047(0xe8)](_0xa333be=>_0xa333be[_0x385047(0x2ea)]());}[_0x3568b7(0x2e2)](){const _0x2f1fce=_0x3568b7;return X[_0x2f1fce(0x2f9)](this[_0x2f1fce(0x142)][_0x2f1fce(0x329)],this[_0x2f1fce(0x142)]);}};ve=pt([ae(0x1,a[_0x3568b7(0x104)](X[_0x3568b7(0xef)])),ae(0x2,a[_0x3568b7(0x104)](x)),ae(0x3,a[_0x3568b7(0x104)](a['ThemeService']))],ve);function bt(_0x38d4c9){const _0x50b7c6=_0x3568b7,_0x20f59f=new Map();return _0x38d4c9[_0x50b7c6(0xe8)](_0x1a0405=>{const _0x1de489=_0x50b7c6;if(_0x20f59f[_0x1de489(0x2ce)](_0x1a0405['selection'])){const _0x21aa44=_0x20f59f[_0x1de489(0x261)](_0x1a0405[_0x1de489(0x10f)]);_0x21aa44[_0x1de489(0x31e)]+=',\x20'+_0x1a0405[_0x1de489(0x31e)];}else _0x20f59f[_0x1de489(0x213)](_0x1a0405['selection'],_0x1a0405);}),Array['from'](_0x20f59f[_0x50b7c6(0x13f)]());}var b=function(){const _0x30c67d=_0x3568b7;return b=Object[_0x30c67d(0x1e9)]||function(_0x4daedc){const _0x56cbad=_0x30c67d;for(var _0x4f4002,_0x339681=0x1,_0x5d0224=arguments['length'];_0x339681<_0x5d0224;_0x339681++){_0x4f4002=arguments[_0x339681];for(var _0xebd124 in _0x4f4002)Object[_0x56cbad(0x33c)][_0x56cbad(0x2a2)][_0x56cbad(0x20f)](_0x4f4002,_0xebd124)&&(_0x4daedc[_0xebd124]=_0x4f4002[_0xebd124]);}return _0x4daedc;},b[_0x30c67d(0x30a)](this,arguments);},Ot=function(_0x12d845,_0x5bc0dd){const _0x49d694=_0x3568b7;var _0x43687c={};for(var _0x19f0ae in _0x12d845)Object[_0x49d694(0x33c)][_0x49d694(0x2a2)][_0x49d694(0x20f)](_0x12d845,_0x19f0ae)&&_0x5bc0dd[_0x49d694(0x233)](_0x19f0ae)<0x0&&(_0x43687c[_0x19f0ae]=_0x12d845[_0x19f0ae]);if(_0x12d845!=null&&typeof Object['getOwnPropertySymbols']==_0x49d694(0x2ad)){for(var _0x313be3=0x0,_0x19f0ae=Object['getOwnPropertySymbols'](_0x12d845);_0x313be3<_0x19f0ae[_0x49d694(0xde)];_0x313be3++)_0x5bc0dd[_0x49d694(0x233)](_0x19f0ae[_0x313be3])<0x0&&Object[_0x49d694(0x33c)][_0x49d694(0x1f8)][_0x49d694(0x20f)](_0x12d845,_0x19f0ae[_0x313be3])&&(_0x43687c[_0x19f0ae[_0x313be3]]=_0x12d845[_0x19f0ae[_0x313be3]]);}return _0x43687c;},pe=M['forwardRef'](function(_0x205c1e,_0x161cab){const _0x2b3994=_0x3568b7;var _0x2a5398=_0x205c1e['icon'],_0x1642af=_0x205c1e['id'],_0x5d7067=_0x205c1e['className'],_0x1debb4=_0x205c1e[_0x2b3994(0x21e)],_0x20e4da=Ot(_0x205c1e,[_0x2b3994(0x23e),'id','className',_0x2b3994(0x21e)]),_0x3b3eb8=_0x2b3994(0x1d2)[_0x2b3994(0x313)](_0x1642af,'\x20')[_0x2b3994(0x313)](_0x5d7067||'')['trim'](),_0x50a6af=M[_0x2b3994(0x2eb)]('_'[_0x2b3994(0x313)](Dt()));return Ae(_0x2a5398,''[_0x2b3994(0x313)](_0x1642af),{'defIds':_0x2a5398['defIds'],'idSuffix':_0x50a6af['current']},b({'ref':_0x161cab,'className':_0x3b3eb8},_0x20e4da),_0x1debb4);});function Ae(_0x49f6b5,_0x4fd313,_0x2ad340,_0x273a11,_0x5e004c){const _0x1b820f=_0x3568b7;return M[_0x1b820f(0xd2)](_0x49f6b5[_0x1b820f(0x26f)],b(b({'key':_0x4fd313},Tt(_0x49f6b5,_0x2ad340,_0x5e004c)),_0x273a11),(Rt(_0x49f6b5,_0x2ad340)[_0x1b820f(0x1fb)]||[])[_0x1b820f(0x18a)](function(_0x126bf2,_0x56e410){const _0x3ce7bd=_0x1b820f;return Ae(_0x126bf2,''[_0x3ce7bd(0x313)](_0x4fd313,'-')[_0x3ce7bd(0x313)](_0x49f6b5[_0x3ce7bd(0x26f)],'-')['concat'](_0x56e410),_0x2ad340,void 0x0,_0x5e004c);}));}function Tt(_0x10eb8d,_0x2bbfd4,_0x3a148e){const _0x31f34e=_0x3568b7;var _0x47f6a5=b({},_0x10eb8d['attrs']);_0x3a148e!=null&&_0x3a148e[_0x31f34e(0x2b3)]&&_0x47f6a5['fill']===_0x31f34e(0x2b3)&&(_0x47f6a5[_0x31f34e(0x2c7)]=_0x3a148e[_0x31f34e(0x2b3)]),_0x10eb8d['tag']===_0x31f34e(0x1e6)&&_0x47f6a5['id']&&(_0x47f6a5['id']=_0x47f6a5['id']+_0x2bbfd4['idSuffix']),Object[_0x31f34e(0x265)](_0x47f6a5)[_0x31f34e(0xe8)](function(_0x3d5629){const _0x8a5e84=_0x31f34e;var _0x5332e5=_0x3d5629[0x0],_0x46bdb3=_0x3d5629[0x1];_0x5332e5===_0x8a5e84(0x1e6)&&typeof _0x46bdb3==_0x8a5e84(0xe0)&&(_0x47f6a5[_0x5332e5]=_0x46bdb3[_0x8a5e84(0x292)](/url\(#(.*)\)/,_0x8a5e84(0xf6)[_0x8a5e84(0x313)](_0x2bbfd4[_0x8a5e84(0xd4)],')')));});var _0xe3664a=_0x2bbfd4[_0x31f34e(0x2ae)];return!_0xe3664a||_0xe3664a[_0x31f34e(0xde)]===0x0||(_0x10eb8d[_0x31f34e(0x26f)]===_0x31f34e(0x1ef)&&_0x47f6a5[_0x31f34e(0x2d2)]&&(_0x47f6a5['xlink:href']=_0x47f6a5[_0x31f34e(0x2d2)]+_0x2bbfd4[_0x31f34e(0xd4)]),Object[_0x31f34e(0x265)](_0x47f6a5)['forEach'](function(_0x749457){const _0x4674cd=_0x31f34e;var _0x33887a=_0x749457[0x0],_0x54c559=_0x749457[0x1];typeof _0x54c559==_0x4674cd(0xe0)&&(_0x47f6a5[_0x33887a]=_0x54c559[_0x4674cd(0x292)](/url\(#(.*)\)/,_0x4674cd(0xf6)[_0x4674cd(0x313)](_0x2bbfd4[_0x4674cd(0xd4)],')')));})),_0x47f6a5;}function Rt(_0x42f7b3,_0x6cebf5){const _0x254a09=_0x3568b7;var _0x431983,_0x8a4fb7=_0x6cebf5[_0x254a09(0x2ae)];return!_0x8a4fb7||_0x8a4fb7[_0x254a09(0xde)]===0x0?_0x42f7b3:_0x42f7b3[_0x254a09(0x26f)]===_0x254a09(0x2db)&&(!((_0x431983=_0x42f7b3[_0x254a09(0x1fb)])===null||_0x431983===void 0x0)&&_0x431983[_0x254a09(0xde)])?b(b({},_0x42f7b3),{'children':_0x42f7b3[_0x254a09(0x1fb)][_0x254a09(0x18a)](function(_0x5a5225){const _0x1ff5c7=_0x254a09;return typeof _0x5a5225[_0x1ff5c7(0x27d)]['id']==_0x1ff5c7(0xe0)&&_0x8a4fb7&&_0x8a4fb7[_0x1ff5c7(0x310)](_0x5a5225[_0x1ff5c7(0x27d)]['id'])?b(b({},_0x5a5225),{'attrs':b(b({},_0x5a5225['attrs']),{'id':_0x5a5225['attrs']['id']+_0x6cebf5[_0x1ff5c7(0xd4)]})}):_0x5a5225;})}):_0x42f7b3;}function Dt(){const _0x56fb70=_0x3568b7;return Math[_0x56fb70(0x215)]()[_0x56fb70(0x276)](0x24)[_0x56fb70(0x22c)](0x2,0x8);}pe[_0x3568b7(0x134)]=_0x3568b7(0x24c);var Ut={'tag':_0x3568b7(0x328),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3568b7(0x120),'viewBox':_0x3568b7(0x16b),'width':_0x3568b7(0x15e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3568b7(0x251)},'children':[{'tag':'path','attrs':{'stroke':_0x3568b7(0x1b0),'d':_0x3568b7(0x2af),'strokeLinecap':'round','strokeLinejoin':_0x3568b7(0x1f1),'strokeWidth':1.2}}]},{'tag':_0x3568b7(0x2db),'attrs':{},'children':[{'tag':_0x3568b7(0x2fc),'attrs':{'id':_0x3568b7(0x239)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3568b7(0x239)]},ye=M[_0x3568b7(0x2ba)](function(_0x4a543a,_0x1874fb){const _0x4a64bb=_0x3568b7;return M['createElement'](pe,Object[_0x4a64bb(0x1e9)]({},_0x4a543a,{'id':_0x4a64bb(0x262),'ref':_0x1874fb,'icon':Ut}));});ye[_0x3568b7(0x134)]=_0x3568b7(0x284);var Nt={'tag':_0x3568b7(0x328),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3568b7(0x2c1),'width':_0x3568b7(0x15e),'height':_0x3568b7(0x15e)},'children':[{'tag':'g','attrs':{'clipPath':_0x3568b7(0xd9)},'children':[{'tag':'path','attrs':{'stroke':_0x3568b7(0x1b0),'d':_0x3568b7(0x2fd),'strokeLinecap':_0x3568b7(0x1f1),'strokeLinejoin':_0x3568b7(0x1f1),'strokeWidth':1.2}}]},{'tag':_0x3568b7(0x2db),'attrs':{},'children':[{'tag':_0x3568b7(0x2fc),'attrs':{'id':_0x3568b7(0x234)},'children':[{'tag':_0x3568b7(0xe2),'attrs':{'fill':_0x3568b7(0x286),'d':_0x3568b7(0x201),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3568b7(0x234)]},$e=M['forwardRef'](function(_0x24edbf,_0x541d66){const _0x19e19e=_0x3568b7;return M[_0x19e19e(0xd2)](pe,Object['assign']({},_0x24edbf,{'id':_0x19e19e(0x2f5),'ref':_0x541d66,'icon':Nt}));});$e[_0x3568b7(0x134)]=_0x3568b7(0x2f3);function Mt(_0x2e442f){const _0xb8fe34=_0x3568b7;switch(_0x2e442f){case u[_0xb8fe34(0x2d5)][_0xb8fe34(0x155)]:return _0xb8fe34(0x217);case u[_0xb8fe34(0x2d5)][_0xb8fe34(0x169)]:return _0xb8fe34(0x144);case u['CollaborationStatus'][_0xb8fe34(0xf0)]:return _0xb8fe34(0x1ca);case u[_0xb8fe34(0x2d5)][_0xb8fe34(0x2f4)]:return _0xb8fe34(0x2f1);case u[_0xb8fe34(0x2d5)][_0xb8fe34(0xcf)]:case u['CollaborationStatus'][_0xb8fe34(0x15f)]:return _0xb8fe34(0x2e7);case u[_0xb8fe34(0x2d5)][_0xb8fe34(0x2e9)]:case u[_0xb8fe34(0x2d5)][_0xb8fe34(0x17b)]:return _0xb8fe34(0x157);}}function xe(_0x5d4668){const _0x66fc3=_0x3568b7,{status$:_0xe5339e}=_0x5d4668,_0x6947a7=O['useObservable'](_0xe5339e,u[_0x66fc3(0x2d5)]['NOT_COLLAB']),_0x81f098=O[_0x66fc3(0x12f)](a['LocaleService']),_0x197f18=O[_0x66fc3(0x12f)](u[_0x66fc3(0x230)]),_0x253373=_0x6947a7!==u[_0x66fc3(0x2d5)]['OFFLINE'],_0x3ba3eb=_0x81f098['t'](Mt(_0x6947a7)),_0xea1121=_0x253373?P[_0x66fc3(0x1d6)]($e,{}):P['jsx'](ye,{}),_0x151fed=M[_0x66fc3(0x258)](()=>{const _0x5bdefb=_0x66fc3;_0x253373||_0x197f18[_0x5bdefb(0x31c)]();},[_0x253373,_0x197f18]);function _0x5d2a7e(){const _0x5ad867=_0x66fc3;return P[_0x5ad867(0x25a)](_0x5ad867(0x1ce),{'className':_0x5ad867(0x333),'onClick':_0x151fed,'children':[P[_0x5ad867(0x1d6)](_0x5ad867(0x1ce),{'className':D['clsx'](_0x5ad867(0x195),{'univer-text-green-500':_0x253373,'univer-text-red-500':!_0x253373}),'children':_0xea1121}),P['jsx'](_0x5ad867(0x1ce),{'className':_0x5ad867(0x146),'children':_0x3ba3eb})]});}return _0x253373?_0x5d2a7e():P[_0x66fc3(0x1d6)](D[_0x66fc3(0x290)],{'title':_0x81f098['t']('collab-client.tooltip.reconnect'),'children':_0x5d2a7e()});}var Lt=Object[_0x3568b7(0x14f)],Pt=(_0x5634fa,_0x2c573b,_0x16e38e,_0x31fe97)=>{for(var _0x53ab33=_0x31fe97>0x1?void 0x0:_0x31fe97?Lt(_0x2c573b,_0x16e38e):_0x2c573b,_0xbe507b=_0x5634fa['length']-0x1,_0x5f105b;_0xbe507b>=0x0;_0xbe507b--)(_0x5f105b=_0x5634fa[_0xbe507b])&&(_0x53ab33=_0x5f105b(_0x53ab33)||_0x53ab33);return _0x53ab33;},V=(_0x30be33,_0xde4a32)=>(_0x340d8e,_0x161778)=>_0xde4a32(_0x340d8e,_0x161778,_0x30be33);exports[_0x3568b7(0x207)]=class extends a[_0x3568b7(0x306)]{constructor(_0x2eada0,_0x57d0ec,_0x48f154,_0x1dd4bb){const _0x4cec3d=_0x3568b7;super(),h(this,_0x4cec3d(0x20d),new d['BehaviorSubject'](u[_0x4cec3d(0x2d5)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x2eada0,this[_0x4cec3d(0x216)]=_0x57d0ec,this[_0x4cec3d(0x1a0)]=_0x48f154,this[_0x4cec3d(0x257)]=_0x1dd4bb,this['_initStatusComponent'](),this[_0x4cec3d(0x15c)]());}[_0x3568b7(0x15c)](){const _0x4ea531=_0x3568b7;this['disposeWithMe'](this[_0x4ea531(0x11b)][_0x4ea531(0x23a)][_0x4ea531(0x17f)](d['switchMap'](()=>{const _0x28e608=_0x4ea531,_0x48bd21=this['_univerInstanceService']['getFocusedUnit']();return _0x48bd21?this[_0x28e608(0x1a0)]['getCollabEntity$'](_0x48bd21[_0x28e608(0x23c)]()):d['of'](null);}),d[_0x4ea531(0x10d)](_0x3815f9=>_0x3815f9?_0x3815f9[_0x4ea531(0x1f3)]:d['of'](u[_0x4ea531(0x2d5)][_0x4ea531(0x2f4)])))['subscribe'](_0x59b32a=>{const _0x28dbc6=_0x4ea531;this[_0x28dbc6(0x20d)][_0x28dbc6(0xe6)](_0x59b32a);}));}[_0x3568b7(0x1a2)](){const _0x1b2293=_0x3568b7;this[_0x1b2293(0x345)](this[_0x1b2293(0x257)][_0x1b2293(0x296)](O[_0x1b2293(0xd5)][_0x1b2293(0xeb)],()=>O[_0x1b2293(0x34a)](wt({'status$':this[_0x1b2293(0x20d)][_0x1b2293(0x107)]()}),this[_0x1b2293(0x216)])));}},exports[_0x3568b7(0x207)]=Pt([V(0x0,a[_0x3568b7(0x249)]),V(0x1,a[_0x3568b7(0x104)](a[_0x3568b7(0x178)])),V(0x2,a[_0x3568b7(0x104)](u[_0x3568b7(0x1ed)])),V(0x3,O[_0x3568b7(0x15a)])],exports[_0x3568b7(0x207)]);function wt(_0x257955){const {status$:_0x3efd5e}=_0x257955;return function(){const _0x2e1702=_0x489f;return P[_0x2e1702(0x1d6)](xe,{'status$':_0x3efd5e});};}var At=Object[_0x3568b7(0x14f)],yt=(_0x4ae809,_0x223c5d,_0x464db3,_0x56761f)=>{for(var _0x5f28c1=_0x56761f>0x1?void 0x0:_0x56761f?At(_0x223c5d,_0x464db3):_0x223c5d,_0x530f16=_0x4ae809['length']-0x1,_0x3ec64f;_0x530f16>=0x0;_0x530f16--)(_0x3ec64f=_0x4ae809[_0x530f16])&&(_0x5f28c1=_0x3ec64f(_0x5f28c1)||_0x5f28c1);return _0x5f28c1;},y=(_0x37fc27,_0x4bc73c)=>(_0x2e4917,_0x4283be)=>_0x4bc73c(_0x2e4917,_0x4283be,_0x37fc27);let q=class extends a[_0x3568b7(0x306)]{constructor(_0x49b37f,_0xf41b79,_0x5d38ed,_0x1939dc,_0x35a15b,_0x3ae907){const _0x262685=_0x3568b7;super(),this[_0x262685(0x147)]=_0x49b37f,this[_0x262685(0x1cc)]=_0xf41b79,this[_0x262685(0x32f)]=_0x5d38ed,this[_0x262685(0x102)]=_0x1939dc,this['_notificationService']=_0x35a15b,this[_0x262685(0x145)]=_0x3ae907,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x9530ba=_0x3568b7;this['disposeWithMe'](this['_beforeCloseService'][_0x9530ba(0x2c3)](()=>{const _0x3b44b0=_0x9530ba;if(this[_0x3b44b0(0x1cc)][_0x3b44b0(0x190)][_0x3b44b0(0x100)])return this[_0x3b44b0(0x145)]['t'](_0x3b44b0(0x1ea));}));}[_0x3568b7(0x1f6)](){const _0x112d92=_0x3568b7;this[_0x112d92(0x345)](this[_0x112d92(0x32f)]['event$'][_0x112d92(0x21b)](_0x251ba5=>{const _0x521edf=_0x112d92;_0x251ba5['id']===u['CollaborationUIEventId'][_0x521edf(0x2b5)]&&this['_messageService'][_0x521edf(0x109)]({'type':D[_0x521edf(0x177)][_0x521edf(0x1af)],'content':this[_0x521edf(0x145)]['t'](_0x521edf(0x321))}),_0x251ba5['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x521edf(0x102)]['show']({'type':D[_0x521edf(0x177)][_0x521edf(0x1af)],'content':this[_0x521edf(0x145)]['t'](_0x521edf(0x1c1))}),_0x251ba5['id']===u[_0x521edf(0x182)][_0x521edf(0x186)]&&this['_notificationService']['show']({'title':this['_localeService']['t']('permission.title'),'content':this[_0x521edf(0x145)]['t']('permission.content'),'type':'error','duration':0x0}),_0x251ba5['id']===u[_0x521edf(0x182)][_0x521edf(0x169)]&&this[_0x521edf(0x102)][_0x521edf(0x109)]({'type':D[_0x521edf(0x177)]['Error'],'content':this[_0x521edf(0x145)]['t'](_0x521edf(0x1c1))+'('+_0x251ba5['data']+')'}),_0x251ba5['id']===u[_0x521edf(0x182)][_0x521edf(0xe1)]&&this['_messageService'][_0x521edf(0x109)]({'type':D['MessageType']['Warning'],'content':this[_0x521edf(0x145)]['t'](_0x251ba5['data']||'')}),_0x251ba5['id']===u[_0x521edf(0x182)]['SOCKET_FAILED_RETRY']&&this[_0x521edf(0x102)][_0x521edf(0x109)]({'type':D[_0x521edf(0x177)][_0x521edf(0x1af)],'content':this['_localeService']['t'](_0x521edf(0x14b))}),_0x251ba5['id']===u[_0x521edf(0x182)]['SOCKET_FAILED']&&this[_0x521edf(0x102)][_0x521edf(0x109)]({'type':D[_0x521edf(0x177)][_0x521edf(0x12a)],'content':this[_0x521edf(0x145)]['t'](_0x521edf(0x225))}),_0x251ba5['id']===u[_0x521edf(0x182)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x521edf(0x102)][_0x521edf(0x109)]({'type':D['MessageType'][_0x521edf(0x12a)],'content':this[_0x521edf(0x145)]['t'](_0x521edf(0x279))});}));}};q=yt([y(0x0,O[_0x3568b7(0x317)]),y(0x1,u[_0x3568b7(0x14e)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x3568b7(0x1dd)]),y(0x4,O[_0x3568b7(0x235)]),y(0x5,a[_0x3568b7(0x104)](a[_0x3568b7(0xee)]))],q);const $t=_0x3568b7(0x2cb),Ue={},Ee=a[_0x3568b7(0x1cb)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],Bt=(_0x5ae145,_0x38a01f,_0xd4f6a7,_0xe914ee)=>{const _0x4e8039=_0x3568b7;for(var _0x15909f=_0xe914ee>0x1?void 0x0:_0xe914ee?xt(_0x38a01f,_0xd4f6a7):_0x38a01f,_0x4a8800=_0x5ae145[_0x4e8039(0xde)]-0x1,_0x465f9c;_0x4a8800>=0x0;_0x4a8800--)(_0x465f9c=_0x5ae145[_0x4a8800])&&(_0x15909f=_0x465f9c(_0x15909f)||_0x15909f);return _0x15909f;},F=(_0x40b5fd,_0x5eced0)=>(_0x10f3d2,_0x5a384c)=>_0x5eced0(_0x10f3d2,_0x5a384c,_0x40b5fd);exports['CollaborationDataLoaderController']=class extends a[_0x3568b7(0x1ae)]{constructor(_0xa694be,_0x194c83,_0x4b8ec4,_0x2e9423,_0x276c9c){const _0x2398a5=_0x3568b7;super(),this[_0x2398a5(0x1db)]=_0xa694be,this[_0x2398a5(0x2a3)]=_0x194c83,this[_0x2398a5(0x129)]=_0x4b8ec4,this['_dataLoaderService']=_0x2e9423,_0x276c9c?_0x276c9c==null||_0x276c9c[_0x2398a5(0x2e3)]()['then'](()=>this['_init']()):(this['_logService'][_0x2398a5(0x332)]('[CollaborationDataLoaderController]',_0x2398a5(0x121)),this[_0x2398a5(0x25f)]());}async[_0x3568b7(0x25f)](){const _0x480bd3=_0x3568b7,_0x718161=this[_0x480bd3(0x1db)][_0x480bd3(0x152)](_0x480bd3(0x329)),_0x40c6ad=this['_urlService'][_0x480bd3(0x152)]('type'),_0x4a34c6=this[_0x480bd3(0x1db)][_0x480bd3(0x152)](_0x480bd3(0x297));if(!_0x718161||!_0x40c6ad){this[_0x480bd3(0x2a3)]['debug'](_0x480bd3(0x220),_0x480bd3(0xff));return;}const _0x5978cc=await this['_dataLoaderService'][_0x480bd3(0xd8)](_0x718161,Number(_0x40c6ad),_0x4a34c6);_0x5978cc&&_0x5978cc instanceof a[_0x480bd3(0x143)]&&this['_setupSubUnitSync'](_0x5978cc);}async[_0x3568b7(0x314)](_0x52a6ab){const _0x3c1237=_0x3568b7;await this[_0x3c1237(0x26a)](_0x52a6ab),_0x52a6ab[_0x3c1237(0x31f)][_0x3c1237(0x17f)](d[_0x3c1237(0x19e)](this['dispose$']))[_0x3c1237(0x21b)](_0x1f0b92=>{_0x1f0b92&&this['_updateURLWithCurrentState'](_0x1f0b92);}),this['_urlService']['urlChange$'][_0x3c1237(0x17f)](d[_0x3c1237(0x19e)](this['dispose$']))[_0x3c1237(0x21b)](()=>this[_0x3c1237(0x26a)](_0x52a6ab));}[_0x3568b7(0x160)](_0xcb1149,_0x228db0=!0x1){const _0x38c13e=_0x3568b7,_0x4dade1=this['_urlService'][_0x38c13e(0x152)](_0x38c13e(0x297));_0xcb1149[_0x38c13e(0xda)]()!==_0x4dade1&&this['_urlService'][_0x38c13e(0x1f7)](_0x38c13e(0x297),_0xcb1149[_0x38c13e(0xda)](),_0x228db0);}async[_0x3568b7(0x26a)](_0x4b32c4){const _0x2e6343=_0x3568b7;var _0x34d5f1;const _0x4a033f=this[_0x2e6343(0x1db)][_0x2e6343(0x152)]('subunit');if(!_0x4a033f||!_0x4b32c4[_0x2e6343(0x119)](_0x4a033f)){const _0x12e1cf=_0x4b32c4[_0x2e6343(0x256)]()[0x0],_0x1a857a=_0x4b32c4[_0x2e6343(0x119)](_0x12e1cf);if(!_0x1a857a)return;this[_0x2e6343(0x160)](_0x1a857a,!0x0),await this[_0x2e6343(0x129)][_0x2e6343(0x1b6)](g[_0x2e6343(0x2e5)]['id'],{'unitId':_0x4b32c4[_0x2e6343(0x23c)](),'subUnitId':_0x12e1cf});return;}((_0x34d5f1=_0x4b32c4['getActiveSheet']())==null?void 0x0:_0x34d5f1[_0x2e6343(0xda)]())!==_0x4a033f&&await this[_0x2e6343(0x129)][_0x2e6343(0x1b6)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4b32c4[_0x2e6343(0x23c)](),'subUnitId':_0x4a033f});}},exports[_0x3568b7(0x2cc)]=Bt([F(0x0,Ee),F(0x1,a[_0x3568b7(0xd0)]),F(0x2,a[_0x3568b7(0x1df)]),F(0x3,a[_0x3568b7(0x104)](u['DataLoaderService'])),F(0x4,a[_0x3568b7(0x226)](Ke[_0x3568b7(0x340)]))],exports[_0x3568b7(0x2cc)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x2f9d71,_0x50105c,_0x2b678e,_0x121805)=>{for(var _0x545606=_0x121805>0x1?void 0x0:_0x121805?jt(_0x50105c,_0x2b678e):_0x50105c,_0x413ac6=_0x2f9d71['length']-0x1,_0x545349;_0x413ac6>=0x0;_0x413ac6--)(_0x545349=_0x2f9d71[_0x413ac6])&&(_0x545606=_0x545349(_0x545606)||_0x545606);return _0x545606;},ce=(_0x368b41,_0x39ca24)=>(_0x3358df,_0x89c5d8)=>_0x39ca24(_0x3358df,_0x89c5d8,_0x368b41);let z=class{constructor(_0x3dafb6,_0x1d644a,_0x21ab3c){const _0x1950dc=_0x3568b7;this['_injector']=_0x3dafb6,this[_0x1950dc(0x246)]=_0x1d644a,this[_0x1950dc(0x214)]=_0x21ab3c;}[_0x3568b7(0x10b)](_0x216984){const _0x111983=_0x3568b7;this[_0x111983(0x2ff)](_0x216984),this[_0x111983(0x33a)](_0x216984);}[_0x3568b7(0x1f4)](_0x22948b){const _0x15e10e=_0x3568b7,{unitID:_0x36fdac}=_0x22948b,_0x497c6e=this[_0x15e10e(0x214)][_0x15e10e(0x18c)](_0x36fdac)[_0x15e10e(0x124)](E[_0x15e10e(0x158)]),{redoCache:_0x5e2f81}=_0x497c6e[_0x15e10e(0x139)]();if(_0x5e2f81[_0x15e10e(0xde)]===0x0)return _0x22948b;let _0x389cd5=a[_0x15e10e(0x1d9)][_0x15e10e(0x12c)](_0x22948b[_0x15e10e(0x29f)][0x0]);for(let _0x3bf82d=0x0;_0x3bf82d<_0x5e2f81[_0x15e10e(0xde)];_0x3bf82d++){const _0x33c7dc={'id':_0x15e10e(0x1e1),'params':{..._0x5e2f81[_0x3bf82d]}},_0x5977ca=this['_transformService'][_0x15e10e(0x205)](_0x389cd5,_0x33c7dc,!0x1);if(m[_0x15e10e(0x167)](_0x5977ca))throw _0x5977ca[_0x15e10e(0xec)];_0x389cd5=_0x5977ca['m1Prime'];}return{...a[_0x15e10e(0x1d9)][_0x15e10e(0x12c)](_0x22948b),'mutations':[_0x389cd5]};}[_0x3568b7(0x2ff)](_0x2c3463){const _0x42b580=_0x3568b7,{unitID:_0x2c61fb}=_0x2c3463,_0x44c62a=this[_0x42b580(0x214)][_0x42b580(0x18c)](_0x2c61fb)[_0x42b580(0x124)](E[_0x42b580(0x158)]),{undoCache:_0x4b1c11,redoCache:_0x4ad987}=_0x44c62a[_0x42b580(0x139)]();if(_0x4b1c11['length']===0x0||_0x4ad987[_0x42b580(0xde)]===0x0)return;const _0x5bb9ee=[],_0x3ca040=[];let _0x4df59a=a[_0x42b580(0x1d9)]['deepClone'](_0x2c3463[_0x42b580(0x29f)][0x0]),_0x1c2dd5=a[_0x42b580(0x1d9)][_0x42b580(0x12c)](_0x2c3463[_0x42b580(0x29f)][0x0]);for(let _0x2c847b=_0x4b1c11[_0x42b580(0xde)]-0x1;_0x2c847b>=0x0;_0x2c847b--){const _0x39c62f={'id':'doc.mutation.rich-text-editing','params':{..._0x4b1c11[_0x2c847b]}},_0x2efe45={'id':'doc.mutation.rich-text-editing','params':{..._0x4ad987[_0x2c847b]}},_0xd24744=this[_0x42b580(0x246)][_0x42b580(0x205)](_0x4df59a,_0x39c62f,!0x1),_0x1568e1=this[_0x42b580(0x246)][_0x42b580(0x205)](_0x1c2dd5,_0x2efe45,!0x1);if(m[_0x42b580(0x167)](_0xd24744))throw _0xd24744['error'];if(m[_0x42b580(0x167)](_0x1568e1))throw _0x1568e1[_0x42b580(0xec)];_0x5bb9ee[_0x42b580(0x1ac)](_0xd24744[_0x42b580(0xce)][_0x42b580(0x1d1)]),_0x3ca040['unshift'](_0x1568e1['m2Prime'][_0x42b580(0x1d1)]),_0x4df59a=_0xd24744['m1Prime'],_0x1c2dd5=_0x1568e1[_0x42b580(0x11e)];}_0x44c62a[_0x42b580(0x301)]({'undoCache':_0x5bb9ee,'redoCache':_0x3ca040});}[_0x3568b7(0x33a)](_0x452e4d){const _0x2eff4a=_0x3568b7,{unitID:_0xd87096}=_0x452e4d,_0x3304fa=this[_0x2eff4a(0x214)][_0x2eff4a(0x18c)](_0xd87096)[_0x2eff4a(0x124)](E[_0x2eff4a(0x158)]),_0x53d3ab=_0x3304fa[_0x2eff4a(0x175)]();if(_0x53d3ab==null)return;const _0x47b654=[{'id':_0x2eff4a(0x1e1),'params':{'unitId':_0x452e4d[_0x2eff4a(0x339)],'actions':null,'textRanges':[_0x53d3ab]}}],_0x813989=this[_0x2eff4a(0x246)]['transformMutationsWithChangeset'](_0x452e4d,_0x47b654);if(!m[_0x2eff4a(0x15d)](_0x813989))throw _0x813989[_0x2eff4a(0xec)];const _0x431a5b=_0x813989['m2Prime'][0x0][_0x2eff4a(0x1d1)]['textRanges'];Array[_0x2eff4a(0x10a)](_0x431a5b)&&_0x431a5b['length']&&_0x3304fa[_0x2eff4a(0x2dc)](_0x431a5b[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x3568b7(0x178)])),ce(0x1,m[_0x3568b7(0x2dd)]),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object[_0x3568b7(0x14f)],Ht=(_0x375ce8,_0x4e9e0b,_0xa11036,_0x4bd8b0)=>{const _0x1f5a3d=_0x3568b7;for(var _0x5a4b14=_0x4bd8b0>0x1?void 0x0:_0x4bd8b0?Ft(_0x4e9e0b,_0xa11036):_0x4e9e0b,_0x52c2eb=_0x375ce8[_0x1f5a3d(0xde)]-0x1,_0xdbf3ac;_0x52c2eb>=0x0;_0x52c2eb--)(_0xdbf3ac=_0x375ce8[_0x52c2eb])&&(_0x5a4b14=_0xdbf3ac(_0x5a4b14)||_0x5a4b14);return _0x5a4b14;},le=(_0x42217e,_0x2b80cc)=>(_0x460fe5,_0xacec48)=>_0x2b80cc(_0x460fe5,_0xacec48,_0x42217e);let J=class{constructor(_0x1a2317,_0x1c3a6a,_0x55dafd){const _0x26cbc6=_0x3568b7;this[_0x26cbc6(0x216)]=_0x1a2317,this[_0x26cbc6(0x246)]=_0x1c3a6a,this[_0x26cbc6(0x1a3)]=_0x55dafd;}[_0x3568b7(0x16c)](_0x2cac4f){const _0xe59882=_0x3568b7;this[_0xe59882(0x2f8)](_0x2cac4f);}['transformRemoteChangeset'](_0x12d1de){const _0x24d7d0=_0x3568b7,{unitID:_0x5de711}=_0x12d1de,{collaboration:_0xd50a6e}=this['_docStateChangeManagerService']['getStateCache'](_0x5de711);if(_0xd50a6e[_0x24d7d0(0xde)]===0x0)return _0x12d1de;let _0x9f14c0=a[_0x24d7d0(0x1d9)]['deepClone'](_0x12d1de[_0x24d7d0(0x29f)][0x0]);for(let _0x1b6ae8=0x0;_0x1b6ae8<_0xd50a6e[_0x24d7d0(0xde)];_0x1b6ae8++){const _0x3ebf02={'id':_0x24d7d0(0x1e1),'params':{'unitId':_0xd50a6e[_0x1b6ae8][_0x24d7d0(0x138)],..._0xd50a6e[_0x1b6ae8][_0x24d7d0(0x1f9)]}},_0x4c1595=this[_0x24d7d0(0x246)][_0x24d7d0(0x205)](_0x9f14c0,_0x3ebf02,!0x1);if(m['isTransformMutationFailure'](_0x4c1595))throw _0x4c1595['error'];_0x9f14c0=_0x4c1595[_0x24d7d0(0x11e)];}return{...a[_0x24d7d0(0x1d9)][_0x24d7d0(0x12c)](_0x12d1de),'mutations':[_0x9f14c0]};}['_transformHistoryAndStateStack'](_0x164259){const _0x589dcd=_0x3568b7,{unitID:_0x3683c6}=_0x164259,{history:_0x50e622,collaboration:_0x41af4f}=this[_0x589dcd(0x1a3)][_0x589dcd(0x21a)](_0x3683c6);if(_0x50e622[_0x589dcd(0xde)]===0x0&&_0x41af4f[_0x589dcd(0xde)]===0x0)return;const _0x4ca106=[],_0x1e47ba=[];let _0x55a547=a[_0x589dcd(0x1d9)][_0x589dcd(0x12c)](_0x164259[_0x589dcd(0x29f)][0x0]),_0xb29f84=a[_0x589dcd(0x1d9)]['deepClone'](_0x164259[_0x589dcd(0x29f)][0x0]);for(let _0x14b93c=_0x50e622[_0x589dcd(0xde)]-0x1;_0x14b93c>=0x0;_0x14b93c--){const _0x632cd5={'id':_0x589dcd(0x1e1),'params':{'unitId':_0x50e622[_0x14b93c][_0x589dcd(0x138)],..._0x50e622[_0x14b93c][_0x589dcd(0x270)]}},_0x49f919={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50e622[_0x14b93c][_0x589dcd(0x138)],..._0x50e622[_0x14b93c][_0x589dcd(0x1f9)]}},_0x485efc=this[_0x589dcd(0x246)][_0x589dcd(0x205)](_0x55a547,_0x632cd5,!0x1),_0x21fd88=this[_0x589dcd(0x246)][_0x589dcd(0x205)](_0xb29f84,_0x49f919,!0x1);if(m[_0x589dcd(0x167)](_0x485efc))throw _0x485efc[_0x589dcd(0xec)];if(m['isTransformMutationFailure'](_0x21fd88))throw _0x21fd88['error'];_0x4ca106[_0x589dcd(0x1ac)]({..._0x50e622[_0x14b93c],'undoState':_0x485efc[_0x589dcd(0xce)][_0x589dcd(0x1d1)],'redoState':_0x21fd88[_0x589dcd(0xce)][_0x589dcd(0x1d1)]}),_0x55a547=_0x485efc['m1Prime'],_0xb29f84=_0x21fd88[_0x589dcd(0x11e)];}_0x55a547=a[_0x589dcd(0x1d9)][_0x589dcd(0x12c)](_0x164259[_0x589dcd(0x29f)][0x0]),_0xb29f84=a[_0x589dcd(0x1d9)][_0x589dcd(0x12c)](_0x164259[_0x589dcd(0x29f)][0x0]);for(let _0x518ef2=_0x41af4f[_0x589dcd(0xde)]-0x1;_0x518ef2>=0x0;_0x518ef2--){const _0x19d3e3={'id':_0x589dcd(0x1e1),'params':{'unitId':_0x41af4f[_0x518ef2][_0x589dcd(0x138)],..._0x41af4f[_0x518ef2]['undoState']}},_0x18a944={'id':_0x589dcd(0x1e1),'params':{'unitId':_0x41af4f[_0x518ef2][_0x589dcd(0x138)],..._0x41af4f[_0x518ef2][_0x589dcd(0x1f9)]}},_0x51dfbe=this['_transformService'][_0x589dcd(0x205)](_0x55a547,_0x19d3e3,!0x1),_0x311df9=this[_0x589dcd(0x246)][_0x589dcd(0x205)](_0xb29f84,_0x18a944,!0x1);if(m[_0x589dcd(0x167)](_0x51dfbe))throw _0x51dfbe[_0x589dcd(0xec)];if(m['isTransformMutationFailure'](_0x311df9))throw _0x311df9[_0x589dcd(0xec)];_0x1e47ba[_0x589dcd(0x1ac)]({..._0x41af4f[_0x518ef2],'undoState':_0x51dfbe['m2Prime'][_0x589dcd(0x1d1)],'redoState':_0x311df9[_0x589dcd(0xce)][_0x589dcd(0x1d1)]}),_0x55a547=_0x51dfbe[_0x589dcd(0x11e)],_0xb29f84=_0x311df9[_0x589dcd(0x11e)];}this[_0x589dcd(0x1a3)][_0x589dcd(0x28c)](_0x3683c6,{'history':_0x4ca106,'collaboration':_0x1e47ba});}};J=Ht([le(0x0,a['Inject'](a[_0x3568b7(0x178)])),le(0x1,m[_0x3568b7(0x2dd)]),le(0x2,a[_0x3568b7(0x104)](E['DocStateChangeManagerService']))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x32658c,_0x5626b4,_0x56ea49,_0x3aeb0f)=>{const _0x3cff1e=_0x3568b7;for(var _0x1afd28=_0x3aeb0f>0x1?void 0x0:_0x3aeb0f?Yt(_0x5626b4,_0x56ea49):_0x5626b4,_0x544db7=_0x32658c[_0x3cff1e(0xde)]-0x1,_0x53c487;_0x544db7>=0x0;_0x544db7--)(_0x53c487=_0x32658c[_0x544db7])&&(_0x1afd28=_0x53c487(_0x1afd28)||_0x1afd28);return _0x1afd28;},Ne=(_0x66eb6a,_0x2ac3bb)=>(_0x28355f,_0x407678)=>_0x2ac3bb(_0x28355f,_0x407678,_0x66eb6a);let Z=class{constructor(_0x2e5f89,_0x42c042){const _0x50b2a2=_0x3568b7;this[_0x50b2a2(0x216)]=_0x2e5f89,this['_transformService']=_0x42c042;}[_0x3568b7(0x173)](_0x5f1b89){const _0x50a110=_0x3568b7;var _0x27e2a3;const _0x1b19a8=this[_0x50a110(0x216)]['get'](Y['DocSelectionManagerService']),_0x449972=(_0x27e2a3=_0x1b19a8['getDocRanges']())!=null?_0x27e2a3:[];if(_0x449972['length']===0x0)return;const _0x2f07b9=_0x5f1b89[_0x50a110(0x339)],_0x179ae3=[{'id':_0x50a110(0x1e1),'params':{'unitId':_0x2f07b9,'actions':null,'textRanges':_0x449972}}],_0x124c6d=this[_0x50a110(0x246)][_0x50a110(0x187)](_0x5f1b89,_0x179ae3);if(!m[_0x50a110(0x15d)](_0x124c6d))throw _0x124c6d['error'];const _0x4a0035=_0x124c6d[_0x50a110(0xce)][0x0][_0x50a110(0x1d1)][_0x50a110(0x1cd)];Array[_0x50a110(0x10a)](_0x4a0035)&&_0x4a0035[_0x50a110(0xde)]&&_0x1b19a8['replaceDocRanges'](_0x4a0035,{'unitId':_0x2f07b9,'subUnitId':_0x2f07b9},!0x1);}};Z=Wt([Ne(0x0,a[_0x3568b7(0x104)](a[_0x3568b7(0x178)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x146244,_0x4ba733,_0x53a4bd,_0x2ceeff)=>{for(var _0xc4e46=_0x2ceeff>0x1?void 0x0:_0x2ceeff?Vt(_0x4ba733,_0x53a4bd):_0x4ba733,_0x549b11=_0x146244['length']-0x1,_0x5b3189;_0x549b11>=0x0;_0x549b11--)(_0x5b3189=_0x146244[_0x549b11])&&(_0xc4e46=_0x5b3189(_0xc4e46)||_0xc4e46);return _0xc4e46;},N=(_0x1264ab,_0x48dea0)=>(_0x40b56a,_0x4571ae)=>_0x48dea0(_0x40b56a,_0x4571ae,_0x1264ab);let Q=class extends a[_0x3568b7(0x306)]{constructor(_0xa55207,_0x4a9fa3,_0x1b137b,_0x4bb0d9,_0x1ef9ae,_0x4c7749,_0x5d697b,_0x188f4f){const _0x203cea=_0x3568b7;super(),h(this,_0x203cea(0x20d),new d[(_0x203cea(0x150))](u[_0x203cea(0x2d5)][_0x203cea(0x2f4)])),(this['_docStateChangeManagerService']=_0xa55207,this[_0x203cea(0x1a0)]=_0x4a9fa3,this[_0x203cea(0x1bf)]=_0x1b137b,this[_0x203cea(0x318)]=_0x4bb0d9,this[_0x203cea(0x1ab)]=_0x1ef9ae,this[_0x203cea(0x307)]=_0x4c7749,this[_0x203cea(0x102)]=_0x5d697b,this[_0x203cea(0x145)]=_0x188f4f,this[_0x203cea(0x2bd)]());}[_0x3568b7(0x2bd)](){const _0x464b38=_0x3568b7;this[_0x464b38(0x345)](this[_0x464b38(0x1a0)][_0x464b38(0x17e)][_0x464b38(0x21b)](_0x35bb5b=>{const _0x3cf05c=_0x464b38,_0x1dca77=this[_0x3cf05c(0x1a3)][_0x3cf05c(0x335)][_0x3cf05c(0x21b)](_0x5bd49b=>{const _0x5c2de2=_0x3cf05c;if(_0x5bd49b==null)return;const {unitId:_0x242d12,redoState:_0x21a530,commandId:_0x3e416d}=_0x5bd49b;if(_0x242d12!==_0x35bb5b[_0x5c2de2(0x339)])return;const _0x4b777d={'id':_0x3e416d,'type':a[_0x5c2de2(0x212)][_0x5c2de2(0xf2)],'params':{'unitId':_0x242d12,'actions':_0x21a530[_0x5c2de2(0x206)],'textRanges':null}};_0x35bb5b[_0x5c2de2(0x2d8)](_0x4b777d);});if(_0x35bb5b[_0x3cf05c(0x345)](_0x1dca77),_0x35bb5b instanceof u[_0x3cf05c(0x2bc)]){const _0x1eaf81={'onTransformIME':_0x541a48=>this['_docTransformIMECacheService'][_0x3cf05c(0x10b)](_0x541a48),'onTransformState':_0x26ee3b=>this['_docTransformStateCacheService'][_0x3cf05c(0x16c)](_0x26ee3b),'onTransformSelections':_0x446010=>this[_0x3cf05c(0x1ab)][_0x3cf05c(0x173)](_0x446010),'onSyncEditingCollabCursor':_0x23e066=>this[_0x3cf05c(0x307)]['syncEditingCollabCursor'](_0x23e066),'onTransformRemoteChangesetByIMECache':_0x4f1af0=>this[_0x3cf05c(0x1bf)]['transformRemoteChangeset'](_0x4f1af0),'onTransformRemoteChangesetByStateCache':_0x4f5c03=>this[_0x3cf05c(0x318)][_0x3cf05c(0x1f4)](_0x4f5c03)};_0x35bb5b['addHandlerCallback'](_0x1eaf81);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x3568b7(0x1d0)])),N(0x1,a[_0x3568b7(0x104)](u[_0x3568b7(0x1ed)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x3568b7(0x104)](J)),N(0x4,a[_0x3568b7(0x104)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O[_0x3568b7(0x1dd)]),N(0x7,a[_0x3568b7(0x104)](a['LocaleService']))],Q);var Gt=Object[_0x3568b7(0x14f)],Kt=(_0x38ac0d,_0x5bdc7d,_0x1a5639,_0x4d78bd)=>{const _0x217a7e=_0x3568b7;for(var _0x310414=_0x4d78bd>0x1?void 0x0:_0x4d78bd?Gt(_0x5bdc7d,_0x1a5639):_0x5bdc7d,_0xa5a256=_0x38ac0d[_0x217a7e(0xde)]-0x1,_0x21f141;_0xa5a256>=0x0;_0xa5a256--)(_0x21f141=_0x38ac0d[_0xa5a256])&&(_0x310414=_0x21f141(_0x310414)||_0x310414);return _0x310414;},_e=(_0x24b4c7,_0x1228bd)=>(_0x5d53fc,_0x42b568)=>_0x1228bd(_0x5d53fc,_0x42b568,_0x24b4c7);let ge=class extends a[_0x3568b7(0x306)]{constructor(_0x8b98dc,_0x33b74d,_0x5c7dea){const _0x1d0a44=_0x3568b7;super(),h(this,_0x1d0a44(0x19b),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x1d0a44(0x312),!0x1),(this[_0x1d0a44(0x1a6)]=_0x8b98dc,this['_localStorageService']=_0x33b74d,this['_revisionService']=_0x5c7dea);}['disableLocalCache'](){const _0x28a8c0=_0x3568b7;this[_0x28a8c0(0x312)]=!0x0;}[_0x3568b7(0x2e1)](){const _0x2f7423=_0x3568b7;this[_0x2f7423(0x312)]=!0x1;}get[_0x3568b7(0x190)](){const _0x5a1fcd=_0x3568b7;return this[_0x5a1fcd(0x21f)];}[_0x3568b7(0x2ea)](){const _0x3ccc96=_0x3568b7;this['exhaustSavingTask']()[_0x3ccc96(0xd1)](()=>super['dispose']());}async[_0x3568b7(0x12e)](_0x59ed0b){const _0x527ca7=_0x3568b7;return this[_0x527ca7(0x312)]?null:this[_0x527ca7(0x137)]['getItem'](u[_0x527ca7(0x247)](_0x59ed0b));}async[_0x3568b7(0xdf)](_0x327a25,_0x2692ee){const _0x59f889=_0x3568b7;return!!this[_0x59f889(0x137)]['setItem'](_0x327a25,_0x2692ee);}['updateOfflineData'](_0x40de11,_0x216a8d,_0xa27e05,_0xbfd312){const _0x4ca01e=_0x3568b7,_0x30b5d2=this[_0x4ca01e(0x224)]['getCurrentRevOfUnit'](_0x40de11);this[_0x4ca01e(0x19b)][_0x4ca01e(0x213)](_0x40de11,{'unitID':_0x40de11,'type':_0x216a8d,'awaitingChangeset':_0xa27e05,'mutations':_0xbfd312,'rev':_0x30b5d2}),this['_saveTaskMap'][_0x4ca01e(0x2ce)](_0x40de11)||this['_scheduleSaving'](_0x40de11);}[_0x3568b7(0x319)](_0x1687ce){const _0x5d8919=_0x3568b7,_0x14fe0c=this['_getSaveTimeout']();_0x14fe0c===0x0?this[_0x5d8919(0x200)](_0x1687ce):this[_0x5d8919(0x21f)]['set'](_0x1687ce,setTimeout(()=>this[_0x5d8919(0x200)](_0x1687ce),_0x14fe0c));}['_getSaveTimeout'](){const _0x5a5848=_0x3568b7;var _0x3dd5d9;return(_0x3dd5d9=this[_0x5a5848(0x1a6)][_0x5a5848(0x203)](u[_0x5a5848(0x140)]))!=null?_0x3dd5d9:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x67653c){const _0x26d702=_0x3568b7,_0x1537cd=this[_0x26d702(0x21f)]['get'](_0x67653c);return _0x1537cd!==void 0x0&&window['clearTimeout'](_0x1537cd),this[_0x26d702(0x137)]['setItem'](u[_0x26d702(0x247)](_0x67653c),this['_cachedData'][_0x26d702(0x261)](_0x67653c))[_0x26d702(0xd1)](()=>this[_0x26d702(0x21f)][_0x26d702(0x2d6)](_0x67653c));}async[_0x3568b7(0x1ec)](){const _0x1c29f7=_0x3568b7,_0x4e08e9=[];this[_0x1c29f7(0x21f)][_0x1c29f7(0xe8)]((_0x3b094b,_0x2a4f14)=>{const _0x53e10d=_0x1c29f7;window['clearTimeout'](_0x3b094b),_0x4e08e9['push'](this[_0x53e10d(0x200)](_0x2a4f14)[_0x53e10d(0xd1)](()=>{const _0x44aeaa=_0x53e10d;this[_0x44aeaa(0x21f)]['delete'](_0x2a4f14);}));}),await Promise[_0x1c29f7(0x1aa)](_0x4e08e9);}};ge=Kt([_e(0x0,a[_0x3568b7(0x1f5)]),_e(0x1,a[_0x3568b7(0x336)]),_e(0x2,a[_0x3568b7(0x104)](m[_0x3568b7(0x149)]))],ge);class Be extends a[_0x3568b7(0x1ae)]{constructor(){const _0x5eb3b9=_0x3568b7;super(),h(this,'urlChange$'),this[_0x5eb3b9(0xd3)]=d[_0x5eb3b9(0x161)](window,_0x5eb3b9(0x298))[_0x5eb3b9(0x17f)](d[_0x5eb3b9(0x19e)](this[_0x5eb3b9(0x248)]),d[_0x5eb3b9(0x25e)](0x1),d[_0x5eb3b9(0x11f)](void 0x0));}[_0x3568b7(0x1f7)](_0x2c6158,_0x4a5fb2,_0x5dfc3e=!0x1){const _0xc77caa=_0x3568b7,_0x34a0f8=new URL(window[_0xc77caa(0x22b)]['href']);_0x34a0f8[_0xc77caa(0x26e)][_0xc77caa(0x213)](_0x2c6158,_0x4a5fb2),_0x5dfc3e?window[_0xc77caa(0x17c)][_0xc77caa(0x1b7)]('','',_0x34a0f8['toString']()):window['history'][_0xc77caa(0x2f0)]('','',_0x34a0f8['toString']());}[_0x3568b7(0x27a)](_0x45ca0f,_0x21fc67=!0x1){const _0x32a399=_0x3568b7,_0x4a6076=new URL(window[_0x32a399(0x22b)][_0x32a399(0x181)]);_0x4a6076[_0x32a399(0x26e)][_0x32a399(0x2d6)](_0x45ca0f),_0x21fc67?window[_0x32a399(0x17c)][_0x32a399(0x1b7)]('','',_0x4a6076['toString']()):window['history'][_0x32a399(0x2f0)]('','',_0x4a6076['toString']());}['getParam'](_0x583c79){const _0x22257d=_0x3568b7;var _0x3135ef;return(_0x3135ef=new URL(window['location']['href'])[_0x22257d(0x26e)][_0x22257d(0x261)](_0x583c79))!=null?_0x3135ef:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x3568b7(0x14f)],Jt=(_0x576d3c,_0x3362fc,_0x2c25da)=>_0x3362fc in _0x576d3c?qt(_0x576d3c,_0x3362fc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c25da}):_0x576d3c[_0x3362fc]=_0x2c25da,Zt=(_0x364853,_0xf8d814,_0xaf72fa,_0x459f9a)=>{const _0x1188da=_0x3568b7;for(var _0x8b36c5=_0x459f9a>0x1?void 0x0:_0x459f9a?zt(_0xf8d814,_0xaf72fa):_0xf8d814,_0x4a0930=_0x364853[_0x1188da(0xde)]-0x1,_0x29e73f;_0x4a0930>=0x0;_0x4a0930--)(_0x29e73f=_0x364853[_0x4a0930])&&(_0x8b36c5=_0x29e73f(_0x8b36c5)||_0x8b36c5);return _0x8b36c5;},he=(_0x3257db,_0x4fa905)=>(_0xa46403,_0x27e4aa)=>_0x4fa905(_0xa46403,_0x27e4aa,_0x3257db),Qt=(_0x11ed97,_0x2f1bbd,_0x4e22b7)=>Jt(_0x11ed97,_0x2f1bbd+'',_0x4e22b7);const es=_0x3568b7(0x2b0);exports[_0x3568b7(0x111)]=class extends a[_0x3568b7(0x240)]{constructor(_0x214f59=Ue,_0x1a4f68,_0x1a4fdc,_0x3928f8){const _0x478798=_0x3568b7;super(),this['_config']=_0x214f59,this[_0x478798(0x214)]=_0x1a4f68,this[_0x478798(0x216)]=_0x1a4fdc,this[_0x478798(0x1a6)]=_0x3928f8;const {..._0x3ace36}=a[_0x478798(0x189)]({},Ue,this['_config']);this['_configService'][_0x478798(0xea)]($t,_0x3ace36);}[_0x3568b7(0x242)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x3568b7(0x162)](){const _0x4586f6=_0x3568b7;this[_0x4586f6(0x13e)]();}['_registerDependencies'](){const _0x1b4b4a=_0x3568b7;var _0x1d448f;const _0x2e6d55=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x1b4b4a(0x28d)],{'useClass':G['WebSocketService']}],[u[_0x1b4b4a(0x14e)],{'useClass':ge}],[exports[_0x1b4b4a(0x207)]],[Q],[q],[x],[de],[exports[_0x1b4b4a(0x2cc)]]];a[_0x1b4b4a(0x22d)](this[_0x1b4b4a(0x216)],a['mergeOverrideWithDependencies'](_0x2e6d55,(_0x1d448f=this[_0x1b4b4a(0x1c7)])==null?void 0x0:_0x1d448f[_0x1b4b4a(0xe5)]));}[_0x3568b7(0x13e)](){const _0x1940c7=_0x3568b7;this[_0x1940c7(0x345)](this[_0x1940c7(0x214)][_0x1940c7(0x180)](a[_0x1940c7(0x1e3)]['UNIVER_DOC'],[fe])),this[_0x1940c7(0x345)](this['_renderManagerService'][_0x1940c7(0x180)](a[_0x1940c7(0x1e3)][_0x1940c7(0x193)],[ve]));}['_initDependencies'](){const _0x5139b8=_0x3568b7;a['touchDependencies'](this[_0x5139b8(0x216)],[[x],[exports[_0x5139b8(0x207)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x3568b7(0x111)],_0x3568b7(0x1be),es),exports[_0x3568b7(0x111)]=Zt([a[_0x3568b7(0x255)](u[_0x3568b7(0xdc)]),he(0x1,p[_0x3568b7(0x2b6)]),he(0x2,a[_0x3568b7(0x104)](a[_0x3568b7(0x178)])),he(0x3,a['IConfigService'])],exports[_0x3568b7(0x111)]);var ts=Object[_0x3568b7(0x14f)],ss=(_0x395556,_0x2d57d3,_0x4fd12f,_0x42cf03)=>{for(var _0xb20f4f=_0x42cf03>0x1?void 0x0:_0x42cf03?ts(_0x2d57d3,_0x4fd12f):_0x2d57d3,_0x993d40=_0x395556['length']-0x1,_0x246fd1;_0x993d40>=0x0;_0x993d40--)(_0x246fd1=_0x395556[_0x993d40])&&(_0xb20f4f=_0x246fd1(_0xb20f4f)||_0xb20f4f);return _0xb20f4f;},H=(_0x37151d,_0x3fae9e)=>(_0x27d11c,_0x59adf2)=>_0x3fae9e(_0x27d11c,_0x59adf2,_0x37151d);exports[_0x3568b7(0x1fa)]=class extends u['CollaborationSocketService']{constructor(_0x28b983,_0x4d0e06,_0x4c2239,_0x4d0bcf,_0x6165b7){super(_0x28b983,_0x4d0e06,_0x4c2239,_0x4d0bcf,_0x6165b7);}async[_0x3568b7(0x1d8)](_0x34a134){const _0x5e3652=_0x3568b7,_0x86a95d=await this['_getSessionTicket'](),_0x4119a3=this[_0x5e3652(0x1e8)](_0x34a134,_0x86a95d);return this[_0x5e3652(0x283)](_0x4119a3);}[_0x3568b7(0x1e8)](_0x154ded,_0x492424){const _0x1eade1=_0x3568b7,_0x5c1e95=typeof window>'u'?new URL(_0x154ded):new URL(_0x154ded,window[_0x1eade1(0x22b)][_0x1eade1(0x250)]);_0x5c1e95['searchParams']['set'](_0x1eade1(0x243),_0x492424);const _0x524cd9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1eade1(0x22b)][_0x1eade1(0x277)]);return _0x524cd9['get'](_0x1eade1(0x303))&&_0x5c1e95['searchParams'][_0x1eade1(0x213)](_0x1eade1(0x303),_0x524cd9['get'](_0x1eade1(0x303))),_0x5c1e95[_0x1eade1(0x276)]();}async[_0x3568b7(0x343)](){const _0x3386df=_0x3568b7;var _0x469d35,_0x2311a9,_0x3b4556;const _0x2995e5=this[_0x3386df(0x1a6)][_0x3386df(0x203)](u[_0x3386df(0x2aa)]),_0x3dd312=(_0x469d35=_0x2995e5==null?void 0x0:_0x2995e5[_0x3386df(0x112)])!=null?_0x469d35:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3b4556=(_0x2311a9=(await this['_httpService'][_0x3386df(0x261)](_0x3dd312,{'headers':{'Content-Type':_0x3386df(0x341)}}))[_0x3386df(0x27e)])==null?void 0x0:_0x2311a9['ticket'])!=null?_0x3b4556:'';}},exports[_0x3568b7(0x1fa)]=ss([H(0x0,a['Inject'](a[_0x3568b7(0x178)])),H(0x1,a[_0x3568b7(0x104)](G[_0x3568b7(0x2fb)])),H(0x2,a['IConfigService']),H(0x3,a[_0x3568b7(0xd0)]),H(0x4,m['ISnapshotServerService'])],exports[_0x3568b7(0x1fa)]);const Me=0x7530,Le=_0x3568b7(0x32b);class is extends a[_0x3568b7(0x306)]{constructor(){const _0x557f99=_0x3568b7;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x557f99(0x2a0),new Set()),h(this,_0x557f99(0x229),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x557f99(0x231),new Map()),this['_init']();}[_0x3568b7(0x2ea)](){const _0x5176cb=_0x3568b7;super[_0x5176cb(0x2ea)](),this[_0x5176cb(0x23d)][_0x5176cb(0xe8)]((_0x82d699,_0x5c6373)=>this[_0x5176cb(0x196)](_0x5c6373)),this[_0x5176cb(0x159)]&&window['clearInterval'](this[_0x5176cb(0x159)]);}[_0x3568b7(0x1a5)](_0x515aa9){const _0x5139fe=_0x3568b7;return this[_0x5139fe(0x1a4)](_0x515aa9)[_0x5139fe(0x17f)](d[_0x5139fe(0x14a)]());}['editingUnit'](_0x16462f){const _0x18b23a=_0x3568b7;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x18b23a(0x2a0)][_0x18b23a(0x254)](_0x16462f),this['_send']({'type':0x0,'memberID':this[_0x18b23a(0x1bb)],'unitIDs':[_0x16462f],'isForwarded':!0x1});}[_0x3568b7(0xd6)](_0x4ee620){const _0x5b49c9=_0x3568b7;this[_0x5b49c9(0x2a0)][_0x5b49c9(0x2d6)](_0x4ee620),this[_0x5b49c9(0x2a0)][_0x5b49c9(0x100)]===0x0&&this[_0x5b49c9(0x159)]&&window[_0x5b49c9(0x163)](this[_0x5b49c9(0x159)]);}[_0x3568b7(0x25f)](){const _0x5df997=_0x3568b7;this[_0x5df997(0x345)](a[_0x5df997(0x33d)](d[_0x5df997(0x161)](window,'storage')[_0x5df997(0x21b)](_0x32217c=>{const _0x49a469=_0x5df997;if(_0x32217c['key']!==Le||!_0x32217c[_0x49a469(0x299)])return;const _0xc682ff=JSON['parse'](_0x32217c[_0x49a469(0x299)]);this[_0x49a469(0x19d)](_0xc682ff);}))),window[_0x5df997(0x1ad)](_0x5df997(0x280),()=>this[_0x5df997(0x2f7)]({'type':0x1,'memberID':this[_0x5df997(0x1bb)],'unitIDs':Array[_0x5df997(0x2a5)](this[_0x5df997(0x2a0)])}));}[_0x3568b7(0x19d)](_0x475203){const _0x2d9562=_0x3568b7;switch(_0x475203['type']){case 0x0:this[_0x2d9562(0xe3)](_0x475203);break;case 0x1:this[_0x2d9562(0x2d3)](_0x475203);break;case 0x2:this[_0x2d9562(0x125)](_0x475203);break;}}[_0x3568b7(0xe3)](_0x4fb6be){const _0x2e0bd8=_0x3568b7,{unitIDs:_0x16edaa,memberID:_0x4f5e4c,isForwarded:_0xacbcc2}=_0x4fb6be;_0x16edaa[_0x2e0bd8(0xe8)](_0x1f6eb9=>{const _0x185819=_0x2e0bd8;if(!_0xacbcc2&&this[_0x185819(0x229)][_0x185819(0x2ce)](_0x1f6eb9)&&this[_0x185819(0x1a4)](_0x1f6eb9)[_0x185819(0xe6)](u[_0x185819(0x21d)][_0x185819(0x172)]),!this[_0x185819(0x229)][_0x185819(0x2ce)](_0x1f6eb9)||!this[_0x185819(0x229)]['get'](_0x1f6eb9)['has'](_0x4f5e4c)){const _0x4d5a23=this[_0x185819(0x229)][_0x185819(0x261)](_0x1f6eb9)||new Set();_0x4d5a23[_0x185819(0x254)](_0x4f5e4c),this['_unitOnClients']['set'](_0x1f6eb9,_0x4d5a23),this['_scheduleClearOtherTimer'](_0x4f5e4c);}}),_0xacbcc2||this[_0x2e0bd8(0x2f7)]({'type':0x0,'memberID':this[_0x2e0bd8(0x1bb)],'unitIDs':[...this[_0x2e0bd8(0x2a0)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x307924){const _0x4a4f24=_0x3568b7;this[_0x4a4f24(0x196)](_0x307924);const _0x20b9c1=window[_0x4a4f24(0x1f0)](()=>{const _0x20542c=_0x4a4f24;this['_unitOnClients'][_0x20542c(0xe8)](_0x83a5ce=>{const _0x4b9ce9=_0x20542c;_0x83a5ce[_0x4b9ce9(0x2d6)](_0x307924);});},Me*0x2);this[_0x4a4f24(0x23d)]['set'](_0x307924,_0x20b9c1);}[_0x3568b7(0x196)](_0x3343b7){const _0x1dcc4e=_0x3568b7;if(this[_0x1dcc4e(0x23d)][_0x1dcc4e(0x2ce)](_0x3343b7)){const _0x26cb30=this[_0x1dcc4e(0x23d)][_0x1dcc4e(0x261)](_0x3343b7);_0x26cb30&&window[_0x1dcc4e(0x2b1)](_0x26cb30),this[_0x1dcc4e(0x23d)]['set'](_0x3343b7,null);}}[_0x3568b7(0x2d3)](_0x2f519b){const _0x701f83=_0x3568b7,{memberID:_0x435d8c,unitIDs:_0x3b00a2}=_0x2f519b;_0x3b00a2[_0x701f83(0xe8)](_0x11fc9f=>{const _0x27c6e9=_0x701f83;var _0x24eb91;const _0x54778d=this[_0x27c6e9(0x229)][_0x27c6e9(0x261)](_0x11fc9f);_0x54778d&&(_0x54778d[_0x27c6e9(0x2d6)](_0x435d8c),(_0x24eb91=this[_0x27c6e9(0x1a4)](_0x11fc9f))==null||_0x24eb91[_0x27c6e9(0xe6)](_0x54778d[_0x27c6e9(0x100)]===0x0?u[_0x27c6e9(0x21d)][_0x27c6e9(0x31b)]:u['UnitStatus'][_0x27c6e9(0x172)]));}),this['_removeClearOtherTimer'](_0x435d8c);}[_0x3568b7(0x125)](_0x3a1f50){const _0x1b7ea4=_0x3568b7;this[_0x1b7ea4(0x337)](_0x3a1f50[_0x1b7ea4(0x282)]);}[_0x3568b7(0x2f7)](_0x54ac87){const _0x19dc78=_0x3568b7;localStorage[_0x19dc78(0x244)](Le,JSON[_0x19dc78(0xe9)](_0x54ac87));}[_0x3568b7(0x2c4)](){const _0x4128d2=_0x3568b7;this[_0x4128d2(0x159)]=window['setInterval'](()=>{const _0x10cf4e=_0x4128d2;this[_0x10cf4e(0x2f7)]({'type':0x2,'memberID':this[_0x10cf4e(0x1bb)]});},Me);}[_0x3568b7(0x1a4)](_0x56b370){const _0x29deb0=_0x3568b7;return this[_0x29deb0(0x231)]['has'](_0x56b370)||this['_unitStatus']['set'](_0x56b370,new d['BehaviorSubject'](u['UnitStatus'][_0x29deb0(0x31b)])),this[_0x29deb0(0x231)][_0x29deb0(0x261)](_0x56b370);}}var je=(_0x58ef5f=>(_0x58ef5f[_0x58ef5f[_0x3568b7(0x263)]=0x0]=_0x3568b7(0x263),_0x58ef5f[_0x58ef5f['OK']=0x1]='OK',_0x58ef5f[_0x58ef5f[_0x3568b7(0x30b)]=0x2]='INTERNAL_ERROR',_0x58ef5f[_0x58ef5f[_0x3568b7(0x186)]=0x3]=_0x3568b7(0x186),_0x58ef5f[_0x58ef5f[_0x3568b7(0x28e)]=0x4]=_0x3568b7(0x28e),_0x58ef5f[_0x58ef5f['UNAUTHENTICATED']=0x5]=_0x3568b7(0x304),_0x58ef5f[_0x58ef5f[_0x3568b7(0x14d)]=0x6]=_0x3568b7(0x14d),_0x58ef5f[_0x58ef5f[_0x3568b7(0x288)]=0x7]=_0x3568b7(0x288),_0x58ef5f[_0x58ef5f[_0x3568b7(0x110)]=0x8]='TOO_MANY_REQUESTS',_0x58ef5f[_0x58ef5f[_0x3568b7(0x34c)]=0x9]='COMPLETION_FINISHED',_0x58ef5f[_0x58ef5f[_0x3568b7(0x185)]=0xa]=_0x3568b7(0x185),_0x58ef5f[_0x58ef5f[_0x3568b7(0x18d)]=0xb]=_0x3568b7(0x18d),_0x58ef5f[_0x58ef5f['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x3568b7(0x32c),_0x58ef5f[_0x58ef5f[_0x3568b7(0x2c9)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x58ef5f[_0x58ef5f[_0x3568b7(0x1dc)]=0xe]=_0x3568b7(0x1dc),_0x58ef5f[_0x58ef5f[_0x3568b7(0x342)]=0x1389]=_0x3568b7(0x342),_0x58ef5f[_0x58ef5f[_0x3568b7(0x154)]=0x1771]=_0x3568b7(0x154),_0x58ef5f[_0x58ef5f[_0x3568b7(0x269)]=0x1772]=_0x3568b7(0x269),_0x58ef5f[_0x58ef5f['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x3568b7(0x13b),_0x58ef5f[_0x58ef5f[_0x3568b7(0x2e8)]=0x1b59]=_0x3568b7(0x2e8),_0x58ef5f[_0x58ef5f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x58ef5f[_0x58ef5f[_0x3568b7(0x20b)]=0x1b5b]=_0x3568b7(0x20b),_0x58ef5f[_0x58ef5f[_0x3568b7(0x325)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x58ef5f[_0x58ef5f[_0x3568b7(0x252)]=0x1b5d]='APPLY_DUPLICATED',_0x58ef5f[_0x58ef5f['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3568b7(0x223),_0x58ef5f[_0x58ef5f[_0x3568b7(0x20e)]=0x2329]=_0x3568b7(0x20e),_0x58ef5f[_0x58ef5f[_0x3568b7(0x228)]=0x232a]=_0x3568b7(0x228),_0x58ef5f[_0x58ef5f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3568b7(0x184),_0x58ef5f[_0x58ef5f['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3568b7(0x17d),_0x58ef5f[_0x58ef5f[_0x3568b7(0x118)]=0x232d]=_0x3568b7(0x118),_0x58ef5f[_0x58ef5f[_0x3568b7(0x331)]=0x2711]=_0x3568b7(0x331),_0x58ef5f[_0x58ef5f[_0x3568b7(0x1a1)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x58ef5f[_0x58ef5f[_0x3568b7(0x2a7)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x58ef5f[_0x58ef5f['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x3568b7(0x10e),_0x58ef5f[_0x58ef5f[_0x3568b7(0x264)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x58ef5f[_0x58ef5f[_0x3568b7(0x209)]=0x271b]=_0x3568b7(0x209),_0x58ef5f[_0x58ef5f[_0x3568b7(0x136)]=0x271c]=_0x3568b7(0x136),_0x58ef5f[_0x58ef5f['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x3568b7(0x23f),_0x58ef5f[_0x58ef5f['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x3568b7(0x1e7),_0x58ef5f[_0x58ef5f[_0x3568b7(0x1c8)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x58ef5f[_0x58ef5f[_0x3568b7(0x2b9)]=0x2720]=_0x3568b7(0x2b9),_0x58ef5f[_0x58ef5f['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x58ef5f[_0x58ef5f[_0x3568b7(0x330)]=0x2ee1]=_0x3568b7(0x330),_0x58ef5f[_0x58ef5f[_0x3568b7(0x2d4)]=0x2ee2]=_0x3568b7(0x2d4),_0x58ef5f[_0x58ef5f[_0x3568b7(0x2c0)]=0x2ee3]=_0x3568b7(0x2c0),_0x58ef5f[_0x58ef5f['USER_NOT_INVITED_CODE']=0x2ee4]=_0x3568b7(0xfd),_0x58ef5f[_0x58ef5f[_0x3568b7(0x132)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x58ef5f[_0x58ef5f['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x3568b7(0x32d),_0x58ef5f[_0x58ef5f[_0x3568b7(0x2ed)]=0x32ca]=_0x3568b7(0x2ed),_0x58ef5f[_0x58ef5f['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x58ef5f[_0x58ef5f[_0x3568b7(0x1fc)]=-0x1]='UNRECOGNIZED',_0x58ef5f))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x406bff,_0x1a076e,_0x29afd5,_0x52d35c)=>{const _0x28d627=_0x3568b7;for(var _0x3e5c94=_0x52d35c>0x1?void 0x0:_0x52d35c?ns(_0x1a076e,_0x29afd5):_0x1a076e,_0x211eb0=_0x406bff[_0x28d627(0xde)]-0x1,_0x168aae;_0x211eb0>=0x0;_0x211eb0--)(_0x168aae=_0x406bff[_0x211eb0])&&(_0x3e5c94=_0x168aae(_0x3e5c94)||_0x3e5c94);return _0x3e5c94;},ue=(_0x27cfec,_0x115575)=>(_0x579f90,_0x2d47f4)=>_0x115575(_0x579f90,_0x2d47f4,_0x27cfec);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0xe32764,_0x2f8fff,_0x33429c){const _0x33c7c5=_0x3568b7;super(),this[_0x33c7c5(0x1c2)]=_0xe32764,this[_0x33c7c5(0x2ac)]=_0x2f8fff,this[_0x33c7c5(0x1a6)]=_0x33429c;}async[_0x3568b7(0x31d)](_0x321e05,_0x24cc9a,_0xaafe63,..._0x11ad79){const _0x42d406=_0x3568b7;var _0x5cd576,_0x53f635,_0x6338d1,_0x533346;const _0x51bbd8=this['_instanceService']['getFocusedUnit']();if(!_0x51bbd8)throw new Error(_0x42d406(0x1b1));const _0x533646=((_0x5cd576=this['_configService'][_0x42d406(0x203)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x5cd576:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x321e05+'/run/'+_0x24cc9a,_0x38a84a=new URL(window[_0x42d406(0x22b)]['href']),_0x1da1d2={'scriptId':_0x321e05,'runId':(_0x53f635=_0x38a84a['searchParams'][_0x42d406(0x261)](_0x42d406(0x303)))!=null?_0x53f635:'','function':_0x24cc9a,'unitId':_0x51bbd8[_0x42d406(0x23c)](),'argsOfFunction':JSON[_0x42d406(0xe9)](_0x11ad79),'invokeId':(_0x6338d1=_0xaafe63[_0x42d406(0x1e0)])!=null?_0x6338d1:'','executionId':(_0x533346=_0xaafe63['executionId'])!=null?_0x533346:''};try{const _0x2e7189=await this[_0x42d406(0x2ac)][_0x42d406(0x194)](_0x533646,{'body':_0x1da1d2});return _0x2e7189[_0x42d406(0x27e)]['error']&&_0x2e7189['body'][_0x42d406(0xec)][_0x42d406(0x141)]!==je['OK']?_0x42d406(0x20a):_0x2e7189[_0x42d406(0x27e)][_0x42d406(0x2c2)];}catch{return _0x42d406(0x20a);}}},exports[_0x3568b7(0x2e6)]=rs([ue(0x0,a[_0x3568b7(0x249)]),ue(0x1,a['Inject'](G[_0x3568b7(0x2fb)])),ue(0x2,a[_0x3568b7(0x1f5)])],exports[_0x3568b7(0x2e6)]),exports[_0x3568b7(0xe7)]=xe,exports[_0x3568b7(0x2f2)]=Ee,exports[_0x3568b7(0x1cf)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x3568b7(0x334)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x444f27=_0x170f;function _0x21b0(){const _0x567fc0=['exports','Local\x20file','Connection\x20failed,\x20please\x20check\x20your\x20network.','166372fNajMU','2877000OkvZSH','Collaboration\x20Conflict','Click\x20to\x20Reconnect','488081FcogZG','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','45OZkwbi','298258jGUuFJ','Syncing...','Edit\x20conflicts','130vXgYui','14584vWUxOj','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','3879AyGuJl','Authentication\x20Error','2SHTNFj','565602MZKFoj','Syncing\x20server\x20data...','56DDJtuN','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','19550712bVZyeM','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'];_0x21b0=function(){return _0x567fc0;};return _0x21b0();}function _0x170f(_0x311b41,_0xe5119f){const _0x21b09b=_0x21b0();return _0x170f=function(_0x170f64,_0x3df6a1){_0x170f64=_0x170f64-0x198;let _0x570d15=_0x21b09b[_0x170f64];return _0x570d15;},_0x170f(_0x311b41,_0xe5119f);}(function(_0x2cc93c,_0x2c4c6c){const _0x22fc13=_0x170f,_0x5a8b25=_0x2cc93c();while(!![]){try{const _0x1c0119=-parseInt(_0x22fc13(0x1af))/0x1*(parseInt(_0x22fc13(0x19c))/0x2)+parseInt(_0x22fc13(0x1ae))/0x3*(parseInt(_0x22fc13(0x1a8))/0x4)+-parseInt(_0x22fc13(0x1a9))/0x5+-parseInt(_0x22fc13(0x19d))/0x6*(parseInt(_0x22fc13(0x19f))/0x7)+parseInt(_0x22fc13(0x198))/0x8*(-parseInt(_0x22fc13(0x19a))/0x9)+-parseInt(_0x22fc13(0x1b2))/0xa*(-parseInt(_0x22fc13(0x1ac))/0xb)+parseInt(_0x22fc13(0x1a1))/0xc;if(_0x1c0119===_0x2c4c6c)break;else _0x5a8b25['push'](_0x5a8b25['shift']());}catch(_0x1eb435){_0x5a8b25['push'](_0x5a8b25['shift']());}}}(_0x21b0,0x65ab5));const e={'collab-client':{'tooltip':{'reconnect':_0x444f27(0x1ab)}},'collabStatus':{'fetchMiss':_0x444f27(0x19e),'conflict':_0x444f27(0x1b1),'notCollab':_0x444f27(0x1a6),'synced':'Synced','syncing':_0x444f27(0x1b0),'offline':_0x444f27(0x1a0)},'session':{'connection-failed':_0x444f27(0x1a7),'will-retry':_0x444f27(0x1a2),'room-full':_0x444f27(0x1ad),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x444f27(0x1aa),'content':_0x444f27(0x199)},'permission':{'title':_0x444f27(0x19b),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x444f27(0x1a3)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x444f27(0x1a4)}};module[_0x444f27(0x1a5)]=e;
|