@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505101606 → 0.7.0-nightly.202505111606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x330442=_0x6187;(function(_0x37b92a,_0x23fe12){const _0x2272b8=_0x6187,_0x24becb=_0x37b92a();while(!![]){try{const _0x10c187=-parseInt(_0x2272b8(0x1aa))/0x1+-parseInt(_0x2272b8(0x19e))/0x2+parseInt(_0x2272b8(0x19d))/0x3+parseInt(_0x2272b8(0x1a1))/0x4*(parseInt(_0x2272b8(0x1a3))/0x5)+parseInt(_0x2272b8(0x1a8))/0x6*(parseInt(_0x2272b8(0x1a4))/0x7)+parseInt(_0x2272b8(0x19f))/0x8*(-parseInt(_0x2272b8(0x1a2))/0x9)+parseInt(_0x2272b8(0x1a7))/0xa;if(_0x10c187===_0x23fe12)break;else _0x24becb['push'](_0x24becb['shift']());}catch(_0xe824fa){_0x24becb['push'](_0x24becb['shift']());}}}(_0x5ec4,0xe7adc));function _0x5ec4(){const _0x39a6b5=['extend','19459550jRdZVZ','399186pAtcJl','_injector','1484108rHKlkB','get','runOnServer','804471yJIwgn','673858RVNmXk','1792cliYgF','@univerjs/core/facade','220KAAODI','41472tCsoJF','5260lIKjmM','161NiuuXC','FUniver'];_0x5ec4=function(){return _0x39a6b5;};return _0x5ec4();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x330442(0x1a0));class c extends e['FUniver']{[_0x330442(0x19c)](_0x4b6182,_0x1ec9ab,..._0x9b8d90){const _0x18ff1b=_0x330442;return this[_0x18ff1b(0x1a9)][_0x18ff1b(0x19b)](t['RemoteUniscriptService'])[_0x18ff1b(0x19c)](_0x4b6182,_0x1ec9ab,{},..._0x9b8d90);}}function _0x6187(_0x207786,_0x4b5841){const _0x5ec43c=_0x5ec4();return _0x6187=function(_0x618799,_0x3dc5da){_0x618799=_0x618799-0x19b;let _0x235d56=_0x5ec43c[_0x618799];return _0x235d56;},_0x6187(_0x207786,_0x4b5841);}e[_0x330442(0x1a5)][_0x330442(0x1a6)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5851f7=_0x5085;(function(_0x216de0,_0x5e8b77){const _0x15a3a1=_0x5085,_0xc95579=_0x216de0();while(!![]){try{const _0x22220a=parseInt(_0x15a3a1(0x3fc))/0x1*(-parseInt(_0x15a3a1(0x319))/0x2)+parseInt(_0x15a3a1(0x40d))/0x3*(parseInt(_0x15a3a1(0x3af))/0x4)+-parseInt(_0x15a3a1(0x3cb))/0x5+-parseInt(_0x15a3a1(0x2eb))/0x6+-parseInt(_0x15a3a1(0x2ba))/0x7+parseInt(_0x15a3a1(0x3c9))/0x8+parseInt(_0x15a3a1(0x39a))/0x9*(parseInt(_0x15a3a1(0x2cf))/0xa);if(_0x22220a===_0x5e8b77)break;else _0xc95579['push'](_0xc95579['shift']());}catch(_0xc61afa){_0xc95579['push'](_0xc95579['shift']());}}}(_0x1d21,0x902ce));var Ve=Object[_0x5851f7(0x34b)],Xe=(_0x4f4694,_0x4c855a,_0x3dd774)=>_0x4c855a in _0x4f4694?Ve(_0x4f4694,_0x4c855a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd774}):_0x4f4694[_0x4c855a]=_0x3dd774,h=(_0x1bc8c5,_0xfd4503,_0x5ab88d)=>Xe(_0x1bc8c5,typeof _0xfd4503!=_0x5851f7(0x20b)?_0xfd4503+'':_0xfd4503,_0x5ab88d);Object[_0x5851f7(0x34b)](exports,Symbol[_0x5851f7(0x3a4)],{'value':_0x5851f7(0x356)});const u=require(_0x5851f7(0x3b5)),a=require(_0x5851f7(0x309)),p=require(_0x5851f7(0x204)),G=require(_0x5851f7(0x2f4)),b=require(_0x5851f7(0x346)),Ge=require('@univerjs/drawing'),d=require(_0x5851f7(0x2bf)),Y=require(_0x5851f7(0x362)),m=require(_0x5851f7(0x386)),Ee=require(_0x5851f7(0x2e1)),g=require(_0x5851f7(0x3d0)),$=require('rxjs/operators'),X=require(_0x5851f7(0x37f)),P=require(_0x5851f7(0x249)),T=require(_0x5851f7(0x211)),D=require('@univerjs/design'),M=require('react'),Ke=require(_0x5851f7(0x2f8));var qe=Object[_0x5851f7(0x2c4)],ze=(_0x204964,_0x377cff,_0x135c74,_0xa7b48)=>{const _0x3e71b3=_0x5851f7;for(var _0x14aecc=_0xa7b48>0x1?void 0x0:_0xa7b48?qe(_0x377cff,_0x135c74):_0x377cff,_0x5084c9=_0x204964[_0x3e71b3(0x3ab)]-0x1,_0x2247a8;_0x5084c9>=0x0;_0x5084c9--)(_0x2247a8=_0x204964[_0x5084c9])&&(_0x14aecc=_0x2247a8(_0x14aecc)||_0x14aecc);return _0x14aecc;},Te=(_0x46b213,_0x599f2b)=>(_0x121f8c,_0x56571c)=>_0x599f2b(_0x121f8c,_0x56571c,_0x46b213);let de=class extends a[_0x5851f7(0x2a9)]{constructor(_0x82372a,_0x3afd22){const _0x43df9e=_0x5851f7;super(),this[_0x43df9e(0x330)]=_0x82372a,this[_0x43df9e(0x394)]=_0x3afd22,this[_0x43df9e(0x221)]();}[_0x5851f7(0x221)](){const _0x239e2b=_0x5851f7,_0x1a1a50=this;this[_0x239e2b(0x21c)](this[_0x239e2b(0x330)][_0x239e2b(0x38e)]({'onBeforePasteImage':async _0x2ed221=>{const _0xce95=_0x239e2b,_0x1000b5=await _0x1a1a50[_0xce95(0x394)][_0xce95(0x42f)](_0x2ed221);return _0x1000b5?{'source':_0x1000b5[_0xce95(0x2e2)],'imageSourceType':_0x1000b5['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x5851f7(0x2aa)]),Te(0x1,Ge[_0x5851f7(0x2e5)])],de);const Oe=[_0x5851f7(0x336),_0x5851f7(0x28d),_0x5851f7(0x2d6),_0x5851f7(0x2f2),_0x5851f7(0x37e),_0x5851f7(0x351)];class me extends a[_0x5851f7(0x31b)]{constructor(){const _0x6d99df=_0x5851f7;super(...arguments),h(this,_0x6d99df(0x3ff),new Map()),h(this,'_colorIndex',0x0);}[_0x5851f7(0x437)](_0x20a416){const _0x560298=_0x5851f7;if(this[_0x560298(0x3ff)][_0x560298(0x290)](_0x20a416))return this[_0x560298(0x3ff)][_0x560298(0x1f5)](_0x20a416);const _0x3cec59=Oe[this['_colorIndex']];return this[_0x560298(0x1e1)]=(this[_0x560298(0x1e1)]+0x1)%Oe[_0x560298(0x3ab)],this['_assignedColors']['set'](_0x20a416,_0x3cec59),_0x3cec59;}}function Pe(_0x260a02){const _0x40d8f8=_0x5851f7;let _0x6c6b6='';for(const _0x27dbfc of _0x260a02){const {startOffset:_0x14e66b,endOffset:_0x787f7b,isActive:_0x3e42d4,rangeType:_0x49d4e0,segmentId:_0x228e7e,segmentPage:_0xb801a9}=_0x27dbfc;_0x6c6b6[_0x40d8f8(0x3ab)]&&(_0x6c6b6+=','),_0x6c6b6+=_0x14e66b+':'+_0x787f7b+':'+(_0x3e42d4?'1':'0')+':'+_0x49d4e0+':'+_0x228e7e+':'+_0xb801a9;}return _0x6c6b6;}function Je(_0x1bf418){const _0x5589bd=_0x5851f7,_0x37b5ad=_0x1bf418['split'](','),_0x5273fc=[];for(const _0x53a95d of _0x37b5ad){const [_0x53af9e,_0x5e6f1e,_0x53dd9d,_0x26a384,_0x581e97,_0x523588]=_0x53a95d[_0x5589bd(0x230)](':');_0x5273fc['push']({'startOffset':Number(_0x53af9e),'endOffset':Number(_0x5e6f1e),'collapsed':_0x53af9e===_0x5e6f1e,'isActive':_0x53dd9d==='1','rangeType':_0x26a384===a[_0x5589bd(0x345)][_0x5589bd(0x2c1)]?a[_0x5589bd(0x345)][_0x5589bd(0x2c1)]:a[_0x5589bd(0x345)][_0x5589bd(0x2de)],'segmentId':typeof _0x581e97==_0x5589bd(0x33d)?String(_0x581e97):'','segmentPage':Number(_0x523588!=null?_0x523588:-0x1)});}return _0x5273fc[_0x5589bd(0x401)](_0x487334=>_0x487334[_0x5589bd(0x396)])||(_0x5273fc[0x0][_0x5589bd(0x396)]=!0x0),_0x5273fc;}class Ce extends a[_0x5851f7(0x2a9)]{constructor(){const _0x93ee55=_0x5851f7;super(...arguments),h(this,'_collabCursorState$',new d[(_0x93ee55(0x207))](null)),h(this,_0x93ee55(0x3f1),this['_collabCursorState$']['asObservable']());}[_0x5851f7(0x438)](_0xadc840){const _0x380978=_0x5851f7,{unitID:_0x2996cd,memberID:_0x1babf9,textRanges:_0x1116fe}=_0xadc840,_0x1638d5=Pe(_0x1116fe);if(_0x1638d5==='')return;const _0x494eba={'unitID':_0x2996cd,'memberID':_0x1babf9,'selection':_0x1638d5};this[_0x380978(0x29d)]['next'](_0x494eba);}}var Ze=Object[_0x5851f7(0x2c4)],Qe=(_0x32b44e,_0xb45d24,_0x1aa9ff,_0x571e02)=>{const _0x58bf7a=_0x5851f7;for(var _0x12de2f=_0x571e02>0x1?void 0x0:_0x571e02?Ze(_0xb45d24,_0x1aa9ff):_0xb45d24,_0x755d70=_0x32b44e[_0x58bf7a(0x3ab)]-0x1,_0x26dbcf;_0x755d70>=0x0;_0x755d70--)(_0x26dbcf=_0x32b44e[_0x755d70])&&(_0x12de2f=_0x26dbcf(_0x12de2f)||_0x12de2f);return _0x12de2f;},L=(_0x5a4e8e,_0x32e458)=>(_0x2db7c4,_0x553f46)=>_0x32e458(_0x2db7c4,_0x553f46,_0x5a4e8e);const et=0x12c,tt=0x64;let fe=class extends a[_0x5851f7(0x2a9)]{constructor(_0x2b9d0d,_0x4cd6a9,_0x53f6c8,_0x8d15a,_0x13f377,_0x1f715a,_0x46310b,_0x1a8d8e,_0x3c54c1){const _0x29652d=_0x5851f7;super(),h(this,_0x29652d(0x25c),!0x1),h(this,_0x29652d(0x221),!0x1),h(this,_0x29652d(0x237),new d[(_0x29652d(0x207))](new Map())),h(this,'cursorInfo$',this[_0x29652d(0x237)][_0x29652d(0x3c5)]()),h(this,_0x29652d(0x3d6),new d[(_0x29652d(0x207))]([])),h(this,_0x29652d(0x349),this[_0x29652d(0x3d6)][_0x29652d(0x3bf)](d['debounceTime'](et))),h(this,'_updateLocalCursor',a[_0x29652d(0x418)](_0x44f7e1=>{const _0x1dec0a=_0x29652d,_0x48537b={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1dec0a(0x339)],'memberID':this[_0x1dec0a(0x373)][_0x1dec0a(0x333)](),'selection':Pe(_0x44f7e1)}};this[_0x1dec0a(0x373)][_0x1dec0a(0x1d6)](_0x48537b,this[_0x1dec0a(0x339)]);},tt)),(this[_0x29652d(0x339)]=_0x2b9d0d,this[_0x29652d(0x373)]=_0x4cd6a9,this[_0x29652d(0x2ed)]=_0x53f6c8,this[_0x29652d(0x20a)]=_0x8d15a,this[_0x29652d(0x397)]=_0x13f377,this['_syncEditingCollabCursorService']=_0x1f715a,this['_transformService']=_0x46310b,this['_univerInstanceService']=_0x1a8d8e,this[_0x29652d(0x1eb)]=_0x3c54c1);}get[_0x5851f7(0x264)](){const _0x5db7a8=_0x5851f7;return this[_0x5db7a8(0x237)][_0x5db7a8(0x299)]();}get[_0x5851f7(0x382)](){const _0x4dee85=_0x5851f7;return this[_0x4dee85(0x3d6)][_0x4dee85(0x299)]();}[_0x5851f7(0x28f)](){const _0x537956=_0x5851f7;super[_0x537956(0x28f)](),this[_0x537956(0x237)][_0x537956(0x26b)](new Map()),this[_0x537956(0x237)][_0x537956(0x42c)](),this[_0x537956(0x3d6)][_0x537956(0x26b)]([]),this[_0x537956(0x3d6)][_0x537956(0x42c)]();}[_0x5851f7(0x359)](){const _0x29b971=_0x5851f7;this[_0x29b971(0x221)]||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](d[_0x29b971(0x329)](this['dispose$']))['subscribe'](_0x14556d=>{const _0xd572a4=_0x29b971;_0x14556d===u[_0xd572a4(0x432)][_0xd572a4(0x1d3)]?this['_toggleOnline']():this[_0xd572a4(0x3f9)]();}),this[_0x29b971(0x373)][_0x29b971(0x3f5)][_0x29b971(0x3bf)](d[_0x29b971(0x329)](this[_0x29b971(0x2f1)]))[_0x29b971(0x1e4)](_0x420ca1=>{const _0x4cb75c=_0x29b971,_0x3c665d=_0x420ca1[_0x4cb75c(0x3c4)];_0x3c665d===m[_0x4cb75c(0x2c6)]['UPDATE_CURSOR']&&this[_0x4cb75c(0x35a)](_0x420ca1),_0x3c665d===m[_0x4cb75c(0x2c6)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x420ca1);}),this[_0x29b971(0x21c)](this['_commandService']['onCommandExecuted'](_0x40c286=>{const _0x3e503f=_0x29b971,_0x4def1d=_0x40c286['params'];_0x4def1d!=null&&this[_0x3e503f(0x25c)]&&_0x40c286['id']===Y[_0x3e503f(0x315)]['id']&&_0x4def1d[_0x3e503f(0x395)]===this[_0x3e503f(0x339)]&&_0x4def1d['isEditing']===!0x1&&_0x4def1d['ranges'][_0x3e503f(0x3ab)]>0x0&&this[_0x3e503f(0x398)](_0x4def1d[_0x3e503f(0x31d)]);})),this[_0x29b971(0x265)][_0x29b971(0x3f1)][_0x29b971(0x3bf)](d[_0x29b971(0x329)](this[_0x29b971(0x2f1)]))[_0x29b971(0x1e4)](_0x586b11=>{const _0x252ad9=_0x29b971;if((_0x586b11==null?void 0x0:_0x586b11[_0x252ad9(0x339)])!==this[_0x252ad9(0x339)])return;const _0x2d450d={'eventID':m[_0x252ad9(0x2c6)][_0x252ad9(0x33c)],'data':_0x586b11};this[_0x252ad9(0x35a)](_0x2d450d);}),this[_0x29b971(0x21c)](this['_commandService'][_0x29b971(0x364)](_0x38ba70=>{const _0x270248=_0x29b971;if(_0x38ba70[_0x270248(0x25d)]==null)return;const _0x582ebf=_0x38ba70[_0x270248(0x25d)];if(_0x38ba70['id']!==Y[_0x270248(0x283)]['id']||_0x582ebf[_0x270248(0x395)]!==this[_0x270248(0x339)])return;const _0x9c5013={'id':_0x270248(0x263),'params':_0x582ebf},_0x26e5b6=this[_0x270248(0x264)];for(const [_0x28c8be,_0x17f38f]of _0x26e5b6){const _0x506844={'id':_0x270248(0x263),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x17f38f[_0x270248(0x31d)]}},_0x48649c=this[_0x270248(0x42a)][_0x270248(0x2a1)](_0x9c5013,_0x506844,!0x1);if(m[_0x270248(0x28b)](_0x48649c))throw _0x48649c[_0x270248(0x31c)];_0x26e5b6[_0x270248(0x247)](_0x28c8be,{..._0x17f38f,'ranges':_0x48649c[_0x270248(0x40b)][_0x270248(0x25d)][_0x270248(0x30a)]});}queueMicrotask(()=>{const _0x230136=_0x270248;this[_0x230136(0x237)]['next'](_0x26e5b6);});})));}['_onCursorUpdate'](_0x3aae90){const _0x5b8318=_0x5851f7;var _0x30ffd6,_0x50c5da;const {memberID:_0x355e6e,selection:_0x23cf2c}=_0x3aae90[_0x5b8318(0x282)],_0x5a7976=Je(_0x23cf2c),_0x1a2a27=(_0x50c5da=(_0x30ffd6=this['_memberService'][_0x5b8318(0x2a3)](this[_0x5b8318(0x339)],_0x355e6e))==null?void 0x0:_0x30ffd6[_0x5b8318(0x2f9)])!=null?_0x50c5da:'Unknown\x20user',_0x3265aa={'color':this['_colorAssignService'][_0x5b8318(0x437)](_0x355e6e),'name':_0x1a2a27,'ranges':_0x5a7976},_0x303943=this[_0x5b8318(0x264)];_0x303943[_0x5b8318(0x247)](_0x355e6e,_0x3265aa),this['_cursorInfo$'][_0x5b8318(0x26b)](_0x303943);}[_0x5851f7(0x1ff)](_0x967960){const _0x3f8329=_0x5851f7,{memberID:_0x5602ea}=_0x967960[_0x3f8329(0x282)],_0x31afca=this['cursorInfo'];_0x31afca[_0x3f8329(0x278)](_0x5602ea),this[_0x3f8329(0x237)][_0x3f8329(0x26b)](_0x31afca);}['_toggleOnline'](){const _0x31ccea=_0x5851f7;var _0x54c2a4;if(this[_0x31ccea(0x25c)]=!0x0,((_0x54c2a4=this[_0x31ccea(0x2d2)][_0x31ccea(0x390)]())==null?void 0x0:_0x54c2a4['getUnitId']())!==this[_0x31ccea(0x339)])return;const _0x41221a=this[_0x31ccea(0x2ed)][_0x31ccea(0x1f5)](Y[_0x31ccea(0x215)])[_0x31ccea(0x1ec)]();Array['isArray'](_0x41221a)&&_0x41221a[_0x31ccea(0x3ab)]>0x0&&this[_0x31ccea(0x398)](_0x41221a);}[_0x5851f7(0x3f9)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),L(0x3,a[_0x5851f7(0x298)](me)),L(0x4,a[_0x5851f7(0x298)](u['MemberService'])),L(0x5,a[_0x5851f7(0x298)](Ce)),L(0x6,m[_0x5851f7(0x421)]),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x4e05ef,_0x537167,_0x1a8834,_0x60cd08)=>{for(var _0x2f528b=_0x60cd08>0x1?void 0x0:_0x60cd08?st(_0x537167,_0x1a8834):_0x537167,_0x31d483=_0x4e05ef['length']-0x1,_0x2eb20b;_0x31d483>=0x0;_0x31d483--)(_0x2eb20b=_0x4e05ef[_0x31d483])&&(_0x2f528b=_0x2eb20b(_0x2f528b)||_0x2f528b);return _0x2f528b;},w=(_0x50a139,_0x4d1a74)=>(_0x1cab92,_0x45a204)=>_0x4d1a74(_0x1cab92,_0x45a204,_0x50a139);const nt=0x12c,rt=0x64,ot=()=>{let _0x508847=[],_0x1c9347=!0x1;return _0xe8feaa=>{const _0x290ac8=_0x5085;_0x508847[_0x290ac8(0x33a)](_0xe8feaa),_0x1c9347||(_0x1c9347=!0x0,setTimeout(()=>{const _0x1f32a6=_0x290ac8;_0x508847[_0x1f32a6(0x2b0)](_0x13973e=>_0x13973e()),_0x508847=[],_0x1c9347=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x3df8c7,_0x349ab4,_0x39b487,_0x6cd644,_0x5df7f8,_0x1358fd,_0x446e92,_0x2c397d){const _0x5466d1=_0x5851f7;super(),h(this,'_online',!0x1),h(this,_0x5466d1(0x221),!0x1),h(this,_0x5466d1(0x237),new d[(_0x5466d1(0x207))](new Map())),h(this,_0x5466d1(0x2ae),this[_0x5466d1(0x237)][_0x5466d1(0x3c5)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,'roomMembers$',this['_roomMembers$']['pipe'](d['debounceTime'](nt))),h(this,'_updateLocalCursor',a[_0x5466d1(0x418)]((_0x3a2f35,_0x1a4ea3)=>{const _0xbaebb0=_0x5466d1,_0x424f40={'eventID':m[_0xbaebb0(0x2c6)][_0xbaebb0(0x33c)],'data':{'unitID':this['unitID'],'memberID':this[_0xbaebb0(0x373)][_0xbaebb0(0x333)](),'selection':Ee[_0xbaebb0(0x341)](_0x3a2f35,_0x1a4ea3['range'])}};this[_0xbaebb0(0x373)][_0xbaebb0(0x1d6)](_0x424f40,this[_0xbaebb0(0x339)]);},rt)),(this[_0x5466d1(0x339)]=_0x3df8c7,this['_session']=_0x349ab4,this['_injector']=_0x39b487,this[_0x5466d1(0x20a)]=_0x6cd644,this[_0x5466d1(0x397)]=_0x5df7f8,this[_0x5466d1(0x2d2)]=_0x1358fd,this[_0x5466d1(0x1eb)]=_0x446e92,this['_refRangeService']=_0x2c397d);}get[_0x5851f7(0x264)](){const _0x2143cb=_0x5851f7;return this[_0x2143cb(0x237)][_0x2143cb(0x299)]();}get[_0x5851f7(0x382)](){const _0x54522d=_0x5851f7;return this[_0x54522d(0x3d6)][_0x54522d(0x299)]();}[_0x5851f7(0x28f)](){const _0x584e9e=_0x5851f7;super[_0x584e9e(0x28f)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x584e9e(0x42c)](),this[_0x584e9e(0x3d6)][_0x584e9e(0x26b)]([]),this['_roomMembers$'][_0x584e9e(0x42c)]();}[_0x5851f7(0x359)](){const _0x4a7886=_0x5851f7;this[_0x4a7886(0x221)]||(this[_0x4a7886(0x221)]=!0x0,this[_0x4a7886(0x373)][_0x4a7886(0x239)]['pipe'](d[_0x4a7886(0x329)](this[_0x4a7886(0x2f1)]))[_0x4a7886(0x1e4)](_0x5f15fb=>{const _0x18d264=_0x4a7886;_0x5f15fb===u[_0x18d264(0x432)]['ONLINE']?this[_0x18d264(0x327)]():this[_0x18d264(0x3f9)]();}),this[_0x4a7886(0x373)][_0x4a7886(0x3f5)][_0x4a7886(0x3bf)](d[_0x4a7886(0x329)](this[_0x4a7886(0x2f1)]))['subscribe'](_0xe66122=>{const _0x5cf897=_0x4a7886,_0x370970=_0xe66122[_0x5cf897(0x3c4)];_0x370970===m['CollaborationEvent'][_0x5cf897(0x33c)]&&this[_0x5cf897(0x35a)](_0xe66122),_0x370970===m[_0x5cf897(0x2c6)][_0x5cf897(0x274)]&&this[_0x5cf897(0x1ff)](_0xe66122);}),this[_0x4a7886(0x20d)](),this[_0x4a7886(0x21c)](this[_0x4a7886(0x1eb)]['onCommandExecuted'](_0x413560=>{const _0x1659d5=_0x4a7886;if(this[_0x1659d5(0x25c)]&&_0x413560['id']===g[_0x1659d5(0x245)]['id']&&_0x413560[_0x1659d5(0x25d)][_0x1659d5(0x395)]===this[_0x1659d5(0x339)]){const _0x52035b=_0x413560[_0x1659d5(0x25d)];this[_0x1659d5(0x398)](_0x52035b['subUnitId'],_0x52035b[_0x1659d5(0x3e0)][0x0]);}})));}['_onCursorUpdate'](_0x4c2dd4){const _0x319599=_0x5851f7;var _0x203fa5,_0x237b7f;const {memberID:_0x47225f,selection:_0x5e730c}=_0x4c2dd4[_0x319599(0x282)],{sheetName:_0x1327d0,range:_0xbd3cf4}=Ee['deserializeRangeWithSheet'](_0x5e730c),_0xb2c446={'name':(_0x237b7f=(_0x203fa5=this[_0x319599(0x397)]['getMember'](this[_0x319599(0x339)],_0x47225f))==null?void 0x0:_0x203fa5[_0x319599(0x2f9)])!=null?_0x237b7f:_0x319599(0x269),'range':this['_getMergeRange'](_0x1327d0,_0xbd3cf4),'sheetID':_0x1327d0,'color':this[_0x319599(0x20a)]['assignAColorForMemberID'](_0x47225f),'selection':_0x5e730c},_0x583d84=this[_0x319599(0x264)];_0x583d84[_0x319599(0x247)](_0x47225f,_0xb2c446),this[_0x319599(0x237)][_0x319599(0x26b)](_0x583d84);}['_onCursorDelete'](_0x4c5575){const _0xa58a07=_0x5851f7,{memberID:_0x14140d}=_0x4c5575[_0xa58a07(0x282)],_0x3a2951=this[_0xa58a07(0x264)];_0x3a2951[_0xa58a07(0x278)](_0x14140d),this[_0xa58a07(0x237)][_0xa58a07(0x26b)](_0x3a2951);}[_0x5851f7(0x415)](_0x33a0e3,_0x2b5b24){const _0x18c52d=_0x5851f7;var _0x3c6ce0,_0x265663;const _0x1b982d=(_0x265663=(_0x3c6ce0=this[_0x18c52d(0x2d2)]['getUniverSheetInstance'](this[_0x18c52d(0x339)]))==null?void 0x0:_0x3c6ce0['getSheetBySheetId'](_0x33a0e3))==null?void 0x0:_0x265663['getMergeData']();return(_0x1b982d==null?void 0x0:_0x1b982d['find'](_0x4180d7=>a[_0x18c52d(0x423)]['contains'](_0x4180d7,_0x2b5b24)))||_0x2b5b24;}[_0x5851f7(0x20d)](){const _0x4528aa=_0x5851f7,_0x103c05=new a['DisposableCollection'](),_0x35acbd=ot(),_0x3e51a0=()=>{const _0x5c9f5f=_0x5085;_0x103c05[_0x5c9f5f(0x28f)]();const _0x4a7cbc=(_0x20bb05,_0x203aa4,_0x4794bd,_0x15a8c1)=>{const _0x52c0f8=_0x5c9f5f;let _0x50e484=[];switch(_0x20bb05['id']){case g[_0x52c0f8(0x41c)]['DeleteRangeMoveLeftCommandId']:{_0x50e484=g[_0x52c0f8(0x244)](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x42d)]:{_0x50e484=g['handleDeleteRangeMoveUp'](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x2ff)]:{_0x50e484=g[_0x52c0f8(0x2d9)](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)]['InsertRangeMoveDownCommandId']:{_0x50e484=g[_0x52c0f8(0x381)](_0x20bb05,_0x15a8c1);break;}case g['EffectRefRangId'][_0x52c0f8(0x255)]:{_0x50e484=g['handleInsertRangeMoveRight'](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x24e)]:{_0x50e484=g['handleInsertRow'](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x295)]:{_0x50e484=g[_0x52c0f8(0x1e0)](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x39e)]:{_0x50e484=g[_0x52c0f8(0x2d3)](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)]['RemoveRowCommandId']:{_0x50e484=g[_0x52c0f8(0x32a)](_0x20bb05,_0x15a8c1);break;}}const _0x310cff=g[_0x52c0f8(0x3ae)](_0x50e484,_0x15a8c1),_0xdd1476=this['cursorInfo'][_0x52c0f8(0x1f5)](_0x203aa4);if(_0xdd1476&&_0x310cff){const _0x4317c3={..._0xdd1476,'range':_0x310cff};this[_0x52c0f8(0x264)][_0x52c0f8(0x247)](_0x203aa4,_0x4317c3),_0x35acbd(()=>{const _0x1b2173=_0x52c0f8,_0x8109ec=this[_0x1b2173(0x277)][_0x1b2173(0x205)](_0x310cff,_0x282c52=>(_0x8109ec[_0x1b2173(0x28f)](),_0x4a7cbc(_0x282c52,_0x203aa4,_0x4794bd,_0x310cff)));_0x103c05[_0x1b2173(0x388)](_0x8109ec);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5c9f5f(0x2b0)]((_0x5cb6d1,_0x36a245)=>{const _0xcc3d20=_0x5c9f5f,{range:_0x541585,sheetID:_0x196ffe}=_0x5cb6d1,_0x204196=this[_0xcc3d20(0x277)][_0xcc3d20(0x205)](_0x541585,_0x110ff7=>(_0x204196[_0xcc3d20(0x28f)](),_0x4a7cbc(_0x110ff7,_0x36a245,_0x196ffe,_0x541585)));_0x103c05[_0xcc3d20(0x388)](_0x204196);});};this[_0x4528aa(0x21c)](a[_0x4528aa(0x26c)](this[_0x4528aa(0x237)][_0x4528aa(0x1e4)](()=>{_0x3e51a0();})));}[_0x5851f7(0x327)](){const _0x4b8aac=_0x5851f7;var _0x5b239c,_0x15e9d8;if(this[_0x4b8aac(0x25c)]=!0x0,((_0x5b239c=this[_0x4b8aac(0x2d2)][_0x4b8aac(0x390)]())==null?void 0x0:_0x5b239c['getUnitId']())!==this[_0x4b8aac(0x339)])return;const _0x44cb16=(_0x15e9d8=this[_0x4b8aac(0x2ed)][_0x4b8aac(0x1f5)](g['SheetsSelectionsService'])[_0x4b8aac(0x3a9)]())==null?void 0x0:_0x15e9d8[0x0],_0x3d3ba4=this[_0x4b8aac(0x2d2)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x4b8aac(0x2c8)])[_0x4b8aac(0x218)]();_0x44cb16&&_0x3d3ba4&&this['_updateLocalCursor'](_0x3d3ba4[_0x4b8aac(0x2ad)](),_0x44cb16);}[_0x5851f7(0x3f9)](){const _0x451969=_0x5851f7;this[_0x451969(0x25c)]=!0x1;}};Se=it([w(0x2,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),w(0x3,a[_0x5851f7(0x298)](me)),w(0x4,a['Inject'](u[_0x5851f7(0x344)])),w(0x5,a['IUniverInstanceService']),w(0x6,a['ICommandService']),w(0x7,a[_0x5851f7(0x298)](g[_0x5851f7(0x35f)]))],Se);var at=Object[_0x5851f7(0x2c4)],ct=(_0xab9aa2,_0x429c9c,_0x1fec42,_0x156990)=>{for(var _0xeb2ade=_0x156990>0x1?void 0x0:_0x156990?at(_0x429c9c,_0x1fec42):_0x429c9c,_0x5d12eb=_0xab9aa2['length']-0x1,_0xd5993c;_0x5d12eb>=0x0;_0x5d12eb--)(_0xd5993c=_0xab9aa2[_0x5d12eb])&&(_0xeb2ade=_0xd5993c(_0xeb2ade)||_0xeb2ade);return _0xeb2ade;},ie=(_0x30dd6d,_0x2670fe)=>(_0x20b660,_0x55d548)=>_0x2670fe(_0x20b660,_0x55d548,_0x30dd6d);let x=class extends a[_0x5851f7(0x2a9)]{constructor(_0x5db6b5,_0x5102fb,_0x311d87){const _0x528c98=_0x5851f7;super(),h(this,_0x528c98(0x3a7),new Map()),h(this,_0x528c98(0x22a),new d['Subject']()),(this[_0x528c98(0x2d2)]=_0x5db6b5,this[_0x528c98(0x2ed)]=_0x5102fb,this['_collabSessionService']=_0x311d87,this[_0x528c98(0x221)]());}[_0x5851f7(0x28f)](){const _0x51f416=_0x5851f7;super[_0x51f416(0x28f)](),this[_0x51f416(0x22a)]['complete'](),this[_0x51f416(0x3a7)][_0x51f416(0x2b0)](_0x589cad=>_0x589cad[_0x51f416(0x28f)]());}[_0x5851f7(0x33f)](_0x543621){const _0x2d02f0=_0x5851f7;return this[_0x2d02f0(0x3a7)]['has'](_0x543621)?this[_0x2d02f0(0x3a7)][_0x2d02f0(0x1f5)](_0x543621)[_0x2d02f0(0x2ae)]:this['_entityInit$'][_0x2d02f0(0x3bf)](d['filter'](_0x41eb71=>_0x41eb71[_0x2d02f0(0x339)]===_0x543621),d[_0x2d02f0(0x3b1)](_0xdda4c5=>_0xdda4c5[_0x2d02f0(0x2ae)]));}[_0x5851f7(0x221)](){const _0x419652=_0x5851f7;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x419652(0x1c5)][_0x419652(0x2c8)])['pipe'](d[_0x419652(0x329)](this[_0x419652(0x2f1)]))[_0x419652(0x1e4)](async _0x534d96=>{const _0x131da3=_0x419652,_0x27307f=_0x534d96[_0x131da3(0x228)](),_0x47550a=await this['_startSheetCollabCursor'](_0x27307f);this['_entityInit$'][_0x131da3(0x26b)](_0x47550a),this[_0x131da3(0x3a7)][_0x131da3(0x247)](_0x27307f,_0x47550a);}),this['_univerInstanceService'][_0x419652(0x368)](a[_0x419652(0x1c5)][_0x419652(0x411)])[_0x419652(0x3bf)](d['takeUntil'](this[_0x419652(0x2f1)]))[_0x419652(0x3bf)](d[_0x419652(0x332)](_0x50235f=>!_0x50235f[_0x419652(0x228)]()[_0x419652(0x1cb)]('__')))['subscribe'](async _0x42d4b7=>{const _0x5a7fbc=_0x419652,_0x567f19=_0x42d4b7[_0x5a7fbc(0x228)](),_0x55acc7=await this['_startDocCollabCursor'](_0x567f19);this[_0x5a7fbc(0x22a)][_0x5a7fbc(0x26b)](_0x55acc7),this[_0x5a7fbc(0x3a7)][_0x5a7fbc(0x247)](_0x567f19,_0x55acc7);}),d[_0x419652(0x429)](this[_0x419652(0x2d2)]['getTypeOfUnitDisposed$'](a[_0x419652(0x1c5)][_0x419652(0x411)]),this[_0x419652(0x2d2)][_0x419652(0x2b1)](a[_0x419652(0x1c5)]['UNIVER_SHEET']))['pipe'](d[_0x419652(0x329)](this[_0x419652(0x2f1)]))[_0x419652(0x1e4)](_0x22be02=>{const _0x2b25bf=_0x419652,_0x39de2a=_0x22be02[_0x2b25bf(0x228)](),_0x54c380=this['_entities'][_0x2b25bf(0x1f5)](_0x39de2a);_0x54c380&&(_0x54c380[_0x2b25bf(0x28f)](),this[_0x2b25bf(0x3a7)]['delete'](_0x39de2a));});}async['_startSheetCollabCursor'](_0x15a442){const _0x1cb233=_0x5851f7,_0x5b354b=await this[_0x1cb233(0x250)]['requireSession'](_0x15a442),_0x166bdf=this[_0x1cb233(0x2ed)][_0x1cb233(0x3de)](Se,_0x15a442,_0x5b354b);return _0x166bdf['init'](),_0x166bdf;}async[_0x5851f7(0x38f)](_0x2abac5){const _0x566ff3=_0x5851f7,_0x291b69=await this[_0x566ff3(0x250)][_0x566ff3(0x3d7)](_0x2abac5),_0x23aebb=this[_0x566ff3(0x2ed)]['createInstance'](fe,_0x2abac5,_0x291b69);return _0x23aebb[_0x566ff3(0x359)](),_0x23aebb;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x5851f7(0x298)](u[_0x5851f7(0x306)]))],x);function _0x5085(_0x636685,_0x35f267){const _0x1d2141=_0x1d21();return _0x5085=function(_0x5085d0,_0x24a2ba){_0x5085d0=_0x5085d0-0x1c0;let _0xa4004e=_0x1d2141[_0x5085d0];return _0xa4004e;},_0x5085(_0x636685,_0x35f267);}const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x193bb7,_0x1057ce){const _0x4cbd08=_0x5851f7;let {radius:_0x21cc50,width:_0x53b477,height:_0x2bea79}=_0x1057ce;_0x21cc50=_0x21cc50!=null?_0x21cc50:0x0,_0x53b477=_0x53b477!=null?_0x53b477:0x1e,_0x2bea79=_0x2bea79!=null?_0x2bea79:0x1e;let _0x4f7df7=0x0,_0x1bc399=0x0,_0x711310=0x0;_0x4f7df7=_0x1bc399=_0x711310=Math[_0x4cbd08(0x21a)](_0x21cc50,_0x53b477/0x2,_0x2bea79/0x2),_0x193bb7[_0x4cbd08(0x300)](),_0x193bb7[_0x4cbd08(0x3a0)](_0x4f7df7,0x0),_0x193bb7[_0x4cbd08(0x1de)](_0x53b477-_0x1bc399,0x0),_0x193bb7[_0x4cbd08(0x2ac)](_0x53b477-_0x1bc399,_0x1bc399,_0x1bc399,Math['PI']*0x3/0x2,0x0,!0x1),_0x193bb7[_0x4cbd08(0x1de)](_0x53b477,_0x2bea79-_0x711310),_0x193bb7[_0x4cbd08(0x2ac)](_0x53b477-_0x711310,_0x2bea79-_0x711310,_0x711310,0x0,Math['PI']/0x2,!0x1),_0x193bb7[_0x4cbd08(0x1de)](0x0,_0x2bea79),_0x193bb7['lineTo'](0x0,_0x4f7df7),_0x193bb7[_0x4cbd08(0x2ac)](_0x4f7df7,_0x4f7df7,_0x4f7df7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x193bb7[_0x4cbd08(0x1d7)](),_0x1057ce[_0x4cbd08(0x206)]&&(_0x193bb7[_0x4cbd08(0x27b)](),_0x193bb7[_0x4cbd08(0x210)]=_0x1057ce[_0x4cbd08(0x206)],_0x1057ce[_0x4cbd08(0x320)]===_0x4cbd08(0x307)?_0x193bb7[_0x4cbd08(0x206)](_0x4cbd08(0x307)):_0x193bb7[_0x4cbd08(0x206)](),_0x193bb7['restore']());}class ee extends p[_0x5851f7(0x342)]{constructor(_0x3f3597,_0x530ba9){const _0x29c7da=_0x5851f7;super(_0x3f3597,_0x530ba9),h(this,_0x29c7da(0x292)),h(this,_0x29c7da(0x240)),(this[_0x29c7da(0x292)]=_0x530ba9==null?void 0x0:_0x530ba9[_0x29c7da(0x292)],this[_0x29c7da(0x240)]=_0x530ba9==null?void 0x0:_0x530ba9[_0x29c7da(0x240)]);}static[_0x5851f7(0x272)](_0x2b037d,_0x267672){const _0x1ea4a3=_0x5851f7,{text:_0x377af9,color:_0x40af4f}=_0x267672;_0x2b037d[_0x1ea4a3(0x27b)](),_0x2b037d[_0x1ea4a3(0x3f3)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2de743=_0x2b037d[_0x1ea4a3(0x1f1)](_0x377af9)['width'],_0x2fee33=Math[_0x1ea4a3(0x21a)](_0x2de743+0x2*ne,Re);_t(_0x2b037d,{'height':K,'radius':0x4,'width':_0x2fee33,'fill':_0x40af4f}),_0x2b037d[_0x1ea4a3(0x210)]=_0x1ea4a3(0x3b2);const _0x4a8a77=ne,_0xca9c09=K-lt,_0x2abbdc=Re-0x2*ne;if(_0x2de743>_0x2abbdc){let _0x47946b='',_0x80105f=0x0;for(const _0x5cd5e5 of _0x377af9){const _0x325474=_0x2b037d['measureText'](_0x5cd5e5)[_0x1ea4a3(0x42e)];if(_0x80105f+_0x325474<=_0x2abbdc-_0x2b037d[_0x1ea4a3(0x1f1)](_0x1ea4a3(0x347))[_0x1ea4a3(0x42e)])_0x47946b+=_0x5cd5e5,_0x80105f+=_0x325474;else{_0x47946b+=_0x1ea4a3(0x347);break;}}_0x2b037d[_0x1ea4a3(0x3f6)](_0x47946b,_0x4a8a77,_0xca9c09);}else _0x2b037d[_0x1ea4a3(0x3f6)](_0x377af9,_0x4a8a77,_0xca9c09);_0x2b037d[_0x1ea4a3(0x285)]();}[_0x5851f7(0x3c0)](_0x2ced7a){const _0x1b8180=_0x5851f7;ee[_0x1b8180(0x272)](_0x2ced7a,this);}}const re='collab-text-anchor-',ht=_0x5851f7(0x2e9),ut=_0x5851f7(0x399),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x153c8e,_0x14e8ed,_0x3e3971,_0x2a6dc0){const _0x2761f8=_0x5851f7;h(this,'_shapes',[]),h(this,_0x2761f8(0x25b),null),h(this,_0x2761f8(0x2db),null),h(this,_0x2761f8(0x30f),null),h(this,_0x2761f8(0x3f8),null),h(this,_0x2761f8(0x3be),null),(this[_0x2761f8(0x2b8)]=_0x153c8e,this[_0x2761f8(0x372)]=_0x14e8ed,this['_docSkeleton']=_0x3e3971,this[_0x2761f8(0x213)]=_0x2a6dc0,this[_0x2761f8(0x430)]());}set['_hover'](_0x2f061e){const _0x4c6c55=_0x5851f7;_0x2f061e?(this[_0x4c6c55(0x30f)]&&this[_0x4c6c55(0x30f)][_0x4c6c55(0x1e5)](),this['_textBubble']&&this['_textBubble'][_0x4c6c55(0x1f3)]()):(this[_0x4c6c55(0x30f)]&&this[_0x4c6c55(0x30f)][_0x4c6c55(0x1f3)](),this[_0x4c6c55(0x2db)]&&this['_textBubble'][_0x4c6c55(0x1e5)]());}[_0x5851f7(0x28f)](){const _0x2cdf4a=_0x5851f7;for(const _0x1cd13d of this[_0x2cdf4a(0x287)])_0x1cd13d[_0x2cdf4a(0x28f)]();this['_textBubble']&&this[_0x2cdf4a(0x2db)][_0x2cdf4a(0x28f)](),this['_anchorDot']&&this[_0x2cdf4a(0x30f)][_0x2cdf4a(0x28f)](),this[_0x2cdf4a(0x25b)]&&this[_0x2cdf4a(0x25b)][_0x2cdf4a(0x28f)](),this[_0x2cdf4a(0x3be)]&&this[_0x2cdf4a(0x3be)]();}[_0x5851f7(0x430)](){const _0x3e24b6=_0x5851f7;var _0x5ccaa1;const {_docSkeleton:_0x1cfe3d,_document:_0x3c414e}=this,{color:_0x5c1c55,name:_0x5dff9d,ranges:_0x4d03a7}=this['_cursor'],_0x268f2a=_0x3c414e[_0x3e24b6(0x23e)](),{docsLeft:_0x25183d,docsTop:_0x1a4e21}=_0x268f2a,_0x15382d=new b['NodePositionConvertToCursor'](_0x268f2a,_0x1cfe3d);for(const {startOffset:_0x420e9b,endOffset:_0x1171e7,rangeType:_0x6cfed1,segmentId:_0xb4d1,segmentPage:_0x5ddc31,collapsed:_0x2325a2,isActive:_0x3e40ff}of _0x4d03a7){const _0x4068c0=_0x1cfe3d[_0x3e24b6(0x404)](_0x420e9b,!0x0,_0xb4d1,_0x5ddc31);let _0x84adc2=_0x1cfe3d[_0x3e24b6(0x404)](_0x1171e7,!0x0,_0xb4d1,_0x5ddc31);if(_0x84adc2==null&&(_0x84adc2=_0x1cfe3d[_0x3e24b6(0x404)](_0x1171e7-0x1,!0x1,_0xb4d1,_0x5ddc31)),_0x3e40ff){const {contentBoxPointGroup:_0x44fdfa}=_0x15382d[_0x3e24b6(0x201)](_0x84adc2,_0x84adc2);if(_0x44fdfa['length']===0x0)continue;this['_drawAnchor'](_0x5c1c55,_0x44fdfa,_0x25183d,_0x1a4e21,_0x5dff9d),this[_0x3e24b6(0x3be)]=this[_0x3e24b6(0x36d)]();}if(_0x4068c0&&_0x84adc2){if(_0x6cfed1===a[_0x3e24b6(0x345)][_0x3e24b6(0x2de)]){const _0x5535c1=new b[(_0x3e24b6(0x2ec))](_0x268f2a,_0x1cfe3d),{pointGroup:_0x35e41a}=(_0x5ccaa1=_0x5535c1[_0x3e24b6(0x201)](_0x4068c0,_0x84adc2))!=null?_0x5ccaa1:{};if(_0x35e41a==null||_0x35e41a[_0x3e24b6(0x3ab)]===0x0)continue;this[_0x3e24b6(0x2a7)](_0x5c1c55,_0x35e41a,_0x25183d,_0x1a4e21);}else{if(!_0x2325a2){const {borderBoxPointGroup:_0x1e036c}=_0x15382d[_0x3e24b6(0x201)](_0x4068c0,_0x84adc2);if(_0x1e036c[_0x3e24b6(0x3ab)]===0x0)continue;this[_0x3e24b6(0x40c)](_0x5c1c55,_0x1e036c,_0x25183d,_0x1a4e21);}}}}}[_0x5851f7(0x3f7)](_0x1dc4e3,_0x195d12,_0x5318b9,_0x3b78d8,_0x4254ff){const _0x38443c=_0x5851f7,_0x1887ba=this[_0x38443c(0x3e4)](_0x195d12),{left:_0x410b96,top:_0x56dd18,height:_0x6c3bb7}=_0x1887ba,_0x78ed3c=this[_0x38443c(0x41b)](),_0x40cea9=ft/_0x78ed3c,_0x482a1e=new p['Rect'](re+a[_0x38443c(0x24c)][_0x38443c(0x416)](k),{'left':_0x410b96+_0x5318b9-_0x40cea9,'top':_0x56dd18+_0x3b78d8,'height':_0x6c3bb7,'width':dt,'fill':_0x1dc4e3||p[_0x38443c(0x3d5)](a[_0x38443c(0x369)][_0x38443c(0x43d)],0x0),'strokeWidth':_0x40cea9,'stroke':St,'evented':!0x0});this['_anchor']=_0x482a1e,this[_0x38443c(0x372)][_0x38443c(0x337)](_0x482a1e,b['TEXT_RANGE_LAYER_INDEX']);const _0x255225=new p[(_0x38443c(0x2e4))](re+a['Tools'][_0x38443c(0x416)](k),{'left':_0x410b96+_0x5318b9-_0x40cea9,'top':_0x56dd18+_0x3b78d8-oe/0x2,'height':oe,'width':oe,'fill':_0x1dc4e3||p['getColor'](a[_0x38443c(0x369)][_0x38443c(0x43d)],0x0),'strokeWidth':0x0,'stroke':_0x1dc4e3||p[_0x38443c(0x3d5)](a[_0x38443c(0x369)]['black'],0x0),'evented':!0x1});this[_0x38443c(0x30f)]=_0x255225,this[_0x38443c(0x372)][_0x38443c(0x337)](_0x255225,b['TEXT_RANGE_LAYER_INDEX']);const _0x4797b4=new ee(re+a[_0x38443c(0x24c)]['generateRandomId'](k),{'left':_0x410b96+_0x5318b9-_0x40cea9,'top':_0x56dd18+_0x3b78d8-K,'text':_0x4254ff,'color':_0x1dc4e3});this[_0x38443c(0x2db)]=_0x4797b4,this['_scene'][_0x38443c(0x337)](_0x4797b4,b[_0x38443c(0x41a)]),this[_0x38443c(0x35c)]=!0x1;}['_handleHover'](){const _0x5c0aca=_0x5851f7,_0x4c1c48=this[_0x5c0aca(0x25b)][_0x5c0aca(0x26d)][_0x5c0aca(0x259)](()=>{const _0x1a903f=_0x5c0aca;this[_0x1a903f(0x35c)]=!0x0;}),_0x2ee2fa=this['_anchor'][_0x5c0aca(0x360)][_0x5c0aca(0x259)](()=>{const _0x1b5df9=_0x5c0aca;this[_0x1b5df9(0x3f8)]&&clearTimeout(this[_0x1b5df9(0x3f8)]),this[_0x1b5df9(0x3f8)]=setTimeout(()=>{const _0x3a8729=_0x1b5df9;this[_0x3a8729(0x35c)]=!0x1;},0x7d0);});return()=>{const _0x2af610=_0x5c0aca;_0x4c1c48[_0x2af610(0x271)](),_0x2ee2fa[_0x2af610(0x271)]();};}[_0x5851f7(0x40c)](_0x308d1f,_0x3c305e,_0x1ced9f,_0x48c4ca){const _0x33abab=_0x5851f7,_0x5cc4ea=new a[(_0x33abab(0x1e6))](_0x308d1f)[_0x33abab(0x406)](0.2)[_0x33abab(0x1d9)](),_0x4ffbcd=new p[(_0x33abab(0x2ce))](ht+a[_0x33abab(0x24c)][_0x33abab(0x416)](k),{'pointsGroup':_0x3c305e,'fill':_0x5cc4ea||p[_0x33abab(0x3d5)](a['COLORS'][_0x33abab(0x43d)],0.2),'left':_0x1ced9f,'top':_0x48c4ca,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4ffbcd),this['_scene']['addObject'](_0x4ffbcd,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5851f7(0x2a7)](_0x1eef6b,_0x62ead8,_0x1fb5dd,_0x4af2bf){const _0x4c375b=_0x5851f7,_0x11dfd1=new a[(_0x4c375b(0x1e6))](_0x1eef6b)[_0x4c375b(0x406)](0.2)[_0x4c375b(0x1d9)](),_0x27faf7=new p['RegularPolygon'](ut+a[_0x4c375b(0x24c)]['generateRandomId'](k),{'pointsGroup':_0x62ead8,'fill':_0x11dfd1||p[_0x4c375b(0x3d5)](a[_0x4c375b(0x369)]['black'],0.2),'left':_0x1fb5dd,'top':_0x4af2bf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c375b(0x287)][_0x4c375b(0x33a)](_0x27faf7),this['_scene']['addObject'](_0x27faf7,b[_0x4c375b(0x41a)]);}[_0x5851f7(0x3e4)](_0x4927f4){const _0x2999fc=_0x4927f4[0x0],_0x269a3c=_0x2999fc[0x0],_0x1fa01c=_0x2999fc[0x2],{x:_0x3a6b2e,y:_0x7aaa13}=_0x269a3c,{x:_0x3266e4,y:_0x26a564}=_0x1fa01c;return{'left':_0x3a6b2e,'top':_0x7aaa13,'width':_0x3266e4-_0x3a6b2e,'height':_0x26a564-_0x7aaa13};}[_0x5851f7(0x41b)](){const _0x27460a=_0x5851f7,{scaleX:_0x30bdee,scaleY:_0x249cb7}=this[_0x27460a(0x372)][_0x27460a(0x296)]();return Math[_0x27460a(0x243)](_0x30bdee,_0x249cb7);}}var It=Object[_0x5851f7(0x2c4)],vt=(_0x18246c,_0xdc5b4,_0x50feec,_0x5f2d1a)=>{const _0x580cb1=_0x5851f7;for(var _0x35e2c2=_0x5f2d1a>0x1?void 0x0:_0x5f2d1a?It(_0xdc5b4,_0x50feec):_0xdc5b4,_0x2841f7=_0x18246c[_0x580cb1(0x3ab)]-0x1,_0x479a31;_0x2841f7>=0x0;_0x2841f7--)(_0x479a31=_0x18246c[_0x2841f7])&&(_0x35e2c2=_0x479a31(_0x35e2c2)||_0x35e2c2);return _0x35e2c2;},W=(_0x3e4236,_0x4afb67)=>(_0xe76ce7,_0x247735)=>_0x4afb67(_0xe76ce7,_0x247735,_0x3e4236);let Ie=class extends a[_0x5851f7(0x2a9)]{constructor(_0x532723,_0x4137ae,_0x2921f6,_0x4d2f95,_0xe9de59){const _0x9f58c7=_0x5851f7;super(),h(this,_0x9f58c7(0x3d1),[]),h(this,'_cursors',[]),(this['_context']=_0x532723,this[_0x9f58c7(0x3fb)]=_0x4137ae,this[_0x9f58c7(0x2a0)]=_0x2921f6,this[_0x9f58c7(0x1eb)]=_0x4d2f95,this[_0x9f58c7(0x1dd)]=_0xe9de59,this['_init']());}[_0x5851f7(0x221)](){const _0x2c5d15=_0x5851f7,_0x166428=this[_0x2c5d15(0x236)]['unitId'],_0x10315f=this[_0x2c5d15(0x3fb)];this[_0x2c5d15(0x21c)](d[_0x2c5d15(0x367)]([this[_0x2c5d15(0x2a0)][_0x2c5d15(0x33f)](_0x166428),this[_0x2c5d15(0x1dd)][_0x2c5d15(0x433)]])[_0x2c5d15(0x3bf)]($[_0x2c5d15(0x2fb)](([_0x1bc746,_0xba890c])=>({'skeleton':_0x10315f[_0x2c5d15(0x312)](),'cursors':[..._0x1bc746[_0x2c5d15(0x2e7)]()][_0x2c5d15(0x1db)](_0x279a02=>({..._0x279a02,'color':this[_0x2c5d15(0x1dd)]['getColorFromTheme'](_0x279a02['color'])}))})))['subscribe'](_0x5bf7e5=>{const _0x216bb3=_0x2c5d15;if(this[_0x216bb3(0x42b)](),_0x5bf7e5){const {skeleton:_0xa23068,cursors:_0x5552c8}=_0x5bf7e5;this[_0x216bb3(0x202)](_0xa23068,_0x5552c8);}})),this[_0x2c5d15(0x2ab)](),this[_0x2c5d15(0x31e)]();}[_0x5851f7(0x202)](_0xcb40dd,_0xf3958){const _0xd8aeea=_0x5851f7,{scene:_0x541e39,mainComponent:_0x3d6e8b}=this['_context'],_0x332c1e=_0xf3958[_0xd8aeea(0x2fb)](_0x13e992=>new De(_0x13e992,_0x541e39,_0xcb40dd,_0x3d6e8b));this[_0xd8aeea(0x3d1)]=_0x332c1e,this[_0xd8aeea(0x1ee)]=_0xf3958;}[_0x5851f7(0x2c9)](){const _0x705fa1=_0x5851f7;this[_0x705fa1(0x42b)]();const {scene:_0xfa8083,mainComponent:_0x539a3d}=this[_0x705fa1(0x236)],_0x27402e=this[_0x705fa1(0x3fb)][_0x705fa1(0x312)](),_0x3997e8=this['_cursors'][_0x705fa1(0x2fb)](_0x308c1c=>new De(_0x308c1c,_0xfa8083,_0x27402e,_0x539a3d));this[_0x705fa1(0x3d1)]=_0x3997e8;}[_0x5851f7(0x42b)](){const _0x3bf5aa=_0x5851f7;this['_cursorShapes'][_0x3bf5aa(0x2b0)](_0x17318e=>_0x17318e[_0x3bf5aa(0x28f)]()),this['_cursorShapes']=[];}[_0x5851f7(0x31e)](){const _0xc45505=_0x5851f7,_0xbbdecf=[b[_0xc45505(0x1c3)]['id']];this[_0xc45505(0x21c)](this[_0xc45505(0x1eb)][_0xc45505(0x364)](_0x52e5bd=>{const _0x5e6854=_0xc45505;_0xbbdecf[_0x5e6854(0x2ca)](_0x52e5bd['id'])&&_0x52e5bd[_0x5e6854(0x25d)]['unitId']===this[_0x5e6854(0x236)][_0x5e6854(0x395)]&&this[_0x5e6854(0x2c9)]();}));}[_0x5851f7(0x2ab)](){const _0x13fc0e=_0x5851f7;this[_0x13fc0e(0x21c)](a['fromEventSubject'](this['_context'][_0x13fc0e(0x251)][_0x13fc0e(0x28a)])['pipe']($[_0x13fc0e(0x332)](_0x281911=>_0x281911['type']===p[_0x13fc0e(0x414)][_0x13fc0e(0x41e)]),$[_0x13fc0e(0x2be)](0x10))['subscribe'](()=>{const _0x3bc03d=_0x13fc0e;this[_0x3bc03d(0x2c9)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x5851f7(0x2fa)])),W(0x2,a[_0x5851f7(0x298)](x)),W(0x3,a[_0x5851f7(0x1c0)]),W(0x4,a[_0x5851f7(0x298)](a[_0x5851f7(0x331)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x5851f7(0x342)]{constructor(_0x5b093f,_0x4a5acf){const _0x1c3d68=_0x5851f7;super(_0x5b093f,_0x4a5acf),h(this,_0x1c3d68(0x29b)),h(this,'_hovered',!0x1),h(this,_0x1c3d68(0x426)),h(this,_0x1c3d68(0x384),''),h(this,_0x1c3d68(0x3d2),_0x1c3d68(0x366)),h(this,_0x1c3d68(0x39f)),(_0x4a5acf&&this['setShapeProps'](_0x4a5acf),this['onPointerEnter$'][_0x1c3d68(0x259)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x1c3d68(0x2b5)]({'hovered':!0x1})));}[_0x5851f7(0x2b5)](_0x310cfb){const _0x30f34a=_0x5851f7;var _0x54e798,_0x306569,_0x52b20d,_0x2e4dbf,_0x464926,_0x1af6c6;this[_0x30f34a(0x29b)]=(_0x54e798=_0x310cfb[_0x30f34a(0x292)])!=null?_0x54e798:this['_color'],this[_0x30f34a(0x2d1)]=(_0x306569=_0x310cfb[_0x30f34a(0x1fe)])!=null?_0x306569:this['_hovered'],this['_range']=(_0x52b20d=_0x310cfb[_0x30f34a(0x2a4)])!=null?_0x52b20d:this['_range'],this[_0x30f34a(0x384)]=(_0x2e4dbf=_0x310cfb[_0x30f34a(0x2f9)])!=null?_0x2e4dbf:this[_0x30f34a(0x384)],this[_0x30f34a(0x3d2)]=(_0x464926=_0x310cfb['labelPosition'])!=null?_0x464926:this[_0x30f34a(0x3d2)],this['_backgroundColor']=(_0x1af6c6=_0x310cfb[_0x30f34a(0x2b3)])!=null?_0x1af6c6:this[_0x30f34a(0x39f)],this[_0x30f34a(0x2b6)]({'width':_0x310cfb[_0x30f34a(0x42e)],'height':_0x310cfb[_0x30f34a(0x39c)]});}['onMouseMove'](_0x317a74){const _0x30d6c1=_0x5851f7,{row:_0x2abf26,column:_0x2f8660}=_0x317a74;if(_0x2abf26>=this[_0x30d6c1(0x426)][_0x30d6c1(0x1f6)]&&_0x2abf26<=this[_0x30d6c1(0x426)][_0x30d6c1(0x30c)]&&_0x2f8660>=this[_0x30d6c1(0x426)][_0x30d6c1(0x30b)]&&_0x2f8660<=this[_0x30d6c1(0x426)][_0x30d6c1(0x43f)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x30d6c1(0x2b5)]({'hovered':!0x1});}[_0x5851f7(0x3f2)](_0x1f017d){return!0x1;}[_0x5851f7(0x3c0)](_0x1380e6){const _0x3d9764=_0x5851f7;p[_0x3d9764(0x2e4)][_0x3d9764(0x272)](_0x1380e6,{'width':this[_0x3d9764(0x42e)],'height':this[_0x3d9764(0x39c)],'strokeWidth':mt,'stroke':this[_0x3d9764(0x29b)],'evented':!0x1,'fill':this[_0x3d9764(0x39f)]}),this['_hovered']&&(_0x1380e6[_0x3d9764(0x27b)](),_0x1380e6['transform'](0x1,0x0,0x0,0x1,this[_0x3d9764(0x42e)],this['_labelPosition']===_0x3d9764(0x268)?0x0:-0x14),ee['drawWith'](_0x1380e6,{'text':this[_0x3d9764(0x384)],'color':this[_0x3d9764(0x29b)]}),_0x1380e6[_0x3d9764(0x285)]());}}var Ct=Object[_0x5851f7(0x2c4)],pt=(_0x771ea7,_0x540715,_0x2c5d49,_0x244acc)=>{const _0xb85082=_0x5851f7;for(var _0x1d71e4=_0x244acc>0x1?void 0x0:_0x244acc?Ct(_0x540715,_0x2c5d49):_0x540715,_0x577a04=_0x771ea7[_0xb85082(0x3ab)]-0x1,_0x220991;_0x577a04>=0x0;_0x577a04--)(_0x220991=_0x771ea7[_0x577a04])&&(_0x1d71e4=_0x220991(_0x1d71e4)||_0x1d71e4);return _0x1d71e4;},ae=(_0xb88583,_0x1b72ae)=>(_0x372e86,_0x3efd75)=>_0x1b72ae(_0x372e86,_0x3efd75,_0xb88583);const bt=0x1389;let ve=class extends a[_0x5851f7(0x2a9)]{constructor(_0x304193,_0x17e427,_0x1350e2,_0x1cdc0a){const _0x2cea9c=_0x5851f7;super(),h(this,_0x2cea9c(0x1ee),new Set()),h(this,_0x2cea9c(0x1dc),null),(this[_0x2cea9c(0x236)]=_0x304193,this[_0x2cea9c(0x289)]=_0x17e427,this[_0x2cea9c(0x2a0)]=_0x1350e2,this[_0x2cea9c(0x1dd)]=_0x1cdc0a,this[_0x2cea9c(0x221)]());}[_0x5851f7(0x221)](){const _0x3ea306=_0x5851f7;this[_0x3ea306(0x289)][_0x3ea306(0x267)][_0x3ea306(0x3bf)]($['takeUntil'](this[_0x3ea306(0x2f1)]),$[_0x3ea306(0x3b1)](_0x275d1e=>{const _0x5ee506=_0x3ea306;if(_0x275d1e){const _0x565c80=_0x275d1e[_0x5ee506(0x2b7)];return d['combineLatest'](this[_0x5ee506(0x2a0)][_0x5ee506(0x33f)](this[_0x5ee506(0x236)][_0x5ee506(0x395)]),this[_0x5ee506(0x1dd)][_0x5ee506(0x433)])[_0x5ee506(0x3bf)]($[_0x5ee506(0x2fb)](([_0x2c6a54,_0x441e74])=>{const _0x17284d=new Map();return _0x2c6a54['forEach']((_0x1f8f59,_0x555f1d)=>{const _0xf9c619=_0x5085;if(_0x1f8f59[_0xf9c619(0x393)]===_0x565c80){const _0x17a6bb={..._0x1f8f59};_0x17a6bb[_0xf9c619(0x292)]=this[_0xf9c619(0x1dd)]['getColorFromTheme'](_0x1f8f59[_0xf9c619(0x292)]),_0x17284d[_0xf9c619(0x247)](_0x555f1d,_0x17a6bb);}}),{'skeleton':_0x275d1e,'cursors':_0x17284d};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3ea306(0x1e4)](({skeleton:_0x50d86a,cursors:_0x362e1d})=>{const _0x58a03f=_0x3ea306;this[_0x58a03f(0x42b)](),_0x50d86a&&this[_0x58a03f(0x202)](_0x50d86a,_0x362e1d);}),this[_0x3ea306(0x289)][_0x3ea306(0x267)][_0x3ea306(0x1e4)](_0x8c2096=>{const _0x5c498f=_0x3ea306;if(_0x8c2096==null)return;const {skeleton:_0x5f0fbc}=_0x8c2096,{scene:_0x42b6d7}=this[_0x5c498f(0x236)];_0x42b6d7['onPointerMove$'][_0x5c498f(0x259)](a[_0x5c498f(0x418)](_0x591dc2=>{const _0xb0e45=_0x5c498f;var _0x5f1512,_0x579bb4;const {offsetX:_0x5a5993,offsetY:_0x3fcaa5}=_0x591dc2,{x:_0x2fc87d,y:_0x3d8185}=_0x42b6d7[_0xb0e45(0x26f)](p[_0xb0e45(0x25f)][_0xb0e45(0x3a3)]([_0x5a5993,_0x3fcaa5])),{scaleX:_0x480fc4,scaleY:_0x31c79f}=_0x42b6d7[_0xb0e45(0x296)](),_0x3e003c=_0x42b6d7['getViewport'](p[_0xb0e45(0x28e)]['VIEW_MAIN']),_0x38c6f6=_0x42b6d7[_0xb0e45(0x36b)](p[_0xb0e45(0x25f)][_0xb0e45(0x3a3)]([_0x2fc87d,_0x3d8185]),_0x3e003c),_0x60caf4=_0x5f0fbc['getCellPositionByOffset'](_0x5a5993,_0x3fcaa5,_0x480fc4,_0x31c79f,_0x38c6f6);((_0x5f1512=this[_0xb0e45(0x1dc)])==null?void 0x0:_0x5f1512[_0xb0e45(0x1c8)])===_0x60caf4[_0xb0e45(0x1c8)]&&((_0x579bb4=this[_0xb0e45(0x1dc)])==null?void 0x0:_0x579bb4[_0xb0e45(0x1c6)])===_0x60caf4['row']||this[_0xb0e45(0x1ee)][_0xb0e45(0x2b0)](_0x1a2760=>{_0x1a2760['onMouseMove'](_0x60caf4);});},0x64));});}[_0x5851f7(0x202)](_0x44ca6d,_0x547b10){const _0x29f0f6=_0x5851f7;var _0x55904f;const _0x37acc4=(_0x55904f=this[_0x29f0f6(0x289)][_0x29f0f6(0x3a6)]())==null?void 0x0:_0x55904f['skeleton'];if(!_0x37acc4)return;const _0x1a91d2=this['_getSheetObject']();if(!_0x1a91d2)return;this['_cursors']['forEach'](_0x118ffb=>{const _0x1ae34c=_0x29f0f6;_0x118ffb[_0x1ae34c(0x208)]();});const {scene:_0x10c704}=_0x1a91d2,_0x44678a=Et(Array[_0x29f0f6(0x1d0)](_0x547b10[_0x29f0f6(0x2e7)]()))['map'](_0x99ac57=>{const _0x19258c=_0x29f0f6,{color:_0x5b4182,range:_0x276a83,name:_0x50d6c2,selection:_0x487187,sheetID:_0x126265}=_0x99ac57,{startColumn:_0x19e0cb,startRow:_0x246c28,endColumn:_0x4d38aa,endRow:_0xd54135}=_0x276a83,_0x537600=X[_0x19258c(0x262)](_0x246c28,_0x19e0cb,_0x10c704,_0x37acc4),_0x251566=X[_0x19258c(0x262)](_0xd54135,_0x4d38aa,_0x10c704,_0x37acc4),{columnHeaderHeightAndMarginTop:_0x3a0a29}=_0x37acc4,{startX:_0x3858ff,startY:_0x312e2b}=_0x537600,{endX:_0x296242,endY:_0x102ea1}=_0x251566,_0x2fdd0f=_0x296242-_0x3858ff,_0x3f30cf=_0x102ea1-_0x312e2b,_0x5a8321={'labelPosition':_0x312e2b-_0x3a0a29>=K?_0x19258c(0x366):'bottom','sheetID':_0x126265,'range':_0x276a83,'color':_0x5b4182,'name':_0x50d6c2,'selection':_0x487187,'left':_0x3858ff,'top':_0x312e2b,'width':_0x2fdd0f,'height':_0x3f30cf,'evented':!0x1,'zIndex':bt};return new Ae(_0x50d6c2,_0x5a8321);});_0x10c704['addObjects'](_0x44678a,gt),this[_0x29f0f6(0x1ee)]=new Set(_0x44678a);}[_0x5851f7(0x42b)](){const _0x19813c=_0x5851f7;var _0x2e7f43;(_0x2e7f43=this[_0x19813c(0x1ee)])==null||_0x2e7f43[_0x19813c(0x2b0)](_0x551350=>_0x551350['dispose']());}[_0x5851f7(0x258)](){const _0x221aee=_0x5851f7;return X[_0x221aee(0x24d)](this[_0x221aee(0x236)]['unit'],this[_0x221aee(0x236)]);}};ve=pt([ae(0x1,a[_0x5851f7(0x298)](X[_0x5851f7(0x34a)])),ae(0x2,a['Inject'](x)),ae(0x3,a['Inject'](a['ThemeService']))],ve);function Et(_0x588bda){const _0x510c43=_0x5851f7,_0x10cd72=new Map();return _0x588bda[_0x510c43(0x2b0)](_0x5d549c=>{const _0x1ec12a=_0x510c43;if(_0x10cd72['has'](_0x5d549c[_0x1ec12a(0x21e)])){const _0x323934=_0x10cd72[_0x1ec12a(0x1f5)](_0x5d549c[_0x1ec12a(0x21e)]);_0x323934[_0x1ec12a(0x2f9)]+=',\x20'+_0x5d549c[_0x1ec12a(0x2f9)];}else _0x10cd72[_0x1ec12a(0x247)](_0x5d549c[_0x1ec12a(0x21e)],_0x5d549c);}),Array[_0x510c43(0x1d0)](_0x10cd72[_0x510c43(0x2e7)]());}var E=function(){const _0xe59f3=_0x5851f7;return E=Object[_0xe59f3(0x257)]||function(_0x1c525b){const _0x330201=_0xe59f3;for(var _0x2ef80f,_0x26d354=0x1,_0x3c14a9=arguments[_0x330201(0x3ab)];_0x26d354<_0x3c14a9;_0x26d354++){_0x2ef80f=arguments[_0x26d354];for(var _0x265084 in _0x2ef80f)Object[_0x330201(0x22b)][_0x330201(0x37a)][_0x330201(0x1ca)](_0x2ef80f,_0x265084)&&(_0x1c525b[_0x265084]=_0x2ef80f[_0x265084]);}return _0x1c525b;},E[_0xe59f3(0x2f7)](this,arguments);},Tt=function(_0x183091,_0x4b3f67){const _0x344990=_0x5851f7;var _0x14048a={};for(var _0x31c24f in _0x183091)Object[_0x344990(0x22b)]['hasOwnProperty'][_0x344990(0x1ca)](_0x183091,_0x31c24f)&&_0x4b3f67[_0x344990(0x31f)](_0x31c24f)<0x0&&(_0x14048a[_0x31c24f]=_0x183091[_0x31c24f]);if(_0x183091!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x27b7bc=0x0,_0x31c24f=Object['getOwnPropertySymbols'](_0x183091);_0x27b7bc<_0x31c24f[_0x344990(0x3ab)];_0x27b7bc++)_0x4b3f67[_0x344990(0x31f)](_0x31c24f[_0x27b7bc])<0x0&&Object[_0x344990(0x22b)]['propertyIsEnumerable']['call'](_0x183091,_0x31c24f[_0x27b7bc])&&(_0x14048a[_0x31c24f[_0x27b7bc]]=_0x183091[_0x31c24f[_0x27b7bc]]);}return _0x14048a;},pe=M[_0x5851f7(0x1c9)](function(_0x1adcae,_0x546319){const _0x1421b5=_0x5851f7;var _0x3209d3=_0x1adcae['icon'],_0x4a512a=_0x1adcae['id'],_0x447da6=_0x1adcae[_0x1421b5(0x1fb)],_0x59d42a=_0x1adcae[_0x1421b5(0x3d9)],_0x2861b4=Tt(_0x1adcae,[_0x1421b5(0x2da),'id',_0x1421b5(0x1fb),'extend']),_0x4623f5=_0x1421b5(0x226)[_0x1421b5(0x29f)](_0x4a512a,'\x20')['concat'](_0x447da6||'')[_0x1421b5(0x27f)](),_0x609bb5=M[_0x1421b5(0x2f3)]('_'[_0x1421b5(0x29f)](Dt()));return we(_0x3209d3,''[_0x1421b5(0x29f)](_0x4a512a),{'defIds':_0x3209d3[_0x1421b5(0x434)],'idSuffix':_0x609bb5[_0x1421b5(0x2a2)]},E({'ref':_0x546319,'className':_0x4623f5},_0x2861b4),_0x59d42a);});function we(_0x4235b0,_0x4b0a76,_0x5f35ea,_0x528794,_0x15fb08){const _0xdd2454=_0x5851f7;return M[_0xdd2454(0x1e8)](_0x4235b0['tag'],E(E({'key':_0x4b0a76},Ot(_0x4235b0,_0x5f35ea,_0x15fb08)),_0x528794),(Rt(_0x4235b0,_0x5f35ea)['children']||[])[_0xdd2454(0x2fb)](function(_0x31900b,_0x21b84c){const _0x603190=_0xdd2454;return we(_0x31900b,''[_0x603190(0x29f)](_0x4b0a76,'-')['concat'](_0x4235b0[_0x603190(0x400)],'-')[_0x603190(0x29f)](_0x21b84c),_0x5f35ea,void 0x0,_0x15fb08);}));}function Ot(_0x1826b9,_0x5deea2,_0x1b3f2a){const _0x411226=_0x5851f7;var _0x3956e9=E({},_0x1826b9['attrs']);_0x1b3f2a!=null&&_0x1b3f2a[_0x411226(0x241)]&&_0x3956e9[_0x411226(0x206)]===_0x411226(0x241)&&(_0x3956e9[_0x411226(0x206)]=_0x1b3f2a[_0x411226(0x241)]),_0x1826b9[_0x411226(0x400)]==='mask'&&_0x3956e9['id']&&(_0x3956e9['id']=_0x3956e9['id']+_0x5deea2[_0x411226(0x261)]),Object[_0x411226(0x2bc)](_0x3956e9)[_0x411226(0x2b0)](function(_0xe8c4bf){const _0x8e5bf2=_0x411226;var _0x4bc441=_0xe8c4bf[0x0],_0x40688e=_0xe8c4bf[0x1];_0x4bc441===_0x8e5bf2(0x1d2)&&typeof _0x40688e==_0x8e5bf2(0x33d)&&(_0x3956e9[_0x4bc441]=_0x40688e['replace'](/url\(#(.*)\)/,_0x8e5bf2(0x2e8)['concat'](_0x5deea2[_0x8e5bf2(0x261)],')')));});var _0x365e06=_0x5deea2[_0x411226(0x434)];return!_0x365e06||_0x365e06[_0x411226(0x3ab)]===0x0||(_0x1826b9[_0x411226(0x400)]===_0x411226(0x1d1)&&_0x3956e9['xlink:href']&&(_0x3956e9['xlink:href']=_0x3956e9['xlink:href']+_0x5deea2['idSuffix']),Object['entries'](_0x3956e9)[_0x411226(0x2b0)](function(_0x5e59ce){const _0x5011b3=_0x411226;var _0x3567e8=_0x5e59ce[0x0],_0x129595=_0x5e59ce[0x1];typeof _0x129595==_0x5011b3(0x33d)&&(_0x3956e9[_0x3567e8]=_0x129595[_0x5011b3(0x2d8)](/url\(#(.*)\)/,_0x5011b3(0x2e8)['concat'](_0x5deea2[_0x5011b3(0x261)],')')));})),_0x3956e9;}function Rt(_0x538445,_0x4de269){const _0x20d7c4=_0x5851f7;var _0x3803a6,_0x327cdd=_0x4de269['defIds'];return!_0x327cdd||_0x327cdd[_0x20d7c4(0x3ab)]===0x0?_0x538445:_0x538445['tag']==='defs'&&(!((_0x3803a6=_0x538445[_0x20d7c4(0x3cc)])===null||_0x3803a6===void 0x0)&&_0x3803a6[_0x20d7c4(0x3ab)])?E(E({},_0x538445),{'children':_0x538445[_0x20d7c4(0x3cc)][_0x20d7c4(0x2fb)](function(_0x364f63){const _0x3449f6=_0x20d7c4;return typeof _0x364f63['attrs']['id']==_0x3449f6(0x33d)&&_0x327cdd&&_0x327cdd[_0x3449f6(0x31f)](_0x364f63[_0x3449f6(0x363)]['id'])>-0x1?E(E({},_0x364f63),{'attrs':E(E({},_0x364f63['attrs']),{'id':_0x364f63['attrs']['id']+_0x4de269[_0x3449f6(0x261)]})}):_0x364f63;})}):_0x538445;}function Dt(){const _0x2c97b5=_0x5851f7;return Math[_0x2c97b5(0x428)]()['toString'](0x24)[_0x2c97b5(0x375)](0x2,0x8);}pe[_0x5851f7(0x324)]=_0x5851f7(0x200);var Ut={'tag':_0x5851f7(0x1cf),'attrs':{'fill':_0x5851f7(0x246),'viewBox':_0x5851f7(0x2c7),'width':_0x5851f7(0x3db),'height':_0x5851f7(0x3db)},'children':[{'tag':'g','attrs':{'clipPath':_0x5851f7(0x391)},'children':[{'tag':_0x5851f7(0x232),'attrs':{'stroke':_0x5851f7(0x21b),'d':_0x5851f7(0x260),'strokeLinecap':'round','strokeLinejoin':_0x5851f7(0x21f),'strokeWidth':1.2}}]},{'tag':_0x5851f7(0x209),'attrs':{},'children':[{'tag':_0x5851f7(0x3ca),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5851f7(0x232),'attrs':{'fill':_0x5851f7(0x3e1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5851f7(0x273)]},ye=M[_0x5851f7(0x1c9)](function(_0x4b6144,_0x3e7d03){const _0x676f0b=_0x5851f7;return M[_0x676f0b(0x1e8)](pe,Object[_0x676f0b(0x257)]({},_0x4b6144,{'id':_0x676f0b(0x3e6),'ref':_0x3e7d03,'icon':Ut}));});ye[_0x5851f7(0x324)]='OffLineSingle';var Nt={'tag':'svg','attrs':{'fill':_0x5851f7(0x246),'viewBox':'0\x200\x2017\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5851f7(0x350)},'children':[{'tag':_0x5851f7(0x232),'attrs':{'stroke':_0x5851f7(0x21b),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5851f7(0x209),'attrs':{},'children':[{'tag':_0x5851f7(0x3ca),'attrs':{'id':_0x5851f7(0x30d)},'children':[{'tag':_0x5851f7(0x232),'attrs':{'fill':'#fff','d':_0x5851f7(0x3dd),'transform':_0x5851f7(0x3ad)}}]}]}],'defIds':[_0x5851f7(0x30d)]},$e=M[_0x5851f7(0x1c9)](function(_0x5019ce,_0x5df74d){const _0x352104=_0x5851f7;return M[_0x352104(0x1e8)](pe,Object[_0x352104(0x257)]({},_0x5019ce,{'id':'on-line-single','ref':_0x5df74d,'icon':Nt}));});$e[_0x5851f7(0x324)]=_0x5851f7(0x3a2);function Mt(_0x48a632){const _0x429023=_0x5851f7;switch(_0x48a632){case u[_0x429023(0x3ea)][_0x429023(0x35e)]:return _0x429023(0x297);case u[_0x429023(0x3ea)][_0x429023(0x365)]:return _0x429023(0x22f);case u[_0x429023(0x3ea)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x429023(0x3ea)]['NOT_COLLAB']:return _0x429023(0x2bb);case u[_0x429023(0x3ea)][_0x429023(0x2e0)]:case u[_0x429023(0x3ea)][_0x429023(0x238)]:return _0x429023(0x227);case u[_0x429023(0x3ea)][_0x429023(0x40e)]:case u[_0x429023(0x3ea)][_0x429023(0x279)]:return'collabStatus.synced';}}function xe(_0x17a08c){const _0x8d2be1=_0x5851f7,{status$:_0x46396e}=_0x17a08c,_0xd6121=T['useObservable'](_0x46396e,u[_0x8d2be1(0x3ea)]['NOT_COLLAB']),_0x1fb8e0=T[_0x8d2be1(0x2c0)](a[_0x8d2be1(0x229)]),_0x20b55f=T['useDependency'](u[_0x8d2be1(0x306)]),_0x1c0af4=_0xd6121!==u[_0x8d2be1(0x3ea)][_0x8d2be1(0x35e)],_0x30adc2=_0x1fb8e0['t'](Mt(_0xd6121)),_0x49becc=_0x1c0af4?P[_0x8d2be1(0x417)]($e,{}):P['jsx'](ye,{}),_0x4ae26a=M[_0x8d2be1(0x30e)](()=>{const _0x5f3c3d=_0x8d2be1;_0x1c0af4||_0x20b55f[_0x5f3c3d(0x37b)]();},[_0x1c0af4,_0x20b55f]);function _0x4f2f63(){const _0x410d8d=_0x8d2be1;return P[_0x410d8d(0x235)](_0x410d8d(0x231),{'className':_0x410d8d(0x38b),'onClick':_0x4ae26a,'children':[P[_0x410d8d(0x417)]('div',{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',_0x1c0af4?_0x410d8d(0x3ee):_0x410d8d(0x343)),'children':_0x49becc}),P[_0x410d8d(0x417)](_0x410d8d(0x231),{'className':_0x410d8d(0x383),'children':_0x30adc2})]});}return _0x1c0af4?_0x4f2f63():P[_0x8d2be1(0x417)](D[_0x8d2be1(0x1c1)],{'title':_0x1fb8e0['t'](_0x8d2be1(0x37d)),'children':_0x4f2f63()});}var Lt=Object[_0x5851f7(0x2c4)],Pt=(_0x18dde3,_0x329658,_0x462bd2,_0x1e919e)=>{for(var _0x28f239=_0x1e919e>0x1?void 0x0:_0x1e919e?Lt(_0x329658,_0x462bd2):_0x329658,_0x4ba5be=_0x18dde3['length']-0x1,_0x35c589;_0x4ba5be>=0x0;_0x4ba5be--)(_0x35c589=_0x18dde3[_0x4ba5be])&&(_0x28f239=_0x35c589(_0x28f239)||_0x28f239);return _0x28f239;},V=(_0x353645,_0x574850)=>(_0x445823,_0x34d6b4)=>_0x574850(_0x445823,_0x34d6b4,_0x353645);exports[_0x5851f7(0x23b)]=class extends a[_0x5851f7(0x31b)]{constructor(_0x355147,_0x5aa85b,_0x334587,_0x9a2266){const _0x4d8da1=_0x5851f7;super(),h(this,_0x4d8da1(0x2af),new d['BehaviorSubject'](u[_0x4d8da1(0x3ea)]['NOT_COLLAB'])),(this[_0x4d8da1(0x2d2)]=_0x355147,this[_0x4d8da1(0x2ed)]=_0x5aa85b,this['_collaborationController']=_0x334587,this['_uiPartsService']=_0x9a2266,this[_0x4d8da1(0x3a1)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x387926=_0x5851f7;this['disposeWithMe'](this[_0x387926(0x2d2)][_0x387926(0x266)][_0x387926(0x3bf)](d[_0x387926(0x3b1)](()=>{const _0x493456=_0x387926,_0x271366=this[_0x493456(0x2d2)][_0x493456(0x390)]();return _0x271366?this[_0x493456(0x3dc)]['getCollabEntity$'](_0x271366['getUnitId']()):d['of'](null);}),d[_0x387926(0x3b1)](_0x4b88be=>_0x4b88be?_0x4b88be['status$']:d['of'](u[_0x387926(0x3ea)][_0x387926(0x2dc)])))[_0x387926(0x1e4)](_0x2bd987=>{const _0x59f944=_0x387926;this[_0x59f944(0x2af)]['next'](_0x2bd987);}));}[_0x5851f7(0x3a1)](){const _0x1e5170=_0x5851f7;this[_0x1e5170(0x21c)](this['_uiPartsService'][_0x1e5170(0x27a)](T['BuiltInUIPart'][_0x1e5170(0x419)],()=>T[_0x1e5170(0x1f0)](At({'status$':this[_0x1e5170(0x2af)]['asObservable']()}),this[_0x1e5170(0x2ed)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),V(0x2,a[_0x5851f7(0x298)](u[_0x5851f7(0x3c2)])),V(0x3,T[_0x5851f7(0x338)])],exports[_0x5851f7(0x23b)]);function At(_0x3cf9f4){const {status$:_0x5f3855}=_0x3cf9f4;return function(){const _0x394a11=_0x5085;return P[_0x394a11(0x417)](xe,{'status$':_0x5f3855});};}var wt=Object[_0x5851f7(0x2c4)],yt=(_0x2736b7,_0x3d522a,_0x556627,_0x29a192)=>{const _0x818f1d=_0x5851f7;for(var _0x46d424=_0x29a192>0x1?void 0x0:_0x29a192?wt(_0x3d522a,_0x556627):_0x3d522a,_0x37d607=_0x2736b7[_0x818f1d(0x3ab)]-0x1,_0x3ca0c2;_0x37d607>=0x0;_0x37d607--)(_0x3ca0c2=_0x2736b7[_0x37d607])&&(_0x46d424=_0x3ca0c2(_0x46d424)||_0x46d424);return _0x46d424;},y=(_0x8df44b,_0x1950e7)=>(_0x304eeb,_0x89a495)=>_0x1950e7(_0x304eeb,_0x89a495,_0x8df44b);let q=class extends a[_0x5851f7(0x31b)]{constructor(_0x22bfc6,_0x36c960,_0x40b922,_0x5938d2,_0x497e59,_0x20e2f4){const _0x463f28=_0x5851f7;super(),this['_beforeCloseService']=_0x22bfc6,this[_0x463f28(0x2d0)]=_0x36c960,this[_0x463f28(0x370)]=_0x40b922,this[_0x463f28(0x2f6)]=_0x5938d2,this[_0x463f28(0x34d)]=_0x497e59,this[_0x463f28(0x220)]=_0x20e2f4,this[_0x463f28(0x23d)](),this[_0x463f28(0x424)]();}[_0x5851f7(0x23d)](){const _0x2abfe1=_0x5851f7;this[_0x2abfe1(0x21c)](this['_beforeCloseService'][_0x2abfe1(0x2d4)](()=>{const _0x15b6e2=_0x2abfe1;if(this['_localCacheService']['saveTaskMap'][_0x15b6e2(0x3ac)])return this[_0x15b6e2(0x220)]['t'](_0x15b6e2(0x36f));}));}[_0x5851f7(0x424)](){const _0x375fcd=_0x5851f7;this['disposeWithMe'](this[_0x375fcd(0x370)][_0x375fcd(0x3f5)][_0x375fcd(0x1e4)](_0x28404c=>{const _0x4046cd=_0x375fcd;_0x28404c['id']===u[_0x4046cd(0x3eb)][_0x4046cd(0x40f)]&&this['_messageService'][_0x4046cd(0x1f3)]({'type':D[_0x4046cd(0x1e7)][_0x4046cd(0x24a)],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x348))}),_0x28404c['id']===u[_0x4046cd(0x3eb)][_0x4046cd(0x412)]&&this[_0x4046cd(0x2f6)][_0x4046cd(0x1f3)]({'type':D['MessageType']['Warning'],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x420))}),_0x28404c['id']===u[_0x4046cd(0x3eb)]['PERMISSION_DENIED']&&this[_0x4046cd(0x34d)][_0x4046cd(0x1f3)]({'title':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x3cf)),'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x409)),'type':_0x4046cd(0x31c),'duration':0x0}),_0x28404c['id']===u['CollaborationUIEventId'][_0x4046cd(0x365)]&&this['_messageService'][_0x4046cd(0x1f3)]({'type':D[_0x4046cd(0x1e7)][_0x4046cd(0x3e3)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x28404c['data']+')'}),_0x28404c['id']===u[_0x4046cd(0x3eb)]['JOIN_ROOM_FAILED']&&this[_0x4046cd(0x2f6)]['show']({'type':D[_0x4046cd(0x1e7)][_0x4046cd(0x24a)],'content':this[_0x4046cd(0x220)]['t'](_0x28404c[_0x4046cd(0x282)]||'')}),_0x28404c['id']===u[_0x4046cd(0x3eb)][_0x4046cd(0x20f)]&&this[_0x4046cd(0x2f6)][_0x4046cd(0x1f3)]({'type':D[_0x4046cd(0x1e7)]['Warning'],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x3ed))}),_0x28404c['id']===u['CollaborationUIEventId'][_0x4046cd(0x248)]&&this[_0x4046cd(0x2f6)][_0x4046cd(0x1f3)]({'type':D['MessageType']['Error'],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x294))}),_0x28404c['id']===u[_0x4046cd(0x3eb)][_0x4046cd(0x358)]&&this['_messageService'][_0x4046cd(0x1f3)]({'type':D[_0x4046cd(0x1e7)][_0x4046cd(0x3e3)],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x389))});}));}};q=yt([y(0x0,T[_0x5851f7(0x335)]),y(0x1,u[_0x5851f7(0x1da)]),y(0x2,a[_0x5851f7(0x298)](u[_0x5851f7(0x408)])),y(0x3,T[_0x5851f7(0x34f)]),y(0x4,T['INotificationService']),y(0x5,a['Inject'](a['LocaleService']))],q);const $t=_0x5851f7(0x41d),Ue={},be=a[_0x5851f7(0x1f7)]('uni.network.url-service');var xt=Object[_0x5851f7(0x2c4)],jt=(_0x492295,_0x19e44f,_0x3f06ee,_0x3edae5)=>{const _0x41be34=_0x5851f7;for(var _0x5e9c8c=_0x3edae5>0x1?void 0x0:_0x3edae5?xt(_0x19e44f,_0x3f06ee):_0x19e44f,_0x5471b4=_0x492295[_0x41be34(0x3ab)]-0x1,_0x2818a9;_0x5471b4>=0x0;_0x5471b4--)(_0x2818a9=_0x492295[_0x5471b4])&&(_0x5e9c8c=_0x2818a9(_0x5e9c8c)||_0x5e9c8c);return _0x5e9c8c;},H=(_0x4ea07f,_0x18c9b0)=>(_0x20c006,_0x27436c)=>_0x18c9b0(_0x20c006,_0x27436c,_0x4ea07f);exports['CollaborationDataLoaderController']=class extends a[_0x5851f7(0x2a9)]{constructor(_0x4c4f2a,_0x2fbcec,_0x34a55f,_0x2124fb,_0x44ea5c){const _0x49fcef=_0x5851f7;super(),this[_0x49fcef(0x286)]=_0x4c4f2a,this[_0x49fcef(0x302)]=_0x2fbcec,this[_0x49fcef(0x1eb)]=_0x34a55f,this['_dataLoaderService']=_0x2124fb,_0x44ea5c?_0x44ea5c==null||_0x44ea5c['whenReady']()[_0x49fcef(0x354)](()=>this['_init']()):(this[_0x49fcef(0x302)][_0x49fcef(0x2fe)](_0x49fcef(0x36e),_0x49fcef(0x32e)),this[_0x49fcef(0x221)]());}async['_init'](){const _0x2afc86=_0x5851f7,_0x16cef7=this['_urlService'][_0x2afc86(0x318)](_0x2afc86(0x212)),_0x53d85f=this[_0x2afc86(0x286)][_0x2afc86(0x318)](_0x2afc86(0x1d4)),_0x1604a9=this[_0x2afc86(0x286)][_0x2afc86(0x318)](_0x2afc86(0x374));if(!_0x16cef7||!_0x53d85f){this[_0x2afc86(0x302)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1580a8=await this[_0x2afc86(0x39b)]['loadUnit'](_0x16cef7,Number(_0x53d85f),_0x1604a9);_0x1580a8&&_0x1580a8 instanceof a[_0x2afc86(0x27d)]&&this[_0x2afc86(0x334)](_0x1580a8);}async[_0x5851f7(0x334)](_0x45a7b1){const _0x490ea7=_0x5851f7;await this[_0x490ea7(0x427)](_0x45a7b1),_0x45a7b1['activeSheet$'][_0x490ea7(0x3bf)](d[_0x490ea7(0x329)](this['dispose$']))[_0x490ea7(0x1e4)](_0x3fd766=>{const _0x416ca1=_0x490ea7;_0x3fd766&&this[_0x416ca1(0x26a)](_0x3fd766);}),this['_urlService'][_0x490ea7(0x252)][_0x490ea7(0x3bf)](d[_0x490ea7(0x329)](this['dispose$']))[_0x490ea7(0x1e4)](()=>this['_updateSubUnitFromURLParams'](_0x45a7b1));}[_0x5851f7(0x26a)](_0x5826a3,_0x10a3be=!0x1){const _0x1ef3f2=_0x5851f7,_0x332bbb=this['_urlService'][_0x1ef3f2(0x318)](_0x1ef3f2(0x374));_0x5826a3[_0x1ef3f2(0x2ad)]()!==_0x332bbb&&this[_0x1ef3f2(0x286)][_0x1ef3f2(0x256)](_0x1ef3f2(0x374),_0x5826a3['getSheetId'](),_0x10a3be);}async[_0x5851f7(0x427)](_0x17c2c1){const _0x4264a7=_0x5851f7;var _0x403379;const _0xeeff97=this['_urlService'][_0x4264a7(0x318)](_0x4264a7(0x374));if(!_0xeeff97||!_0x17c2c1[_0x4264a7(0x32b)](_0xeeff97)){const _0x171275=_0x17c2c1[_0x4264a7(0x23a)]()[0x0],_0x1b0815=_0x17c2c1['getSheetBySheetId'](_0x171275);if(!_0x1b0815)return;this['_updateURLWithCurrentState'](_0x1b0815,!0x0),await this[_0x4264a7(0x1eb)][_0x4264a7(0x217)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x17c2c1[_0x4264a7(0x228)](),'subUnitId':_0x171275});return;}((_0x403379=_0x17c2c1[_0x4264a7(0x218)]())==null?void 0x0:_0x403379[_0x4264a7(0x2ad)]())!==_0xeeff97&&await this['_commandService'][_0x4264a7(0x217)](g[_0x4264a7(0x253)]['id'],{'unitId':_0x17c2c1[_0x4264a7(0x228)](),'subUnitId':_0xeeff97});}},exports[_0x5851f7(0x21d)]=jt([H(0x0,be),H(0x1,a[_0x5851f7(0x435)]),H(0x2,a[_0x5851f7(0x1c0)]),H(0x3,a[_0x5851f7(0x298)](u[_0x5851f7(0x405)])),H(0x4,a['Optional'](Ke[_0x5851f7(0x32f)]))],exports[_0x5851f7(0x21d)]);var Bt=Object[_0x5851f7(0x2c4)],kt=(_0x2dd339,_0x25b87c,_0x314022,_0x544224)=>{for(var _0x2e648c=_0x544224>0x1?void 0x0:_0x544224?Bt(_0x25b87c,_0x314022):_0x25b87c,_0x24f05b=_0x2dd339['length']-0x1,_0x2dbc19;_0x24f05b>=0x0;_0x24f05b--)(_0x2dbc19=_0x2dd339[_0x24f05b])&&(_0x2e648c=_0x2dbc19(_0x2e648c)||_0x2e648c);return _0x2e648c;},ce=(_0x3c74ff,_0x91fb8b)=>(_0x588a29,_0x51ef35)=>_0x91fb8b(_0x588a29,_0x51ef35,_0x3c74ff);let z=class{constructor(_0x5583ce,_0xf6666,_0x4cf514){const _0x1d0da8=_0x5851f7;this[_0x1d0da8(0x2ed)]=_0x5583ce,this[_0x1d0da8(0x42a)]=_0xf6666,this[_0x1d0da8(0x2b9)]=_0x4cf514;}[_0x5851f7(0x35b)](_0x5844bd){const _0x2a7c7d=_0x5851f7;this[_0x2a7c7d(0x225)](_0x5844bd),this[_0x2a7c7d(0x1fc)](_0x5844bd);}[_0x5851f7(0x1c2)](_0x10912e){const _0xb83c1b=_0x5851f7,{unitID:_0x37b559}=_0x10912e,_0x37ba53=this[_0xb83c1b(0x2b9)][_0xb83c1b(0x3b6)](_0x37b559)[_0xb83c1b(0x3b8)](b[_0xb83c1b(0x3ef)]),{redoCache:_0x443e5f}=_0x37ba53[_0xb83c1b(0x3c7)]();if(_0x443e5f[_0xb83c1b(0x3ab)]===0x0)return _0x10912e;let _0x547918=a[_0xb83c1b(0x24c)][_0xb83c1b(0x219)](_0x10912e[_0xb83c1b(0x25a)][0x0]);for(let _0x3c3cda=0x0;_0x3c3cda<_0x443e5f[_0xb83c1b(0x3ab)];_0x3c3cda++){const _0xb6a61b={'id':_0xb83c1b(0x263),'params':{..._0x443e5f[_0x3c3cda]}},_0x208475=this['_transformService'][_0xb83c1b(0x2a1)](_0x547918,_0xb6a61b,!0x1);if(m[_0xb83c1b(0x28b)](_0x208475))throw _0x208475[_0xb83c1b(0x31c)];_0x547918=_0x208475[_0xb83c1b(0x23c)];}return{...a[_0xb83c1b(0x24c)]['deepClone'](_0x10912e),'mutations':[_0x547918]};}[_0x5851f7(0x225)](_0x2f4b65){const _0x495109=_0x5851f7,{unitID:_0x299e84}=_0x2f4b65,_0x2f5108=this[_0x495109(0x2b9)][_0x495109(0x3b6)](_0x299e84)[_0x495109(0x3b8)](b[_0x495109(0x3ef)]),{undoCache:_0x3990ed,redoCache:_0x360d8d}=_0x2f5108[_0x495109(0x3c7)]();if(_0x3990ed[_0x495109(0x3ab)]===0x0||_0x360d8d[_0x495109(0x3ab)]===0x0)return;const _0x2bf0d2=[],_0x3acda6=[];let _0x289bad=a[_0x495109(0x24c)]['deepClone'](_0x2f4b65[_0x495109(0x25a)][0x0]),_0x520a53=a['Tools'][_0x495109(0x219)](_0x2f4b65[_0x495109(0x25a)][0x0]);for(let _0x330d16=_0x3990ed[_0x495109(0x3ab)]-0x1;_0x330d16>=0x0;_0x330d16--){const _0x1c8b8b={'id':'doc.mutation.rich-text-editing','params':{..._0x3990ed[_0x330d16]}},_0x55494a={'id':'doc.mutation.rich-text-editing','params':{..._0x360d8d[_0x330d16]}},_0xe5348d=this[_0x495109(0x42a)][_0x495109(0x2a1)](_0x289bad,_0x1c8b8b,!0x1),_0x220f9e=this['_transformService'][_0x495109(0x2a1)](_0x520a53,_0x55494a,!0x1);if(m[_0x495109(0x28b)](_0xe5348d))throw _0xe5348d[_0x495109(0x31c)];if(m[_0x495109(0x28b)](_0x220f9e))throw _0x220f9e[_0x495109(0x31c)];_0x2bf0d2[_0x495109(0x323)](_0xe5348d[_0x495109(0x40b)][_0x495109(0x25d)]),_0x3acda6[_0x495109(0x323)](_0x220f9e[_0x495109(0x40b)][_0x495109(0x25d)]),_0x289bad=_0xe5348d[_0x495109(0x23c)],_0x520a53=_0x220f9e['m1Prime'];}_0x2f5108['setUndoRedoMutationParamsCache']({'undoCache':_0x2bf0d2,'redoCache':_0x3acda6});}['_transformPreviousActiveRange'](_0xdbd3c3){const _0x2b3efe=_0x5851f7,{unitID:_0x3c7a9b}=_0xdbd3c3,_0x6db75a=this[_0x2b3efe(0x2b9)][_0x2b3efe(0x3b6)](_0x3c7a9b)[_0x2b3efe(0x3b8)](b['DocIMEInputManagerService']),_0x4e82fe=_0x6db75a[_0x2b3efe(0x29a)]();if(_0x4e82fe==null)return;const _0x1354af=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xdbd3c3[_0x2b3efe(0x339)],'actions':null,'textRanges':[_0x4e82fe]}}],_0x4c544c=this['_transformService'][_0x2b3efe(0x24f)](_0xdbd3c3,_0x1354af);if(!m[_0x2b3efe(0x355)](_0x4c544c))throw _0x4c544c[_0x2b3efe(0x31c)];const _0x109d1e=_0x4c544c[_0x2b3efe(0x40b)][0x0][_0x2b3efe(0x25d)][_0x2b3efe(0x30a)];Array[_0x2b3efe(0x2d5)](_0x109d1e)&&_0x109d1e[_0x2b3efe(0x3ab)]&&_0x6db75a[_0x2b3efe(0x1e3)](_0x109d1e[0x0]);}};z=kt([ce(0x0,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),ce(0x1,m[_0x5851f7(0x421)]),ce(0x2,p[_0x5851f7(0x3ce)])],z);var Ht=Object[_0x5851f7(0x2c4)],Ft=(_0x125afe,_0x5ae59a,_0x2d5697,_0x8cf8af)=>{const _0x4ec2b1=_0x5851f7;for(var _0x585970=_0x8cf8af>0x1?void 0x0:_0x8cf8af?Ht(_0x5ae59a,_0x2d5697):_0x5ae59a,_0x3d985a=_0x125afe[_0x4ec2b1(0x3ab)]-0x1,_0xa6a687;_0x3d985a>=0x0;_0x3d985a--)(_0xa6a687=_0x125afe[_0x3d985a])&&(_0x585970=_0xa6a687(_0x585970)||_0x585970);return _0x585970;},le=(_0xe17b54,_0x1b5a93)=>(_0x463623,_0x461087)=>_0x1b5a93(_0x463623,_0x461087,_0xe17b54);let J=class{constructor(_0x115177,_0x378c48,_0x1f9b6d){const _0x368549=_0x5851f7;this[_0x368549(0x2ed)]=_0x115177,this[_0x368549(0x42a)]=_0x378c48,this['_docStateChangeManagerService']=_0x1f9b6d;}[_0x5851f7(0x3d4)](_0x565596){this['_transformHistoryAndStateStack'](_0x565596);}[_0x5851f7(0x1c2)](_0x2edbee){const _0x4d3984=_0x5851f7,{unitID:_0x414d60}=_0x2edbee,{collaboration:_0x59cc31}=this[_0x4d3984(0x3c1)][_0x4d3984(0x379)](_0x414d60);if(_0x59cc31[_0x4d3984(0x3ab)]===0x0)return _0x2edbee;let _0x526eb7=a[_0x4d3984(0x24c)]['deepClone'](_0x2edbee[_0x4d3984(0x25a)][0x0]);for(let _0x47397b=0x0;_0x47397b<_0x59cc31[_0x4d3984(0x3ab)];_0x47397b++){const _0x550175={'id':_0x4d3984(0x263),'params':{'unitId':_0x59cc31[_0x47397b][_0x4d3984(0x395)],..._0x59cc31[_0x47397b][_0x4d3984(0x3fe)]}},_0x560e93=this[_0x4d3984(0x42a)][_0x4d3984(0x2a1)](_0x526eb7,_0x550175,!0x1);if(m['isTransformMutationFailure'](_0x560e93))throw _0x560e93['error'];_0x526eb7=_0x560e93['m1Prime'];}return{...a[_0x4d3984(0x24c)][_0x4d3984(0x219)](_0x2edbee),'mutations':[_0x526eb7]};}[_0x5851f7(0x403)](_0xbff782){const _0x329854=_0x5851f7,{unitID:_0x4e205a}=_0xbff782,{history:_0x542d67,collaboration:_0x3508e9}=this['_docStateChangeManagerService'][_0x329854(0x379)](_0x4e205a);if(_0x542d67[_0x329854(0x3ab)]===0x0&&_0x3508e9[_0x329854(0x3ab)]===0x0)return;const _0x29d53d=[],_0xf38dbe=[];let _0x477dce=a[_0x329854(0x24c)]['deepClone'](_0xbff782['mutations'][0x0]),_0x43213d=a['Tools'][_0x329854(0x219)](_0xbff782['mutations'][0x0]);for(let _0x1d61ed=_0x542d67[_0x329854(0x3ab)]-0x1;_0x1d61ed>=0x0;_0x1d61ed--){const _0x459b67={'id':_0x329854(0x263),'params':{'unitId':_0x542d67[_0x1d61ed][_0x329854(0x395)],..._0x542d67[_0x1d61ed][_0x329854(0x1cc)]}},_0x544b99={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x542d67[_0x1d61ed][_0x329854(0x395)],..._0x542d67[_0x1d61ed][_0x329854(0x3fe)]}},_0x542a3a=this['_transformService'][_0x329854(0x2a1)](_0x477dce,_0x459b67,!0x1),_0x29c877=this[_0x329854(0x42a)]['transformMutation'](_0x43213d,_0x544b99,!0x1);if(m[_0x329854(0x28b)](_0x542a3a))throw _0x542a3a[_0x329854(0x31c)];if(m[_0x329854(0x28b)](_0x29c877))throw _0x29c877[_0x329854(0x31c)];_0x29d53d[_0x329854(0x323)]({..._0x542d67[_0x1d61ed],'undoState':_0x542a3a['m2Prime'][_0x329854(0x25d)],'redoState':_0x29c877[_0x329854(0x40b)]['params']}),_0x477dce=_0x542a3a[_0x329854(0x23c)],_0x43213d=_0x29c877[_0x329854(0x23c)];}_0x477dce=a[_0x329854(0x24c)][_0x329854(0x219)](_0xbff782[_0x329854(0x25a)][0x0]),_0x43213d=a[_0x329854(0x24c)][_0x329854(0x219)](_0xbff782['mutations'][0x0]);for(let _0x1d3d32=_0x3508e9['length']-0x1;_0x1d3d32>=0x0;_0x1d3d32--){const _0x4c4187={'id':_0x329854(0x263),'params':{'unitId':_0x3508e9[_0x1d3d32]['unitId'],..._0x3508e9[_0x1d3d32][_0x329854(0x1cc)]}},_0x43595f={'id':_0x329854(0x263),'params':{'unitId':_0x3508e9[_0x1d3d32][_0x329854(0x395)],..._0x3508e9[_0x1d3d32][_0x329854(0x3fe)]}},_0x4ece89=this[_0x329854(0x42a)]['transformMutation'](_0x477dce,_0x4c4187,!0x1),_0x2e437a=this[_0x329854(0x42a)]['transformMutation'](_0x43213d,_0x43595f,!0x1);if(m[_0x329854(0x28b)](_0x4ece89))throw _0x4ece89[_0x329854(0x31c)];if(m[_0x329854(0x28b)](_0x2e437a))throw _0x2e437a[_0x329854(0x31c)];_0xf38dbe[_0x329854(0x323)]({..._0x3508e9[_0x1d3d32],'undoState':_0x4ece89[_0x329854(0x40b)][_0x329854(0x25d)],'redoState':_0x2e437a[_0x329854(0x40b)][_0x329854(0x25d)]}),_0x477dce=_0x4ece89[_0x329854(0x23c)],_0x43213d=_0x2e437a[_0x329854(0x23c)];}this[_0x329854(0x3c1)]['setStateCache'](_0x4e205a,{'history':_0x29d53d,'collaboration':_0xf38dbe});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x5851f7(0x421)]),le(0x2,a[_0x5851f7(0x298)](b[_0x5851f7(0x36c)]))],J);var Yt=Object[_0x5851f7(0x2c4)],Wt=(_0x294cfb,_0x442a49,_0x436266,_0x197902)=>{for(var _0x1f4ac5=_0x197902>0x1?void 0x0:_0x197902?Yt(_0x442a49,_0x436266):_0x442a49,_0x449a02=_0x294cfb['length']-0x1,_0x30ad2d;_0x449a02>=0x0;_0x449a02--)(_0x30ad2d=_0x294cfb[_0x449a02])&&(_0x1f4ac5=_0x30ad2d(_0x1f4ac5)||_0x1f4ac5);return _0x1f4ac5;},Ne=(_0x133027,_0x1f84df)=>(_0x1333f8,_0x3200a9)=>_0x1f84df(_0x1333f8,_0x3200a9,_0x133027);let Z=class{constructor(_0x2fc4f2,_0xf65b1b){const _0x491446=_0x5851f7;this['_injector']=_0x2fc4f2,this[_0x491446(0x42a)]=_0xf65b1b;}[_0x5851f7(0x2cd)](_0x2b38b2){const _0x3cb218=_0x5851f7;var _0x566d7b;const _0x403bae=this[_0x3cb218(0x2ed)]['get'](Y[_0x3cb218(0x215)]),_0x149dbd=(_0x566d7b=_0x403bae[_0x3cb218(0x1ec)]())!=null?_0x566d7b:[];if(_0x149dbd[_0x3cb218(0x3ab)]===0x0)return;const _0x20b3b2=_0x2b38b2[_0x3cb218(0x339)],_0x3c0bda=[{'id':_0x3cb218(0x263),'params':{'unitId':_0x20b3b2,'actions':null,'textRanges':_0x149dbd}}],_0x37baf2=this[_0x3cb218(0x42a)][_0x3cb218(0x24f)](_0x2b38b2,_0x3c0bda);if(!m[_0x3cb218(0x355)](_0x37baf2))throw _0x37baf2[_0x3cb218(0x31c)];const _0x1f25fa=_0x37baf2[_0x3cb218(0x40b)][0x0]['params'][_0x3cb218(0x30a)];Array[_0x3cb218(0x2d5)](_0x1f25fa)&&_0x1f25fa[_0x3cb218(0x3ab)]&&_0x403bae[_0x3cb218(0x224)](_0x1f25fa,{'unitId':_0x20b3b2,'subUnitId':_0x20b3b2},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x5851f7(0x3d3)])),Ne(0x1,m[_0x5851f7(0x421)])],Z);var Vt=Object[_0x5851f7(0x2c4)],Xt=(_0x12af2e,_0x13fec0,_0x54168f,_0x5a61fe)=>{const _0x3ad5e3=_0x5851f7;for(var _0x5dd624=_0x5a61fe>0x1?void 0x0:_0x5a61fe?Vt(_0x13fec0,_0x54168f):_0x13fec0,_0x3abc25=_0x12af2e[_0x3ad5e3(0x3ab)]-0x1,_0x5af6b8;_0x3abc25>=0x0;_0x3abc25--)(_0x5af6b8=_0x12af2e[_0x3abc25])&&(_0x5dd624=_0x5af6b8(_0x5dd624)||_0x5dd624);return _0x5dd624;},N=(_0x6867c1,_0x35bfd4)=>(_0x3f064e,_0x486e66)=>_0x35bfd4(_0x3f064e,_0x486e66,_0x6867c1);let Q=class extends a['Disposable']{constructor(_0x44b3c5,_0x116bd7,_0x4bb7aa,_0x2d43d2,_0x18bdcf,_0x5c9732,_0x531cf8,_0x2df11a){const _0x2073bf=_0x5851f7;super(),h(this,'_status$',new d[(_0x2073bf(0x207))](u['CollaborationStatus'][_0x2073bf(0x2dc)])),(this['_docStateChangeManagerService']=_0x44b3c5,this[_0x2073bf(0x3dc)]=_0x116bd7,this[_0x2073bf(0x3fa)]=_0x4bb7aa,this['_docTransformStateCacheService']=_0x2d43d2,this[_0x2073bf(0x3bc)]=_0x18bdcf,this[_0x2073bf(0x2bd)]=_0x5c9732,this['_messageService']=_0x531cf8,this[_0x2073bf(0x220)]=_0x2df11a,this['_initEntityListener']());}[_0x5851f7(0x1ef)](){const _0x2c0b9e=_0x5851f7;this['disposeWithMe'](this[_0x2c0b9e(0x3dc)][_0x2c0b9e(0x20e)]['subscribe'](_0x2078a0=>{const _0x4e9331=_0x2c0b9e,_0x3c1ee0=this[_0x4e9331(0x3c1)][_0x4e9331(0x308)][_0x4e9331(0x1e4)](_0x19dc44=>{const _0x23f4dc=_0x4e9331;if(_0x19dc44==null)return;const {unitId:_0x53c499,redoState:_0x313c92,commandId:_0x695f2f}=_0x19dc44;if(_0x53c499!==_0x2078a0[_0x23f4dc(0x339)])return;const _0x8be5a7={'id':_0x695f2f,'type':a[_0x23f4dc(0x2cb)][_0x23f4dc(0x222)],'params':{'unitId':_0x53c499,'actions':_0x313c92[_0x23f4dc(0x3e7)],'textRanges':null}};_0x2078a0['onLocalMutation'](_0x8be5a7);});if(_0x2078a0[_0x4e9331(0x21c)](_0x3c1ee0),_0x2078a0 instanceof u[_0x4e9331(0x275)]){const _0x13da83={'onTransformIME':_0x383816=>this[_0x4e9331(0x3fa)]['transformIMECache'](_0x383816),'onTransformState':_0x5b179d=>this[_0x4e9331(0x1f2)][_0x4e9331(0x3d4)](_0x5b179d),'onTransformSelections':_0x457f70=>this[_0x4e9331(0x3bc)][_0x4e9331(0x2cd)](_0x457f70),'onSyncEditingCollabCursor':_0x1c9aa3=>this[_0x4e9331(0x2bd)]['syncEditingCollabCursor'](_0x1c9aa3),'onTransformRemoteChangesetByIMECache':_0x54434f=>this['_docTransformIMECacheService'][_0x4e9331(0x1c2)](_0x54434f),'onTransformRemoteChangesetByStateCache':_0x262c65=>this[_0x4e9331(0x1f2)][_0x4e9331(0x1c2)](_0x262c65)};_0x2078a0['addHandlerCallback'](_0x13da83);}}));}};Q=Xt([N(0x0,a[_0x5851f7(0x298)](b[_0x5851f7(0x36c)])),N(0x1,a[_0x5851f7(0x298)](u[_0x5851f7(0x3c2)])),N(0x2,a[_0x5851f7(0x298)](z)),N(0x3,a[_0x5851f7(0x298)](J)),N(0x4,a[_0x5851f7(0x298)](Z)),N(0x5,a[_0x5851f7(0x298)](Ce)),N(0x6,T[_0x5851f7(0x34f)]),N(0x7,a[_0x5851f7(0x298)](a[_0x5851f7(0x229)]))],Q);var Gt=Object[_0x5851f7(0x2c4)],Kt=(_0x265dc4,_0x451332,_0x5cc6b6,_0x1ef306)=>{const _0x49e1b2=_0x5851f7;for(var _0x73f05e=_0x1ef306>0x1?void 0x0:_0x1ef306?Gt(_0x451332,_0x5cc6b6):_0x451332,_0x13c1f1=_0x265dc4[_0x49e1b2(0x3ab)]-0x1,_0x8c810a;_0x13c1f1>=0x0;_0x13c1f1--)(_0x8c810a=_0x265dc4[_0x13c1f1])&&(_0x73f05e=_0x8c810a(_0x73f05e)||_0x73f05e);return _0x73f05e;},_e=(_0x124ece,_0x6b91e)=>(_0x56a335,_0x195982)=>_0x6b91e(_0x56a335,_0x195982,_0x124ece);let ge=class extends a[_0x5851f7(0x31b)]{constructor(_0x5d221f,_0x3597e0,_0x2592b9){const _0x1797f0=_0x5851f7;super(),h(this,_0x1797f0(0x39d),new Map()),h(this,_0x1797f0(0x31a),new Map()),h(this,_0x1797f0(0x1d5),!0x1),(this[_0x1797f0(0x410)]=_0x5d221f,this[_0x1797f0(0x301)]=_0x3597e0,this[_0x1797f0(0x317)]=_0x2592b9);}[_0x5851f7(0x3b9)](){const _0x2b29ee=_0x5851f7;this[_0x2b29ee(0x1d5)]=!0x0;}[_0x5851f7(0x1c7)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x657b84=_0x5851f7;return this[_0x657b84(0x31a)];}[_0x5851f7(0x28f)](){const _0x18ee41=_0x5851f7;this[_0x18ee41(0x34c)]()[_0x18ee41(0x354)](()=>super[_0x18ee41(0x28f)]());}async['loadOfflineData'](_0xfa567d){const _0x176ba0=_0x5851f7;return this[_0x176ba0(0x1d5)]?null:this['_localStorageService']['getItem'](u[_0x176ba0(0x3b3)](_0xfa567d));}async['saveOfflineData'](_0x4636c3,_0x3febbd){const _0x4bc26b=_0x5851f7;return!!this[_0x4bc26b(0x301)]['setItem'](_0x4636c3,_0x3febbd);}[_0x5851f7(0x311)](_0x4383b6,_0x489876,_0x22f53f,_0x41e81b){const _0x3ec715=_0x5851f7,_0x4dd808=this['_revisionService']['getCurrentRevOfUnit'](_0x4383b6);this[_0x3ec715(0x39d)][_0x3ec715(0x247)](_0x4383b6,{'unitID':_0x4383b6,'type':_0x489876,'awaitingChangeset':_0x22f53f,'mutations':_0x41e81b,'rev':_0x4dd808}),this[_0x3ec715(0x31a)]['has'](_0x4383b6)||this[_0x3ec715(0x43c)](_0x4383b6);}['_scheduleSaving'](_0x247d7e){const _0x32c51e=_0x5851f7,_0x11dd4f=this[_0x32c51e(0x3e5)]();_0x11dd4f===0x0?this[_0x32c51e(0x378)](_0x247d7e):this['_saveTaskMap']['set'](_0x247d7e,setTimeout(()=>this[_0x32c51e(0x378)](_0x247d7e),_0x11dd4f));}[_0x5851f7(0x3e5)](){const _0x56ce70=_0x5851f7;var _0x4fd75c;return(_0x4fd75c=this[_0x56ce70(0x410)][_0x56ce70(0x2ea)](u[_0x56ce70(0x2a6)]))!=null?_0x4fd75c:u[_0x56ce70(0x376)];}['_saveCache'](_0x5d0f86){const _0x18e8d7=_0x5851f7,_0x3e3b5d=this['_saveTaskMap'][_0x18e8d7(0x1f5)](_0x5d0f86);return _0x3e3b5d!==void 0x0&&window['clearTimeout'](_0x3e3b5d),this[_0x18e8d7(0x301)][_0x18e8d7(0x3bd)](u[_0x18e8d7(0x3b3)](_0x5d0f86),this[_0x18e8d7(0x39d)]['get'](_0x5d0f86))[_0x18e8d7(0x354)](()=>this[_0x18e8d7(0x31a)][_0x18e8d7(0x278)](_0x5d0f86));}async[_0x5851f7(0x34c)](){const _0x4e3069=_0x5851f7,_0x2130bb=[];this[_0x4e3069(0x31a)][_0x4e3069(0x2b0)]((_0x255fea,_0x3e85b4)=>{const _0x29bee7=_0x4e3069;window['clearTimeout'](_0x255fea),_0x2130bb[_0x29bee7(0x33a)](this['_saveCache'](_0x3e85b4)['then'](()=>{const _0x2329ad=_0x29bee7;this[_0x2329ad(0x31a)][_0x2329ad(0x278)](_0x3e85b4);}));}),await Promise[_0x4e3069(0x361)](_0x2130bb);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x5851f7(0x29c)]),_e(0x2,a[_0x5851f7(0x298)](m['RevisionService']))],ge);class je extends a[_0x5851f7(0x2a9)]{constructor(){const _0x37bbe4=_0x5851f7;super(),h(this,_0x37bbe4(0x252)),this['urlChange$']=d[_0x37bbe4(0x254)](window,_0x37bbe4(0x3f4))[_0x37bbe4(0x3bf)](d[_0x37bbe4(0x329)](this[_0x37bbe4(0x2f1)]),d[_0x37bbe4(0x22c)](0x1),d[_0x37bbe4(0x436)](void 0x0));}['setParam'](_0x2223e1,_0x165e3f,_0x364228=!0x1){const _0x21dddc=_0x5851f7,_0x57e7f7=new URL(window['location'][_0x21dddc(0x3bb)]);_0x57e7f7['searchParams']['set'](_0x2223e1,_0x165e3f),_0x364228?window[_0x21dddc(0x3b4)][_0x21dddc(0x234)]('','',_0x57e7f7[_0x21dddc(0x293)]()):window[_0x21dddc(0x3b4)][_0x21dddc(0x1e9)]('','',_0x57e7f7[_0x21dddc(0x293)]());}[_0x5851f7(0x2ef)](_0xf7c6f5,_0x4ab618=!0x1){const _0x13f1a8=_0x5851f7,_0x16e196=new URL(window[_0x13f1a8(0x3e2)][_0x13f1a8(0x3bb)]);_0x16e196[_0x13f1a8(0x3a8)][_0x13f1a8(0x278)](_0xf7c6f5),_0x4ab618?window[_0x13f1a8(0x3b4)][_0x13f1a8(0x234)]('','',_0x16e196['toString']()):window['history'][_0x13f1a8(0x1e9)]('','',_0x16e196[_0x13f1a8(0x293)]());}['getParam'](_0x267571){const _0x6f33d2=_0x5851f7;var _0x922d3d;return(_0x922d3d=new URL(window[_0x6f33d2(0x3e2)][_0x6f33d2(0x3bb)])[_0x6f33d2(0x3a8)][_0x6f33d2(0x1f5)](_0x267571))!=null?_0x922d3d:void 0x0;}}var qt=Object[_0x5851f7(0x34b)],zt=Object[_0x5851f7(0x2c4)],Jt=(_0x5a9559,_0xe37e0c,_0x2d9233)=>_0xe37e0c in _0x5a9559?qt(_0x5a9559,_0xe37e0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d9233}):_0x5a9559[_0xe37e0c]=_0x2d9233,Zt=(_0x387155,_0x3ef196,_0x5804bd,_0x1858bd)=>{const _0x5ac32e=_0x5851f7;for(var _0x281f2b=_0x1858bd>0x1?void 0x0:_0x1858bd?zt(_0x3ef196,_0x5804bd):_0x3ef196,_0x431380=_0x387155[_0x5ac32e(0x3ab)]-0x1,_0x36b312;_0x431380>=0x0;_0x431380--)(_0x36b312=_0x387155[_0x431380])&&(_0x281f2b=_0x36b312(_0x281f2b)||_0x281f2b);return _0x281f2b;},he=(_0x42760c,_0x1ff2eb)=>(_0x2bed0c,_0x1abb1b)=>_0x1ff2eb(_0x2bed0c,_0x1abb1b,_0x42760c),Qt=(_0x1f7e46,_0x40cc1f,_0x2a359d)=>Jt(_0x1f7e46,_0x40cc1f+'',_0x2a359d);const es=_0x5851f7(0x33e);exports[_0x5851f7(0x3ba)]=class extends a[_0x5851f7(0x326)]{constructor(_0x10b5a7=Ue,_0x1a1286,_0xda0377,_0xb0758a){const _0x4ce7be=_0x5851f7;super(),this[_0x4ce7be(0x3cd)]=_0x10b5a7,this[_0x4ce7be(0x2b9)]=_0x1a1286,this[_0x4ce7be(0x2ed)]=_0xda0377,this[_0x4ce7be(0x410)]=_0xb0758a;const {..._0x45a71b}=a['merge']({},Ue,this[_0x4ce7be(0x3cd)]);this[_0x4ce7be(0x410)][_0x4ce7be(0x3d8)]($t,_0x45a71b);}['onStarting'](){const _0x239fd1=_0x5851f7;this['_registerDependencies'](),this[_0x239fd1(0x1e2)]();}['onRendered'](){const _0x119792=_0x5851f7;this[_0x119792(0x3df)]();}[_0x5851f7(0x2df)](){const _0x5efeb2=_0x5851f7;var _0x1a7fc4;const _0x57d80d=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x5efeb2(0x27c)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x5efeb2(0x23b)]],[Q],[q],[x],[de],[exports[_0x5efeb2(0x21d)]]];a[_0x5efeb2(0x2f0)](this[_0x5efeb2(0x2ed)],a[_0x5efeb2(0x288)](_0x57d80d,(_0x1a7fc4=this[_0x5efeb2(0x3cd)])==null?void 0x0:_0x1a7fc4[_0x5efeb2(0x32c)]));}['_registerRenderDependencies'](){const _0x529a2a=_0x5851f7;this['disposeWithMe'](this[_0x529a2a(0x2b9)][_0x529a2a(0x371)](a[_0x529a2a(0x1c5)][_0x529a2a(0x411)],[Ie])),this['disposeWithMe'](this[_0x529a2a(0x2b9)][_0x529a2a(0x371)](a['UniverInstanceType'][_0x529a2a(0x2c8)],[ve]));}['_initDependencies'](){const _0x54ffd3=_0x5851f7;a['touchDependencies'](this[_0x54ffd3(0x2ed)],[[x],[exports[_0x54ffd3(0x23b)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x5851f7(0x3ba)],_0x5851f7(0x439),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x5851f7(0x223)]),he(0x1,p[_0x5851f7(0x3ce)]),he(0x2,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),he(0x3,a[_0x5851f7(0x43a)])],exports[_0x5851f7(0x3ba)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x30c18d,_0x46e51d,_0x5cef18,_0x175051)=>{const _0x135341=_0x5851f7;for(var _0x389dc6=_0x175051>0x1?void 0x0:_0x175051?ts(_0x46e51d,_0x5cef18):_0x46e51d,_0x5955dc=_0x30c18d[_0x135341(0x3ab)]-0x1,_0x1e4c82;_0x5955dc>=0x0;_0x5955dc--)(_0x1e4c82=_0x30c18d[_0x5955dc])&&(_0x389dc6=_0x1e4c82(_0x389dc6)||_0x389dc6);return _0x389dc6;},F=(_0x2e533d,_0x3a1eb0)=>(_0x38fc1a,_0x40323e)=>_0x3a1eb0(_0x38fc1a,_0x40323e,_0x2e533d);function _0x1d21(){const _0x1cc2da=['getCollabCursors$','_scheduleHeartbeat','serializeRangeWithSheet','Shape','univer-text-red-500','MemberService','DOC_RANGE_TYPE','@univerjs/docs-ui','...','collaboration.single-unit.warning','roomMembers$','SheetSkeletonManagerService','defineProperty','exhaustSavingTask','_notificationService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','IMessageService','url(#on-line-single_clip0_910_349)','yellow.400','WebBrowserSingleActiveUnitService','_ensureSubject','then','isTransformMutationsWithChangesetSuccess','Module','EMAIL_HAS_BEEN_BOUND','SUBMIT_CHANGESET_TIMEOUT','init','_onCursorUpdate','transformIMECache','_hover','key','OFFLINE','RefRangeService','onPointerLeave$','all','@univerjs/docs','attrs','onCommandExecuted','CONFLICT','top','combineLatest','getTypeOfUnitAdded$','COLORS','distinctUntilChanged','getVpScrollXYInfoByPosToVp','DocStateChangeManagerService','_handleHover','[CollaborationDataLoaderController]','collaboration-client.offline-data-not-saved','_collaborationUIEventService','registerRenderModule','_scene','_session','subunit','substring','LOCAL_CACHE_INTERVAL','_unitOnClients','_saveCache','getStateCache','hasOwnProperty','reconnect','_removeClearOtherTimer','collab-client.tooltip.reconnect','blue.400','@univerjs/sheets-ui','UnitStatus','handleInsertRangeMoveDown','roomMembers','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_name','NO_OTHER_CLIENTS_EDITING','@univerjs-pro/collaboration','result','add','session.collaboration-timeout','PERMISSION_DENIED','univer-flex\x20univer-items-center','NOT_FOUND','addEventListener','addClipboardHook','_startDocCollabCursor','getFocusedUnit','url(#off-line-single_clip0_910_343)','_handleHeartbeatEvent','sheetID','_imageIoService','unitId','isActive','_memberService','_updateLocalCursor','collab-rect-range-','6075396ETbgxN','_dataLoaderService','height','_cachedData','RemoveColCommandId','_backgroundColor','moveTo','_initStatusComponent','OnLineSingle','FromArray','toStringTag','ISnapshotServerService','getCurrent','_entities','searchParams','getCurrentSelections','_send','length','size','translate(.97)','runRefRangeMutations','12LsJZXr','clearInterval','switchMap','#FFF','getLocalCacheKey','history','@univerjs-pro/collaboration-client','getRenderById','COMPLETION_FINISHED','with','disableLocalCache','UniverCollaborationClientUIPlugin','href','_docTransformSelectionsService','setItem','_eventUnsubscribe','pipe','_draw','_docStateChangeManagerService','CollaborationController','CollaborationSocketService','eventID','asObservable','TOO_MANY_REQUESTS','getUndoRedoMutationParamsCache','LICENSE_EXPORT_SIZE_EXCEEDED','8040192iOwtNP','clipPath','5820550wnXqhJ','children','_config','IRenderManagerService','permission.title','@univerjs/sheets','_cursorShapes','_labelPosition','Injector','transformStateCache','getColor','_roomMembers$','requireSession','setConfig','extend','SNAPSHOT_INVALID_SNAPSHOT','1em','_collaborationController','M0\x200H16V16H0z','createInstance','_registerRenderDependencies','selections','#fff','location','Error','_getAnchorBounding','_getSaveTimeout','off-line-single','actions','SNAPSHOT_HAS_BEEN_REMOVED','_handleJoinEvent','CollaborationStatus','CollaborationUIEventId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','session.will-retry','univer-text-green-500','DocIMEInputManagerService','_createSocketURL','collabCursorState$','triggerDblclick','font','popstate','event$','fillText','_drawAnchor','_hideTimer','_toggleOffline','_docTransformIMECacheService','_docSkeletonManagerService','587453wemfpJ','application/json','redoState','_assignedColors','tag','some','DEFAULT_WS_SESSION_TICKET_URL','_transformHistoryAndStateStack','findNodePositionByCharIndex','DataLoaderService','setAlpha','BrowserCollaborationSocketService','CollaborationUIEventService','permission.content','UNAUTHENTICATED','m2Prime','_drawTextRange','998193bHqBrm','SYNCED','OTHER_CLIENT_EDITING','_configService','UNIVER_DOC','CLOSE_ROOM','CONNECTOR_DATA_TOO_LARGE','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_getMergeRange','generateRandomId','jsx','debounce','HEADER_MENU','TEXT_RANGE_LAYER_INDEX','_getScale','EffectRefRangId','collaboration-client-ui.config','resize','INVITE_CODE_REQUIRED','collaboration.closeRoom','ITransformService','_heartbeatTimer','Rectangle','_initEvent','setInterval','_range','_updateSubUnitFromURLParams','random','merge','_transformService','_removeCollabCursors','complete','DeleteRangeMoveUpCommandId','width','saveImage','_render','clearTimeout','SessionStatus','currentTheme$','defIds','ILogService','mapTo','assignAColorForMemberID','syncEditingCollabCursor','pluginName','IConfigService','USER_NOT_INVITED_CODE','_scheduleSaving','black','UNDEFINED','endColumn','ICommandService','Tooltip','transformRemoteChangeset','SetDocZoomRatioOperation','sessionTicket','UniverInstanceType','row','enableLocalCache','column','forwardRef','call','startsWith','undoState','_unitStatus','INTERNAL_ERROR','svg','from','use','mask','ONLINE','type','_disabled','send','closePath','YUUMI_AI_RUN_FAILED','toRgbString','ILocalCacheService','flatMap','_lastPointer','_themeService','lineTo','MOBILE_HAS_BEEN_BOUND','handleMoveRange','_colorIndex','_initDependencies','setActiveRange','subscribe','hide','ColorKit','MessageType','createElement','pushState','_handleEvent','_commandService','getDocRanges','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_cursors','_initEntityListener','connectInjector','measureText','_docTransformStateCacheService','show','editingUnit','get','startRow','createIdentifier','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LICENSE_IMPORT_SIZE_EXCEEDED','_httpService','className','_transformPreviousActiveRange','RemoteUniscriptService','hovered','_onCursorDelete','UniverIcon','getRangePointData','_updateCollabCursors','storage','@univerjs/engine-render','registerRefRange','fill','BehaviorSubject','makeDirty','defs','_colorAssignService','symbol','APPLY_NON_SEQUENTIAL_REVISION','_onRefRangeChange','entityInit$','SOCKET_FAILED_RETRY','fillStyle','@univerjs/ui','unit','_document','stringify','DocSelectionManagerService','_scheduleClearOtherTimer','executeCommand','getActiveSheet','deepClone','min','currentColor','disposeWithMe','CollaborationDataLoaderController','selection','round','_localeService','_init','MUTATION','UniverCollaborationClientPlugin','replaceDocRanges','_transformUndoRedoStack','univerjs-icon\x20univerjs-icon-','collabStatus.syncing','getUnitId','LocaleService','_entityInit$','prototype','shareReplay','YUUMI_SUBSCRIPTION_NOT_FOUND','_getSessionTicket','collabStatus.conflict','split','div','path','INVITE_CODE_ALREADY_BOUND','replaceState','jsxs','_context','_cursorInfo$','AWAITING_WITH_PENDING','sessionStatus$','getUnhiddenWorksheets','DesktopCollaborationStatusDisplayController','m1Prime','_setupBeforeClosingHandler','getOffsetConfig','code','text','colorChannel1','newValue','max','handleDeleteRangeMoveLeft','SetSelectionsOperation','none','set','SOCKET_FAILED','react/jsx-runtime','Warning','LICENSE_DISTRO_REJECTED','Tools','getSheetObject','InsertRowCommandId','transformMutationsWithChangeset','_collabSessionService','engine','urlChange$','SetWorksheetActivateCommand','fromEvent','InsertRangeMoveRightCommandId','setParam','assign','_getSheetObject','subscribeEvent','mutations','_anchor','_online','params','HTTPService','Vector2','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','idSuffix','getCoordByCell','doc.mutation.rich-text-editing','cursorInfo','_syncEditingCollabCursorService','focused$','currentSkeleton$','bottom','Unknown\x20user','_updateURLWithCurrentState','next','toDisposable','onPointerEnter$','getUnitStatus$','getRelativeToViewportCoord','post','unsubscribe','drawWith','off-line-single_clip0_910_343','USERS_LEAVE','DocCollaborationEntity','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_refRangeService','delete','PENDING','registerComponent','save','WebSocketService','Workbook','_selfUnitIDs','trim','_instanceService','YUUMI_ALL_TABLES_IS_INVALID','data','RichTextEditingMutation','APPLY_REVISION_CONFILICT','restore','_urlService','_shapes','mergeOverrideWithDependencies','_sheetSkeletonManagerService','onTransformChange$','isTransformMutationFailure','LOGIN_FAILED','jiqing.500','SHEET_VIEWPORT_KEY','dispose','has','createSocket','color','toString','session.connection-failed','MoveRangeCommandId','getAncestorScale','collabStatus.offline','Inject','getValue','getActiveRange','_color','ILocalStorageService','_collabCursorState$','YUUMI_RATE_OVER_LIMIT','concat','_collabCursorController','transformMutation','current','getMember','range','_id','LOCAL_CACHE_INTERVAL_KEY','_drawRectRange','ACTIVE_UNIT_EVENT_CHANNEL','RxDisposable','IDocClipboardService','_initResize','arc','getSheetId','cursorInfo$','_status$','forEach','getTypeOfUnitDisposed$','UNRECOGNIZED','backgroundColor','origin','setShapeProps','transformByState','sheetId','_cursor','_renderManagerService','4209681nqAJvs','collabStatus.notCollab','entries','_docSyncEditingCollabCursorService','throttleTime','rxjs','useDependency','TEXT','_handleLeaveEvent','wsSessionTicketUrl','getOwnPropertyDescriptor','CollaborationStatusDisplay','CollaborationEvent','0\x200\x2016\x2016','UNIVER_SHEET','_refreshCollabCursors','includes','CommandType','ticket','transformSelections','RegularPolygon','20kJpJzc','_localCacheService','_hovered','_univerInstanceService','handleIRemoveCol','registerBeforeClose','isArray','green.600','APPLY_DUPLICATED','replace','handleInsertCol','icon','_textBubble','NOT_COLLAB','body','RECT','_registerDependencies','AWAITING','@univerjs/engine-formula','source','Failed','Rect','IImageIoService','invokeId','values','url(#$1','collab-text-range-','getConfig','2458902phlgLC','NodePositionConvertToRectRange','_injector','OTHER_CLIENTS_EDITING','removeParam','registerDependencies','dispose$','red.300','useRef','@univerjs/network','LICENSE_MAX_UNITS_EXCEEDED','_messageService','apply','@univerjs/rpc','name','DocSkeletonManagerService','map','WebURLService','SheetCollabCursorShape','debug','InsertColCommandId','beginPath','_localStorageService','_logService','APPLY_REJECT','WECHAT_HAS_BEEN_BOUND','INVALID_INVITE_CODE','CollaborationSessionService','evenodd','docStateChange$','@univerjs/core','textRanges','startColumn','endRow','on-line-single_clip0_910_349','useCallback','_anchorDot','_clearOtherTimers','updateOfflineData','getSkeleton','YUUMI_ASYNCIO_CANCELLED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SetTextSelectionsOperation','PY_RUNTIME_SCRIPT_ERROR','_revisionService','getParam','2sVZzOp','_saveTaskMap','Disposable','error','ranges','_initCommandExecutedListener','indexOf','fillRule','YUUMI_UNABLE_LOAD_URL','setTimeout','unshift','displayName','runId','Plugin','_toggleOnline','search','takeUntil','handleIRemoveRow','getSheetBySheetId','override','ALREADY_EXISTS','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','IRemoteInstanceService','_docClipboardService','ThemeService','filter','getMemberID','_setupSubUnitSync','IBeforeCloseService','purple.300','addObject','IUIPartsService','unitID','push','YUUMI_URL_COL_OUT_OF_RANGE','UPDATE_CURSOR','string','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'];_0x1d21=function(){return _0x1cc2da;};return _0x1d21();}exports['BrowserCollaborationSocketService']=class extends u[_0x5851f7(0x3c3)]{constructor(_0x35daad,_0x33f548,_0x41ea3f,_0x300c0d,_0x2b48cf){super(_0x35daad,_0x33f548,_0x41ea3f,_0x300c0d,_0x2b48cf);}async[_0x5851f7(0x291)](_0x22259e){const _0x3fd2fd=_0x5851f7,_0x5303b3=await this[_0x3fd2fd(0x22e)](),_0x360bd5=this[_0x3fd2fd(0x3f0)](_0x22259e,_0x5303b3);return this['_doCreateSocket'](_0x360bd5);}['_createSocketURL'](_0x2b6226,_0x76898a){const _0x1d0c34=_0x5851f7,_0xd356f1=typeof window>'u'?new URL(_0x2b6226):new URL(_0x2b6226,window[_0x1d0c34(0x3e2)][_0x1d0c34(0x2b4)]);_0xd356f1[_0x1d0c34(0x3a8)][_0x1d0c34(0x247)](_0x1d0c34(0x1c4),_0x76898a);const _0x136c3a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1d0c34(0x3e2)][_0x1d0c34(0x328)]);return _0x136c3a[_0x1d0c34(0x1f5)](_0x1d0c34(0x325))&&_0xd356f1[_0x1d0c34(0x3a8)][_0x1d0c34(0x247)](_0x1d0c34(0x325),_0x136c3a['get'](_0x1d0c34(0x325))),_0xd356f1[_0x1d0c34(0x293)]();}async[_0x5851f7(0x22e)](){const _0x20d6b4=_0x5851f7;var _0x255562,_0x387ee9,_0x55a0b2;const _0xf8cb6d=this[_0x20d6b4(0x410)][_0x20d6b4(0x2ea)](u[_0x20d6b4(0x1f8)]),_0x4998b3=(_0x255562=_0xf8cb6d==null?void 0x0:_0xf8cb6d[_0x20d6b4(0x2c3)])!=null?_0x255562:u[_0x20d6b4(0x402)];return(_0x55a0b2=(_0x387ee9=(await this[_0x20d6b4(0x1fa)]['get'](_0x4998b3,{'headers':{'Content-Type':_0x20d6b4(0x3fd)}}))[_0x20d6b4(0x2dd)])==null?void 0x0:_0x387ee9[_0x20d6b4(0x2cc)])!=null?_0x55a0b2:'';}},exports[_0x5851f7(0x407)]=ss([F(0x0,a[_0x5851f7(0x298)](a['Injector'])),F(0x1,a[_0x5851f7(0x298)](G[_0x5851f7(0x25e)])),F(0x2,a[_0x5851f7(0x43a)]),F(0x3,a[_0x5851f7(0x435)]),F(0x4,m[_0x5851f7(0x3a5)])],exports[_0x5851f7(0x407)]);const Me=0x7530,Le=_0x5851f7(0x2a8);class is extends a[_0x5851f7(0x31b)]{constructor(){const _0x65247b=_0x5851f7;super(),h(this,'_id',a[_0x65247b(0x416)]()),h(this,_0x65247b(0x27e),new Set()),h(this,_0x65247b(0x377),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x65247b(0x1cd),new Map()),this['_init']();}[_0x5851f7(0x28f)](){const _0x443d44=_0x5851f7;super[_0x443d44(0x28f)](),this[_0x443d44(0x310)][_0x443d44(0x2b0)]((_0x54aa27,_0x420053)=>this[_0x443d44(0x37c)](_0x420053)),this[_0x443d44(0x422)]&&window[_0x443d44(0x3b0)](this[_0x443d44(0x422)]);}[_0x5851f7(0x26e)](_0x38a7f5){const _0x5daf90=_0x5851f7;return this[_0x5daf90(0x353)](_0x38a7f5)[_0x5daf90(0x3bf)](d[_0x5daf90(0x36a)]());}[_0x5851f7(0x1f4)](_0x545ad5){const _0x357a0d=_0x5851f7;this[_0x357a0d(0x27e)]['size']===0x0&&this[_0x357a0d(0x340)](),this['_selfUnitIDs'][_0x357a0d(0x388)](_0x545ad5),this['_send']({'type':0x0,'memberID':this[_0x357a0d(0x2a5)],'unitIDs':[_0x545ad5],'isForwarded':!0x1});}['disposeUnit'](_0x52b7a5){const _0x2214e0=_0x5851f7;this['_selfUnitIDs']['delete'](_0x52b7a5),this[_0x2214e0(0x27e)]['size']===0x0&&this[_0x2214e0(0x422)]&&window['clearInterval'](this[_0x2214e0(0x422)]);}[_0x5851f7(0x221)](){const _0x5b4db1=_0x5851f7;this[_0x5b4db1(0x21c)](a['toDisposable'](d[_0x5b4db1(0x254)](window,_0x5b4db1(0x203))[_0x5b4db1(0x1e4)](_0x3620ed=>{const _0x22c8ba=_0x5b4db1;if(_0x3620ed[_0x22c8ba(0x35d)]!==Le||!_0x3620ed[_0x22c8ba(0x242)])return;const _0x388c12=JSON['parse'](_0x3620ed[_0x22c8ba(0x242)]);this[_0x22c8ba(0x1ea)](_0x388c12);}))),window[_0x5b4db1(0x38d)]('unload',()=>this[_0x5b4db1(0x3aa)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x5b4db1(0x27e)])}));}[_0x5851f7(0x1ea)](_0x184b3d){const _0x491f11=_0x5851f7;switch(_0x184b3d[_0x491f11(0x1d4)]){case 0x0:this['_handleJoinEvent'](_0x184b3d);break;case 0x1:this[_0x491f11(0x2c2)](_0x184b3d);break;case 0x2:this['_handleHeartbeatEvent'](_0x184b3d);break;}}[_0x5851f7(0x3e9)](_0x552d8d){const _0x33fe8d=_0x5851f7,{unitIDs:_0x5d2c5b,memberID:_0x17838a,isForwarded:_0x13f950}=_0x552d8d;_0x5d2c5b[_0x33fe8d(0x2b0)](_0x16d046=>{const _0x2d108e=_0x33fe8d;if(!_0x13f950&&this[_0x2d108e(0x377)]['has'](_0x16d046)&&this[_0x2d108e(0x353)](_0x16d046)[_0x2d108e(0x26b)](u[_0x2d108e(0x380)][_0x2d108e(0x2ee)]),!this[_0x2d108e(0x377)][_0x2d108e(0x290)](_0x16d046)||!this['_unitOnClients'][_0x2d108e(0x1f5)](_0x16d046)[_0x2d108e(0x290)](_0x17838a)){const _0x4cb2b7=this[_0x2d108e(0x377)][_0x2d108e(0x1f5)](_0x16d046)||new Set();_0x4cb2b7[_0x2d108e(0x388)](_0x17838a),this['_unitOnClients'][_0x2d108e(0x247)](_0x16d046,_0x4cb2b7),this[_0x2d108e(0x216)](_0x17838a);}}),_0x13f950||this[_0x33fe8d(0x3aa)]({'type':0x0,'memberID':this[_0x33fe8d(0x2a5)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5851f7(0x216)](_0xdc586d){const _0x2dbd93=_0x5851f7;this['_removeClearOtherTimer'](_0xdc586d);const _0x145569=window[_0x2dbd93(0x322)](()=>{const _0x3ee86a=_0x2dbd93;this[_0x3ee86a(0x377)]['forEach'](_0x522033=>{const _0x25d371=_0x3ee86a;_0x522033[_0x25d371(0x278)](_0xdc586d);});},Me*0x2);this[_0x2dbd93(0x310)][_0x2dbd93(0x247)](_0xdc586d,_0x145569);}[_0x5851f7(0x37c)](_0xe19b88){const _0x596a4e=_0x5851f7;if(this[_0x596a4e(0x310)][_0x596a4e(0x290)](_0xe19b88)){const _0x39baf6=this[_0x596a4e(0x310)][_0x596a4e(0x1f5)](_0xe19b88);_0x39baf6&&window[_0x596a4e(0x431)](_0x39baf6),this[_0x596a4e(0x310)][_0x596a4e(0x247)](_0xe19b88,null);}}['_handleLeaveEvent'](_0x26ed86){const _0x5eb79d=_0x5851f7,{memberID:_0x5c7121,unitIDs:_0x30efcd}=_0x26ed86;_0x30efcd['forEach'](_0x5135bf=>{const _0x5d05ec=_0x5085;var _0xe6746b;const _0x21f840=this['_unitOnClients'][_0x5d05ec(0x1f5)](_0x5135bf);_0x21f840&&(_0x21f840[_0x5d05ec(0x278)](_0x5c7121),(_0xe6746b=this['_ensureSubject'](_0x5135bf))==null||_0xe6746b[_0x5d05ec(0x26b)](_0x21f840[_0x5d05ec(0x3ac)]===0x0?u[_0x5d05ec(0x380)][_0x5d05ec(0x385)]:u['UnitStatus'][_0x5d05ec(0x2ee)]));}),this[_0x5eb79d(0x37c)](_0x5c7121);}[_0x5851f7(0x392)](_0x28a125){const _0xfefdff=_0x5851f7;this[_0xfefdff(0x216)](_0x28a125['memberID']);}[_0x5851f7(0x3aa)](_0x1e5e42){const _0x1a20d7=_0x5851f7;localStorage[_0x1a20d7(0x3bd)](Le,JSON[_0x1a20d7(0x214)](_0x1e5e42));}[_0x5851f7(0x340)](){const _0x340ace=_0x5851f7;this['_heartbeatTimer']=window[_0x340ace(0x425)](()=>{const _0x32eb31=_0x340ace;this[_0x32eb31(0x3aa)]({'type':0x2,'memberID':this[_0x32eb31(0x2a5)]});},Me);}[_0x5851f7(0x353)](_0x106f68){const _0xd751ac=_0x5851f7;return this[_0xd751ac(0x1cd)][_0xd751ac(0x290)](_0x106f68)||this[_0xd751ac(0x1cd)][_0xd751ac(0x247)](_0x106f68,new d[(_0xd751ac(0x207))](u['UnitStatus'][_0xd751ac(0x385)])),this['_unitStatus'][_0xd751ac(0x1f5)](_0x106f68);}}var Be=(_0x50989b=>(_0x50989b[_0x50989b[_0x5851f7(0x43e)]=0x0]=_0x5851f7(0x43e),_0x50989b[_0x50989b['OK']=0x1]='OK',_0x50989b[_0x50989b['INTERNAL_ERROR']=0x2]=_0x5851f7(0x1ce),_0x50989b[_0x50989b[_0x5851f7(0x38a)]=0x3]='PERMISSION_DENIED',_0x50989b[_0x50989b['NOT_FOUND']=0x4]=_0x5851f7(0x38c),_0x50989b[_0x50989b[_0x5851f7(0x40a)]=0x5]=_0x5851f7(0x40a),_0x50989b[_0x50989b[_0x5851f7(0x32d)]=0x6]=_0x5851f7(0x32d),_0x50989b[_0x50989b['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x50989b[_0x50989b[_0x5851f7(0x3c6)]=0x8]=_0x5851f7(0x3c6),_0x50989b[_0x50989b[_0x5851f7(0x3b7)]=0x9]=_0x5851f7(0x3b7),_0x50989b[_0x50989b['LOGIN_FAILED']=0xa]=_0x5851f7(0x28c),_0x50989b[_0x50989b['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x50989b[_0x50989b[_0x5851f7(0x3da)]=0x1771]=_0x5851f7(0x3da),_0x50989b[_0x50989b[_0x5851f7(0x3e8)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x50989b[_0x50989b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x50989b[_0x50989b[_0x5851f7(0x303)]=0x1b59]='APPLY_REJECT',_0x50989b[_0x50989b['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5851f7(0x20c),_0x50989b[_0x50989b[_0x5851f7(0x284)]=0x1b5b]=_0x5851f7(0x284),_0x50989b[_0x50989b['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x50989b[_0x50989b[_0x5851f7(0x2d7)]=0x1b5d]='APPLY_DUPLICATED',_0x50989b[_0x50989b[_0x5851f7(0x413)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x50989b[_0x50989b[_0x5851f7(0x2f5)]=0x2329]=_0x5851f7(0x2f5),_0x50989b[_0x50989b[_0x5851f7(0x314)]=0x232a]=_0x5851f7(0x314),_0x50989b[_0x50989b['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5851f7(0x1f9),_0x50989b[_0x50989b[_0x5851f7(0x3c8)]=0x232c]=_0x5851f7(0x3c8),_0x50989b[_0x50989b[_0x5851f7(0x24b)]=0x232d]=_0x5851f7(0x24b),_0x50989b[_0x50989b[_0x5851f7(0x321)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x50989b[_0x50989b[_0x5851f7(0x33b)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x50989b[_0x50989b[_0x5851f7(0x29e)]=0x2713]=_0x5851f7(0x29e),_0x50989b[_0x50989b[_0x5851f7(0x22d)]=0x2714]=_0x5851f7(0x22d),_0x50989b[_0x50989b['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x50989b[_0x50989b[_0x5851f7(0x313)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x50989b[_0x50989b[_0x5851f7(0x34e)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x50989b[_0x50989b[_0x5851f7(0x281)]=0x271d]=_0x5851f7(0x281),_0x50989b[_0x50989b[_0x5851f7(0x276)]=0x271e]=_0x5851f7(0x276),_0x50989b[_0x50989b[_0x5851f7(0x1d8)]=0x271f]=_0x5851f7(0x1d8),_0x50989b[_0x50989b['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x5851f7(0x316),_0x50989b[_0x50989b['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x50989b[_0x50989b['INVALID_INVITE_CODE']=0x2ee2]=_0x5851f7(0x305),_0x50989b[_0x50989b[_0x5851f7(0x41f)]=0x2ee3]=_0x5851f7(0x41f),_0x50989b[_0x50989b[_0x5851f7(0x43b)]=0x2ee4]=_0x5851f7(0x43b),_0x50989b[_0x50989b[_0x5851f7(0x233)]=0x2ee5]=_0x5851f7(0x233),_0x50989b[_0x50989b[_0x5851f7(0x304)]=0x32c9]=_0x5851f7(0x304),_0x50989b[_0x50989b[_0x5851f7(0x1df)]=0x32ca]=_0x5851f7(0x1df),_0x50989b[_0x50989b[_0x5851f7(0x357)]=0x32cb]=_0x5851f7(0x357),_0x50989b[_0x50989b[_0x5851f7(0x2b2)]=-0x1]='UNRECOGNIZED',_0x50989b))(Be||{}),ns=Object[_0x5851f7(0x2c4)],rs=(_0x2d9afe,_0x191ebe,_0x1a10cb,_0x5c51ce)=>{const _0x2f70fc=_0x5851f7;for(var _0x1ef1dc=_0x5c51ce>0x1?void 0x0:_0x5c51ce?ns(_0x191ebe,_0x1a10cb):_0x191ebe,_0x5533dd=_0x2d9afe[_0x2f70fc(0x3ab)]-0x1,_0x19988f;_0x5533dd>=0x0;_0x5533dd--)(_0x19988f=_0x2d9afe[_0x5533dd])&&(_0x1ef1dc=_0x19988f(_0x1ef1dc)||_0x1ef1dc);return _0x1ef1dc;},ue=(_0x2ffe54,_0x539f6a)=>(_0x54ea20,_0x278f86)=>_0x539f6a(_0x54ea20,_0x278f86,_0x2ffe54);exports[_0x5851f7(0x1fd)]=class extends a[_0x5851f7(0x31b)]{constructor(_0x12f488,_0x673f0,_0x3d8605){const _0x9eb869=_0x5851f7;super(),this[_0x9eb869(0x280)]=_0x12f488,this[_0x9eb869(0x1fa)]=_0x673f0,this[_0x9eb869(0x410)]=_0x3d8605;}async['runOnServer'](_0x28577b,_0x49fc06,_0x5a66c9,..._0x1be1b7){const _0x10cdb3=_0x5851f7;var _0x268035,_0x15c51e,_0x7aa95f,_0x26d860;const _0x50359e=this[_0x10cdb3(0x280)][_0x10cdb3(0x390)]();if(!_0x50359e)throw new Error(_0x10cdb3(0x1ed));const _0x4f0b4b=((_0x268035=this[_0x10cdb3(0x410)][_0x10cdb3(0x2ea)](u[_0x10cdb3(0x3ec)]))!=null?_0x268035:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x28577b+'/run/'+_0x49fc06,_0x2f2110=new URL(window['location'][_0x10cdb3(0x3bb)]),_0x33b3de={'scriptId':_0x28577b,'runId':(_0x15c51e=_0x2f2110['searchParams'][_0x10cdb3(0x1f5)](_0x10cdb3(0x325)))!=null?_0x15c51e:'','function':_0x49fc06,'unitId':_0x50359e['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x1be1b7),'invokeId':(_0x7aa95f=_0x5a66c9[_0x10cdb3(0x2e6)])!=null?_0x7aa95f:'','executionId':(_0x26d860=_0x5a66c9['executionId'])!=null?_0x26d860:''};try{const _0x4dcb57=await this[_0x10cdb3(0x1fa)][_0x10cdb3(0x270)](_0x4f0b4b,{'body':_0x33b3de});return _0x4dcb57['body'][_0x10cdb3(0x31c)]&&_0x4dcb57[_0x10cdb3(0x2dd)][_0x10cdb3(0x31c)][_0x10cdb3(0x23f)]!==Be['OK']?_0x10cdb3(0x2e3):_0x4dcb57[_0x10cdb3(0x2dd)][_0x10cdb3(0x387)];}catch{return _0x10cdb3(0x2e3);}}},exports[_0x5851f7(0x1fd)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x5851f7(0x298)](G['HTTPService'])),ue(0x2,a[_0x5851f7(0x43a)])],exports['RemoteUniscriptService']),exports[_0x5851f7(0x2c5)]=xe,exports['IURLService']=be,exports[_0x5851f7(0x2fd)]=Ae,exports[_0x5851f7(0x352)]=is,exports[_0x5851f7(0x2fc)]=je;
|
|
1
|
+
'use strict';const _0x55fd5e=_0x4120;(function(_0x523ed7,_0x287f88){const _0x47a714=_0x4120,_0x32c158=_0x523ed7();while(!![]){try{const _0x2bb99e=parseInt(_0x47a714(0x317))/0x1+parseInt(_0x47a714(0x206))/0x2+-parseInt(_0x47a714(0x236))/0x3*(-parseInt(_0x47a714(0x271))/0x4)+-parseInt(_0x47a714(0x119))/0x5+parseInt(_0x47a714(0x120))/0x6*(-parseInt(_0x47a714(0x314))/0x7)+-parseInt(_0x47a714(0x203))/0x8*(parseInt(_0x47a714(0x270))/0x9)+parseInt(_0x47a714(0x2d6))/0xa;if(_0x2bb99e===_0x287f88)break;else _0x32c158['push'](_0x32c158['shift']());}catch(_0x3e3661){_0x32c158['push'](_0x32c158['shift']());}}}(_0x1b88,0xa9f49));var Ve=Object['defineProperty'],Xe=(_0x5b43cb,_0x576a71,_0x4a5eb5)=>_0x576a71 in _0x5b43cb?Ve(_0x5b43cb,_0x576a71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a5eb5}):_0x5b43cb[_0x576a71]=_0x4a5eb5,h=(_0x1045f6,_0x3f9460,_0x3b91ec)=>Xe(_0x1045f6,typeof _0x3f9460!=_0x55fd5e(0x2a4)?_0x3f9460+'':_0x3f9460,_0x3b91ec);Object[_0x55fd5e(0x2a8)](exports,Symbol[_0x55fd5e(0x277)],{'value':_0x55fd5e(0x1d8)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x55fd5e(0x1ca)),p=require(_0x55fd5e(0x1e5)),G=require(_0x55fd5e(0x225)),b=require(_0x55fd5e(0x2b4)),Ge=require(_0x55fd5e(0x252)),d=require('rxjs'),Y=require(_0x55fd5e(0x2ae)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x55fd5e(0x260)),g=require('@univerjs/sheets'),$=require(_0x55fd5e(0x18f)),X=require(_0x55fd5e(0x188)),P=require(_0x55fd5e(0x30a)),T=require(_0x55fd5e(0x170)),D=require('@univerjs/design'),M=require(_0x55fd5e(0x21f)),Ke=require(_0x55fd5e(0x1c0));var qe=Object[_0x55fd5e(0x1f2)],ze=(_0x5679f8,_0x70c8d,_0x957b4c,_0x4d9aed)=>{const _0x981411=_0x55fd5e;for(var _0x1fe591=_0x4d9aed>0x1?void 0x0:_0x4d9aed?qe(_0x70c8d,_0x957b4c):_0x70c8d,_0x4a739c=_0x5679f8[_0x981411(0x11d)]-0x1,_0x1a40f2;_0x4a739c>=0x0;_0x4a739c--)(_0x1a40f2=_0x5679f8[_0x4a739c])&&(_0x1fe591=_0x1a40f2(_0x1fe591)||_0x1fe591);return _0x1fe591;},Te=(_0x412337,_0x28d215)=>(_0x15b284,_0x4f4bfc)=>_0x28d215(_0x15b284,_0x4f4bfc,_0x412337);let de=class extends a[_0x55fd5e(0x297)]{constructor(_0x510aae,_0x148831){const _0x3110d6=_0x55fd5e;super(),this[_0x3110d6(0x2b1)]=_0x510aae,this[_0x3110d6(0x18c)]=_0x148831,this[_0x3110d6(0x14b)]();}[_0x55fd5e(0x14b)](){const _0x1e8d4e=_0x55fd5e,_0xec9332=this;this[_0x1e8d4e(0x1bf)](this['_docClipboardService'][_0x1e8d4e(0x1f1)]({'onBeforePasteImage':async _0x3653c7=>{const _0xd2e08d=_0x1e8d4e,_0x1f1075=await _0xec9332[_0xd2e08d(0x18c)]['saveImage'](_0x3653c7);return _0x1f1075?{'source':_0x1f1075[_0xd2e08d(0x30d)],'imageSourceType':_0x1f1075[_0xd2e08d(0x11c)]}:null;}}));}};de=ze([Te(0x0,b[_0x55fd5e(0x266)]),Te(0x1,Ge[_0x55fd5e(0x28e)])],de);const Oe=['purple.300',_0x55fd5e(0x13d),'green.600',_0x55fd5e(0x13f),_0x55fd5e(0x31d),_0x55fd5e(0x1ce)];class me extends a['Disposable']{constructor(){const _0xe565c3=_0x55fd5e;super(...arguments),h(this,_0xe565c3(0xc9),new Map()),h(this,_0xe565c3(0x2fa),0x0);}[_0x55fd5e(0xce)](_0x34919d){const _0x9aecbf=_0x55fd5e;if(this['_assignedColors']['has'](_0x34919d))return this[_0x9aecbf(0xc9)][_0x9aecbf(0x178)](_0x34919d);const _0x2e928d=Oe[this[_0x9aecbf(0x2fa)]];return this[_0x9aecbf(0x2fa)]=(this['_colorIndex']+0x1)%Oe[_0x9aecbf(0x11d)],this[_0x9aecbf(0xc9)]['set'](_0x34919d,_0x2e928d),_0x2e928d;}}function Pe(_0x29c485){const _0x6f981f=_0x55fd5e;let _0x4ef253='';for(const _0x26a285 of _0x29c485){const {startOffset:_0x173a2c,endOffset:_0x47847c,isActive:_0x33b8a4,rangeType:_0x3e0f44,segmentId:_0x5ee5fc,segmentPage:_0x31ba58}=_0x26a285;_0x4ef253[_0x6f981f(0x11d)]&&(_0x4ef253+=','),_0x4ef253+=_0x173a2c+':'+_0x47847c+':'+(_0x33b8a4?'1':'0')+':'+_0x3e0f44+':'+_0x5ee5fc+':'+_0x31ba58;}return _0x4ef253;}function Je(_0x43acfd){const _0x39fea8=_0x55fd5e,_0x2c192c=_0x43acfd[_0x39fea8(0xd5)](','),_0x3ffb63=[];for(const _0x24f19b of _0x2c192c){const [_0x29b806,_0x28adb5,_0x4107a,_0x4790ec,_0x4fd69e,_0x323ad7]=_0x24f19b[_0x39fea8(0xd5)](':');_0x3ffb63[_0x39fea8(0x280)]({'startOffset':Number(_0x29b806),'endOffset':Number(_0x28adb5),'collapsed':_0x29b806===_0x28adb5,'isActive':_0x4107a==='1','rangeType':_0x4790ec===a['DOC_RANGE_TYPE']['TEXT']?a[_0x39fea8(0x23e)]['TEXT']:a[_0x39fea8(0x23e)][_0x39fea8(0x1b5)],'segmentId':typeof _0x4fd69e==_0x39fea8(0x158)?String(_0x4fd69e):'','segmentPage':Number(_0x323ad7!=null?_0x323ad7:-0x1)});}return _0x3ffb63[_0x39fea8(0x2e7)](_0x276adc=>_0x276adc['isActive'])||(_0x3ffb63[0x0][_0x39fea8(0x10f)]=!0x0),_0x3ffb63;}class Ce extends a[_0x55fd5e(0x297)]{constructor(){const _0x1bb1ff=_0x55fd5e;super(...arguments),h(this,_0x1bb1ff(0x29d),new d[(_0x1bb1ff(0xad))](null)),h(this,_0x1bb1ff(0xb1),this['_collabCursorState$']['asObservable']());}[_0x55fd5e(0x143)](_0x22538f){const _0x26dd29=_0x55fd5e,{unitID:_0xe70e48,memberID:_0x3f0934,textRanges:_0x456ade}=_0x22538f,_0x24c70e=Pe(_0x456ade);if(_0x24c70e==='')return;const _0x1c8f6a={'unitID':_0xe70e48,'memberID':_0x3f0934,'selection':_0x24c70e};this[_0x26dd29(0x29d)][_0x26dd29(0x216)](_0x1c8f6a);}}var Ze=Object[_0x55fd5e(0x1f2)],Qe=(_0x543634,_0x4b4a78,_0x2b4258,_0x1d3459)=>{for(var _0x46064a=_0x1d3459>0x1?void 0x0:_0x1d3459?Ze(_0x4b4a78,_0x2b4258):_0x4b4a78,_0x4372a3=_0x543634['length']-0x1,_0x44a8d3;_0x4372a3>=0x0;_0x4372a3--)(_0x44a8d3=_0x543634[_0x4372a3])&&(_0x46064a=_0x44a8d3(_0x46064a)||_0x46064a);return _0x46064a;},L=(_0x5cb733,_0x195cf5)=>(_0x573737,_0x34c00b)=>_0x195cf5(_0x573737,_0x34c00b,_0x5cb733);const et=0x12c,tt=0x64;let fe=class extends a[_0x55fd5e(0x297)]{constructor(_0x3f7d27,_0xc08690,_0x249813,_0x47977c,_0x430ae0,_0x4b3047,_0x5401e8,_0x80f9e1,_0x1f714b){const _0xdaec85=_0x55fd5e;super(),h(this,_0xdaec85(0x172),!0x1),h(this,'_init',!0x1),h(this,_0xdaec85(0x179),new d[(_0xdaec85(0xad))](new Map())),h(this,_0xdaec85(0x244),this[_0xdaec85(0x179)]['asObservable']()),h(this,_0xdaec85(0xe5),new d[(_0xdaec85(0xad))]([])),h(this,_0xdaec85(0x254),this[_0xdaec85(0xe5)][_0xdaec85(0x21d)](d[_0xdaec85(0x154)](et))),h(this,_0xdaec85(0x129),a[_0xdaec85(0x2d9)](_0x5255ab=>{const _0x180832=_0xdaec85,_0x300343={'eventID':m[_0x180832(0x217)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x180832(0x1e1)],'memberID':this[_0x180832(0x220)][_0x180832(0x324)](),'selection':Pe(_0x5255ab)}};this[_0x180832(0x220)][_0x180832(0x161)](_0x300343,this[_0x180832(0x1e1)]);},tt)),(this[_0xdaec85(0x1e1)]=_0x3f7d27,this[_0xdaec85(0x220)]=_0xc08690,this[_0xdaec85(0x2cb)]=_0x249813,this[_0xdaec85(0xe1)]=_0x47977c,this[_0xdaec85(0x102)]=_0x430ae0,this['_syncEditingCollabCursorService']=_0x4b3047,this[_0xdaec85(0x238)]=_0x5401e8,this[_0xdaec85(0x134)]=_0x80f9e1,this['_commandService']=_0x1f714b);}get[_0x55fd5e(0x101)](){const _0x24a36c=_0x55fd5e;return this[_0x24a36c(0x179)][_0x24a36c(0x1bb)]();}get[_0x55fd5e(0x1cc)](){const _0x390c0d=_0x55fd5e;return this[_0x390c0d(0xe5)][_0x390c0d(0x1bb)]();}[_0x55fd5e(0x23c)](){const _0x4eefdd=_0x55fd5e;super[_0x4eefdd(0x23c)](),this[_0x4eefdd(0x179)][_0x4eefdd(0x216)](new Map()),this[_0x4eefdd(0x179)]['complete'](),this[_0x4eefdd(0xe5)][_0x4eefdd(0x216)]([]),this['_roomMembers$'][_0x4eefdd(0xfe)]();}[_0x55fd5e(0x245)](){const _0x1424cd=_0x55fd5e;this[_0x1424cd(0x14b)]||(this[_0x1424cd(0x14b)]=!0x0,this[_0x1424cd(0x220)]['sessionStatus$'][_0x1424cd(0x21d)](d['takeUntil'](this[_0x1424cd(0xe8)]))['subscribe'](_0x207896=>{const _0x1a1c42=_0x1424cd;_0x207896===u[_0x1a1c42(0xc7)]['ONLINE']?this[_0x1a1c42(0x235)]():this[_0x1a1c42(0x1bd)]();}),this[_0x1424cd(0x220)][_0x1424cd(0x284)]['pipe'](d['takeUntil'](this[_0x1424cd(0xe8)]))[_0x1424cd(0x2ce)](_0x127407=>{const _0x422cc8=_0x1424cd,_0x194e09=_0x127407[_0x422cc8(0x2f6)];_0x194e09===m[_0x422cc8(0x217)]['UPDATE_CURSOR']&&this[_0x422cc8(0x316)](_0x127407),_0x194e09===m[_0x422cc8(0x217)][_0x422cc8(0x12c)]&&this[_0x422cc8(0xe6)](_0x127407);}),this[_0x1424cd(0x1bf)](this[_0x1424cd(0x1a6)][_0x1424cd(0x10e)](_0x1ac869=>{const _0x2981c0=_0x1424cd,_0x10014c=_0x1ac869[_0x2981c0(0x12d)];_0x10014c!=null&&this[_0x2981c0(0x172)]&&_0x1ac869['id']===Y['SetTextSelectionsOperation']['id']&&_0x10014c[_0x2981c0(0x215)]===this[_0x2981c0(0x1e1)]&&_0x10014c[_0x2981c0(0x30f)]===!0x1&&_0x10014c[_0x2981c0(0x1ed)][_0x2981c0(0x11d)]>0x0&&this[_0x2981c0(0x129)](_0x10014c['ranges']);})),this[_0x1424cd(0x177)]['collabCursorState$'][_0x1424cd(0x21d)](d[_0x1424cd(0xf1)](this[_0x1424cd(0xe8)]))[_0x1424cd(0x2ce)](_0x57119a=>{const _0x37da3b=_0x1424cd;if((_0x57119a==null?void 0x0:_0x57119a[_0x37da3b(0x1e1)])!==this[_0x37da3b(0x1e1)])return;const _0x36d60d={'eventID':m['CollaborationEvent'][_0x37da3b(0x19c)],'data':_0x57119a};this[_0x37da3b(0x316)](_0x36d60d);}),this[_0x1424cd(0x1bf)](this['_commandService'][_0x1424cd(0x10e)](_0x56a2b7=>{const _0x4ec664=_0x1424cd;if(_0x56a2b7[_0x4ec664(0x12d)]==null)return;const _0x4a1114=_0x56a2b7['params'];if(_0x56a2b7['id']!==Y[_0x4ec664(0x325)]['id']||_0x4a1114['unitId']!==this[_0x4ec664(0x1e1)])return;const _0x33d016={'id':_0x4ec664(0x165),'params':_0x4a1114},_0x352323=this[_0x4ec664(0x101)];for(const [_0x16576e,_0x24bce7]of _0x352323){const _0x15b0be={'id':_0x4ec664(0x165),'params':{'unitId':this[_0x4ec664(0x1e1)],'actions':null,'textRanges':_0x24bce7[_0x4ec664(0x1ed)]}},_0x22dd77=this[_0x4ec664(0x238)][_0x4ec664(0x2f7)](_0x33d016,_0x15b0be,!0x1);if(m[_0x4ec664(0x1d3)](_0x22dd77))throw _0x22dd77[_0x4ec664(0xb7)];_0x352323[_0x4ec664(0x26e)](_0x16576e,{..._0x24bce7,'ranges':_0x22dd77['m2Prime']['params'][_0x4ec664(0x287)]});}queueMicrotask(()=>{const _0xff2f13=_0x4ec664;this['_cursorInfo$'][_0xff2f13(0x216)](_0x352323);});})));}[_0x55fd5e(0x316)](_0x59cb27){const _0x3816b9=_0x55fd5e;var _0x311a47,_0x1ecec5;const {memberID:_0x312e44,selection:_0xf3eb0f}=_0x59cb27[_0x3816b9(0xb6)],_0xc278e6=Je(_0xf3eb0f),_0x4d6cb4=(_0x1ecec5=(_0x311a47=this['_memberService']['getMember'](this[_0x3816b9(0x1e1)],_0x312e44))==null?void 0x0:_0x311a47[_0x3816b9(0x25a)])!=null?_0x1ecec5:_0x3816b9(0x171),_0x465edb={'color':this[_0x3816b9(0xe1)][_0x3816b9(0xce)](_0x312e44),'name':_0x4d6cb4,'ranges':_0xc278e6},_0x388fe1=this[_0x3816b9(0x101)];_0x388fe1[_0x3816b9(0x26e)](_0x312e44,_0x465edb),this['_cursorInfo$'][_0x3816b9(0x216)](_0x388fe1);}[_0x55fd5e(0xe6)](_0x2c65d0){const _0xbc1d04=_0x55fd5e,{memberID:_0x3a2c25}=_0x2c65d0[_0xbc1d04(0xb6)],_0x27b12b=this[_0xbc1d04(0x101)];_0x27b12b[_0xbc1d04(0x20e)](_0x3a2c25),this['_cursorInfo$'][_0xbc1d04(0x216)](_0x27b12b);}[_0x55fd5e(0x235)](){const _0x50e814=_0x55fd5e;var _0x404391;if(this[_0x50e814(0x172)]=!0x0,((_0x404391=this[_0x50e814(0x134)][_0x50e814(0x128)]())==null?void 0x0:_0x404391['getUnitId']())!==this['unitID'])return;const _0x629cf4=this[_0x50e814(0x2cb)][_0x50e814(0x178)](Y['DocSelectionManagerService'])[_0x50e814(0x2b9)]();Array[_0x50e814(0xe7)](_0x629cf4)&&_0x629cf4[_0x50e814(0x11d)]>0x0&&this['_updateLocalCursor'](_0x629cf4);}[_0x55fd5e(0x1bd)](){const _0x1ed98c=_0x55fd5e;this[_0x1ed98c(0x172)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x55fd5e(0x1d6)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x55fd5e(0x199)](u[_0x55fd5e(0x146)])),L(0x5,a[_0x55fd5e(0x199)](Ce)),L(0x6,m[_0x55fd5e(0x1db)]),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object[_0x55fd5e(0x1f2)],it=(_0x75ad9d,_0x85f965,_0x84346d,_0x2ba0ca)=>{const _0xf92e29=_0x55fd5e;for(var _0x50ce09=_0x2ba0ca>0x1?void 0x0:_0x2ba0ca?st(_0x85f965,_0x84346d):_0x85f965,_0x3896c4=_0x75ad9d[_0xf92e29(0x11d)]-0x1,_0x3e4bda;_0x3896c4>=0x0;_0x3896c4--)(_0x3e4bda=_0x75ad9d[_0x3896c4])&&(_0x50ce09=_0x3e4bda(_0x50ce09)||_0x50ce09);return _0x50ce09;},w=(_0x5a15e3,_0x2dbfab)=>(_0x3f3ef2,_0x211bc3)=>_0x2dbfab(_0x3f3ef2,_0x211bc3,_0x5a15e3);const nt=0x12c,rt=0x64,ot=()=>{let _0x7fd414=[],_0xeadb3a=!0x1;return _0x4691d9=>{const _0x41ae3a=_0x4120;_0x7fd414[_0x41ae3a(0x280)](_0x4691d9),_0xeadb3a||(_0xeadb3a=!0x0,setTimeout(()=>{const _0x3c1039=_0x41ae3a;_0x7fd414[_0x3c1039(0x243)](_0x5c615b=>_0x5c615b()),_0x7fd414=[],_0xeadb3a=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x25ea79,_0x3e0e71,_0x2a6c34,_0x179bf6,_0x24c724,_0x23ccdd,_0x16eabe,_0xc958c5){const _0xa61b97=_0x55fd5e;super(),h(this,_0xa61b97(0x172),!0x1),h(this,_0xa61b97(0x14b),!0x1),h(this,_0xa61b97(0x179),new d['BehaviorSubject'](new Map())),h(this,_0xa61b97(0x244),this['_cursorInfo$'][_0xa61b97(0x276)]()),h(this,_0xa61b97(0xe5),new d[(_0xa61b97(0xad))]([])),h(this,_0xa61b97(0x254),this[_0xa61b97(0xe5)][_0xa61b97(0x21d)](d[_0xa61b97(0x154)](nt))),h(this,_0xa61b97(0x129),a[_0xa61b97(0x2d9)]((_0x596559,_0x38e9b6)=>{const _0x47e77f=_0xa61b97,_0x4fd8b7={'eventID':m[_0x47e77f(0x217)][_0x47e77f(0x19c)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Ee[_0x47e77f(0x1b8)](_0x596559,_0x38e9b6[_0x47e77f(0x1f8)])}};this['_session'][_0x47e77f(0x161)](_0x4fd8b7,this[_0x47e77f(0x1e1)]);},rt)),(this[_0xa61b97(0x1e1)]=_0x25ea79,this['_session']=_0x3e0e71,this[_0xa61b97(0x2cb)]=_0x2a6c34,this['_colorAssignService']=_0x179bf6,this[_0xa61b97(0x102)]=_0x24c724,this[_0xa61b97(0x134)]=_0x23ccdd,this[_0xa61b97(0x1a6)]=_0x16eabe,this[_0xa61b97(0x1c7)]=_0xc958c5);}get['cursorInfo'](){const _0x1adaaf=_0x55fd5e;return this[_0x1adaaf(0x179)][_0x1adaaf(0x1bb)]();}get[_0x55fd5e(0x1cc)](){const _0x220156=_0x55fd5e;return this['_roomMembers$'][_0x220156(0x1bb)]();}['dispose'](){const _0x333b74=_0x55fd5e;super[_0x333b74(0x23c)](),this[_0x333b74(0x179)]['next'](new Map()),this[_0x333b74(0x179)][_0x333b74(0xfe)](),this[_0x333b74(0xe5)]['next']([]),this[_0x333b74(0xe5)][_0x333b74(0xfe)]();}[_0x55fd5e(0x245)](){const _0x17d9d5=_0x55fd5e;this[_0x17d9d5(0x14b)]||(this[_0x17d9d5(0x14b)]=!0x0,this[_0x17d9d5(0x220)][_0x17d9d5(0x337)][_0x17d9d5(0x21d)](d['takeUntil'](this['dispose$']))[_0x17d9d5(0x2ce)](_0x3eb8e2=>{const _0x390cea=_0x17d9d5;_0x3eb8e2===u[_0x390cea(0xc7)]['ONLINE']?this[_0x390cea(0x235)]():this['_toggleOffline']();}),this[_0x17d9d5(0x220)]['event$'][_0x17d9d5(0x21d)](d[_0x17d9d5(0xf1)](this[_0x17d9d5(0xe8)]))['subscribe'](_0x31c17e=>{const _0x254061=_0x17d9d5,_0x3ee44f=_0x31c17e['eventID'];_0x3ee44f===m[_0x254061(0x217)]['UPDATE_CURSOR']&&this[_0x254061(0x316)](_0x31c17e),_0x3ee44f===m[_0x254061(0x217)][_0x254061(0x12c)]&&this[_0x254061(0xe6)](_0x31c17e);}),this[_0x17d9d5(0x139)](),this['disposeWithMe'](this[_0x17d9d5(0x1a6)][_0x17d9d5(0x10e)](_0x405dc5=>{const _0x27486a=_0x17d9d5;if(this[_0x27486a(0x172)]&&_0x405dc5['id']===g[_0x27486a(0x110)]['id']&&_0x405dc5[_0x27486a(0x12d)]['unitId']===this[_0x27486a(0x1e1)]){const _0x49eefe=_0x405dc5[_0x27486a(0x12d)];this[_0x27486a(0x129)](_0x49eefe['subUnitId'],_0x49eefe['selections'][0x0]);}})));}[_0x55fd5e(0x316)](_0xb5145){const _0x17603c=_0x55fd5e;var _0x1c4fe7,_0x14574d;const {memberID:_0x11f1ec,selection:_0x209197}=_0xb5145[_0x17603c(0xb6)],{sheetName:_0x307e0c,range:_0x4d0a21}=Ee['deserializeRangeWithSheet'](_0x209197),_0x5735f0={'name':(_0x14574d=(_0x1c4fe7=this[_0x17603c(0x102)][_0x17603c(0x322)](this[_0x17603c(0x1e1)],_0x11f1ec))==null?void 0x0:_0x1c4fe7[_0x17603c(0x25a)])!=null?_0x14574d:_0x17603c(0x171),'range':this[_0x17603c(0x2b5)](_0x307e0c,_0x4d0a21),'sheetID':_0x307e0c,'color':this[_0x17603c(0xe1)][_0x17603c(0xce)](_0x11f1ec),'selection':_0x209197},_0x21cea8=this['cursorInfo'];_0x21cea8[_0x17603c(0x26e)](_0x11f1ec,_0x5735f0),this[_0x17603c(0x179)][_0x17603c(0x216)](_0x21cea8);}[_0x55fd5e(0xe6)](_0x50b3fa){const _0x831225=_0x55fd5e,{memberID:_0x514ab5}=_0x50b3fa[_0x831225(0xb6)],_0x43a944=this[_0x831225(0x101)];_0x43a944[_0x831225(0x20e)](_0x514ab5),this[_0x831225(0x179)][_0x831225(0x216)](_0x43a944);}[_0x55fd5e(0x2b5)](_0x1fec74,_0x27c468){const _0x3ba243=_0x55fd5e;var _0x2d9020,_0x16eaae;const _0x241fdc=(_0x16eaae=(_0x2d9020=this[_0x3ba243(0x134)][_0x3ba243(0xdf)](this[_0x3ba243(0x1e1)]))==null?void 0x0:_0x2d9020[_0x3ba243(0x323)](_0x1fec74))==null?void 0x0:_0x16eaae['getMergeData']();return(_0x241fdc==null?void 0x0:_0x241fdc[_0x3ba243(0x185)](_0x13519d=>a[_0x3ba243(0x318)][_0x3ba243(0x23b)](_0x13519d,_0x27c468)))||_0x27c468;}[_0x55fd5e(0x139)](){const _0x3ea27d=_0x55fd5e,_0x17aeb8=new a['DisposableCollection'](),_0x5e7c3c=ot(),_0x41de61=()=>{const _0x2e643a=_0x4120;_0x17aeb8[_0x2e643a(0x23c)]();const _0x54148f=(_0x8d107,_0x118b8f,_0x53e401,_0xf6da1b)=>{const _0x59c715=_0x2e643a;let _0x395e17=[];switch(_0x8d107['id']){case g[_0x59c715(0xd0)][_0x59c715(0x222)]:{_0x395e17=g[_0x59c715(0x274)](_0x8d107,_0xf6da1b);break;}case g[_0x59c715(0xd0)][_0x59c715(0x16e)]:{_0x395e17=g[_0x59c715(0x23d)](_0x8d107,_0xf6da1b);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x395e17=g[_0x59c715(0x2c9)](_0x8d107,_0xf6da1b);break;}case g[_0x59c715(0xd0)]['InsertRangeMoveDownCommandId']:{_0x395e17=g['handleInsertRangeMoveDown'](_0x8d107,_0xf6da1b);break;}case g[_0x59c715(0xd0)]['InsertRangeMoveRightCommandId']:{_0x395e17=g['handleInsertRangeMoveRight'](_0x8d107,_0xf6da1b);break;}case g['EffectRefRangId'][_0x59c715(0x320)]:{_0x395e17=g[_0x59c715(0x2a2)](_0x8d107,_0xf6da1b);break;}case g[_0x59c715(0xd0)][_0x59c715(0x246)]:{_0x395e17=g[_0x59c715(0x24d)](_0x8d107,_0xf6da1b);break;}case g[_0x59c715(0xd0)][_0x59c715(0xd4)]:{_0x395e17=g[_0x59c715(0x288)](_0x8d107,_0xf6da1b);break;}case g[_0x59c715(0xd0)][_0x59c715(0x20b)]:{_0x395e17=g[_0x59c715(0xf9)](_0x8d107,_0xf6da1b);break;}}const _0x33411a=g[_0x59c715(0xae)](_0x395e17,_0xf6da1b),_0x579bbc=this[_0x59c715(0x101)]['get'](_0x118b8f);if(_0x579bbc&&_0x33411a){const _0xeb7bf3={..._0x579bbc,'range':_0x33411a};this[_0x59c715(0x101)][_0x59c715(0x26e)](_0x118b8f,_0xeb7bf3),_0x5e7c3c(()=>{const _0x4d7c71=_0x59c715,_0x309418=this[_0x4d7c71(0x1c7)][_0x4d7c71(0x2e5)](_0x33411a,_0x4b8a2b=>(_0x309418[_0x4d7c71(0x23c)](),_0x54148f(_0x4b8a2b,_0x118b8f,_0x53e401,_0x33411a)));_0x17aeb8['add'](_0x309418);});}return{'redos':[],'undos':[]};};this[_0x2e643a(0x101)][_0x2e643a(0x243)]((_0x887f36,_0x349978)=>{const _0x2fd816=_0x2e643a,{range:_0x194741,sheetID:_0x46ef06}=_0x887f36,_0x1a4133=this['_refRangeService'][_0x2fd816(0x2e5)](_0x194741,_0x4628db=>(_0x1a4133['dispose'](),_0x54148f(_0x4628db,_0x349978,_0x46ef06,_0x194741)));_0x17aeb8[_0x2fd816(0x1e6)](_0x1a4133);});};this['disposeWithMe'](a['toDisposable'](this[_0x3ea27d(0x179)]['subscribe'](()=>{_0x41de61();})));}[_0x55fd5e(0x235)](){const _0x4c53ad=_0x55fd5e;var _0x44e271,_0x1443d7;if(this[_0x4c53ad(0x172)]=!0x0,((_0x44e271=this[_0x4c53ad(0x134)][_0x4c53ad(0x128)]())==null?void 0x0:_0x44e271[_0x4c53ad(0xd6)]())!==this['unitID'])return;const _0x18df24=(_0x1443d7=this[_0x4c53ad(0x2cb)][_0x4c53ad(0x178)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x1443d7[0x0],_0x174543=this[_0x4c53ad(0x134)][_0x4c53ad(0x2b3)](a[_0x4c53ad(0x207)][_0x4c53ad(0x1c2)])[_0x4c53ad(0x285)]();_0x18df24&&_0x174543&&this[_0x4c53ad(0x129)](_0x174543[_0x4c53ad(0x1e2)](),_0x18df24);}['_toggleOffline'](){const _0x343991=_0x55fd5e;this[_0x343991(0x172)]=!0x1;}};function _0x4120(_0x155597,_0x172fe9){const _0x1b88fb=_0x1b88();return _0x4120=function(_0x412096,_0x47f73c){_0x412096=_0x412096-0xad;let _0x24f2e8=_0x1b88fb[_0x412096];return _0x24f2e8;},_0x4120(_0x155597,_0x172fe9);}Se=it([w(0x2,a['Inject'](a['Injector'])),w(0x3,a[_0x55fd5e(0x199)](me)),w(0x4,a[_0x55fd5e(0x199)](u[_0x55fd5e(0x146)])),w(0x5,a[_0x55fd5e(0x264)]),w(0x6,a[_0x55fd5e(0x218)]),w(0x7,a[_0x55fd5e(0x199)](g[_0x55fd5e(0x1da)]))],Se);var at=Object[_0x55fd5e(0x1f2)],ct=(_0x571150,_0x489f11,_0x5b258c,_0x312ad5)=>{const _0x304f2f=_0x55fd5e;for(var _0x8b6361=_0x312ad5>0x1?void 0x0:_0x312ad5?at(_0x489f11,_0x5b258c):_0x489f11,_0x2c43dd=_0x571150[_0x304f2f(0x11d)]-0x1,_0x540bbe;_0x2c43dd>=0x0;_0x2c43dd--)(_0x540bbe=_0x571150[_0x2c43dd])&&(_0x8b6361=_0x540bbe(_0x8b6361)||_0x8b6361);return _0x8b6361;},ie=(_0x31bd02,_0x430a01)=>(_0x33ae43,_0x454c4f)=>_0x430a01(_0x33ae43,_0x454c4f,_0x31bd02);let x=class extends a[_0x55fd5e(0x297)]{constructor(_0x18e923,_0xd30714,_0x1eaf64){const _0x123367=_0x55fd5e;super(),h(this,_0x123367(0x2fd),new Map()),h(this,_0x123367(0xee),new d[(_0x123367(0xcd))]()),(this[_0x123367(0x134)]=_0x18e923,this[_0x123367(0x2cb)]=_0xd30714,this[_0x123367(0x32c)]=_0x1eaf64,this['_init']());}[_0x55fd5e(0x23c)](){const _0x56d71e=_0x55fd5e;super[_0x56d71e(0x23c)](),this[_0x56d71e(0xee)][_0x56d71e(0xfe)](),this[_0x56d71e(0x2fd)][_0x56d71e(0x243)](_0x41249a=>_0x41249a[_0x56d71e(0x23c)]());}[_0x55fd5e(0x1b1)](_0x3a3f7a){const _0x550fd1=_0x55fd5e;return this['_entities']['has'](_0x3a3f7a)?this[_0x550fd1(0x2fd)][_0x550fd1(0x178)](_0x3a3f7a)['cursorInfo$']:this[_0x550fd1(0xee)][_0x550fd1(0x21d)](d[_0x550fd1(0x123)](_0xf79e51=>_0xf79e51[_0x550fd1(0x1e1)]===_0x3a3f7a),d[_0x550fd1(0xc8)](_0x3fa969=>_0x3fa969['cursorInfo$']));}[_0x55fd5e(0x14b)](){const _0x14a4ea=_0x55fd5e;this[_0x14a4ea(0x134)]['getTypeOfUnitAdded$'](a[_0x14a4ea(0x207)]['UNIVER_SHEET'])['pipe'](d[_0x14a4ea(0xf1)](this[_0x14a4ea(0xe8)]))['subscribe'](async _0x137183=>{const _0x4d69a1=_0x14a4ea,_0x376e7f=_0x137183['getUnitId'](),_0x28040d=await this[_0x4d69a1(0x140)](_0x376e7f);this['_entityInit$'][_0x4d69a1(0x216)](_0x28040d),this['_entities'][_0x4d69a1(0x26e)](_0x376e7f,_0x28040d);}),this[_0x14a4ea(0x134)][_0x14a4ea(0x1ee)](a['UniverInstanceType'][_0x14a4ea(0x282)])[_0x14a4ea(0x21d)](d['takeUntil'](this[_0x14a4ea(0xe8)]))[_0x14a4ea(0x21d)](d['filter'](_0x1c7ee8=>!_0x1c7ee8['getUnitId']()[_0x14a4ea(0x237)]('__')))[_0x14a4ea(0x2ce)](async _0x8e7edd=>{const _0x2d99f4=_0x14a4ea,_0x3e3d88=_0x8e7edd['getUnitId'](),_0x51ac54=await this[_0x2d99f4(0x16f)](_0x3e3d88);this[_0x2d99f4(0xee)][_0x2d99f4(0x216)](_0x51ac54),this['_entities'][_0x2d99f4(0x26e)](_0x3e3d88,_0x51ac54);}),d[_0x14a4ea(0x27c)](this[_0x14a4ea(0x134)][_0x14a4ea(0x107)](a['UniverInstanceType'][_0x14a4ea(0x282)]),this[_0x14a4ea(0x134)][_0x14a4ea(0x107)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](d['takeUntil'](this[_0x14a4ea(0xe8)]))[_0x14a4ea(0x2ce)](_0x248516=>{const _0x22c24b=_0x14a4ea,_0xd93279=_0x248516[_0x22c24b(0xd6)](),_0x5da786=this[_0x22c24b(0x2fd)]['get'](_0xd93279);_0x5da786&&(_0x5da786[_0x22c24b(0x23c)](),this['_entities'][_0x22c24b(0x20e)](_0xd93279));});}async[_0x55fd5e(0x140)](_0x5bf971){const _0x495c3f=_0x55fd5e,_0x16efd9=await this['_collabSessionService'][_0x495c3f(0x24b)](_0x5bf971),_0x1b4b27=this['_injector']['createInstance'](Se,_0x5bf971,_0x16efd9);return _0x1b4b27[_0x495c3f(0x245)](),_0x1b4b27;}async['_startDocCollabCursor'](_0x1856a4){const _0x1ab0c5=_0x55fd5e,_0x53599e=await this['_collabSessionService'][_0x1ab0c5(0x24b)](_0x1856a4),_0x2f1c9c=this[_0x1ab0c5(0x2cb)][_0x1ab0c5(0x283)](fe,_0x1856a4,_0x53599e);return _0x2f1c9c[_0x1ab0c5(0x245)](),_0x2f1c9c;}};x=ct([ie(0x0,a[_0x55fd5e(0x264)]),ie(0x1,a[_0x55fd5e(0x199)](a[_0x55fd5e(0x1d6)])),ie(0x2,a[_0x55fd5e(0x199)](u[_0x55fd5e(0xda)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1f9c0a,_0x165e81){const _0x314d0f=_0x55fd5e;let {radius:_0x31d6e6,width:_0x1f4302,height:_0x470651}=_0x165e81;_0x31d6e6=_0x31d6e6!=null?_0x31d6e6:0x0,_0x1f4302=_0x1f4302!=null?_0x1f4302:0x1e,_0x470651=_0x470651!=null?_0x470651:0x1e;let _0x13d2fb=0x0,_0x4f2b6e=0x0,_0x2f600a=0x0;_0x13d2fb=_0x4f2b6e=_0x2f600a=Math[_0x314d0f(0x2af)](_0x31d6e6,_0x1f4302/0x2,_0x470651/0x2),_0x1f9c0a[_0x314d0f(0x2e2)](),_0x1f9c0a[_0x314d0f(0x103)](_0x13d2fb,0x0),_0x1f9c0a['lineTo'](_0x1f4302-_0x4f2b6e,0x0),_0x1f9c0a[_0x314d0f(0x256)](_0x1f4302-_0x4f2b6e,_0x4f2b6e,_0x4f2b6e,Math['PI']*0x3/0x2,0x0,!0x1),_0x1f9c0a['lineTo'](_0x1f4302,_0x470651-_0x2f600a),_0x1f9c0a[_0x314d0f(0x256)](_0x1f4302-_0x2f600a,_0x470651-_0x2f600a,_0x2f600a,0x0,Math['PI']/0x2,!0x1),_0x1f9c0a[_0x314d0f(0xca)](0x0,_0x470651),_0x1f9c0a['lineTo'](0x0,_0x13d2fb),_0x1f9c0a['arc'](_0x13d2fb,_0x13d2fb,_0x13d2fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1f9c0a[_0x314d0f(0x180)](),_0x165e81['fill']&&(_0x1f9c0a[_0x314d0f(0x31b)](),_0x1f9c0a[_0x314d0f(0xaf)]=_0x165e81[_0x314d0f(0xf6)],_0x165e81[_0x314d0f(0x1ff)]===_0x314d0f(0x21c)?_0x1f9c0a[_0x314d0f(0xf6)](_0x314d0f(0x21c)):_0x1f9c0a[_0x314d0f(0xf6)](),_0x1f9c0a['restore']());}class ee extends p['Shape']{constructor(_0x2c783b,_0x364ff0){const _0x3253ab=_0x55fd5e;super(_0x2c783b,_0x364ff0),h(this,_0x3253ab(0x10c)),h(this,_0x3253ab(0x17a)),(this[_0x3253ab(0x10c)]=_0x364ff0==null?void 0x0:_0x364ff0[_0x3253ab(0x10c)],this['text']=_0x364ff0==null?void 0x0:_0x364ff0[_0x3253ab(0x17a)]);}static[_0x55fd5e(0x307)](_0x492e2d,_0x22449e){const _0x4d7954=_0x55fd5e,{text:_0x24e650,color:_0x32b28a}=_0x22449e;_0x492e2d['save'](),_0x492e2d[_0x4d7954(0x333)]=_0x4d7954(0x164);const _0x559b9a=_0x492e2d[_0x4d7954(0x108)](_0x24e650)[_0x4d7954(0x263)],_0x30d500=Math[_0x4d7954(0x2af)](_0x559b9a+0x2*ne,Re);_t(_0x492e2d,{'height':K,'radius':0x4,'width':_0x30d500,'fill':_0x32b28a}),_0x492e2d[_0x4d7954(0xaf)]=_0x4d7954(0x2cf);const _0x3a3ccf=ne,_0x1ea958=K-lt,_0x39b443=Re-0x2*ne;if(_0x559b9a>_0x39b443){let _0x1758e7='',_0x5a6f6b=0x0;for(const _0x280789 of _0x24e650){const _0x3d1542=_0x492e2d[_0x4d7954(0x108)](_0x280789)['width'];if(_0x5a6f6b+_0x3d1542<=_0x39b443-_0x492e2d[_0x4d7954(0x108)](_0x4d7954(0x248))['width'])_0x1758e7+=_0x280789,_0x5a6f6b+=_0x3d1542;else{_0x1758e7+=_0x4d7954(0x248);break;}}_0x492e2d[_0x4d7954(0x211)](_0x1758e7,_0x3a3ccf,_0x1ea958);}else _0x492e2d[_0x4d7954(0x211)](_0x24e650,_0x3a3ccf,_0x1ea958);_0x492e2d[_0x4d7954(0x189)]();}['_draw'](_0x51cedd){const _0x3a80a2=_0x55fd5e;ee[_0x3a80a2(0x307)](_0x51cedd,this);}}const re=_0x55fd5e(0x2ee),ht=_0x55fd5e(0xc5),ut=_0x55fd5e(0x289),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x55fd5e(0x2f2);class De{constructor(_0xaa4d88,_0x56e82e,_0x5427dd,_0x561944){const _0x1e2dc2=_0x55fd5e;h(this,_0x1e2dc2(0x26a),[]),h(this,_0x1e2dc2(0x1d9),null),h(this,_0x1e2dc2(0x109),null),h(this,_0x1e2dc2(0x1cf),null),h(this,_0x1e2dc2(0x2ef),null),h(this,_0x1e2dc2(0x249),null),(this['_cursor']=_0xaa4d88,this[_0x1e2dc2(0x23f)]=_0x56e82e,this[_0x1e2dc2(0x17d)]=_0x5427dd,this['_document']=_0x561944,this[_0x1e2dc2(0x2e6)]());}set[_0x55fd5e(0xfa)](_0x1ee798){const _0x143929=_0x55fd5e;_0x1ee798?(this['_anchorDot']&&this[_0x143929(0x1cf)]['hide'](),this['_textBubble']&&this[_0x143929(0x109)][_0x143929(0xff)]()):(this[_0x143929(0x1cf)]&&this['_anchorDot']['show'](),this[_0x143929(0x109)]&&this[_0x143929(0x109)][_0x143929(0x2a5)]());}[_0x55fd5e(0x23c)](){const _0xdd8922=_0x55fd5e;for(const _0x4fe2cd of this['_shapes'])_0x4fe2cd[_0xdd8922(0x23c)]();this[_0xdd8922(0x109)]&&this[_0xdd8922(0x109)][_0xdd8922(0x23c)](),this[_0xdd8922(0x1cf)]&&this[_0xdd8922(0x1cf)]['dispose'](),this['_anchor']&&this[_0xdd8922(0x1d9)][_0xdd8922(0x23c)](),this[_0xdd8922(0x249)]&&this[_0xdd8922(0x249)]();}[_0x55fd5e(0x2e6)](){const _0x177551=_0x55fd5e;var _0x59fbd6;const {_docSkeleton:_0x2a63da,_document:_0x2c7f8e}=this,{color:_0x5dabf2,name:_0x3e9a0,ranges:_0x2925f2}=this[_0x177551(0x303)],_0x53bb44=_0x2c7f8e['getOffsetConfig'](),{docsLeft:_0x1d780d,docsTop:_0x572dda}=_0x53bb44,_0x201e75=new b[(_0x177551(0x168))](_0x53bb44,_0x2a63da);for(const {startOffset:_0x55c352,endOffset:_0x1619b3,rangeType:_0x28951d,segmentId:_0x3a0c4e,segmentPage:_0x4f06f7,collapsed:_0x4b7a5a,isActive:_0x39557a}of _0x2925f2){const _0xe2da03=_0x2a63da[_0x177551(0x19d)](_0x55c352,!0x0,_0x3a0c4e,_0x4f06f7);let _0x265d94=_0x2a63da['findNodePositionByCharIndex'](_0x1619b3,!0x0,_0x3a0c4e,_0x4f06f7);if(_0x265d94==null&&(_0x265d94=_0x2a63da['findNodePositionByCharIndex'](_0x1619b3-0x1,!0x1,_0x3a0c4e,_0x4f06f7)),_0x39557a){const {contentBoxPointGroup:_0x264f69}=_0x201e75[_0x177551(0x28a)](_0x265d94,_0x265d94);if(_0x264f69[_0x177551(0x11d)]===0x0)continue;this[_0x177551(0x125)](_0x5dabf2,_0x264f69,_0x1d780d,_0x572dda,_0x3e9a0),this['_eventUnsubscribe']=this['_handleHover']();}if(_0xe2da03&&_0x265d94){if(_0x28951d===a['DOC_RANGE_TYPE'][_0x177551(0x1b5)]){const _0x5b92ff=new b[(_0x177551(0xbd))](_0x53bb44,_0x2a63da),{pointGroup:_0x1982a2}=(_0x59fbd6=_0x5b92ff[_0x177551(0x28a)](_0xe2da03,_0x265d94))!=null?_0x59fbd6:{};if(_0x1982a2==null||_0x1982a2[_0x177551(0x11d)]===0x0)continue;this[_0x177551(0x24a)](_0x5dabf2,_0x1982a2,_0x1d780d,_0x572dda);}else{if(!_0x4b7a5a){const {borderBoxPointGroup:_0x1593d7}=_0x201e75['getRangePointData'](_0xe2da03,_0x265d94);if(_0x1593d7['length']===0x0)continue;this[_0x177551(0x22e)](_0x5dabf2,_0x1593d7,_0x1d780d,_0x572dda);}}}}}[_0x55fd5e(0x125)](_0x5bbb79,_0x484d7b,_0x50ca6d,_0x39404d,_0x789254){const _0x24a7dd=_0x55fd5e,_0x516b37=this[_0x24a7dd(0x116)](_0x484d7b),{left:_0xa47ad6,top:_0x17b476,height:_0x35acaf}=_0x516b37,_0x16f714=this[_0x24a7dd(0x293)](),_0x37b02a=ft/_0x16f714,_0x57c7bd=new p[(_0x24a7dd(0x175))](re+a[_0x24a7dd(0x176)][_0x24a7dd(0x1b4)](k),{'left':_0xa47ad6+_0x50ca6d-_0x37b02a,'top':_0x17b476+_0x39404d,'height':_0x35acaf,'width':dt,'fill':_0x5bbb79||p['getColor'](a[_0x24a7dd(0x32b)]['black'],0x0),'strokeWidth':_0x37b02a,'stroke':St,'evented':!0x0});this[_0x24a7dd(0x1d9)]=_0x57c7bd,this[_0x24a7dd(0x23f)]['addObject'](_0x57c7bd,b['TEXT_RANGE_LAYER_INDEX']);const _0x2f427c=new p[(_0x24a7dd(0x175))](re+a[_0x24a7dd(0x176)][_0x24a7dd(0x1b4)](k),{'left':_0xa47ad6+_0x50ca6d-_0x37b02a,'top':_0x17b476+_0x39404d-oe/0x2,'height':oe,'width':oe,'fill':_0x5bbb79||p[_0x24a7dd(0x231)](a[_0x24a7dd(0x32b)][_0x24a7dd(0xec)],0x0),'strokeWidth':0x0,'stroke':_0x5bbb79||p[_0x24a7dd(0x231)](a[_0x24a7dd(0x32b)][_0x24a7dd(0xec)],0x0),'evented':!0x1});this[_0x24a7dd(0x1cf)]=_0x2f427c,this[_0x24a7dd(0x23f)]['addObject'](_0x2f427c,b[_0x24a7dd(0x21a)]);const _0x8788ea=new ee(re+a[_0x24a7dd(0x176)][_0x24a7dd(0x1b4)](k),{'left':_0xa47ad6+_0x50ca6d-_0x37b02a,'top':_0x17b476+_0x39404d-K,'text':_0x789254,'color':_0x5bbb79});this[_0x24a7dd(0x109)]=_0x8788ea,this[_0x24a7dd(0x23f)]['addObject'](_0x8788ea,b[_0x24a7dd(0x21a)]),this[_0x24a7dd(0xfa)]=!0x1;}[_0x55fd5e(0x213)](){const _0x3353c5=_0x55fd5e,_0x5cebed=this[_0x3353c5(0x1d9)][_0x3353c5(0x191)][_0x3353c5(0x12f)](()=>{const _0xb6330d=_0x3353c5;this[_0xb6330d(0xfa)]=!0x0;}),_0x49f3c6=this[_0x3353c5(0x1d9)]['onPointerLeave$'][_0x3353c5(0x12f)](()=>{const _0x19114b=_0x3353c5;this[_0x19114b(0x2ef)]&&clearTimeout(this[_0x19114b(0x2ef)]),this['_hideTimer']=setTimeout(()=>{const _0x282d7f=_0x19114b;this[_0x282d7f(0xfa)]=!0x1;},0x7d0);});return()=>{const _0xdcba74=_0x3353c5;_0x5cebed[_0xdcba74(0x2e1)](),_0x49f3c6[_0xdcba74(0x2e1)]();};}['_drawTextRange'](_0x6065f5,_0x5b6903,_0x137a4f,_0x562de8){const _0x1b2010=_0x55fd5e,_0x5002c8=new a[(_0x1b2010(0x16b))](_0x6065f5)[_0x1b2010(0x113)](0.2)['toRgbString'](),_0x534282=new p[(_0x1b2010(0xb2))](ht+a[_0x1b2010(0x176)][_0x1b2010(0x1b4)](k),{'pointsGroup':_0x5b6903,'fill':_0x5002c8||p[_0x1b2010(0x231)](a[_0x1b2010(0x32b)][_0x1b2010(0xec)],0.2),'left':_0x137a4f,'top':_0x562de8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1b2010(0x26a)]['push'](_0x534282),this['_scene'][_0x1b2010(0x17e)](_0x534282,b[_0x1b2010(0x21a)]);}[_0x55fd5e(0x24a)](_0x3d07ca,_0x2edc39,_0x5c8838,_0x3b6861){const _0x5bc3bc=_0x55fd5e,_0x5a4cdd=new a[(_0x5bc3bc(0x16b))](_0x3d07ca)['setAlpha'](0.2)[_0x5bc3bc(0x1d4)](),_0x3ecc3b=new p[(_0x5bc3bc(0xb2))](ut+a[_0x5bc3bc(0x176)][_0x5bc3bc(0x1b4)](k),{'pointsGroup':_0x2edc39,'fill':_0x5a4cdd||p[_0x5bc3bc(0x231)](a[_0x5bc3bc(0x32b)][_0x5bc3bc(0xec)],0.2),'left':_0x5c8838,'top':_0x3b6861,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5bc3bc(0x26a)][_0x5bc3bc(0x280)](_0x3ecc3b),this['_scene'][_0x5bc3bc(0x17e)](_0x3ecc3b,b[_0x5bc3bc(0x21a)]);}[_0x55fd5e(0x116)](_0x4dd7ee){const _0x5b64dc=_0x4dd7ee[0x0],_0x2c5602=_0x5b64dc[0x0],_0x166355=_0x5b64dc[0x2],{x:_0x269d1e,y:_0x5da706}=_0x2c5602,{x:_0x29317c,y:_0x2538db}=_0x166355;return{'left':_0x269d1e,'top':_0x5da706,'width':_0x29317c-_0x269d1e,'height':_0x2538db-_0x5da706};}[_0x55fd5e(0x293)](){const _0x2b561d=_0x55fd5e,{scaleX:_0x2c2895,scaleY:_0x118e29}=this[_0x2b561d(0x23f)]['getAncestorScale']();return Math[_0x2b561d(0x319)](_0x2c2895,_0x118e29);}}var It=Object[_0x55fd5e(0x1f2)],vt=(_0x125a6b,_0x4feeed,_0x1c945a,_0x56ea5d)=>{const _0x7d1100=_0x55fd5e;for(var _0x31ca8c=_0x56ea5d>0x1?void 0x0:_0x56ea5d?It(_0x4feeed,_0x1c945a):_0x4feeed,_0x24d180=_0x125a6b[_0x7d1100(0x11d)]-0x1,_0xb0e0e7;_0x24d180>=0x0;_0x24d180--)(_0xb0e0e7=_0x125a6b[_0x24d180])&&(_0x31ca8c=_0xb0e0e7(_0x31ca8c)||_0x31ca8c);return _0x31ca8c;},W=(_0xd9ab7b,_0x14197c)=>(_0x6e0595,_0x5d7a5f)=>_0x14197c(_0x6e0595,_0x5d7a5f,_0xd9ab7b);let Ie=class extends a[_0x55fd5e(0x297)]{constructor(_0x239d39,_0xad666c,_0x42647d,_0x4269d4,_0x14a472){const _0x2daf9c=_0x55fd5e;super(),h(this,_0x2daf9c(0x278),[]),h(this,_0x2daf9c(0x226),[]),(this['_context']=_0x239d39,this[_0x2daf9c(0x30c)]=_0xad666c,this['_collabCursorController']=_0x42647d,this[_0x2daf9c(0x1a6)]=_0x4269d4,this[_0x2daf9c(0x2a6)]=_0x14a472,this[_0x2daf9c(0x14b)]());}[_0x55fd5e(0x14b)](){const _0x2efa1f=_0x55fd5e,_0x23556a=this[_0x2efa1f(0x1c9)][_0x2efa1f(0x215)],_0x5ce533=this['_docSkeletonManagerService'];this[_0x2efa1f(0x1bf)](d[_0x2efa1f(0x328)]([this[_0x2efa1f(0xc3)][_0x2efa1f(0x1b1)](_0x23556a),this[_0x2efa1f(0x2a6)][_0x2efa1f(0xcb)]])[_0x2efa1f(0x21d)]($[_0x2efa1f(0x2b0)](([_0x4d2eb9,_0x2381af])=>({'skeleton':_0x5ce533[_0x2efa1f(0x20a)](),'cursors':[..._0x4d2eb9[_0x2efa1f(0x2aa)]()]['flatMap'](_0x42a981=>({..._0x42a981,'color':this['_themeService'][_0x2efa1f(0x17c)](_0x42a981[_0x2efa1f(0x10c)])}))})))[_0x2efa1f(0x2ce)](_0x3f4ced=>{const _0x1adcd=_0x2efa1f;if(this['_removeCollabCursors'](),_0x3f4ced){const {skeleton:_0x3a4ef4,cursors:_0x2bc115}=_0x3f4ced;this[_0x1adcd(0x25f)](_0x3a4ef4,_0x2bc115);}})),this[_0x2efa1f(0x301)](),this[_0x2efa1f(0x2cd)]();}[_0x55fd5e(0x25f)](_0x1d2d10,_0x3f9189){const _0x21ffad=_0x55fd5e,{scene:_0x16709c,mainComponent:_0x307a7f}=this[_0x21ffad(0x1c9)],_0x58dd07=_0x3f9189['map'](_0x46c9a4=>new De(_0x46c9a4,_0x16709c,_0x1d2d10,_0x307a7f));this[_0x21ffad(0x278)]=_0x58dd07,this['_cursors']=_0x3f9189;}['_refreshCollabCursors'](){const _0x1f3f36=_0x55fd5e;this[_0x1f3f36(0x2c6)]();const {scene:_0x2c2559,mainComponent:_0x6c5239}=this[_0x1f3f36(0x1c9)],_0x2fe166=this[_0x1f3f36(0x30c)][_0x1f3f36(0x20a)](),_0x23d992=this[_0x1f3f36(0x226)]['map'](_0x17bd8e=>new De(_0x17bd8e,_0x2c2559,_0x2fe166,_0x6c5239));this[_0x1f3f36(0x278)]=_0x23d992;}[_0x55fd5e(0x2c6)](){const _0x13182d=_0x55fd5e;this[_0x13182d(0x278)]['forEach'](_0x1653b2=>_0x1653b2[_0x13182d(0x23c)]()),this[_0x13182d(0x278)]=[];}[_0x55fd5e(0x2cd)](){const _0x168cff=_0x55fd5e,_0x53ea22=[b[_0x168cff(0x308)]['id']];this['disposeWithMe'](this[_0x168cff(0x1a6)]['onCommandExecuted'](_0x501934=>{const _0x111685=_0x168cff;_0x53ea22[_0x111685(0x1d2)](_0x501934['id'])&&_0x501934[_0x111685(0x12d)][_0x111685(0x215)]===this[_0x111685(0x1c9)][_0x111685(0x215)]&&this['_refreshCollabCursors']();}));}[_0x55fd5e(0x301)](){const _0x1c57a4=_0x55fd5e;this[_0x1c57a4(0x1bf)](a['fromEventSubject'](this['_context']['engine'][_0x1c57a4(0xc6)])[_0x1c57a4(0x21d)]($[_0x1c57a4(0x123)](_0x316458=>_0x316458['type']===p[_0x1c57a4(0x138)][_0x1c57a4(0x2b6)]),$[_0x1c57a4(0x2c4)](0x10))[_0x1c57a4(0x2ce)](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([W(0x1,a[_0x55fd5e(0x199)](Y[_0x55fd5e(0xe2)])),W(0x2,a[_0x55fd5e(0x199)](x)),W(0x3,a[_0x55fd5e(0x218)]),W(0x4,a[_0x55fd5e(0x199)](a[_0x55fd5e(0x193)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x55fd5e(0xe9)]{constructor(_0x5c1260,_0x227c4b){const _0x453c85=_0x55fd5e;super(_0x5c1260,_0x227c4b),h(this,'_color'),h(this,_0x453c85(0x258),!0x1),h(this,_0x453c85(0x14a)),h(this,_0x453c85(0x190),''),h(this,_0x453c85(0x2d3),_0x453c85(0x232)),h(this,'_backgroundColor'),(_0x227c4b&&this[_0x453c85(0xd1)](_0x227c4b),this[_0x453c85(0x191)][_0x453c85(0x12f)](()=>this[_0x453c85(0xd1)]({'hovered':!0x0})),this[_0x453c85(0x19a)][_0x453c85(0x12f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x55fd5e(0xd1)](_0x1e94fd){const _0x508bff=_0x55fd5e;var _0x5337a7,_0x295504,_0x15fbb0,_0x3e91da,_0x8252e4,_0x50a541;this[_0x508bff(0x267)]=(_0x5337a7=_0x1e94fd[_0x508bff(0x10c)])!=null?_0x5337a7:this[_0x508bff(0x267)],this['_hovered']=(_0x295504=_0x1e94fd['hovered'])!=null?_0x295504:this[_0x508bff(0x258)],this[_0x508bff(0x14a)]=(_0x15fbb0=_0x1e94fd['range'])!=null?_0x15fbb0:this[_0x508bff(0x14a)],this[_0x508bff(0x190)]=(_0x3e91da=_0x1e94fd[_0x508bff(0x25a)])!=null?_0x3e91da:this[_0x508bff(0x190)],this[_0x508bff(0x2d3)]=(_0x8252e4=_0x1e94fd[_0x508bff(0x14d)])!=null?_0x8252e4:this['_labelPosition'],this[_0x508bff(0x106)]=(_0x50a541=_0x1e94fd[_0x508bff(0x2ec)])!=null?_0x50a541:this['_backgroundColor'],this[_0x508bff(0x2ea)]({'width':_0x1e94fd['width'],'height':_0x1e94fd[_0x508bff(0x313)]});}['onMouseMove'](_0x3112f9){const _0x5e4f90=_0x55fd5e,{row:_0xaa160c,column:_0x76396e}=_0x3112f9;if(_0xaa160c>=this[_0x5e4f90(0x14a)][_0x5e4f90(0x2c0)]&&_0xaa160c<=this[_0x5e4f90(0x14a)][_0x5e4f90(0x32e)]&&_0x76396e>=this['_range'][_0x5e4f90(0x335)]&&_0x76396e<=this[_0x5e4f90(0x14a)]['endColumn']){this[_0x5e4f90(0xd1)]({'hovered':!0x0});return;}this[_0x5e4f90(0xd1)]({'hovered':!0x1});}[_0x55fd5e(0x1be)](_0x224035){return!0x1;}[_0x55fd5e(0x18d)](_0x2de344){const _0xc22fbf=_0x55fd5e;p['Rect']['drawWith'](_0x2de344,{'width':this[_0xc22fbf(0x263)],'height':this[_0xc22fbf(0x313)],'strokeWidth':mt,'stroke':this[_0xc22fbf(0x267)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xc22fbf(0x258)]&&(_0x2de344['save'](),_0x2de344[_0xc22fbf(0x121)](0x1,0x0,0x0,0x1,this['width'],this[_0xc22fbf(0x2d3)]===_0xc22fbf(0x2ba)?0x0:-0x14),ee[_0xc22fbf(0x307)](_0x2de344,{'text':this[_0xc22fbf(0x190)],'color':this[_0xc22fbf(0x267)]}),_0x2de344[_0xc22fbf(0x189)]());}}var Ct=Object[_0x55fd5e(0x1f2)],pt=(_0x5bcb67,_0x122fab,_0x4cfbf4,_0x7b25f0)=>{const _0x35963a=_0x55fd5e;for(var _0x21ab32=_0x7b25f0>0x1?void 0x0:_0x7b25f0?Ct(_0x122fab,_0x4cfbf4):_0x122fab,_0x14b6a5=_0x5bcb67[_0x35963a(0x11d)]-0x1,_0x58e786;_0x14b6a5>=0x0;_0x14b6a5--)(_0x58e786=_0x5bcb67[_0x14b6a5])&&(_0x21ab32=_0x58e786(_0x21ab32)||_0x21ab32);return _0x21ab32;},ae=(_0xa23b87,_0x46184e)=>(_0x5fc508,_0x47a505)=>_0x46184e(_0x5fc508,_0x47a505,_0xa23b87);const bt=0x1389;let ve=class extends a[_0x55fd5e(0x297)]{constructor(_0x43751d,_0x1faf78,_0x545a72,_0x252de4){const _0x5241a5=_0x55fd5e;super(),h(this,_0x5241a5(0x226),new Set()),h(this,_0x5241a5(0x11e),null),(this[_0x5241a5(0x1c9)]=_0x43751d,this[_0x5241a5(0x2d0)]=_0x1faf78,this['_collabCursorController']=_0x545a72,this[_0x5241a5(0x2a6)]=_0x252de4,this[_0x5241a5(0x14b)]());}['_init'](){const _0x192781=_0x55fd5e;this[_0x192781(0x2d0)]['currentSkeleton$'][_0x192781(0x21d)]($[_0x192781(0xf1)](this[_0x192781(0xe8)]),$[_0x192781(0xc8)](_0x169f77=>{const _0x127362=_0x192781;if(_0x169f77){const _0x305aa1=_0x169f77[_0x127362(0xbb)];return d[_0x127362(0x328)](this[_0x127362(0xc3)][_0x127362(0x1b1)](this['_context']['unitId']),this[_0x127362(0x2a6)][_0x127362(0xcb)])[_0x127362(0x21d)]($[_0x127362(0x2b0)](([_0x133230,_0x10c6ce])=>{const _0x49aaf9=_0x127362,_0x3ee4d3=new Map();return _0x133230[_0x49aaf9(0x243)]((_0xb8d7b4,_0x3305b1)=>{const _0x3d124d=_0x49aaf9;if(_0xb8d7b4[_0x3d124d(0x202)]===_0x305aa1){const _0x27716d={..._0xb8d7b4};_0x27716d[_0x3d124d(0x10c)]=this[_0x3d124d(0x2a6)][_0x3d124d(0x17c)](_0xb8d7b4[_0x3d124d(0x10c)]),_0x3ee4d3['set'](_0x3305b1,_0x27716d);}}),{'skeleton':_0x169f77,'cursors':_0x3ee4d3};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x192781(0x2ce)](({skeleton:_0x341c7a,cursors:_0x511e5d})=>{const _0x47d525=_0x192781;this[_0x47d525(0x2c6)](),_0x341c7a&&this[_0x47d525(0x25f)](_0x341c7a,_0x511e5d);}),this[_0x192781(0x2d0)][_0x192781(0x1fa)][_0x192781(0x2ce)](_0x4253c2=>{const _0x5b1643=_0x192781;if(_0x4253c2==null)return;const {skeleton:_0x28b835}=_0x4253c2,{scene:_0x5cff4f}=this[_0x5b1643(0x1c9)];_0x5cff4f['onPointerMove$'][_0x5b1643(0x12f)](a[_0x5b1643(0x2d9)](_0x354a8c=>{const _0xcc9eb6=_0x5b1643;var _0x33a4e1,_0x4c7ef8;const {offsetX:_0x5c85c8,offsetY:_0x7fbb96}=_0x354a8c,{x:_0x2c5b35,y:_0xc4cee}=_0x5cff4f[_0xcc9eb6(0x2a0)](p['Vector2']['FromArray']([_0x5c85c8,_0x7fbb96])),{scaleX:_0xfff827,scaleY:_0x1fe6f8}=_0x5cff4f[_0xcc9eb6(0x1a1)](),_0x235cae=_0x5cff4f[_0xcc9eb6(0x13e)](p[_0xcc9eb6(0x1cb)][_0xcc9eb6(0x268)]),_0x586672=_0x5cff4f[_0xcc9eb6(0xb0)](p['Vector2'][_0xcc9eb6(0x126)]([_0x2c5b35,_0xc4cee]),_0x235cae),_0x1f683a=_0x28b835[_0xcc9eb6(0x1b7)](_0x5c85c8,_0x7fbb96,_0xfff827,_0x1fe6f8,_0x586672);((_0x33a4e1=this['_lastPointer'])==null?void 0x0:_0x33a4e1['column'])===_0x1f683a[_0xcc9eb6(0xbf)]&&((_0x4c7ef8=this[_0xcc9eb6(0x11e)])==null?void 0x0:_0x4c7ef8[_0xcc9eb6(0x1f3)])===_0x1f683a[_0xcc9eb6(0x1f3)]||this[_0xcc9eb6(0x226)][_0xcc9eb6(0x243)](_0x16610b=>{const _0xecd550=_0xcc9eb6;_0x16610b[_0xecd550(0x148)](_0x1f683a);});},0x64));});}[_0x55fd5e(0x25f)](_0x100b5f,_0x52defe){const _0x5c9671=_0x55fd5e;var _0x37a5e0;const _0xcc5610=(_0x37a5e0=this[_0x5c9671(0x2d0)][_0x5c9671(0x2d2)]())==null?void 0x0:_0x37a5e0[_0x5c9671(0x214)];if(!_0xcc5610)return;const _0x44f50e=this[_0x5c9671(0x30e)]();if(!_0x44f50e)return;this[_0x5c9671(0x226)][_0x5c9671(0x243)](_0x3dd9a5=>{const _0x49cf25=_0x5c9671;_0x3dd9a5[_0x49cf25(0xdd)]();});const {scene:_0x44c2ed}=_0x44f50e,_0x641084=Et(Array[_0x5c9671(0xc2)](_0x52defe[_0x5c9671(0x2aa)]()))[_0x5c9671(0x2b0)](_0x46208a=>{const _0x213a1c=_0x5c9671,{color:_0x373dbe,range:_0x297210,name:_0x3bf165,selection:_0x3ec514,sheetID:_0x7414f7}=_0x46208a,{startColumn:_0x16e9c2,startRow:_0x32cbe2,endColumn:_0x19cf10,endRow:_0x2df6a1}=_0x297210,_0x1f5def=X[_0x213a1c(0x15e)](_0x32cbe2,_0x16e9c2,_0x44c2ed,_0xcc5610),_0x3b2880=X[_0x213a1c(0x15e)](_0x2df6a1,_0x19cf10,_0x44c2ed,_0xcc5610),{columnHeaderHeightAndMarginTop:_0x29d8d8}=_0xcc5610,{startX:_0x3c1290,startY:_0x24710f}=_0x1f5def,{endX:_0x336c7d,endY:_0x35c3b3}=_0x3b2880,_0x2877ce=_0x336c7d-_0x3c1290,_0x1599f9=_0x35c3b3-_0x24710f,_0x44b22d={'labelPosition':_0x24710f-_0x29d8d8>=K?'top':_0x213a1c(0x2ba),'sheetID':_0x7414f7,'range':_0x297210,'color':_0x373dbe,'name':_0x3bf165,'selection':_0x3ec514,'left':_0x3c1290,'top':_0x24710f,'width':_0x2877ce,'height':_0x1599f9,'evented':!0x1,'zIndex':bt};return new Ae(_0x3bf165,_0x44b22d);});_0x44c2ed[_0x5c9671(0x145)](_0x641084,gt),this[_0x5c9671(0x226)]=new Set(_0x641084);}['_removeCollabCursors'](){const _0x335537=_0x55fd5e;var _0x36d154;(_0x36d154=this[_0x335537(0x226)])==null||_0x36d154[_0x335537(0x243)](_0x398485=>_0x398485[_0x335537(0x23c)]());}[_0x55fd5e(0x30e)](){const _0x580d61=_0x55fd5e;return X[_0x580d61(0x19f)](this[_0x580d61(0x1c9)]['unit'],this[_0x580d61(0x1c9)]);}};ve=pt([ae(0x1,a[_0x55fd5e(0x199)](X[_0x55fd5e(0x15c)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x55fd5e(0x199)](a['ThemeService']))],ve);function Et(_0x350fbc){const _0x16beb2=_0x55fd5e,_0x42d48a=new Map();return _0x350fbc[_0x16beb2(0x243)](_0x2a4a08=>{const _0x2fe106=_0x16beb2;if(_0x42d48a[_0x2fe106(0x1a2)](_0x2a4a08[_0x2fe106(0x1de)])){const _0x8224a1=_0x42d48a[_0x2fe106(0x178)](_0x2a4a08[_0x2fe106(0x1de)]);_0x8224a1[_0x2fe106(0x25a)]+=',\x20'+_0x2a4a08[_0x2fe106(0x25a)];}else _0x42d48a[_0x2fe106(0x26e)](_0x2a4a08[_0x2fe106(0x1de)],_0x2a4a08);}),Array[_0x16beb2(0xc2)](_0x42d48a[_0x16beb2(0x2aa)]());}var E=function(){const _0x738737=_0x55fd5e;return E=Object[_0x738737(0x25e)]||function(_0xbfd04d){const _0x33789e=_0x738737;for(var _0x2571d4,_0x39d313=0x1,_0x4518f7=arguments[_0x33789e(0x11d)];_0x39d313<_0x4518f7;_0x39d313++){_0x2571d4=arguments[_0x39d313];for(var _0xc3aa6 in _0x2571d4)Object['prototype'][_0x33789e(0x130)][_0x33789e(0x28c)](_0x2571d4,_0xc3aa6)&&(_0xbfd04d[_0xc3aa6]=_0x2571d4[_0xc3aa6]);}return _0xbfd04d;},E[_0x738737(0x187)](this,arguments);},Tt=function(_0x597af2,_0x22f6a1){const _0x322da0=_0x55fd5e;var _0x56f9bc={};for(var _0x1f5ea7 in _0x597af2)Object[_0x322da0(0x16d)][_0x322da0(0x130)][_0x322da0(0x28c)](_0x597af2,_0x1f5ea7)&&_0x22f6a1[_0x322da0(0x115)](_0x1f5ea7)<0x0&&(_0x56f9bc[_0x1f5ea7]=_0x597af2[_0x1f5ea7]);if(_0x597af2!=null&&typeof Object[_0x322da0(0x1a4)]==_0x322da0(0x22a)){for(var _0x49c34b=0x0,_0x1f5ea7=Object[_0x322da0(0x1a4)](_0x597af2);_0x49c34b<_0x1f5ea7[_0x322da0(0x11d)];_0x49c34b++)_0x22f6a1[_0x322da0(0x115)](_0x1f5ea7[_0x49c34b])<0x0&&Object[_0x322da0(0x16d)][_0x322da0(0x304)][_0x322da0(0x28c)](_0x597af2,_0x1f5ea7[_0x49c34b])&&(_0x56f9bc[_0x1f5ea7[_0x49c34b]]=_0x597af2[_0x1f5ea7[_0x49c34b]]);}return _0x56f9bc;},pe=M[_0x55fd5e(0x286)](function(_0x4861cd,_0x545057){const _0x90d8fc=_0x55fd5e;var _0xf97ebb=_0x4861cd['icon'],_0x4a46ff=_0x4861cd['id'],_0xa3ed95=_0x4861cd['className'],_0x28613f=_0x4861cd['extend'],_0xcfa4ed=Tt(_0x4861cd,[_0x90d8fc(0x1fc),'id',_0x90d8fc(0x1e8),_0x90d8fc(0x2f9)]),_0x5a987e=_0x90d8fc(0x156)[_0x90d8fc(0x2df)](_0x4a46ff,'\x20')[_0x90d8fc(0x2df)](_0xa3ed95||'')[_0x90d8fc(0x29b)](),_0x354747=M[_0x90d8fc(0xe0)]('_'[_0x90d8fc(0x2df)](Dt()));return we(_0xf97ebb,''[_0x90d8fc(0x2df)](_0x4a46ff),{'defIds':_0xf97ebb[_0x90d8fc(0xfb)],'idSuffix':_0x354747['current']},E({'ref':_0x545057,'className':_0x5a987e},_0xcfa4ed),_0x28613f);});function we(_0x526c57,_0x5149c9,_0x500c02,_0x2a9635,_0x493204){const _0x70c662=_0x55fd5e;return M[_0x70c662(0x250)](_0x526c57[_0x70c662(0x1f0)],E(E({'key':_0x5149c9},Ot(_0x526c57,_0x500c02,_0x493204)),_0x2a9635),(Rt(_0x526c57,_0x500c02)[_0x70c662(0x11b)]||[])[_0x70c662(0x2b0)](function(_0x3ff029,_0x57cf83){const _0x498719=_0x70c662;return we(_0x3ff029,''[_0x498719(0x2df)](_0x5149c9,'-')['concat'](_0x526c57['tag'],'-')[_0x498719(0x2df)](_0x57cf83),_0x500c02,void 0x0,_0x493204);}));}function Ot(_0x454553,_0x18a33c,_0x53cee8){const _0x5e7a50=_0x55fd5e;var _0x51bf59=E({},_0x454553[_0x5e7a50(0x32a)]);_0x53cee8!=null&&_0x53cee8['colorChannel1']&&_0x51bf59['fill']===_0x5e7a50(0xf7)&&(_0x51bf59[_0x5e7a50(0xf6)]=_0x53cee8[_0x5e7a50(0xf7)]),_0x454553['tag']===_0x5e7a50(0x114)&&_0x51bf59['id']&&(_0x51bf59['id']=_0x51bf59['id']+_0x18a33c[_0x5e7a50(0x2dd)]),Object[_0x5e7a50(0x229)](_0x51bf59)[_0x5e7a50(0x243)](function(_0xccd9db){const _0xe5cd6f=_0x5e7a50;var _0x5ce0b6=_0xccd9db[0x0],_0x238181=_0xccd9db[0x1];_0x5ce0b6===_0xe5cd6f(0x114)&&typeof _0x238181==_0xe5cd6f(0x158)&&(_0x51bf59[_0x5ce0b6]=_0x238181['replace'](/url\(#(.*)\)/,_0xe5cd6f(0x1aa)[_0xe5cd6f(0x2df)](_0x18a33c[_0xe5cd6f(0x2dd)],')')));});var _0x829494=_0x18a33c[_0x5e7a50(0xfb)];return!_0x829494||_0x829494['length']===0x0||(_0x454553[_0x5e7a50(0x1f0)]==='use'&&_0x51bf59[_0x5e7a50(0x29e)]&&(_0x51bf59[_0x5e7a50(0x29e)]=_0x51bf59[_0x5e7a50(0x29e)]+_0x18a33c[_0x5e7a50(0x2dd)]),Object[_0x5e7a50(0x229)](_0x51bf59)[_0x5e7a50(0x243)](function(_0x2fffb5){const _0x3fd783=_0x5e7a50;var _0x2492f9=_0x2fffb5[0x0],_0x59cf6d=_0x2fffb5[0x1];typeof _0x59cf6d=='string'&&(_0x51bf59[_0x2492f9]=_0x59cf6d[_0x3fd783(0x2c5)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x18a33c[_0x3fd783(0x2dd)],')')));})),_0x51bf59;}function Rt(_0x3d8f41,_0x56584e){const _0xcef8a7=_0x55fd5e;var _0x56c07f,_0x196eaf=_0x56584e[_0xcef8a7(0xfb)];return!_0x196eaf||_0x196eaf[_0xcef8a7(0x11d)]===0x0?_0x3d8f41:_0x3d8f41['tag']==='defs'&&(!((_0x56c07f=_0x3d8f41[_0xcef8a7(0x11b)])===null||_0x56c07f===void 0x0)&&_0x56c07f[_0xcef8a7(0x11d)])?E(E({},_0x3d8f41),{'children':_0x3d8f41[_0xcef8a7(0x11b)]['map'](function(_0xa6e180){const _0x223788=_0xcef8a7;return typeof _0xa6e180[_0x223788(0x32a)]['id']==_0x223788(0x158)&&_0x196eaf&&_0x196eaf[_0x223788(0x115)](_0xa6e180[_0x223788(0x32a)]['id'])>-0x1?E(E({},_0xa6e180),{'attrs':E(E({},_0xa6e180[_0x223788(0x32a)]),{'id':_0xa6e180[_0x223788(0x32a)]['id']+_0x56584e[_0x223788(0x2dd)]})}):_0xa6e180;})}):_0x3d8f41;}function Dt(){const _0x1fb0ec=_0x55fd5e;return Math[_0x1fb0ec(0x144)]()[_0x1fb0ec(0x14e)](0x24)[_0x1fb0ec(0x255)](0x2,0x8);}pe[_0x55fd5e(0x2f1)]=_0x55fd5e(0x228);var Ut={'tag':_0x55fd5e(0xd8),'attrs':{'fill':_0x55fd5e(0x14f),'viewBox':_0x55fd5e(0x1fe),'width':_0x55fd5e(0x198),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x55fd5e(0xfc)},'children':[{'tag':_0x55fd5e(0x241),'attrs':{'stroke':_0x55fd5e(0x28b),'d':_0x55fd5e(0x12e),'strokeLinecap':_0x55fd5e(0x201),'strokeLinejoin':_0x55fd5e(0x201),'strokeWidth':1.2}}]},{'tag':_0x55fd5e(0x22d),'attrs':{},'children':[{'tag':_0x55fd5e(0x11a),'attrs':{'id':_0x55fd5e(0x2bd)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x55fd5e(0x2bd)]},ye=M['forwardRef'](function(_0x48844c,_0x4781f){const _0x5d9945=_0x55fd5e;return M[_0x5d9945(0x250)](pe,Object[_0x5d9945(0x25e)]({},_0x48844c,{'id':_0x5d9945(0xed),'ref':_0x4781f,'icon':Ut}));});ye[_0x55fd5e(0x2f1)]='OffLineSingle';var Nt={'tag':_0x55fd5e(0xd8),'attrs':{'fill':_0x55fd5e(0x14f),'viewBox':_0x55fd5e(0x2c3),'width':_0x55fd5e(0x198),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x55fd5e(0x157)},'children':[{'tag':_0x55fd5e(0x241),'attrs':{'stroke':_0x55fd5e(0x28b),'d':_0x55fd5e(0x112),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x55fd5e(0x22d),'attrs':{},'children':[{'tag':_0x55fd5e(0x11a),'attrs':{'id':_0x55fd5e(0x1a0)},'children':[{'tag':_0x55fd5e(0x241),'attrs':{'fill':_0x55fd5e(0x31f),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x55fd5e(0x1a0)]},$e=M[_0x55fd5e(0x286)](function(_0x42e9f3,_0x3e5377){const _0x79c019=_0x55fd5e;return M[_0x79c019(0x250)](pe,Object[_0x79c019(0x25e)]({},_0x42e9f3,{'id':_0x79c019(0x298),'ref':_0x3e5377,'icon':Nt}));});$e[_0x55fd5e(0x2f1)]=_0x55fd5e(0x212);function Mt(_0x594034){const _0x496bf1=_0x55fd5e;switch(_0x594034){case u['CollaborationStatus'][_0x496bf1(0x20f)]:return _0x496bf1(0x27e);case u['CollaborationStatus']['CONFLICT']:return _0x496bf1(0x2c1);case u[_0x496bf1(0x19e)][_0x496bf1(0x253)]:return _0x496bf1(0x196);case u[_0x496bf1(0x19e)][_0x496bf1(0x2e4)]:return _0x496bf1(0x1bc);case u[_0x496bf1(0x19e)][_0x496bf1(0x1eb)]:case u['CollaborationStatus'][_0x496bf1(0x2d4)]:return _0x496bf1(0x15f);case u[_0x496bf1(0x19e)][_0x496bf1(0x166)]:case u[_0x496bf1(0x19e)]['PENDING']:return _0x496bf1(0xf8);}}function xe(_0x593658){const _0x1f3e3f=_0x55fd5e,{status$:_0x4e31a7}=_0x593658,_0x38f8da=T[_0x1f3e3f(0x223)](_0x4e31a7,u[_0x1f3e3f(0x19e)][_0x1f3e3f(0x2e4)]),_0x3acec7=T['useDependency'](a[_0x1f3e3f(0x15d)]),_0x4230f3=T[_0x1f3e3f(0x1a5)](u[_0x1f3e3f(0xda)]),_0x3d51bd=_0x38f8da!==u[_0x1f3e3f(0x19e)][_0x1f3e3f(0x20f)],_0x4d7a0f=_0x3acec7['t'](Mt(_0x38f8da)),_0x46552e=_0x3d51bd?P[_0x1f3e3f(0x1c5)]($e,{}):P[_0x1f3e3f(0x1c5)](ye,{}),_0x562a69=M['useCallback'](()=>{_0x3d51bd||_0x4230f3['reconnect']();},[_0x3d51bd,_0x4230f3]);function _0x5ccdd1(){const _0x42e87e=_0x1f3e3f;return P['jsxs']('div',{'className':_0x42e87e(0x2f5),'onClick':_0x562a69,'children':[P[_0x42e87e(0x1c5)]('div',{'className':D[_0x42e87e(0x15a)](_0x42e87e(0xfd),_0x3d51bd?_0x42e87e(0x137):_0x42e87e(0x1f5)),'children':_0x46552e}),P[_0x42e87e(0x1c5)]('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x4d7a0f})]});}return _0x3d51bd?_0x5ccdd1():P['jsx'](D[_0x1f3e3f(0x27f)],{'title':_0x3acec7['t'](_0x1f3e3f(0x124)),'children':_0x5ccdd1()});}var Lt=Object[_0x55fd5e(0x1f2)],Pt=(_0x1f8bb7,_0x2c7d31,_0x807682,_0x5ea511)=>{const _0x4a9cab=_0x55fd5e;for(var _0x2dbe5c=_0x5ea511>0x1?void 0x0:_0x5ea511?Lt(_0x2c7d31,_0x807682):_0x2c7d31,_0xe00240=_0x1f8bb7[_0x4a9cab(0x11d)]-0x1,_0x4e731d;_0xe00240>=0x0;_0xe00240--)(_0x4e731d=_0x1f8bb7[_0xe00240])&&(_0x2dbe5c=_0x4e731d(_0x2dbe5c)||_0x2dbe5c);return _0x2dbe5c;},V=(_0x43270b,_0x917efc)=>(_0x4fe0ea,_0xff0656)=>_0x917efc(_0x4fe0ea,_0xff0656,_0x43270b);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x55fd5e(0xe3)]{constructor(_0x57080a,_0x52fb74,_0x28ba7e,_0x2e4b5c){const _0x3a4abf=_0x55fd5e;super(),h(this,_0x3a4abf(0x2c2),new d[(_0x3a4abf(0xad))](u[_0x3a4abf(0x19e)][_0x3a4abf(0x2e4)])),(this[_0x3a4abf(0x134)]=_0x57080a,this['_injector']=_0x52fb74,this[_0x3a4abf(0x2bf)]=_0x28ba7e,this[_0x3a4abf(0x261)]=_0x2e4b5c,this[_0x3a4abf(0x327)](),this['_initStatusListener']());}[_0x55fd5e(0x27a)](){const _0x47ce0c=_0x55fd5e;this[_0x47ce0c(0x1bf)](this[_0x47ce0c(0x134)][_0x47ce0c(0x2a9)][_0x47ce0c(0x21d)](d[_0x47ce0c(0xc8)](()=>{const _0x2cce63=_0x47ce0c,_0x33daa8=this[_0x2cce63(0x134)][_0x2cce63(0x128)]();return _0x33daa8?this['_collaborationController'][_0x2cce63(0x1f6)](_0x33daa8[_0x2cce63(0xd6)]()):d['of'](null);}),d[_0x47ce0c(0xc8)](_0x32288e=>_0x32288e?_0x32288e['status$']:d['of'](u[_0x47ce0c(0x19e)][_0x47ce0c(0x2e4)])))[_0x47ce0c(0x2ce)](_0x21954d=>{const _0x22808a=_0x47ce0c;this[_0x22808a(0x2c2)][_0x22808a(0x216)](_0x21954d);}));}[_0x55fd5e(0x327)](){const _0x167bee=_0x55fd5e;this['disposeWithMe'](this['_uiPartsService'][_0x167bee(0x1b2)](T[_0x167bee(0x1d1)][_0x167bee(0x1e3)],()=>T[_0x167bee(0x296)](At({'status$':this[_0x167bee(0x2c2)]['asObservable']()}),this['_injector'])));}},exports[_0x55fd5e(0x312)]=Pt([V(0x0,a[_0x55fd5e(0x264)]),V(0x1,a[_0x55fd5e(0x199)](a[_0x55fd5e(0x1d6)])),V(0x2,a[_0x55fd5e(0x199)](u[_0x55fd5e(0x20c)])),V(0x3,T[_0x55fd5e(0xb3)])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x326886){const {status$:_0x454da5}=_0x326886;return function(){const _0x5299a3=_0x4120;return P[_0x5299a3(0x1c5)](xe,{'status$':_0x454da5});};}var wt=Object[_0x55fd5e(0x1f2)],yt=(_0x2082f9,_0x85552,_0x148ab9,_0x3cbde8)=>{for(var _0x99073c=_0x3cbde8>0x1?void 0x0:_0x3cbde8?wt(_0x85552,_0x148ab9):_0x85552,_0x49a568=_0x2082f9['length']-0x1,_0x2c2548;_0x49a568>=0x0;_0x49a568--)(_0x2c2548=_0x2082f9[_0x49a568])&&(_0x99073c=_0x2c2548(_0x99073c)||_0x99073c);return _0x99073c;},y=(_0x39918e,_0x4f3aa0)=>(_0x33fe5e,_0x36c424)=>_0x4f3aa0(_0x33fe5e,_0x36c424,_0x39918e);let q=class extends a[_0x55fd5e(0xe3)]{constructor(_0x17df9b,_0x5f3fa3,_0x4fc242,_0x543f50,_0x1ccfea,_0x3e4f58){const _0x35df13=_0x55fd5e;super(),this[_0x35df13(0x321)]=_0x17df9b,this[_0x35df13(0x2da)]=_0x5f3fa3,this[_0x35df13(0x2b2)]=_0x4fc242,this[_0x35df13(0x2b8)]=_0x543f50,this[_0x35df13(0x22f)]=_0x1ccfea,this[_0x35df13(0x29a)]=_0x3e4f58,this[_0x35df13(0x195)](),this[_0x35df13(0x1d5)]();}[_0x55fd5e(0x195)](){const _0x57331=_0x55fd5e;this[_0x57331(0x1bf)](this[_0x57331(0x321)][_0x57331(0x2de)](()=>{const _0x32335f=_0x57331;if(this['_localCacheService']['saveTaskMap'][_0x32335f(0x315)])return this[_0x32335f(0x29a)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x55fd5e(0x1d5)](){const _0x48c3a0=_0x55fd5e;this[_0x48c3a0(0x1bf)](this[_0x48c3a0(0x2b2)][_0x48c3a0(0x284)][_0x48c3a0(0x2ce)](_0x49c308=>{const _0x200d10=_0x48c3a0;_0x49c308['id']===u['CollaborationUIEventId'][_0x200d10(0x23a)]&&this[_0x200d10(0x2b8)][_0x200d10(0xff)]({'type':D[_0x200d10(0x1b6)][_0x200d10(0x1f7)],'content':this[_0x200d10(0x29a)]['t']('collaboration.single-unit.warning')}),_0x49c308['id']===u[_0x200d10(0x2eb)]['CLOSE_ROOM']&&this[_0x200d10(0x2b8)][_0x200d10(0xff)]({'type':D[_0x200d10(0x1b6)][_0x200d10(0x1f7)],'content':this[_0x200d10(0x29a)]['t']('collaboration.closeRoom')}),_0x49c308['id']===u[_0x200d10(0x2eb)][_0x200d10(0x29f)]&&this[_0x200d10(0x22f)][_0x200d10(0xff)]({'title':this[_0x200d10(0x29a)]['t']('permission.title'),'content':this[_0x200d10(0x29a)]['t'](_0x200d10(0x2a1)),'type':_0x200d10(0xb7),'duration':0x0}),_0x49c308['id']===u['CollaborationUIEventId'][_0x200d10(0x309)]&&this[_0x200d10(0x2b8)][_0x200d10(0xff)]({'type':D[_0x200d10(0x1b6)]['Error'],'content':this[_0x200d10(0x29a)]['t']('collaboration.closeRoom')+'('+_0x49c308[_0x200d10(0xb6)]+')'}),_0x49c308['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x200d10(0x2b8)][_0x200d10(0xff)]({'type':D['MessageType'][_0x200d10(0x1f7)],'content':this[_0x200d10(0x29a)]['t'](_0x49c308[_0x200d10(0xb6)]||'')}),_0x49c308['id']===u[_0x200d10(0x2eb)][_0x200d10(0x200)]&&this[_0x200d10(0x2b8)][_0x200d10(0xff)]({'type':D[_0x200d10(0x1b6)][_0x200d10(0x1f7)],'content':this['_localeService']['t'](_0x200d10(0x221))}),_0x49c308['id']===u['CollaborationUIEventId'][_0x200d10(0xb8)]&&this[_0x200d10(0x2b8)][_0x200d10(0xff)]({'type':D[_0x200d10(0x1b6)][_0x200d10(0x173)],'content':this[_0x200d10(0x29a)]['t'](_0x200d10(0x1f9))}),_0x49c308['id']===u['CollaborationUIEventId'][_0x200d10(0xcf)]&&this[_0x200d10(0x2b8)]['show']({'type':D[_0x200d10(0x1b6)]['Error'],'content':this[_0x200d10(0x29a)]['t'](_0x200d10(0x183))});}));}};q=yt([y(0x0,T[_0x55fd5e(0x332)]),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x55fd5e(0x209)])),y(0x3,T['IMessageService']),y(0x4,T[_0x55fd5e(0xcc)]),y(0x5,a[_0x55fd5e(0x199)](a['LocaleService']))],q);function _0x1b88(){const _0x5432c2=['CollaborationStatus','getSheetObject','on-line-single_clip0_910_349','getAncestorScale','has','enableLocalCache','getOwnPropertySymbols','useDependency','_commandService','UNRECOGNIZED','_handleHeartbeatEvent','ACTIVE_UNIT_EVENT_CHANNEL','url(#$1','_unitStatus','CollaborationSocketService','docStateChange$','m1Prime','disableLocalCache','setItem','getCollabCursors$','registerComponent','result','generateRandomId','RECT','MessageType','getCellPositionByOffset','serializeRangeWithSheet','_revisionService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getValue','collabStatus.notCollab','_toggleOffline','triggerDblclick','disposeWithMe','@univerjs/rpc','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','UNIVER_SHEET','_handleLeaveEvent','clearInterval','jsx','transformMutationsWithChangeset','_refRangeService','getUnitStatus$','_context','@univerjs/core','SHEET_VIEWPORT_KEY','roomMembers','INVALID_INVITE_CODE','yellow.400','_anchorDot','_selfUnitIDs','BuiltInUIPart','includes','isTransformMutationFailure','toRgbString','_initEvent','Injector','LOCAL_CACHE_INTERVAL','Module','_anchor','RefRangeService','ITransformService','wsSessionTicketUrl','Optional','selection','editingUnit','_id','unitID','getSheetId','HEADER_MENU','LICENSE_EXPORT_SIZE_EXCEEDED','@univerjs/engine-render','add','setActiveRange','className','_clearOtherTimers','YUUMI_NO_CUBOID_FOR_QUESTION','AWAITING','EMAIL_HAS_BEEN_BOUND','ranges','getTypeOfUnitAdded$','searchParams','tag','addClipboardHook','getOwnPropertyDescriptor','row','IRenderManagerService','univer-text-red-500','getCollabEntity$','Warning','range','session.connection-failed','currentSkeleton$','fromEvent','icon','newValue','0\x200\x2016\x2016','fillRule','SOCKET_FAILED_RETRY','round','sheetID','1213072xUMORH','location','UniverCollaborationClientPlugin','383322KRhLwj','UniverInstanceType','_registerDependencies','CollaborationUIEventService','getSkeleton','RemoveRowCommandId','CollaborationController','WebURLService','delete','OFFLINE','HTTPService','fillText','OnLineSingle','_handleHover','skeleton','unitId','next','CollaborationEvent','ICommandService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','TEXT_RANGE_LAYER_INDEX','_unitOnClients','evenodd','pipe','INVITE_CODE_ALREADY_BOUND','react','_session','session.will-retry','DeleteRangeMoveLeftCommandId','useObservable','type','@univerjs/network','_cursors','deepClone','UniverIcon','entries','function','_docTransformStateCacheService','_scheduleClearOtherTimer','defs','_drawTextRange','_notificationService','history','getColor','top','ILocalStorageService','CollaborationDataLoaderController','_toggleOnline','6tinghi','startsWith','_transformService','key','OTHER_CLIENT_EDITING','contains','dispose','handleDeleteRangeMoveUp','DOC_RANGE_TYPE','_scene','_httpService','path','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','forEach','cursorInfo$','init','MoveRangeCommandId','_renderManagerService','...','_eventUnsubscribe','_drawRectRange','requireSession','loadUnit','handleMoveRange','DocCollaborationEntity','CHANGESET_REVISION_CONFILICT','createElement','_scheduleSaving','@univerjs/drawing','FETCH_MISS','roomMembers$','substring','arc','_handleEvent','_hovered','uni.network.url-service','name','INVITE_CODE_HAS_BEEN_UES','redoState','post','assign','_updateCollabCursors','@univerjs/engine-formula','_uiPartsService','DEFAULT_WS_SESSION_TICKET_URL','width','IUniverInstanceService','SNAPSHOT_INVALID_SNAPSHOT','IDocClipboardService','_color','VIEW_MAIN','LICENSE_MAX_UNITS_EXCEEDED','_shapes','SetWorksheetActivateCommand','INVITE_CODE_REQUIRED','_dataLoaderService','set','DependentOn','63JPEurU','1547336hwzRYj','YUUMI_ALL_TABLES_IS_INVALID','runOnServer','handleDeleteRangeMoveLeft','undoState','asObservable','toStringTag','_cursorShapes','activeSheet$','_initStatusListener','m2Prime','merge','toDisposable','collabStatus.offline','Tooltip','push','collaboration-client-ui.config','UNIVER_DOC','createInstance','event$','getActiveSheet','forwardRef','textRanges','handleIRemoveCol','collab-rect-range-','getRangePointData','currentColor','call','APPLY_PERMISSION_DENIED','IImageIoService','_docStateChangeManagerService','getUndoRedoMutationParamsCache','runId','executionId','_getScale','setTimeout','YUUMI_RATE_OVER_LIMIT','connectInjector','RxDisposable','on-line-single','_transformPreviousActiveRange','_localeService','trim','_doCreateSocket','_collabCursorState$','xlink:href','PERMISSION_DENIED','getRelativeToViewportCoord','permission.content','handleInsertRow','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','symbol','hide','_themeService','body','defineProperty','focused$','values','IMessageService','IRemoteInstanceService','removeParam','@univerjs/docs','min','map','_docClipboardService','_collaborationUIEventService','getCurrentUnitForType','@univerjs/docs-ui','_getMergeRange','resize','APPLY_REVISION_CONFILICT','_messageService','getDocRanges','bottom','createIdentifier','_instanceService','off-line-single_clip0_910_343','unshift','_collaborationController','startRow','collabStatus.conflict','_status$','0\x200\x2017\x2016','throttleTime','replace','_removeCollabCursors','[CollaborationDataLoaderController]','_send','handleInsertCol','href','_injector','PY_RUNTIME_SCRIPT_ERROR','_initCommandExecutedListener','subscribe','#FFF','_sheetSkeletonManagerService','entityInit$','getCurrent','_labelPosition','AWAITING_WITH_PENDING','_config','10906150YYTGJb','getUnhiddenWorksheets','ENSURE_SNAPSHOT_EXECUTION','debounce','_localCacheService','CollaborationStatusDisplay','_docTransformSelectionsService','idSuffix','registerBeforeClose','concat','getLocalCacheKey','unsubscribe','beginPath','subunit','NOT_COLLAB','registerRefRange','_render','some','_heartbeatTimer','BrowserCollaborationSocketService','transformByState','CollaborationUIEventId','backgroundColor','IConfigService','collab-text-anchor-','_hideTimer','UniverCollaborationClientUIPlugin','displayName','rgba(255,\x20255,\x20255,\x200.01)','setStateCache','_initEntityListener','univer-flex\x20univer-items-center','eventID','transformMutation','pushState','extend','_colorIndex','urlChange$','/run/','_entities','_logService','transformRemoteChangeset','_transformHistoryAndStateStack','_initResize','UNDEFINED','_cursor','propertyIsEnumerable','with','NOT_FOUND','drawWith','SetDocZoomRatioOperation','CONFLICT','react/jsx-runtime','MOBILE_HAS_BEEN_BOUND','_docSkeletonManagerService','source','_getSheetObject','isEditing','override','_saveTaskMap','DesktopCollaborationStatusDisplayController','height','4489009Hrdxgz','size','_onCursorUpdate','684872ZBeLdx','Rectangle','max','clearTimeout','save','Failed','blue.400','YUUMI_ASYNCIO_CANCELLED','#fff','InsertRowCommandId','_beforeCloseService','getMember','getSheetBySheetId','getMemberID','RichTextEditingMutation','USER_NOT_INVITED_CODE','_initStatusComponent','combineLatest','_docTransformIMECacheService','attrs','COLORS','_collabSessionService','disposeUnit','endRow','ISnapshotServerService','setUndoRedoMutationParamsCache','invokeId','IBeforeCloseService','font','_updateURLWithCurrentState','startColumn','isTransformMutationsWithChangesetSuccess','sessionStatus$','TOO_MANY_REQUESTS','transformSelections','BehaviorSubject','runRefRangeMutations','fillStyle','getVpScrollXYInfoByPosToVp','collabCursorState$','RegularPolygon','IUIPartsService','LICENSE_IMPORT_SIZE_EXCEEDED','ILogService','data','error','SOCKET_FAILED','debug','_cachedData','sheetId','exhaustSavingTask','NodePositionConvertToRectRange','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','column','SNAPSHOT_HAS_BEEN_REMOVED','_docSyncEditingCollabCursorService','from','_collabCursorController','_setupSubUnitSync','collab-text-range-','onTransformChange$','SessionStatus','switchMap','_assignedColors','lineTo','currentTheme$','INotificationService','Subject','assignAColorForMemberID','SUBMIT_CHANGESET_TIMEOUT','EffectRefRangId','setShapeProps','NO_OTHER_CLIENTS_EDITING','onLocalMutation','RemoveColCommandId','split','getUnitId','UNAUTHENTICATED','svg','RemoteUniscriptService','CollaborationSessionService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','CommandType','makeDirty','YUUMI_AI_RUN_FAILED','getUniverSheetInstance','useRef','_colorAssignService','DocSkeletonManagerService','Disposable','YUUMI_UNABLE_LOAD_URL','_roomMembers$','_onCursorDelete','isArray','dispose$','Shape','sessionTicket','search','black','off-line-single','_entityInit$','stringify','YUUMI_URL_COL_OUT_OF_RANGE','takeUntil','_updateSubUnitFromURLParams','touchDependencies','UnitStatus','_ensureSubject','fill','colorChannel1','collabStatus.synced','handleIRemoveRow','_hover','defIds','url(#off-line-single_clip0_910_343)','univer-flex\x20univer-mr-2\x20univer-text-xl','complete','show','_localStorageService','cursorInfo','_memberService','moveTo','unit','YUUMI_SUBSCRIPTION_NOT_FOUND','_backgroundColor','getTypeOfUnitDisposed$','measureText','_textBubble','saveTaskMap','distinctUntilChanged','color','replaceState','onCommandExecuted','isActive','SetSelectionsOperation','onRendered','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','setAlpha','mask','indexOf','_getAnchorBounding','LICENSE_DISTRO_REJECTED','_handleJoinEvent','1709770kmufCw','clipPath','children','imageSourceType','length','_lastPointer','APPLY_REJECT','6ovcXec','transform','code','filter','collab-client.tooltip.reconnect','_drawAnchor','FromArray','getActiveRange','getFocusedUnit','_updateLocalCursor','actions','ticket','USERS_LEAVE','params','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','subscribeEvent','hasOwnProperty','WebBrowserSingleActiveUnitService','then','INVALID_ARGUMENT','_univerInstanceService','executeCommand','SheetCollabCursorShape','univer-text-green-500','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_onRefRangeChange','APPLY_NON_SEQUENTIAL_REVISION','ALREADY_EXISTS','mutations','jiqing.500','getViewport','red.300','_startSheetCollabCursor','_removeClearOtherTimer','transformIMECache','syncEditingCollabCursor','random','addObjects','MemberService','transformStateCache','onMouseMove','getConfig','_range','_init','getParam','labelPosition','toString','none','CONNECTOR_DATA_TOO_LARGE','IURLService','DocStateChangeManagerService','registerDependencies','debounceTime','_createSocketURL','univerjs-icon\x20univerjs-icon-','url(#on-line-single_clip0_910_349)','string','getStateCache','clsx','registerRenderModule','SheetSkeletonManagerService','LocaleService','getCoordByCell','collabStatus.syncing','WECHAT_HAS_BEEN_BOUND','send','APPLY_DUPLICATED','unload','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','doc.mutation.rich-text-editing','SYNCED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','NodePositionConvertToCursor','addHandlerCallback','COMPLETION_FINISHED','ColorKit','origin','prototype','DeleteRangeMoveUpCommandId','_startDocCollabCursor','@univerjs/ui','Unknown\x20user','_online','Error','_registerRenderDependencies','Rect','Tools','_syncEditingCollabCursorService','get','_cursorInfo$','text','_configService','getColorFromTheme','_docSkeleton','addObject','_saveCache','closePath','Plugin','_disabled','session.collaboration-timeout','setParam','find','DocIMEInputManagerService','apply','@univerjs/sheets-ui','restore','_getSessionTicket','updateOfflineData','_imageIoService','_draw','_initDependencies','rxjs/operators','_name','onPointerEnter$','_urlService','ThemeService','_getSaveTimeout','_setupBeforeClosingHandler','collabStatus.fetchMiss','LOGIN_FAILED','1em','Inject','onPointerLeave$','onStarting','UPDATE_CURSOR','findNodePositionByCharIndex'];_0x1b88=function(){return _0x5432c2;};return _0x1b88();}const $t=_0x55fd5e(0x281),Ue={},be=a[_0x55fd5e(0x2bb)](_0x55fd5e(0x259));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x2576f9,_0x5080fd,_0x3e12ff,_0x490b3e)=>{for(var _0x266785=_0x490b3e>0x1?void 0x0:_0x490b3e?xt(_0x5080fd,_0x3e12ff):_0x5080fd,_0x5631de=_0x2576f9['length']-0x1,_0x5298f3;_0x5631de>=0x0;_0x5631de--)(_0x5298f3=_0x2576f9[_0x5631de])&&(_0x266785=_0x5298f3(_0x266785)||_0x266785);return _0x266785;},H=(_0x58cf03,_0x1f74fe)=>(_0x328421,_0x21293b)=>_0x1f74fe(_0x328421,_0x21293b,_0x58cf03);exports[_0x55fd5e(0x234)]=class extends a[_0x55fd5e(0x297)]{constructor(_0x1ea59d,_0x412b4f,_0x3346a1,_0x1ea3fe,_0x35d160){const _0x30b3dd=_0x55fd5e;super(),this[_0x30b3dd(0x192)]=_0x1ea59d,this[_0x30b3dd(0x2fe)]=_0x412b4f,this['_commandService']=_0x3346a1,this[_0x30b3dd(0x26d)]=_0x1ea3fe,_0x35d160?_0x35d160==null||_0x35d160['whenReady']()[_0x30b3dd(0x132)](()=>this['_init']()):(this[_0x30b3dd(0x2fe)][_0x30b3dd(0xb9)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x30b3dd(0x14b)]());}async[_0x55fd5e(0x14b)](){const _0x4064a5=_0x55fd5e,_0x79694f=this[_0x4064a5(0x192)]['getParam'](_0x4064a5(0x104)),_0x30e4ef=this[_0x4064a5(0x192)][_0x4064a5(0x14c)](_0x4064a5(0x224)),_0x5d7c2c=this[_0x4064a5(0x192)][_0x4064a5(0x14c)](_0x4064a5(0x2e3));if(!_0x79694f||!_0x30e4ef){this[_0x4064a5(0x2fe)][_0x4064a5(0xb9)](_0x4064a5(0x2c7),_0x4064a5(0x242));return;}const _0x1f7947=await this[_0x4064a5(0x26d)][_0x4064a5(0x24c)](_0x79694f,Number(_0x30e4ef),_0x5d7c2c);_0x1f7947&&_0x1f7947 instanceof a['Workbook']&&this[_0x4064a5(0xc4)](_0x1f7947);}async[_0x55fd5e(0xc4)](_0x31a1fe){const _0x1a227a=_0x55fd5e;await this[_0x1a227a(0xf2)](_0x31a1fe),_0x31a1fe[_0x1a227a(0x279)][_0x1a227a(0x21d)](d['takeUntil'](this['dispose$']))[_0x1a227a(0x2ce)](_0x43cb44=>{const _0x5693be=_0x1a227a;_0x43cb44&&this[_0x5693be(0x334)](_0x43cb44);}),this[_0x1a227a(0x192)][_0x1a227a(0x2fb)][_0x1a227a(0x21d)](d[_0x1a227a(0xf1)](this[_0x1a227a(0xe8)]))[_0x1a227a(0x2ce)](()=>this['_updateSubUnitFromURLParams'](_0x31a1fe));}[_0x55fd5e(0x334)](_0x37b887,_0x138ff5=!0x1){const _0x310323=_0x55fd5e,_0x395fbb=this[_0x310323(0x192)][_0x310323(0x14c)](_0x310323(0x2e3));_0x37b887[_0x310323(0x1e2)]()!==_0x395fbb&&this[_0x310323(0x192)][_0x310323(0x184)](_0x310323(0x2e3),_0x37b887[_0x310323(0x1e2)](),_0x138ff5);}async[_0x55fd5e(0xf2)](_0x5abdbb){const _0x59e2f0=_0x55fd5e;var _0x39c0c2;const _0x185e82=this[_0x59e2f0(0x192)][_0x59e2f0(0x14c)](_0x59e2f0(0x2e3));if(!_0x185e82||!_0x5abdbb[_0x59e2f0(0x323)](_0x185e82)){const _0x293a68=_0x5abdbb[_0x59e2f0(0x2d7)]()[0x0],_0xd0c200=_0x5abdbb[_0x59e2f0(0x323)](_0x293a68);if(!_0xd0c200)return;this[_0x59e2f0(0x334)](_0xd0c200,!0x0),await this[_0x59e2f0(0x1a6)]['executeCommand'](g[_0x59e2f0(0x26b)]['id'],{'unitId':_0x5abdbb[_0x59e2f0(0xd6)](),'subUnitId':_0x293a68});return;}((_0x39c0c2=_0x5abdbb['getActiveSheet']())==null?void 0x0:_0x39c0c2[_0x59e2f0(0x1e2)]())!==_0x185e82&&await this['_commandService'][_0x59e2f0(0x135)](g[_0x59e2f0(0x26b)]['id'],{'unitId':_0x5abdbb['getUnitId'](),'subUnitId':_0x185e82});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x55fd5e(0xb5)]),H(0x2,a[_0x55fd5e(0x218)]),H(0x3,a['Inject'](u['DataLoaderService'])),H(0x4,a[_0x55fd5e(0x1dd)](Ke[_0x55fd5e(0x2ac)]))],exports[_0x55fd5e(0x234)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x1966d5,_0x657483,_0x1c59cb,_0x5276ea)=>{for(var _0x4a5b0c=_0x5276ea>0x1?void 0x0:_0x5276ea?Bt(_0x657483,_0x1c59cb):_0x657483,_0xa485d9=_0x1966d5['length']-0x1,_0x488ef2;_0xa485d9>=0x0;_0xa485d9--)(_0x488ef2=_0x1966d5[_0xa485d9])&&(_0x4a5b0c=_0x488ef2(_0x4a5b0c)||_0x4a5b0c);return _0x4a5b0c;},ce=(_0x4dcc74,_0x51bb2a)=>(_0x4a98ac,_0x2dc00)=>_0x51bb2a(_0x4a98ac,_0x2dc00,_0x4dcc74);let z=class{constructor(_0x425054,_0x4e4556,_0x14c2d2){const _0x4eb819=_0x55fd5e;this['_injector']=_0x425054,this[_0x4eb819(0x238)]=_0x4e4556,this[_0x4eb819(0x247)]=_0x14c2d2;}[_0x55fd5e(0x142)](_0x243f62){this['_transformUndoRedoStack'](_0x243f62),this['_transformPreviousActiveRange'](_0x243f62);}['transformRemoteChangeset'](_0x5a9c34){const _0x776fd8=_0x55fd5e,{unitID:_0x1032cf}=_0x5a9c34,_0x2227af=this[_0x776fd8(0x247)]['getRenderById'](_0x1032cf)[_0x776fd8(0x305)](b['DocIMEInputManagerService']),{redoCache:_0x209272}=_0x2227af['getUndoRedoMutationParamsCache']();if(_0x209272[_0x776fd8(0x11d)]===0x0)return _0x5a9c34;let _0x226728=a[_0x776fd8(0x176)]['deepClone'](_0x5a9c34[_0x776fd8(0x13c)][0x0]);for(let _0x192f64=0x0;_0x192f64<_0x209272[_0x776fd8(0x11d)];_0x192f64++){const _0x35f119={'id':_0x776fd8(0x165),'params':{..._0x209272[_0x192f64]}},_0x3452a6=this[_0x776fd8(0x238)][_0x776fd8(0x2f7)](_0x226728,_0x35f119,!0x1);if(m[_0x776fd8(0x1d3)](_0x3452a6))throw _0x3452a6[_0x776fd8(0xb7)];_0x226728=_0x3452a6[_0x776fd8(0x1ae)];}return{...a[_0x776fd8(0x176)][_0x776fd8(0x227)](_0x5a9c34),'mutations':[_0x226728]};}['_transformUndoRedoStack'](_0x15931b){const _0x327397=_0x55fd5e,{unitID:_0x33a0bc}=_0x15931b,_0x5aa348=this['_renderManagerService']['getRenderById'](_0x33a0bc)[_0x327397(0x305)](b[_0x327397(0x186)]),{undoCache:_0x373c3d,redoCache:_0xf3dbe}=_0x5aa348[_0x327397(0x290)]();if(_0x373c3d['length']===0x0||_0xf3dbe[_0x327397(0x11d)]===0x0)return;const _0x5577ac=[],_0x35006f=[];let _0x50ba7d=a['Tools']['deepClone'](_0x15931b[_0x327397(0x13c)][0x0]),_0x314fcd=a[_0x327397(0x176)][_0x327397(0x227)](_0x15931b['mutations'][0x0]);for(let _0x1ce355=_0x373c3d[_0x327397(0x11d)]-0x1;_0x1ce355>=0x0;_0x1ce355--){const _0x12b12c={'id':_0x327397(0x165),'params':{..._0x373c3d[_0x1ce355]}},_0x53a31b={'id':_0x327397(0x165),'params':{..._0xf3dbe[_0x1ce355]}},_0x26b766=this[_0x327397(0x238)][_0x327397(0x2f7)](_0x50ba7d,_0x12b12c,!0x1),_0x286eb8=this['_transformService']['transformMutation'](_0x314fcd,_0x53a31b,!0x1);if(m[_0x327397(0x1d3)](_0x26b766))throw _0x26b766[_0x327397(0xb7)];if(m[_0x327397(0x1d3)](_0x286eb8))throw _0x286eb8[_0x327397(0xb7)];_0x5577ac[_0x327397(0x2be)](_0x26b766[_0x327397(0x27b)][_0x327397(0x12d)]),_0x35006f[_0x327397(0x2be)](_0x286eb8[_0x327397(0x27b)][_0x327397(0x12d)]),_0x50ba7d=_0x26b766['m1Prime'],_0x314fcd=_0x286eb8[_0x327397(0x1ae)];}_0x5aa348[_0x327397(0x330)]({'undoCache':_0x5577ac,'redoCache':_0x35006f});}[_0x55fd5e(0x299)](_0x5a0250){const _0x5ac2aa=_0x55fd5e,{unitID:_0xf15e04}=_0x5a0250,_0x5d6089=this[_0x5ac2aa(0x247)]['getRenderById'](_0xf15e04)[_0x5ac2aa(0x305)](b[_0x5ac2aa(0x186)]),_0x5460db=_0x5d6089[_0x5ac2aa(0x127)]();if(_0x5460db==null)return;const _0xaa496c=[{'id':_0x5ac2aa(0x165),'params':{'unitId':_0x5a0250[_0x5ac2aa(0x1e1)],'actions':null,'textRanges':[_0x5460db]}}],_0x829fdb=this[_0x5ac2aa(0x238)][_0x5ac2aa(0x1c6)](_0x5a0250,_0xaa496c);if(!m['isTransformMutationsWithChangesetSuccess'](_0x829fdb))throw _0x829fdb[_0x5ac2aa(0xb7)];const _0x1d27e7=_0x829fdb[_0x5ac2aa(0x27b)][0x0]['params'][_0x5ac2aa(0x287)];Array[_0x5ac2aa(0xe7)](_0x1d27e7)&&_0x1d27e7[_0x5ac2aa(0x11d)]&&_0x5d6089[_0x5ac2aa(0x1e7)](_0x1d27e7[0x0]);}};z=kt([ce(0x0,a[_0x55fd5e(0x199)](a[_0x55fd5e(0x1d6)])),ce(0x1,m[_0x55fd5e(0x1db)]),ce(0x2,p[_0x55fd5e(0x1f4)])],z);var Ht=Object[_0x55fd5e(0x1f2)],Ft=(_0xd65156,_0x549fe2,_0x3f5370,_0x397a78)=>{const _0x5ccd46=_0x55fd5e;for(var _0x4833df=_0x397a78>0x1?void 0x0:_0x397a78?Ht(_0x549fe2,_0x3f5370):_0x549fe2,_0x258713=_0xd65156[_0x5ccd46(0x11d)]-0x1,_0x5e464e;_0x258713>=0x0;_0x258713--)(_0x5e464e=_0xd65156[_0x258713])&&(_0x4833df=_0x5e464e(_0x4833df)||_0x4833df);return _0x4833df;},le=(_0x4e149a,_0x378c37)=>(_0x374d30,_0x4dcd50)=>_0x378c37(_0x374d30,_0x4dcd50,_0x4e149a);let J=class{constructor(_0x1085e4,_0x5dd6bb,_0x3bcd91){const _0x17d831=_0x55fd5e;this[_0x17d831(0x2cb)]=_0x1085e4,this['_transformService']=_0x5dd6bb,this[_0x17d831(0x28f)]=_0x3bcd91;}[_0x55fd5e(0x147)](_0x1ea21f){const _0x29ff92=_0x55fd5e;this[_0x29ff92(0x300)](_0x1ea21f);}[_0x55fd5e(0x2ff)](_0x1eb762){const _0x54e593=_0x55fd5e,{unitID:_0x381dde}=_0x1eb762,{collaboration:_0xab2ffb}=this[_0x54e593(0x28f)][_0x54e593(0x159)](_0x381dde);if(_0xab2ffb[_0x54e593(0x11d)]===0x0)return _0x1eb762;let _0x42522e=a[_0x54e593(0x176)][_0x54e593(0x227)](_0x1eb762[_0x54e593(0x13c)][0x0]);for(let _0x4d3f3a=0x0;_0x4d3f3a<_0xab2ffb[_0x54e593(0x11d)];_0x4d3f3a++){const _0x3073e1={'id':_0x54e593(0x165),'params':{'unitId':_0xab2ffb[_0x4d3f3a]['unitId'],..._0xab2ffb[_0x4d3f3a][_0x54e593(0x25c)]}},_0x581a82=this['_transformService'][_0x54e593(0x2f7)](_0x42522e,_0x3073e1,!0x1);if(m[_0x54e593(0x1d3)](_0x581a82))throw _0x581a82[_0x54e593(0xb7)];_0x42522e=_0x581a82[_0x54e593(0x1ae)];}return{...a[_0x54e593(0x176)][_0x54e593(0x227)](_0x1eb762),'mutations':[_0x42522e]};}[_0x55fd5e(0x300)](_0x423e6e){const _0x431daf=_0x55fd5e,{unitID:_0x5ee09b}=_0x423e6e,{history:_0x18be22,collaboration:_0x4f10b5}=this[_0x431daf(0x28f)]['getStateCache'](_0x5ee09b);if(_0x18be22[_0x431daf(0x11d)]===0x0&&_0x4f10b5[_0x431daf(0x11d)]===0x0)return;const _0x4a7dfd=[],_0x5c3c5c=[];let _0x4b6e3f=a[_0x431daf(0x176)][_0x431daf(0x227)](_0x423e6e['mutations'][0x0]),_0x13c622=a[_0x431daf(0x176)][_0x431daf(0x227)](_0x423e6e['mutations'][0x0]);for(let _0x2d7506=_0x18be22[_0x431daf(0x11d)]-0x1;_0x2d7506>=0x0;_0x2d7506--){const _0xcce509={'id':_0x431daf(0x165),'params':{'unitId':_0x18be22[_0x2d7506][_0x431daf(0x215)],..._0x18be22[_0x2d7506][_0x431daf(0x275)]}},_0x2b223f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18be22[_0x2d7506][_0x431daf(0x215)],..._0x18be22[_0x2d7506]['redoState']}},_0xde1e98=this[_0x431daf(0x238)]['transformMutation'](_0x4b6e3f,_0xcce509,!0x1),_0x12f408=this['_transformService'][_0x431daf(0x2f7)](_0x13c622,_0x2b223f,!0x1);if(m[_0x431daf(0x1d3)](_0xde1e98))throw _0xde1e98[_0x431daf(0xb7)];if(m['isTransformMutationFailure'](_0x12f408))throw _0x12f408['error'];_0x4a7dfd[_0x431daf(0x2be)]({..._0x18be22[_0x2d7506],'undoState':_0xde1e98['m2Prime'][_0x431daf(0x12d)],'redoState':_0x12f408['m2Prime']['params']}),_0x4b6e3f=_0xde1e98[_0x431daf(0x1ae)],_0x13c622=_0x12f408['m1Prime'];}_0x4b6e3f=a['Tools']['deepClone'](_0x423e6e[_0x431daf(0x13c)][0x0]),_0x13c622=a[_0x431daf(0x176)][_0x431daf(0x227)](_0x423e6e[_0x431daf(0x13c)][0x0]);for(let _0x1866dd=_0x4f10b5['length']-0x1;_0x1866dd>=0x0;_0x1866dd--){const _0x23dd4a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4f10b5[_0x1866dd][_0x431daf(0x215)],..._0x4f10b5[_0x1866dd][_0x431daf(0x275)]}},_0x5a3e20={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4f10b5[_0x1866dd][_0x431daf(0x215)],..._0x4f10b5[_0x1866dd][_0x431daf(0x25c)]}},_0x566c0a=this[_0x431daf(0x238)][_0x431daf(0x2f7)](_0x4b6e3f,_0x23dd4a,!0x1),_0x4ad0c7=this['_transformService'][_0x431daf(0x2f7)](_0x13c622,_0x5a3e20,!0x1);if(m[_0x431daf(0x1d3)](_0x566c0a))throw _0x566c0a['error'];if(m[_0x431daf(0x1d3)](_0x4ad0c7))throw _0x4ad0c7[_0x431daf(0xb7)];_0x5c3c5c[_0x431daf(0x2be)]({..._0x4f10b5[_0x1866dd],'undoState':_0x566c0a['m2Prime'][_0x431daf(0x12d)],'redoState':_0x4ad0c7[_0x431daf(0x27b)]['params']}),_0x4b6e3f=_0x566c0a[_0x431daf(0x1ae)],_0x13c622=_0x4ad0c7['m1Prime'];}this[_0x431daf(0x28f)][_0x431daf(0x2f3)](_0x5ee09b,{'history':_0x4a7dfd,'collaboration':_0x5c3c5c});}};J=Ft([le(0x0,a[_0x55fd5e(0x199)](a[_0x55fd5e(0x1d6)])),le(0x1,m[_0x55fd5e(0x1db)]),le(0x2,a[_0x55fd5e(0x199)](b[_0x55fd5e(0x152)]))],J);var Yt=Object[_0x55fd5e(0x1f2)],Wt=(_0x3f4545,_0x409ff5,_0xfd5306,_0x1c0afd)=>{for(var _0x1787ce=_0x1c0afd>0x1?void 0x0:_0x1c0afd?Yt(_0x409ff5,_0xfd5306):_0x409ff5,_0x18dea5=_0x3f4545['length']-0x1,_0x3e1123;_0x18dea5>=0x0;_0x18dea5--)(_0x3e1123=_0x3f4545[_0x18dea5])&&(_0x1787ce=_0x3e1123(_0x1787ce)||_0x1787ce);return _0x1787ce;},Ne=(_0x2f37c3,_0x16a25d)=>(_0x2abcde,_0x113588)=>_0x16a25d(_0x2abcde,_0x113588,_0x2f37c3);let Z=class{constructor(_0x29c7fb,_0x184ca4){const _0xcaef04=_0x55fd5e;this[_0xcaef04(0x2cb)]=_0x29c7fb,this[_0xcaef04(0x238)]=_0x184ca4;}[_0x55fd5e(0x339)](_0x204112){const _0x268fce=_0x55fd5e;var _0x1226ad;const _0x23df71=this['_injector'][_0x268fce(0x178)](Y['DocSelectionManagerService']),_0x16dd14=(_0x1226ad=_0x23df71[_0x268fce(0x2b9)]())!=null?_0x1226ad:[];if(_0x16dd14[_0x268fce(0x11d)]===0x0)return;const _0x6120a1=_0x204112[_0x268fce(0x1e1)],_0x6b0d58=[{'id':_0x268fce(0x165),'params':{'unitId':_0x6120a1,'actions':null,'textRanges':_0x16dd14}}],_0x4fa08d=this[_0x268fce(0x238)][_0x268fce(0x1c6)](_0x204112,_0x6b0d58);if(!m[_0x268fce(0x336)](_0x4fa08d))throw _0x4fa08d[_0x268fce(0xb7)];const _0x513d7c=_0x4fa08d[_0x268fce(0x27b)][0x0]['params']['textRanges'];Array[_0x268fce(0xe7)](_0x513d7c)&&_0x513d7c['length']&&_0x23df71['replaceDocRanges'](_0x513d7c,{'unitId':_0x6120a1,'subUnitId':_0x6120a1},!0x1);}};Z=Wt([Ne(0x0,a[_0x55fd5e(0x199)](a['Injector'])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x55fd5e(0x1f2)],Xt=(_0x38e887,_0x4969d2,_0x508652,_0x249213)=>{const _0x562f3d=_0x55fd5e;for(var _0x1f519c=_0x249213>0x1?void 0x0:_0x249213?Vt(_0x4969d2,_0x508652):_0x4969d2,_0x1b35ab=_0x38e887[_0x562f3d(0x11d)]-0x1,_0x42ec5c;_0x1b35ab>=0x0;_0x1b35ab--)(_0x42ec5c=_0x38e887[_0x1b35ab])&&(_0x1f519c=_0x42ec5c(_0x1f519c)||_0x1f519c);return _0x1f519c;},N=(_0x179e58,_0x1395fd)=>(_0x5ade37,_0x32af7c)=>_0x1395fd(_0x5ade37,_0x32af7c,_0x179e58);let Q=class extends a['Disposable']{constructor(_0xe4adbd,_0xe5ea1a,_0x2575d1,_0x2e583f,_0x201cd4,_0x562288,_0x51d9db,_0xd0b69f){const _0x3b72a1=_0x55fd5e;super(),h(this,'_status$',new d[(_0x3b72a1(0xad))](u[_0x3b72a1(0x19e)]['NOT_COLLAB'])),(this[_0x3b72a1(0x28f)]=_0xe4adbd,this[_0x3b72a1(0x2bf)]=_0xe5ea1a,this[_0x3b72a1(0x329)]=_0x2575d1,this[_0x3b72a1(0x22b)]=_0x2e583f,this[_0x3b72a1(0x2dc)]=_0x201cd4,this[_0x3b72a1(0xc1)]=_0x562288,this[_0x3b72a1(0x2b8)]=_0x51d9db,this[_0x3b72a1(0x29a)]=_0xd0b69f,this[_0x3b72a1(0x2f4)]());}['_initEntityListener'](){const _0x3607a0=_0x55fd5e;this[_0x3607a0(0x1bf)](this[_0x3607a0(0x2bf)][_0x3607a0(0x2d1)][_0x3607a0(0x2ce)](_0x2d5d0c=>{const _0x580643=_0x3607a0,_0x18fcd3=this[_0x580643(0x28f)][_0x580643(0x1ad)][_0x580643(0x2ce)](_0x36e819=>{const _0x3395d5=_0x580643;if(_0x36e819==null)return;const {unitId:_0x483bf3,redoState:_0x57b104,commandId:_0xf3b7bd}=_0x36e819;if(_0x483bf3!==_0x2d5d0c[_0x3395d5(0x1e1)])return;const _0x233768={'id':_0xf3b7bd,'type':a[_0x3395d5(0xdc)]['MUTATION'],'params':{'unitId':_0x483bf3,'actions':_0x57b104[_0x3395d5(0x12a)],'textRanges':null}};_0x2d5d0c[_0x3395d5(0xd3)](_0x233768);});if(_0x2d5d0c[_0x580643(0x1bf)](_0x18fcd3),_0x2d5d0c instanceof u[_0x580643(0x24e)]){const _0x351d84={'onTransformIME':_0xb0d776=>this['_docTransformIMECacheService'][_0x580643(0x142)](_0xb0d776),'onTransformState':_0x54f1c8=>this[_0x580643(0x22b)][_0x580643(0x147)](_0x54f1c8),'onTransformSelections':_0x3eac6a=>this[_0x580643(0x2dc)][_0x580643(0x339)](_0x3eac6a),'onSyncEditingCollabCursor':_0x4e0204=>this[_0x580643(0xc1)]['syncEditingCollabCursor'](_0x4e0204),'onTransformRemoteChangesetByIMECache':_0x5e4cd8=>this[_0x580643(0x329)][_0x580643(0x2ff)](_0x5e4cd8),'onTransformRemoteChangesetByStateCache':_0x547cc1=>this['_docTransformStateCacheService'][_0x580643(0x2ff)](_0x547cc1)};_0x2d5d0c[_0x580643(0x169)](_0x351d84);}}));}};Q=Xt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0x55fd5e(0x199)](u['CollaborationController'])),N(0x2,a[_0x55fd5e(0x199)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x55fd5e(0x199)](Z)),N(0x5,a[_0x55fd5e(0x199)](Ce)),N(0x6,T[_0x55fd5e(0x2ab)]),N(0x7,a[_0x55fd5e(0x199)](a['LocaleService']))],Q);var Gt=Object[_0x55fd5e(0x1f2)],Kt=(_0x14ef05,_0x17d700,_0x1317c1,_0xd56ede)=>{for(var _0x1ba5e8=_0xd56ede>0x1?void 0x0:_0xd56ede?Gt(_0x17d700,_0x1317c1):_0x17d700,_0x5a99bb=_0x14ef05['length']-0x1,_0x29b0ed;_0x5a99bb>=0x0;_0x5a99bb--)(_0x29b0ed=_0x14ef05[_0x5a99bb])&&(_0x1ba5e8=_0x29b0ed(_0x1ba5e8)||_0x1ba5e8);return _0x1ba5e8;},_e=(_0x24806e,_0x44d673)=>(_0x322665,_0xc01c75)=>_0x44d673(_0x322665,_0xc01c75,_0x24806e);let ge=class extends a['Disposable']{constructor(_0x1284d7,_0x5b7344,_0x32f97a){const _0x32a64d=_0x55fd5e;super(),h(this,_0x32a64d(0xba),new Map()),h(this,_0x32a64d(0x311),new Map()),h(this,'_disabled',!0x1),(this[_0x32a64d(0x17b)]=_0x1284d7,this[_0x32a64d(0x100)]=_0x5b7344,this[_0x32a64d(0x1b9)]=_0x32f97a);}[_0x55fd5e(0x1af)](){const _0x4400d8=_0x55fd5e;this[_0x4400d8(0x182)]=!0x0;}[_0x55fd5e(0x1a3)](){const _0x34436d=_0x55fd5e;this[_0x34436d(0x182)]=!0x1;}get[_0x55fd5e(0x10a)](){const _0x182fca=_0x55fd5e;return this[_0x182fca(0x311)];}[_0x55fd5e(0x23c)](){const _0x5e80a1=_0x55fd5e;this[_0x5e80a1(0xbc)]()[_0x5e80a1(0x132)](()=>super[_0x5e80a1(0x23c)]());}async['loadOfflineData'](_0x58e2e8){const _0x56ab00=_0x55fd5e;return this[_0x56ab00(0x182)]?null:this[_0x56ab00(0x100)]['getItem'](u[_0x56ab00(0x2e0)](_0x58e2e8));}async['saveOfflineData'](_0x1fdcca,_0x1bd67d){return!!this['_localStorageService']['setItem'](_0x1fdcca,_0x1bd67d);}[_0x55fd5e(0x18b)](_0x5a968c,_0x4bd353,_0x528411,_0x531888){const _0x3f7fcc=_0x55fd5e,_0x5bfc6d=this['_revisionService']['getCurrentRevOfUnit'](_0x5a968c);this[_0x3f7fcc(0xba)][_0x3f7fcc(0x26e)](_0x5a968c,{'unitID':_0x5a968c,'type':_0x4bd353,'awaitingChangeset':_0x528411,'mutations':_0x531888,'rev':_0x5bfc6d}),this[_0x3f7fcc(0x311)]['has'](_0x5a968c)||this[_0x3f7fcc(0x251)](_0x5a968c);}[_0x55fd5e(0x251)](_0x478940){const _0x94e910=_0x55fd5e,_0x10f6af=this[_0x94e910(0x194)]();_0x10f6af===0x0?this[_0x94e910(0x17f)](_0x478940):this[_0x94e910(0x311)][_0x94e910(0x26e)](_0x478940,setTimeout(()=>this[_0x94e910(0x17f)](_0x478940),_0x10f6af));}[_0x55fd5e(0x194)](){const _0x30c946=_0x55fd5e;var _0x211b4e;return(_0x211b4e=this[_0x30c946(0x17b)][_0x30c946(0x149)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x211b4e:u[_0x30c946(0x1d7)];}['_saveCache'](_0x554d0b){const _0x54c154=_0x55fd5e,_0x269ce0=this[_0x54c154(0x311)][_0x54c154(0x178)](_0x554d0b);return _0x269ce0!==void 0x0&&window[_0x54c154(0x31a)](_0x269ce0),this[_0x54c154(0x100)][_0x54c154(0x1b0)](u[_0x54c154(0x2e0)](_0x554d0b),this[_0x54c154(0xba)][_0x54c154(0x178)](_0x554d0b))[_0x54c154(0x132)](()=>this['_saveTaskMap'][_0x54c154(0x20e)](_0x554d0b));}async['exhaustSavingTask'](){const _0x30f0d9=_0x55fd5e,_0x43c862=[];this['_saveTaskMap'][_0x30f0d9(0x243)]((_0x2d0658,_0x1d063d)=>{const _0x12563c=_0x30f0d9;window['clearTimeout'](_0x2d0658),_0x43c862[_0x12563c(0x280)](this[_0x12563c(0x17f)](_0x1d063d)['then'](()=>{const _0x2ea825=_0x12563c;this[_0x2ea825(0x311)][_0x2ea825(0x20e)](_0x1d063d);}));}),await Promise['all'](_0x43c862);}};ge=Kt([_e(0x0,a[_0x55fd5e(0x2ed)]),_e(0x1,a[_0x55fd5e(0x233)]),_e(0x2,a[_0x55fd5e(0x199)](m['RevisionService']))],ge);class je extends a['RxDisposable']{constructor(){const _0x5e7a53=_0x55fd5e;super(),h(this,_0x5e7a53(0x2fb)),this[_0x5e7a53(0x2fb)]=d[_0x5e7a53(0x1fb)](window,'popstate')[_0x5e7a53(0x21d)](d[_0x5e7a53(0xf1)](this[_0x5e7a53(0xe8)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0x55fd5e(0x184)](_0x223411,_0x224d73,_0x4bf852=!0x1){const _0xade62c=_0x55fd5e,_0x24d566=new URL(window[_0xade62c(0x204)][_0xade62c(0x2ca)]);_0x24d566[_0xade62c(0x1ef)]['set'](_0x223411,_0x224d73),_0x4bf852?window[_0xade62c(0x230)]['replaceState']('','',_0x24d566['toString']()):window[_0xade62c(0x230)][_0xade62c(0x2f8)]('','',_0x24d566[_0xade62c(0x14e)]());}[_0x55fd5e(0x2ad)](_0x5893df,_0x5898be=!0x1){const _0x467782=_0x55fd5e,_0x4faf83=new URL(window[_0x467782(0x204)]['href']);_0x4faf83['searchParams'][_0x467782(0x20e)](_0x5893df),_0x5898be?window['history'][_0x467782(0x10d)]('','',_0x4faf83[_0x467782(0x14e)]()):window[_0x467782(0x230)][_0x467782(0x2f8)]('','',_0x4faf83[_0x467782(0x14e)]());}[_0x55fd5e(0x14c)](_0x5da27f){const _0x37267e=_0x55fd5e;var _0x13d4bb;return(_0x13d4bb=new URL(window[_0x37267e(0x204)][_0x37267e(0x2ca)])['searchParams'][_0x37267e(0x178)](_0x5da27f))!=null?_0x13d4bb:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x55fd5e(0x1f2)],Jt=(_0x4f12db,_0x321602,_0x196865)=>_0x321602 in _0x4f12db?qt(_0x4f12db,_0x321602,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x196865}):_0x4f12db[_0x321602]=_0x196865,Zt=(_0x285c9b,_0x274f14,_0x412ce7,_0x189ef6)=>{const _0xbce814=_0x55fd5e;for(var _0x487cc4=_0x189ef6>0x1?void 0x0:_0x189ef6?zt(_0x274f14,_0x412ce7):_0x274f14,_0x5ac89b=_0x285c9b[_0xbce814(0x11d)]-0x1,_0x1f8aae;_0x5ac89b>=0x0;_0x5ac89b--)(_0x1f8aae=_0x285c9b[_0x5ac89b])&&(_0x487cc4=_0x1f8aae(_0x487cc4)||_0x487cc4);return _0x487cc4;},he=(_0x591dd3,_0x1f8109)=>(_0x101513,_0x29daf6)=>_0x1f8109(_0x101513,_0x29daf6,_0x591dd3),Qt=(_0x1547ff,_0x450a33,_0x2f52c2)=>Jt(_0x1547ff,_0x450a33+'',_0x2f52c2);const es=_0x55fd5e(0xdb);exports[_0x55fd5e(0x2f0)]=class extends a[_0x55fd5e(0x181)]{constructor(_0x616b63=Ue,_0x2fc4c2,_0xc07226,_0x536a22){const _0x15408e=_0x55fd5e;super(),this['_config']=_0x616b63,this[_0x15408e(0x247)]=_0x2fc4c2,this['_injector']=_0xc07226,this['_configService']=_0x536a22;const {..._0x1e0a69}=a['merge']({},Ue,this['_config']);this['_configService']['setConfig']($t,_0x1e0a69);}[_0x55fd5e(0x19b)](){const _0x178b77=_0x55fd5e;this['_registerDependencies'](),this[_0x178b77(0x18e)]();}[_0x55fd5e(0x111)](){const _0x53f335=_0x55fd5e;this[_0x53f335(0x174)]();}[_0x55fd5e(0x208)](){const _0x433e13=_0x55fd5e;var _0x2f4505;const _0x3b53aa=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G['WebSocketService']}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x433e13(0x312)]],[Q],[q],[x],[de],[exports[_0x433e13(0x234)]]];a[_0x433e13(0x153)](this[_0x433e13(0x2cb)],a['mergeOverrideWithDependencies'](_0x3b53aa,(_0x2f4505=this[_0x433e13(0x2d5)])==null?void 0x0:_0x2f4505[_0x433e13(0x310)]));}[_0x55fd5e(0x174)](){const _0x3bd3c0=_0x55fd5e;this['disposeWithMe'](this[_0x3bd3c0(0x247)][_0x3bd3c0(0x15b)](a[_0x3bd3c0(0x207)]['UNIVER_DOC'],[Ie])),this['disposeWithMe'](this[_0x3bd3c0(0x247)]['registerRenderModule'](a[_0x3bd3c0(0x207)]['UNIVER_SHEET'],[ve]));}[_0x55fd5e(0x18e)](){const _0x27a816=_0x55fd5e;a[_0x27a816(0xf3)](this[_0x27a816(0x2cb)],[[x],[exports[_0x27a816(0x312)]],[Q],[q],[exports[_0x27a816(0x234)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports[_0x55fd5e(0x2f0)]=Zt([a[_0x55fd5e(0x26f)](u[_0x55fd5e(0x205)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x55fd5e(0x1d6)])),he(0x3,a[_0x55fd5e(0x2ed)])],exports[_0x55fd5e(0x2f0)]);var ts=Object[_0x55fd5e(0x1f2)],ss=(_0x2d21b5,_0x34fa00,_0x26fb51,_0x4be3ff)=>{const _0x789fd8=_0x55fd5e;for(var _0x244e5d=_0x4be3ff>0x1?void 0x0:_0x4be3ff?ts(_0x34fa00,_0x26fb51):_0x34fa00,_0x925fe3=_0x2d21b5[_0x789fd8(0x11d)]-0x1,_0xc74f78;_0x925fe3>=0x0;_0x925fe3--)(_0xc74f78=_0x2d21b5[_0x925fe3])&&(_0x244e5d=_0xc74f78(_0x244e5d)||_0x244e5d);return _0x244e5d;},F=(_0x3f19ea,_0x16b72c)=>(_0xa1dd3a,_0x1a4dc9)=>_0x16b72c(_0xa1dd3a,_0x1a4dc9,_0x3f19ea);exports[_0x55fd5e(0x2e9)]=class extends u[_0x55fd5e(0x1ac)]{constructor(_0x3a5b3e,_0xc7ea63,_0x321e77,_0x2accb7,_0x216c4b){super(_0x3a5b3e,_0xc7ea63,_0x321e77,_0x2accb7,_0x216c4b);}async['createSocket'](_0x575538){const _0x59b144=_0x55fd5e,_0x67aceb=await this[_0x59b144(0x18a)](),_0x1f59d=this[_0x59b144(0x155)](_0x575538,_0x67aceb);return this[_0x59b144(0x29c)](_0x1f59d);}[_0x55fd5e(0x155)](_0x3cd7cd,_0x19ed4f){const _0x57ed69=_0x55fd5e,_0x2c9477=typeof window>'u'?new URL(_0x3cd7cd):new URL(_0x3cd7cd,window[_0x57ed69(0x204)][_0x57ed69(0x16c)]);_0x2c9477[_0x57ed69(0x1ef)][_0x57ed69(0x26e)](_0x57ed69(0xea),_0x19ed4f);const _0x4a9d9d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x57ed69(0x204)][_0x57ed69(0xeb)]);return _0x4a9d9d['get'](_0x57ed69(0x291))&&_0x2c9477[_0x57ed69(0x1ef)][_0x57ed69(0x26e)]('runId',_0x4a9d9d[_0x57ed69(0x178)](_0x57ed69(0x291))),_0x2c9477[_0x57ed69(0x14e)]();}async[_0x55fd5e(0x18a)](){const _0x19d8b5=_0x55fd5e;var _0x3b7435,_0x7557a0,_0x418acf;const _0x21172f=this['_configService']['getConfig'](u[_0x19d8b5(0x1ba)]),_0x387639=(_0x3b7435=_0x21172f==null?void 0x0:_0x21172f[_0x19d8b5(0x1dc)])!=null?_0x3b7435:u[_0x19d8b5(0x262)];return(_0x418acf=(_0x7557a0=(await this[_0x19d8b5(0x240)][_0x19d8b5(0x178)](_0x387639,{'headers':{'Content-Type':'application/json'}}))[_0x19d8b5(0x2a7)])==null?void 0x0:_0x7557a0[_0x19d8b5(0x12b)])!=null?_0x418acf:'';}},exports[_0x55fd5e(0x2e9)]=ss([F(0x0,a['Inject'](a[_0x55fd5e(0x1d6)])),F(0x1,a[_0x55fd5e(0x199)](G[_0x55fd5e(0x210)])),F(0x2,a[_0x55fd5e(0x2ed)]),F(0x3,a[_0x55fd5e(0xb5)]),F(0x4,m[_0x55fd5e(0x32f)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x55fd5e(0x1a9);class is extends a[_0x55fd5e(0xe3)]{constructor(){const _0x27bb29=_0x55fd5e;super(),h(this,_0x27bb29(0x1e0),a['generateRandomId']()),h(this,_0x27bb29(0x1d0),new Set()),h(this,_0x27bb29(0x21b),new Map()),h(this,_0x27bb29(0x2e8),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x27bb29(0x1ab),new Map()),this['_init']();}[_0x55fd5e(0x23c)](){const _0x57cd49=_0x55fd5e;super[_0x57cd49(0x23c)](),this[_0x57cd49(0x1e9)]['forEach']((_0x5acc51,_0x535f6f)=>this[_0x57cd49(0x141)](_0x535f6f)),this[_0x57cd49(0x2e8)]&&window['clearInterval'](this[_0x57cd49(0x2e8)]);}[_0x55fd5e(0x1c8)](_0x931525){const _0x35a8cd=_0x55fd5e;return this[_0x35a8cd(0xf5)](_0x931525)[_0x35a8cd(0x21d)](d[_0x35a8cd(0x10b)]());}[_0x55fd5e(0x1df)](_0x2648bb){const _0x37e939=_0x55fd5e;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x37e939(0x1d0)][_0x37e939(0x1e6)](_0x2648bb),this[_0x37e939(0x2c8)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2648bb],'isForwarded':!0x1});}[_0x55fd5e(0x32d)](_0x1e10ef){const _0x42a466=_0x55fd5e;this[_0x42a466(0x1d0)][_0x42a466(0x20e)](_0x1e10ef),this[_0x42a466(0x1d0)][_0x42a466(0x315)]===0x0&&this[_0x42a466(0x2e8)]&&window[_0x42a466(0x1c4)](this[_0x42a466(0x2e8)]);}[_0x55fd5e(0x14b)](){const _0x26679a=_0x55fd5e;this['disposeWithMe'](a[_0x26679a(0x27d)](d[_0x26679a(0x1fb)](window,'storage')[_0x26679a(0x2ce)](_0x5a4c87=>{const _0x56c9f3=_0x26679a;if(_0x5a4c87[_0x56c9f3(0x239)]!==Le||!_0x5a4c87[_0x56c9f3(0x1fd)])return;const _0x480c30=JSON['parse'](_0x5a4c87[_0x56c9f3(0x1fd)]);this[_0x56c9f3(0x257)](_0x480c30);}))),window['addEventListener'](_0x26679a(0x163),()=>this[_0x26679a(0x2c8)]({'type':0x1,'memberID':this[_0x26679a(0x1e0)],'unitIDs':Array[_0x26679a(0xc2)](this[_0x26679a(0x1d0)])}));}[_0x55fd5e(0x257)](_0x357011){const _0x2510d4=_0x55fd5e;switch(_0x357011[_0x2510d4(0x224)]){case 0x0:this[_0x2510d4(0x118)](_0x357011);break;case 0x1:this[_0x2510d4(0x1c3)](_0x357011);break;case 0x2:this[_0x2510d4(0x1a8)](_0x357011);break;}}['_handleJoinEvent'](_0x2ee4d6){const _0x34e761=_0x55fd5e,{unitIDs:_0x1a58d9,memberID:_0x3d6d5c,isForwarded:_0xe1662c}=_0x2ee4d6;_0x1a58d9[_0x34e761(0x243)](_0x33f0d5=>{const _0x33e6e7=_0x34e761;if(!_0xe1662c&&this[_0x33e6e7(0x21b)]['has'](_0x33f0d5)&&this[_0x33e6e7(0xf5)](_0x33f0d5)[_0x33e6e7(0x216)](u[_0x33e6e7(0xf4)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x33e6e7(0x1a2)](_0x33f0d5)||!this[_0x33e6e7(0x21b)]['get'](_0x33f0d5)[_0x33e6e7(0x1a2)](_0x3d6d5c)){const _0x5c26d6=this[_0x33e6e7(0x21b)][_0x33e6e7(0x178)](_0x33f0d5)||new Set();_0x5c26d6[_0x33e6e7(0x1e6)](_0x3d6d5c),this[_0x33e6e7(0x21b)][_0x33e6e7(0x26e)](_0x33f0d5,_0x5c26d6),this[_0x33e6e7(0x22c)](_0x3d6d5c);}}),_0xe1662c||this['_send']({'type':0x0,'memberID':this[_0x34e761(0x1e0)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x38195c){const _0x2f4a22=_0x55fd5e;this[_0x2f4a22(0x141)](_0x38195c);const _0x2ff1dc=window[_0x2f4a22(0x294)](()=>{const _0x48db1a=_0x2f4a22;this[_0x48db1a(0x21b)][_0x48db1a(0x243)](_0x12bc68=>{_0x12bc68['delete'](_0x38195c);});},Me*0x2);this['_clearOtherTimers'][_0x2f4a22(0x26e)](_0x38195c,_0x2ff1dc);}[_0x55fd5e(0x141)](_0x4f5039){const _0xb2037d=_0x55fd5e;if(this['_clearOtherTimers'][_0xb2037d(0x1a2)](_0x4f5039)){const _0x3eda52=this[_0xb2037d(0x1e9)][_0xb2037d(0x178)](_0x4f5039);_0x3eda52&&window[_0xb2037d(0x31a)](_0x3eda52),this['_clearOtherTimers'][_0xb2037d(0x26e)](_0x4f5039,null);}}['_handleLeaveEvent'](_0x3cb279){const _0x579410=_0x55fd5e,{memberID:_0x309d1f,unitIDs:_0x3840a9}=_0x3cb279;_0x3840a9[_0x579410(0x243)](_0x367996=>{const _0x310de8=_0x579410;var _0x6a716d;const _0x4ba0c5=this['_unitOnClients'][_0x310de8(0x178)](_0x367996);_0x4ba0c5&&(_0x4ba0c5[_0x310de8(0x20e)](_0x309d1f),(_0x6a716d=this[_0x310de8(0xf5)](_0x367996))==null||_0x6a716d[_0x310de8(0x216)](_0x4ba0c5['size']===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x310de8(0xf4)]['OTHER_CLIENTS_EDITING']));}),this[_0x579410(0x141)](_0x309d1f);}[_0x55fd5e(0x1a8)](_0x1dd791){this['_scheduleClearOtherTimer'](_0x1dd791['memberID']);}[_0x55fd5e(0x2c8)](_0x299cd9){const _0x557410=_0x55fd5e;localStorage['setItem'](Le,JSON[_0x557410(0xef)](_0x299cd9));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x495649=_0x4120;this[_0x495649(0x2c8)]({'type':0x2,'memberID':this[_0x495649(0x1e0)]});},Me);}[_0x55fd5e(0xf5)](_0x2b7cd9){const _0x4385fb=_0x55fd5e;return this[_0x4385fb(0x1ab)][_0x4385fb(0x1a2)](_0x2b7cd9)||this['_unitStatus'][_0x4385fb(0x26e)](_0x2b7cd9,new d[(_0x4385fb(0xad))](u[_0x4385fb(0xf4)][_0x4385fb(0xd2)])),this[_0x4385fb(0x1ab)][_0x4385fb(0x178)](_0x2b7cd9);}}var Be=(_0x22867b=>(_0x22867b[_0x22867b['UNDEFINED']=0x0]=_0x55fd5e(0x302),_0x22867b[_0x22867b['OK']=0x1]='OK',_0x22867b[_0x22867b['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x22867b[_0x22867b['PERMISSION_DENIED']=0x3]=_0x55fd5e(0x29f),_0x22867b[_0x22867b['NOT_FOUND']=0x4]=_0x55fd5e(0x306),_0x22867b[_0x22867b['UNAUTHENTICATED']=0x5]=_0x55fd5e(0xd7),_0x22867b[_0x22867b['ALREADY_EXISTS']=0x6]=_0x55fd5e(0x13b),_0x22867b[_0x22867b['INVALID_ARGUMENT']=0x7]=_0x55fd5e(0x133),_0x22867b[_0x22867b[_0x55fd5e(0x338)]=0x8]=_0x55fd5e(0x338),_0x22867b[_0x22867b[_0x55fd5e(0x16a)]=0x9]=_0x55fd5e(0x16a),_0x22867b[_0x22867b[_0x55fd5e(0x197)]=0xa]=_0x55fd5e(0x197),_0x22867b[_0x22867b[_0x55fd5e(0x24f)]=0x1389]=_0x55fd5e(0x24f),_0x22867b[_0x22867b['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x55fd5e(0x265),_0x22867b[_0x22867b['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x55fd5e(0xc0),_0x22867b[_0x22867b[_0x55fd5e(0x2d8)]=0x1773]=_0x55fd5e(0x2d8),_0x22867b[_0x22867b[_0x55fd5e(0x11f)]=0x1b59]=_0x55fd5e(0x11f),_0x22867b[_0x22867b[_0x55fd5e(0x13a)]=0x1b5a]=_0x55fd5e(0x13a),_0x22867b[_0x22867b['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x55fd5e(0x2b7),_0x22867b[_0x22867b[_0x55fd5e(0x28d)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x22867b[_0x22867b[_0x55fd5e(0x162)]=0x1b5d]='APPLY_DUPLICATED',_0x22867b[_0x22867b[_0x55fd5e(0x150)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x22867b[_0x22867b[_0x55fd5e(0x269)]=0x2329]=_0x55fd5e(0x269),_0x22867b[_0x22867b['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x22867b[_0x22867b['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x55fd5e(0xb4),_0x22867b[_0x22867b['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x55fd5e(0x1e4),_0x22867b[_0x22867b['LICENSE_DISTRO_REJECTED']=0x232d]=_0x55fd5e(0x117),_0x22867b[_0x22867b[_0x55fd5e(0xe4)]=0x2711]=_0x55fd5e(0xe4),_0x22867b[_0x22867b[_0x55fd5e(0xf0)]=0x2712]=_0x55fd5e(0xf0),_0x22867b[_0x22867b[_0x55fd5e(0x295)]=0x2713]=_0x55fd5e(0x295),_0x22867b[_0x22867b[_0x55fd5e(0x105)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x22867b[_0x22867b[_0x55fd5e(0x1ea)]=0x271a]=_0x55fd5e(0x1ea),_0x22867b[_0x22867b['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x55fd5e(0x31e),_0x22867b[_0x22867b[_0x55fd5e(0x219)]=0x271c]=_0x55fd5e(0x219),_0x22867b[_0x22867b['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x55fd5e(0x272),_0x22867b[_0x22867b[_0x55fd5e(0x1c1)]=0x271e]=_0x55fd5e(0x1c1),_0x22867b[_0x22867b[_0x55fd5e(0xde)]=0x271f]=_0x55fd5e(0xde),_0x22867b[_0x22867b[_0x55fd5e(0x2cc)]=0x2af9]=_0x55fd5e(0x2cc),_0x22867b[_0x22867b[_0x55fd5e(0x25b)]=0x2ee1]=_0x55fd5e(0x25b),_0x22867b[_0x22867b[_0x55fd5e(0x1cd)]=0x2ee2]=_0x55fd5e(0x1cd),_0x22867b[_0x22867b[_0x55fd5e(0x26c)]=0x2ee3]=_0x55fd5e(0x26c),_0x22867b[_0x22867b[_0x55fd5e(0x326)]=0x2ee4]=_0x55fd5e(0x326),_0x22867b[_0x22867b[_0x55fd5e(0x21e)]=0x2ee5]=_0x55fd5e(0x21e),_0x22867b[_0x22867b[_0x55fd5e(0x160)]=0x32c9]=_0x55fd5e(0x160),_0x22867b[_0x22867b[_0x55fd5e(0x30b)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x22867b[_0x22867b[_0x55fd5e(0x1ec)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x22867b[_0x22867b[_0x55fd5e(0x1a7)]=-0x1]='UNRECOGNIZED',_0x22867b))(Be||{}),ns=Object[_0x55fd5e(0x1f2)],rs=(_0x2193ed,_0x4bd810,_0x44e659,_0x540cae)=>{const _0x128031=_0x55fd5e;for(var _0x487d8c=_0x540cae>0x1?void 0x0:_0x540cae?ns(_0x4bd810,_0x44e659):_0x4bd810,_0x5a4da6=_0x2193ed[_0x128031(0x11d)]-0x1,_0x1cc2f5;_0x5a4da6>=0x0;_0x5a4da6--)(_0x1cc2f5=_0x2193ed[_0x5a4da6])&&(_0x487d8c=_0x1cc2f5(_0x487d8c)||_0x487d8c);return _0x487d8c;},ue=(_0x3eeaa1,_0x5949b0)=>(_0x4aad3a,_0x1bd784)=>_0x5949b0(_0x4aad3a,_0x1bd784,_0x3eeaa1);exports[_0x55fd5e(0xd9)]=class extends a[_0x55fd5e(0xe3)]{constructor(_0x58d67c,_0x3734ba,_0x16ea5e){const _0x5a814c=_0x55fd5e;super(),this['_instanceService']=_0x58d67c,this[_0x5a814c(0x240)]=_0x3734ba,this[_0x5a814c(0x17b)]=_0x16ea5e;}async[_0x55fd5e(0x273)](_0x44362c,_0x4310b1,_0x5ec260,..._0x43b139){const _0x50c5e9=_0x55fd5e;var _0x1c8f33,_0x16f019,_0x377c35,_0x579162;const _0x1ec3e9=this[_0x50c5e9(0x2bc)][_0x50c5e9(0x128)]();if(!_0x1ec3e9)throw new Error(_0x50c5e9(0x167));const _0x36d27c=((_0x1c8f33=this[_0x50c5e9(0x17b)][_0x50c5e9(0x149)](u[_0x50c5e9(0xbe)]))!=null?_0x1c8f33:u[_0x50c5e9(0x2a3)])+'/'+_0x44362c+_0x50c5e9(0x2fc)+_0x4310b1,_0x124d1c=new URL(window[_0x50c5e9(0x204)][_0x50c5e9(0x2ca)]),_0xcd90ed={'scriptId':_0x44362c,'runId':(_0x16f019=_0x124d1c[_0x50c5e9(0x1ef)][_0x50c5e9(0x178)]('runId'))!=null?_0x16f019:'','function':_0x4310b1,'unitId':_0x1ec3e9[_0x50c5e9(0xd6)](),'argsOfFunction':JSON[_0x50c5e9(0xef)](_0x43b139),'invokeId':(_0x377c35=_0x5ec260[_0x50c5e9(0x331)])!=null?_0x377c35:'','executionId':(_0x579162=_0x5ec260[_0x50c5e9(0x292)])!=null?_0x579162:''};try{const _0x5d24f3=await this[_0x50c5e9(0x240)][_0x50c5e9(0x25d)](_0x36d27c,{'body':_0xcd90ed});return _0x5d24f3[_0x50c5e9(0x2a7)][_0x50c5e9(0xb7)]&&_0x5d24f3[_0x50c5e9(0x2a7)][_0x50c5e9(0xb7)][_0x50c5e9(0x122)]!==Be['OK']?'Failed':_0x5d24f3['body'][_0x50c5e9(0x1b3)];}catch{return _0x50c5e9(0x31c);}}},exports[_0x55fd5e(0xd9)]=rs([ue(0x0,a[_0x55fd5e(0x264)]),ue(0x1,a[_0x55fd5e(0x199)](G['HTTPService'])),ue(0x2,a[_0x55fd5e(0x2ed)])],exports[_0x55fd5e(0xd9)]),exports[_0x55fd5e(0x2db)]=xe,exports[_0x55fd5e(0x151)]=be,exports[_0x55fd5e(0x136)]=Ae,exports[_0x55fd5e(0x131)]=is,exports[_0x55fd5e(0x20d)]=je;
|