@univerjs-pro/collaboration-client 0.2.8 → 0.2.9
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/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x2cc1b3=_0x4b8d;(function(_0xf11e04,_0x12dd9f){const _0x2a6521=_0x4b8d,_0x672b45=_0xf11e04();while(!![]){try{const _0x31b207=parseInt(_0x2a6521(0x177))/0x1*(-parseInt(_0x2a6521(0x15b))/0x2)+parseInt(_0x2a6521(0x1e9))/0x3+parseInt(_0x2a6521(0x191))/0x4*(parseInt(_0x2a6521(0x494))/0x5)+parseInt(_0x2a6521(0x391))/0x6+-parseInt(_0x2a6521(0x469))/0x7*(parseInt(_0x2a6521(0x39c))/0x8)+parseInt(_0x2a6521(0x45b))/0x9*(-parseInt(_0x2a6521(0x474))/0xa)+-parseInt(_0x2a6521(0x3b3))/0xb*(parseInt(_0x2a6521(0x519))/0xc);if(_0x31b207===_0x12dd9f)break;else _0x672b45['push'](_0x672b45['shift']());}catch(_0x5c05a6){_0x672b45['push'](_0x672b45['shift']());}}}(_0x1e54,0x527f8));var $t=Object['defineProperty'],xt=(_0x22392b,_0x1a83a8,_0x30f589)=>_0x1a83a8 in _0x22392b?$t(_0x22392b,_0x1a83a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30f589}):_0x22392b[_0x1a83a8]=_0x30f589,u=(_0x3d5314,_0x57cc39,_0x52d9bf)=>xt(_0x3d5314,typeof _0x57cc39!=_0x2cc1b3(0x2ea)?_0x57cc39+'':_0x57cc39,_0x52d9bf);Object[_0x2cc1b3(0x1b2)](exports,Symbol['toStringTag'],{'value':_0x2cc1b3(0x1c2)});const o=require('@univerjs/core'),p=require(_0x2cc1b3(0x163)),Q=require('@univerjs/design'),L=require(_0x2cc1b3(0x449)),_=require('@univerjs-pro/collaboration'),v=require(_0x2cc1b3(0x422)),C=require(_0x2cc1b3(0x4cc)),P=require(_0x2cc1b3(0x354)),U=require(_0x2cc1b3(0x511)),A=require(_0x2cc1b3(0x4ad)),b=require(_0x2cc1b3(0x396)),Ye=require(_0x2cc1b3(0x36f)),$e=require(_0x2cc1b3(0x147)),J=require(_0x2cc1b3(0x51b)),y=require(_0x2cc1b3(0x24c)),Ht=require('clsx'),kt=require('@univerjs/rpc'),ct=_0x2cc1b3(0x268),Bt=_0x2cc1b3(0x1dc),lt=_0x2cc1b3(0x273),ht='SEND_CHANGESET_TIMEOUT',Ft=0x7d0,_t=_0x2cc1b3(0x276),Vt=_0x2cc1b3(0x41c),ut=_0x2cc1b3(0x2cd),Wt=0x7530,xe='HEARTBEAT_TIMEOUT',dt=0x2710,Gt=_0x2cc1b3(0x299),Yt=0x4e20,Kt='RETRY_CONNECTING_MAX_COUNT',Xt=0x3,St='LOCAL_CACHE_INTERVAL',qt=0x3e8,vt=_0x2cc1b3(0x3de),zt=_0x2cc1b3(0x16d),mt='LOGIN_URL_KEY',Jt=_0x2cc1b3(0x439);var gt=(_0x4884e5=>(_0x4884e5[_0x4884e5[_0x2cc1b3(0x4d2)]=0x0]=_0x2cc1b3(0x4d2),_0x4884e5[_0x4884e5['OK']=0x1]='OK',_0x4884e5[_0x4884e5[_0x2cc1b3(0x48c)]=0x2]=_0x2cc1b3(0x48c),_0x4884e5[_0x4884e5[_0x2cc1b3(0x40e)]=0x3]='PERMISSION_DENIED',_0x4884e5[_0x4884e5['NOT_FOUND']=0x4]='NOT_FOUND',_0x4884e5[_0x4884e5[_0x2cc1b3(0x528)]=0x5]=_0x2cc1b3(0x528),_0x4884e5[_0x4884e5[_0x2cc1b3(0x481)]=0x6]=_0x2cc1b3(0x481),_0x4884e5[_0x4884e5['INVALID_ARGUMENT']=0x7]=_0x2cc1b3(0x50d),_0x4884e5[_0x4884e5[_0x2cc1b3(0x3ad)]=0x8]=_0x2cc1b3(0x3ad),_0x4884e5[_0x4884e5[_0x2cc1b3(0x188)]=0x9]='COMPLETION_FINISHED',_0x4884e5[_0x4884e5[_0x2cc1b3(0x218)]=0x1389]=_0x2cc1b3(0x218),_0x4884e5[_0x4884e5[_0x2cc1b3(0x1bd)]=0x1771]=_0x2cc1b3(0x1bd),_0x4884e5[_0x4884e5[_0x2cc1b3(0x306)]=0x1772]=_0x2cc1b3(0x306),_0x4884e5[_0x4884e5['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4884e5[_0x4884e5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2cc1b3(0x498),_0x4884e5[_0x4884e5[_0x2cc1b3(0x3e2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4884e5[_0x4884e5[_0x2cc1b3(0x220)]=0x1b5c]=_0x2cc1b3(0x220),_0x4884e5[_0x4884e5[_0x2cc1b3(0x2ab)]=0x1f41]=_0x2cc1b3(0x2ab),_0x4884e5[_0x4884e5[_0x2cc1b3(0x4b6)]=0x2329]=_0x2cc1b3(0x4b6),_0x4884e5[_0x4884e5[_0x2cc1b3(0x21c)]=0x232a]=_0x2cc1b3(0x21c),_0x4884e5[_0x4884e5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2cc1b3(0x407),_0x4884e5[_0x4884e5[_0x2cc1b3(0x24b)]=0x232c]=_0x2cc1b3(0x24b),_0x4884e5[_0x4884e5[_0x2cc1b3(0x315)]=0x232d]=_0x2cc1b3(0x315),_0x4884e5[_0x4884e5['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x2cc1b3(0x3ea),_0x4884e5[_0x4884e5[_0x2cc1b3(0x1e5)]=0x2712]=_0x2cc1b3(0x1e5),_0x4884e5[_0x4884e5[_0x2cc1b3(0x349)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4884e5[_0x4884e5['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x2cc1b3(0x2fd),_0x4884e5[_0x4884e5[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0x4884e5))(gt||{}),j=(_0xdb0c6c=>(_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x3a4)]=0x0]=_0x2cc1b3(0x3a4),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x40b)]=0x1]=_0x2cc1b3(0x40b),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x3a1)]=0x2]='UNIVER_SHEET',_0xdb0c6c[_0xdb0c6c['UNIVER_SLIDE']=0x3]=_0x2cc1b3(0x237),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x4e2)]=0x4]=_0x2cc1b3(0x4e2),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0xdb0c6c))(j||{}),T=(_0x468fc0=>(_0x468fc0[_0x468fc0[_0x2cc1b3(0x3d5)]=0x0]=_0x2cc1b3(0x3d5),_0x468fc0[_0x468fc0['HELLO']=0x1]=_0x2cc1b3(0x2a0),_0x468fc0[_0x468fc0[_0x2cc1b3(0x520)]=0x2]=_0x2cc1b3(0x520),_0x468fc0[_0x468fc0[_0x2cc1b3(0x222)]=0x3]=_0x2cc1b3(0x222),_0x468fc0[_0x468fc0[_0x2cc1b3(0x3b9)]=0x4]=_0x2cc1b3(0x3b9),_0x468fc0[_0x468fc0[_0x2cc1b3(0x398)]=0x5]='HEARTBEAT',_0x468fc0[_0x468fc0[_0x2cc1b3(0x397)]=0x6]='RECV',_0x468fc0[_0x468fc0[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0x468fc0))(T||{}),He=(_0x3a435d=>(_0x3a435d[_0x3a435d[_0x2cc1b3(0x257)]=0x0]=_0x2cc1b3(0x257),_0x3a435d[_0x3a435d['OK']=0x1]='OK',_0x3a435d[_0x3a435d[_0x2cc1b3(0x3cc)]=0x2]=_0x2cc1b3(0x3cc),_0x3a435d[_0x3a435d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3a435d))(He||{}),Zt=Object['defineProperty'],Qt=Object[_0x2cc1b3(0x47b)],es=(_0x5657ed,_0x3cf5b9,_0x369a8d,_0x1d8a1f)=>{const _0x1474f2=_0x2cc1b3;for(var _0x1b92a5=_0x1d8a1f>0x1?void 0x0:_0x1d8a1f?Qt(_0x3cf5b9,_0x369a8d):_0x3cf5b9,_0x53aeb5=_0x5657ed[_0x1474f2(0x209)]-0x1,_0x3e521e;_0x53aeb5>=0x0;_0x53aeb5--)(_0x3e521e=_0x5657ed[_0x53aeb5])&&(_0x1b92a5=(_0x1d8a1f?_0x3e521e(_0x3cf5b9,_0x369a8d,_0x1b92a5):_0x3e521e(_0x1b92a5))||_0x1b92a5);return _0x1d8a1f&&_0x1b92a5&&Zt(_0x3cf5b9,_0x369a8d,_0x1b92a5),_0x1b92a5;},Ke=(_0x2f694e,_0x558a0b)=>(_0xfde03c,_0x417b9c)=>_0x558a0b(_0xfde03c,_0x417b9c,_0x2f694e);let Y=class extends o[_0x2cc1b3(0x460)]{constructor(_0x207867,_0x511c98){const _0x456d19=_0x2cc1b3;super(),u(this,_0x456d19(0x23f),new Map()),(this['_univerInstanceService']=_0x207867,this[_0x456d19(0x4c4)]=_0x511c98,this[_0x456d19(0x4be)](o[_0x456d19(0x168)](v[_0x456d19(0x3e0)](this['_univerInstanceService'][_0x456d19(0x36a)](o[_0x456d19(0x271)]['UNIVER_SHEET'])[_0x456d19(0x478)](C['map'](_0x5ade47=>_0x5ade47[_0x456d19(0x15a)]())),this['_univerInstanceService'][_0x456d19(0x36a)](o[_0x456d19(0x271)][_0x456d19(0x40b)])[_0x456d19(0x478)](C['map'](_0x3e05d8=>_0x3e05d8[_0x456d19(0x15a)]())),this[_0x456d19(0x46f)]['getTypeOfUnitDisposed$'](o[_0x456d19(0x271)][_0x456d19(0x237)])[_0x456d19(0x478)](C['map'](_0x3015e1=>_0x3015e1[_0x456d19(0x15a)]())))['subscribe'](_0x5c6837=>this[_0x456d19(0x1cb)](_0x5c6837)))));}[_0x2cc1b3(0x50b)](_0x486406){const _0x386642=_0x2cc1b3;this[_0x386642(0x4c4)][_0x386642(0x50b)](_0x486406);}[_0x2cc1b3(0x215)](){const _0x43346c=_0x2cc1b3;return this[_0x43346c(0x4c4)][_0x43346c(0x215)]();}[_0x2cc1b3(0x180)](_0x591f8b,_0x58de24){const _0x2140db=_0x2cc1b3;let _0x2fb4f3=this['_roomMembers'][_0x2140db(0x3ba)](_0x591f8b);_0x2fb4f3||(_0x2fb4f3=new ts(),this[_0x2140db(0x23f)][_0x2140db(0x1b8)](_0x591f8b,_0x2fb4f3)),_0x2fb4f3['updateMember'](_0x58de24);}[_0x2cc1b3(0x192)](_0x5a9bf3,_0x46f7c1){const _0x3e2a5e=_0x2cc1b3,_0x24278b=this[_0x3e2a5e(0x23f)][_0x3e2a5e(0x3ba)](_0x5a9bf3);_0x24278b&&_0x24278b['removeMember'](_0x46f7c1);}[_0x2cc1b3(0x381)](_0x569047){const _0x4d0972=_0x2cc1b3;return this['_roomMembers'][_0x4d0972(0x3ba)](_0x569047);}[_0x2cc1b3(0x523)](_0x519e4c,_0x47052b){const _0x2fb369=_0x2cc1b3,_0x333323=this[_0x2fb369(0x23f)]['get'](_0x519e4c);if(_0x333323)return _0x333323[_0x2fb369(0x523)](_0x47052b);}[_0x2cc1b3(0x1cb)](_0x507e2f){const _0x32e4cc=_0x2cc1b3,_0x380de4=this[_0x32e4cc(0x23f)]['get'](_0x507e2f);_0x380de4&&(_0x380de4[_0x32e4cc(0x22c)](),this[_0x32e4cc(0x23f)][_0x32e4cc(0x386)](_0x507e2f));}['dispose'](){const _0x3b63a8=_0x2cc1b3;this[_0x3b63a8(0x23f)][_0x3b63a8(0x34c)](_0x4c0ddf=>_0x4c0ddf[_0x3b63a8(0x22c)]()),this[_0x3b63a8(0x23f)]['clear']();}};Y=es([Ke(0x0,o[_0x2cc1b3(0x298)]),Ke(0x1,o['Inject'](o[_0x2cc1b3(0x318)]))],Y);class ts extends o[_0x2cc1b3(0x460)]{constructor(){const _0x41b403=_0x2cc1b3;super(...arguments),u(this,_0x41b403(0x224),new Map());}[_0x2cc1b3(0x22c)](){const _0x54ce55=_0x2cc1b3;this[_0x54ce55(0x224)][_0x54ce55(0x1f8)]();}['updateMember'](_0x300952){const _0x44c3c1=_0x2cc1b3;this['_members'][_0x44c3c1(0x1b8)](_0x300952['memberID'],_0x300952);}[_0x2cc1b3(0x192)](_0x19df1d){const _0xf337ab=_0x2cc1b3;this[_0xf337ab(0x224)][_0xf337ab(0x386)](_0x19df1d);}[_0x2cc1b3(0x523)](_0x4995ec){const _0x402364=_0x2cc1b3;return this[_0x402364(0x224)][_0x402364(0x3ba)](_0x4995ec);}}function ft(_0x240005){const _0x37e797=_0x2cc1b3;var _0x1a997b,_0x596bba,_0x72eb8d,_0x150636;const _0x172811=_0x240005[_0x37e797(0x1c0)],_0x3773b4=JSON[_0x37e797(0x207)](_0x172811);switch(_0x3773b4[_0x37e797(0x3fd)]){case T[_0x37e797(0x398)]:case T[_0x37e797(0x2a0)]:{const _0x313730=_0x3773b4['infoRsp'];return{..._0x3773b4,'data':_0x313730,'cmd':_0x3773b4[_0x37e797(0x3fd)]};}case T[_0x37e797(0x520)]:{const _0x2ab07e=_0x3773b4[_0x37e797(0x4fb)];return{..._0x3773b4,'data':_0x2ab07e,'cmd':_0x3773b4[_0x37e797(0x3fd)]};}case T[_0x37e797(0x397)]:{const _0x14f2b1=_0x3773b4[_0x37e797(0x4db)];switch(_0x14f2b1[_0x37e797(0x266)]){case _[_0x37e797(0x173)][_0x37e797(0x172)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x1a997b=_0x14f2b1[_0x37e797(0x325)])==null?void 0x0:_0x1a997b['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['CHANGESET_ACK']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x596bba=_0x14f2b1[_0x37e797(0x4dd)])==null?void 0x0:_0x596bba['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x353)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x72eb8d=_0x14f2b1['newCsEvent'])==null?void 0x0:_0x72eb8d['cs']},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['CHANGESET_REJ']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x150636=_0x14f2b1[_0x37e797(0x517)])==null?void 0x0:_0x150636['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x49a)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x2ce)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['USERS_ENTER']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x518)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)][_0x37e797(0x21e)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1['leaveEvent']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['LIVESHARE_NEW_HOST']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x3f1)]},'cmd':_0x3773b4['cmd']};case _['CollaborationEvent'][_0x37e797(0x17d)]:case _['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x524)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x2f1)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x3f1)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x3b4)]:return{..._0x3773b4,'data':_0x14f2b1,'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['COMMENT_UPDATE']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x2b0)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['UPDATE_PERMISSION_OBJ']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x372)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)][_0x37e797(0x3c3)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x1af)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};default:return _0x3773b4;}}default:return _0x3773b4;}}function It(_0x326216){const _0x1eafe3=_0x2cc1b3;switch(_0x326216['cmd']){case T[_0x1eafe3(0x398)]:case T[_0x1eafe3(0x2a0)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216['routeKey']});case T[_0x1eafe3(0x3b9)]:{let _0x57eaa4;switch(_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x266)]){case _[_0x1eafe3(0x173)][_0x1eafe3(0x49a)]:{_0x57eaa4={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x21e)]:{_0x57eaa4={'eventID':_['CollaborationEvent'][_0x1eafe3(0x21e)],'leaveEvent':_0x326216['data'][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x3b2)]:{_0x57eaa4={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)]['LIVESHARE_NEW_HOST']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x3a9)],'liveShareNewHost':_0x326216['data'][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x357)]:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x2f1)],'liveShareTerminate':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x1d0)]:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x1d0)],'liveShareRequestHost':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)]['LIVESHARE_FETCH_OPERATIONS']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x57eaa4={'eventID':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x266)]};}return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'collaMsg':_0x57eaa4});}case T[_0x1eafe3(0x520)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'joinReq':_0x326216[_0x1eafe3(0x1c0)]});case T[_0x1eafe3(0x222)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'leaveReq':_0x326216[_0x1eafe3(0x1c0)]});default:throw new Error(_0x1eafe3(0x2b6));}}var ss=Object['defineProperty'],is=Object[_0x2cc1b3(0x47b)],ns=(_0x301fa9,_0x56bfcc,_0x49dd21,_0x26d7b0)=>{for(var _0x3e1f5a=_0x26d7b0>0x1?void 0x0:_0x26d7b0?is(_0x56bfcc,_0x49dd21):_0x56bfcc,_0x1efde8=_0x301fa9['length']-0x1,_0x1632d4;_0x1efde8>=0x0;_0x1efde8--)(_0x1632d4=_0x301fa9[_0x1efde8])&&(_0x3e1f5a=(_0x26d7b0?_0x1632d4(_0x56bfcc,_0x49dd21,_0x3e1f5a):_0x1632d4(_0x3e1f5a))||_0x3e1f5a);return _0x26d7b0&&_0x3e1f5a&&ss(_0x56bfcc,_0x49dd21,_0x3e1f5a),_0x3e1f5a;},se=(_0x100e47,_0x4397d5)=>(_0x9f3485,_0x57eb9e)=>_0x4397d5(_0x9f3485,_0x57eb9e,_0x100e47);const ke=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x21a));function rs(_0x890cf4,_0x22ffaf,_0x4c88ff){const _0x523ccf=_0x2cc1b3;return _0x890cf4+'/'+_0x22ffaf+_0x523ccf(0x1c8)+_0x4c88ff+_0x523ccf(0x1b0);}exports[_0x2cc1b3(0x3e6)]=class{constructor(_0x1e15bf,_0x93377f,_0x421543,_0x12a30a,_0x56a506){const _0x44fa9b=_0x2cc1b3;this['_http']=_0x1e15bf,this[_0x44fa9b(0x1d5)]=_0x93377f,this[_0x44fa9b(0x3f8)]=_0x421543,this[_0x44fa9b(0x402)]=_0x12a30a,this[_0x44fa9b(0x2e9)]=_0x56a506;}[_0x2cc1b3(0x3cf)](_0x1b8d4f){const _0x5cc762=_0x2cc1b3,_0x398817=this[_0x5cc762(0x1d5)][_0x5cc762(0x3cf)](_0x1b8d4f);if(!_0x398817)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1c615d=new o[(_0x5cc762(0x289))](),_0x1ddbb1=new v[(_0x5cc762(0x3fb))]();_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](_0x398817[_0x5cc762(0x32a)][_0x5cc762(0x4c8)](_0x2f5ea2=>_0x1ddbb1[_0x5cc762(0x1a2)](_0x2f5ea2)))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x1ddbb1['complete']()));const _0x4eb891=new v[(_0x5cc762(0x3fb))]();_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](_0x398817[_0x5cc762(0x471)][_0x5cc762(0x4c8)](_0x1411f4=>_0x4eb891['next'](_0x1411f4)))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x4eb891[_0x5cc762(0x491)]()));const _0x379092=new v[(_0x5cc762(0x3fb))]();_0x1c615d['add'](o[_0x5cc762(0x168)](_0x398817['message$'][_0x5cc762(0x4c8)](_0x37ab1e=>{const _0x134bc0=_0x5cc762,_0x13e677=ft(_0x37ab1e);_0x379092[_0x134bc0(0x1a2)](_0x13e677);}))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x379092[_0x5cc762(0x491)]()));const _0x547e9e=()=>{const _0x1a0bca=_0x5cc762;_0x4eb891[_0x1a0bca(0x1a2)](new Event('connection\x20error')),_0x1ddbb1[_0x1a0bca(0x1a2)](new CloseEvent(_0x1a0bca(0x2be))),_0xa43a24[_0x1a0bca(0x2c5)]();},_0xa43a24={'memberID':'','close$':_0x1ddbb1[_0x5cc762(0x368)](),'error$':_0x4eb891[_0x5cc762(0x368)](),'open$':_0x398817[_0x5cc762(0x4d1)],'message$':_0x379092['asObservable'](),'send':_0xe43ed5=>{const _0x2da1c8=_0x5cc762;if(_0xe43ed5[_0x2da1c8(0x3fd)]===T['INGEST']){if(_0xe43ed5[_0x2da1c8(0x1c0)][_0x2da1c8(0x266)]===_[_0x2da1c8(0x173)][_0x2da1c8(0x350)]){this['_submitChangeset'](_0xa43a24,_0xe43ed5[_0x2da1c8(0x1c0)])[_0x2da1c8(0x367)](_0x279dd3=>{const _0x500d78=_0x2da1c8;this[_0x500d78(0x402)][_0x500d78(0x307)](_0x279dd3),_0x547e9e();});return;}if(_0xe43ed5[_0x2da1c8(0x1c0)][_0x2da1c8(0x266)]===_['CollaborationEvent'][_0x2da1c8(0x4ed)]){const _0x3e5198=_0xe43ed5[_0x2da1c8(0x1c0)];this['_fetchMissChangesets'](_0x3e5198)['then'](_0x28f7ed=>{const _0x15db61=_0x2da1c8;_0x379092['next']({'cmd':T[_0x15db61(0x397)],'code':He['OK'],'routeKey':_0x3e5198[_0x15db61(0x1c0)]['unitID'],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x15db61(0x2c4)],'data':{'changesets':_0x28f7ed}}});})['catch'](_0x387548=>{const _0x52a622=_0x2da1c8;this['_logService'][_0x52a622(0x307)](_0x387548),_0x547e9e();});return;}}_0x398817['send'](It(_0xe43ed5));},'close':()=>{const _0x4424b0=_0x5cc762;_0x398817['close'](),_0x1c615d[_0x4424b0(0x22c)]();}};return _0xa43a24;}async[_0x2cc1b3(0x44b)](_0x559555,_0x5df50d){const _0x614f2d=_0x2cc1b3;var _0xb4c64f;const {unitType:_0x53c58d,unitID:_0xa6ec12,changeset:_0x446f17}=_0x5df50d[_0x614f2d(0x1c0)],_0x5192c0={'unitID':_0xa6ec12,'memberID':_0x559555['memberID'],'type':_0x53c58d,'changeset':_['parseChangesetToProtocol'](_0x446f17)},_0x2ceb2c=rs((_0xb4c64f=this[_0x614f2d(0x3f8)][_0x614f2d(0x42f)](vt))!=null?_0xb4c64f:zt,_0x53c58d,_0xa6ec12);try{await this[_0x614f2d(0x4c3)][_0x614f2d(0x152)](_0x2ceb2c,{'body':_0x5192c0});}catch(_0x1cef09){throw this[_0x614f2d(0x402)]['error'](_0x614f2d(0x1d6),'submit\x20changeset\x20error!'),_0x1cef09;}}async[_0x2cc1b3(0x27f)](_0x3fb441){const _0x512b18=_0x2cc1b3,{unitID:_0x5a7fcc,from:_0x3ef462,to:_0x189d2e,unitType:_0x378748}=_0x3fb441['data'];return(await this[_0x512b18(0x2e9)][_0x512b18(0x259)]({'metadata':void 0x0},{'unitID':_0x5a7fcc,'type':_0x378748,'from':_0x3ef462,'to':_0x189d2e}))[_0x512b18(0x37d)];}},exports[_0x2cc1b3(0x3e6)]=ns([se(0x0,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)])),se(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1b3)])),se(0x2,o[_0x2cc1b3(0x149)]),se(0x3,o[_0x2cc1b3(0x4ba)]),se(0x4,o[_0x2cc1b3(0x3ef)])],exports[_0x2cc1b3(0x3e6)]);class Be{constructor(){const _0x2651e8=_0x2cc1b3;u(this,'_commentUpdate$',new v[(_0x2651e8(0x3fb))]()),u(this,'commentUpdate$',this['_commentUpdate$'][_0x2651e8(0x368)]());}[_0x2cc1b3(0x2e5)](_0x35cbe3){const _0x5638e1=_0x2cc1b3;this[_0x5638e1(0x251)][_0x5638e1(0x1a2)](_0x35cbe3);}}var os=Object[_0x2cc1b3(0x1b2)],as=Object[_0x2cc1b3(0x47b)],pt=(_0x166a5c,_0x1ca559,_0x4c3d9e,_0x24475c)=>{const _0x47d712=_0x2cc1b3;for(var _0x38938a=_0x24475c>0x1?void 0x0:_0x24475c?as(_0x1ca559,_0x4c3d9e):_0x1ca559,_0x24b8bc=_0x166a5c[_0x47d712(0x209)]-0x1,_0x839a8f;_0x24b8bc>=0x0;_0x24b8bc--)(_0x839a8f=_0x166a5c[_0x24b8bc])&&(_0x38938a=(_0x24475c?_0x839a8f(_0x1ca559,_0x4c3d9e,_0x38938a):_0x839a8f(_0x38938a))||_0x38938a);return _0x24475c&&_0x38938a&&os(_0x1ca559,_0x4c3d9e,_0x38938a),_0x38938a;},w=(_0x4eb29b,_0x530862)=>(_0x40d5c0,_0x7fad33)=>_0x530862(_0x40d5c0,_0x7fad33,_0x4eb29b),G=(_0x2e5851=>(_0x2e5851[_0x2e5851['IDLE']=0x0]=_0x2cc1b3(0x1ae),_0x2e5851[_0x2e5851[_0x2cc1b3(0x336)]=0x1]=_0x2cc1b3(0x336),_0x2e5851[_0x2e5851['OFFLINE']=0x2]='OFFLINE',_0x2e5851[_0x2e5851[_0x2cc1b3(0x302)]=0x3]='ONLINE',_0x2e5851))(G||{});exports['CollaborationSession']=class extends o[_0x2cc1b3(0x516)]{constructor(_0x113cd5,_0x1ba47a,_0x8a5e34,_0x331d98,_0x52b026,_0x4b2175,_0x138178,_0x591eb3,_0x156c8f){const _0x3e3ef3=_0x2cc1b3;super(),u(this,_0x3e3ef3(0x22d),new v[(_0x3e3ef3(0x445))](0x0)),u(this,_0x3e3ef3(0x380),this['_sessionStatus$']['asObservable']()),u(this,_0x3e3ef3(0x1b1),new v[(_0x3e3ef3(0x3fb))]()),u(this,_0x3e3ef3(0x4cf),this['_event$'][_0x3e3ef3(0x368)]()),u(this,'_socket'),u(this,'_socketMessageSubscription'),u(this,'_collaborationTimeoutTimer'),(this[_0x3e3ef3(0x226)]=_0x113cd5,this['_logService']=_0x8a5e34,this[_0x3e3ef3(0x37b)]=_0x331d98,this[_0x3e3ef3(0x475)]=_0x52b026,this[_0x3e3ef3(0x3f8)]=_0x4b2175,this[_0x3e3ef3(0x33c)]=_0x138178,this[_0x3e3ef3(0x3ab)]=_0x591eb3,this[_0x3e3ef3(0x3ca)]=_0x156c8f,_0x1ba47a[_0x3e3ef3(0x478)](C[_0x3e3ef3(0x1ef)](this[_0x3e3ef3(0x23e)]))[_0x3e3ef3(0x4c8)](_0x41564a=>{const _0x43311c=_0x3e3ef3;var _0x5211da;typeof _0x41564a>'u'||(this[_0x43311c(0x455)]=_0x41564a,_0x41564a?(this[_0x43311c(0x3b6)](_0x41564a),this[_0x43311c(0x167)]=this['_socket'][_0x43311c(0x1fc)][_0x43311c(0x4c8)](_0x2f0d12=>{const _0x391b8a=_0x43311c;_0x2f0d12['routeKey']===this[_0x391b8a(0x226)]&&this[_0x391b8a(0x26f)](_0x2f0d12);})):(this[_0x43311c(0x22d)][_0x43311c(0x1a2)](0x2),(_0x5211da=this[_0x43311c(0x167)])==null||_0x5211da[_0x43311c(0x265)](),this[_0x43311c(0x167)]=null));}),this[_0x3e3ef3(0x4be)](this[_0x3e3ef3(0x37b)][_0x3e3ef3(0x3be)](()=>{const _0x4a69f5=_0x3e3ef3;var _0x44c355;(_0x44c355=this[_0x4a69f5(0x455)])==null||_0x44c355['send']({'cmd':T['LEAVE'],'data':{'roomID':this[_0x4a69f5(0x226)]}});})));}get['sessionStatus'](){const _0x53fc7f=_0x2cc1b3;return this[_0x53fc7f(0x22d)][_0x53fc7f(0x14c)]();}[_0x2cc1b3(0x3a8)](){const _0x51679a=_0x2cc1b3;var _0x7d4e4d,_0x3b2b81;return(_0x3b2b81=(_0x7d4e4d=this[_0x51679a(0x455)])==null?void 0x0:_0x7d4e4d[_0x51679a(0x2fe)])!=null?_0x3b2b81:null;}[_0x2cc1b3(0x22c)](){const _0xe12e81=_0x2cc1b3;super[_0xe12e81(0x22c)](),this[_0xe12e81(0x23e)]['next'](),this['dispose$'][_0xe12e81(0x491)]();}['close'](){const _0x322bc4=_0x2cc1b3;var _0x12125f,_0xa9a594;(_0x12125f=this['_socket'])==null||_0x12125f['send']({'cmd':T[_0x322bc4(0x222)],'data':{'roomID':this['_unitID']}}),this[_0x322bc4(0x1b1)][_0x322bc4(0x491)](),this[_0x322bc4(0x22d)][_0x322bc4(0x491)](),(_0xa9a594=this['_socket'])==null||_0xa9a594[_0x322bc4(0x2c5)](),this[_0x322bc4(0x22c)]();}[_0x2cc1b3(0x26f)](_0x4f16eb){const _0x1b7742=_0x2cc1b3;_0x4f16eb['cmd']===T[_0x1b7742(0x520)]?this['_onJoinRoomEvent'](_0x4f16eb):_0x4f16eb['cmd']===T[_0x1b7742(0x397)]&&this['_onRecvEvent'](_0x4f16eb);}[_0x2cc1b3(0x3b6)](_0x3f56d1){const _0x43b688=_0x2cc1b3;this[_0x43b688(0x22d)][_0x43b688(0x1a2)](0x1),_0x3f56d1[_0x43b688(0x377)]({'cmd':T[_0x43b688(0x520)],'routeKey':this[_0x43b688(0x226)],'routeType':'','data':{'rooms':[{'roomID':this[_0x43b688(0x226)]}]}});}[_0x2cc1b3(0x42d)](_0x3c60ae){const _0x4b0125=_0x2cc1b3;var _0x234dbd;if(_0x3c60ae[_0x4b0125(0x2d0)]===He[_0x4b0125(0x3cc)]){this[_0x4b0125(0x475)][_0x4b0125(0x4f2)]({'type':Q[_0x4b0125(0x329)]['Warning'],'content':this[_0x4b0125(0x33c)]['t'](_0x4b0125(0x352))}),this[_0x4b0125(0x22d)]['next'](0x2);return;}this[_0x4b0125(0x22d)]['next'](0x3);const _0xb804a5=(_0x234dbd=_0x3c60ae[_0x4b0125(0x1c0)]['roomInfos'][this[_0x4b0125(0x226)]])==null?void 0x0:_0x234dbd[_0x4b0125(0x2ba)];_0xb804a5&&_0xb804a5['forEach'](_0x41f6f5=>this[_0x4b0125(0x3ab)][_0x4b0125(0x180)](this[_0x4b0125(0x226)],_0x41f6f5));}[_0x2cc1b3(0x3b0)](_0x5a591d){const _0x5af5b9=_0x2cc1b3;try{const _0x4ada76=_0x5a591d[_0x5af5b9(0x1c0)];switch(_0x4ada76[_0x5af5b9(0x266)]){case _['CollaborationEvent'][_0x5af5b9(0x3b2)]:this[_0x5af5b9(0x3c9)](_0x4ada76),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _[_0x5af5b9(0x173)][_0x5af5b9(0x21e)]:this[_0x5af5b9(0x4c6)](_0x4ada76),this['_event$']['next'](_0x4ada76);break;case _[_0x5af5b9(0x173)]['CHANGESET_ACK']:this[_0x5af5b9(0x4de)](),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _['CollaborationEvent'][_0x5af5b9(0x3b4)]:this[_0x5af5b9(0x402)][_0x5af5b9(0x307)](_0x5af5b9(0x375)+JSON[_0x5af5b9(0x3a5)](_0x4ada76)),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _[_0x5af5b9(0x173)]['COMMENT_UPDATE']:this[_0x5af5b9(0x3ca)][_0x5af5b9(0x2e5)](_0x4ada76[_0x5af5b9(0x1c0)]),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;default:this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);}}catch(_0x548785){this[_0x5af5b9(0x402)][_0x5af5b9(0x307)](_0x548785,_0x5a591d);}}[_0x2cc1b3(0x3c9)](_0x35daeb){const _0x373713=_0x2cc1b3;this[_0x373713(0x3ab)][_0x373713(0x180)](this[_0x373713(0x226)],_0x35daeb['data']);}[_0x2cc1b3(0x4c6)](_0x5ea91e){const _0x1138ff=_0x2cc1b3;this['_memberService'][_0x1138ff(0x192)](this['_unitID'],_0x5ea91e[_0x1138ff(0x1c0)][_0x1138ff(0x2fe)]);}async[_0x2cc1b3(0x377)](_0x1f6755,_0x52911f){const _0x3a53d3=_0x2cc1b3;if(this['sessionStatus']!==0x3||!this[_0x3a53d3(0x455)])throw new Error(_0x3a53d3(0x3c5));try{_0x1f6755[_0x3a53d3(0x266)]===_[_0x3a53d3(0x173)][_0x3a53d3(0x353)]&&this[_0x3a53d3(0x1f9)](),this[_0x3a53d3(0x455)][_0x3a53d3(0x377)]({'cmd':T['INGEST'],'routeKey':_0x52911f,'routeType':'','data':_0x1f6755});}catch(_0x1a25c6){this[_0x3a53d3(0x402)][_0x3a53d3(0x307)](_0x1a25c6);}}['_scheduleCollaborationTimeoutTimer'](){const _0x26701c=_0x2cc1b3;var _0x1d79f3;this[_0x26701c(0x4f0)]=window[_0x26701c(0x252)](()=>{const _0x41f2ef=_0x26701c;this['_collaborationTimeoutTimer']=null,this[_0x41f2ef(0x475)][_0x41f2ef(0x4f2)]({'type':Q[_0x41f2ef(0x329)]['Error'],'content':this[_0x41f2ef(0x33c)]['t']('session.collaboration-timeout')});},(_0x1d79f3=this['_configService'][_0x26701c(0x42f)](xe))!=null?_0x1d79f3:dt);}[_0x2cc1b3(0x4de)](){const _0x282e7b=_0x2cc1b3;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x282e7b(0x4f0)]),this['_collaborationTimeoutTimer']=null);}},exports[_0x2cc1b3(0x338)]=pt([w(0x2,o[_0x2cc1b3(0x4ba)]),w(0x3,L['IBeforeCloseService']),w(0x4,L[_0x2cc1b3(0x280)]),w(0x5,o[_0x2cc1b3(0x149)]),w(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),w(0x7,o[_0x2cc1b3(0x333)](Y)),w(0x8,o[_0x2cc1b3(0x333)](Be))],exports[_0x2cc1b3(0x338)]),exports[_0x2cc1b3(0x14e)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x2c1ced,_0x1e585e,_0x3365a4,_0x2da1f7,_0x409127,_0x58d9d0){const _0x4a9730=_0x2cc1b3;super(),u(this,_0x4a9730(0x2bf),new v['BehaviorSubject'](void 0x0)),u(this,'_sessions',new Map()),u(this,_0x4a9730(0x40f),new v['BehaviorSubject'](0x0)),u(this,_0x4a9730(0x4ff),this[_0x4a9730(0x40f)][_0x4a9730(0x368)]()),u(this,_0x4a9730(0x272),!0x1),u(this,_0x4a9730(0x477)),u(this,_0x4a9730(0x1aa)),u(this,_0x4a9730(0x148)),u(this,_0x4a9730(0x2b7),0x0),(this[_0x4a9730(0x3fe)]=_0x2c1ced,this['_localeService']=_0x1e585e,this[_0x4a9730(0x475)]=_0x3365a4,this[_0x4a9730(0x402)]=_0x2da1f7,this[_0x4a9730(0x3f8)]=_0x409127,this[_0x4a9730(0x436)]=_0x58d9d0);}get[_0x2cc1b3(0x455)](){const _0x5ae67c=_0x2cc1b3;return this['_socket$'][_0x5ae67c(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0x5ee98c=_0x2cc1b3;super[_0x5ee98c(0x22c)](),this[_0x5ee98c(0x156)][_0x5ee98c(0x34c)](_0x574984=>_0x574984[_0x5ee98c(0x22c)]()),this[_0x5ee98c(0x156)][_0x5ee98c(0x1f8)](),this[_0x5ee98c(0x40f)][_0x5ee98c(0x491)]();}async[_0x2cc1b3(0x33b)](_0xed9f8b){const _0x1f0516=_0x2cc1b3;if(this['_sessions']['has'](_0xed9f8b))return this[_0x1f0516(0x156)][_0x1f0516(0x3ba)](_0xed9f8b);this[_0x1f0516(0x4e8)]();const _0x3dc782=this[_0x1f0516(0x3fe)]['createInstance'](exports[_0x1f0516(0x338)],_0xed9f8b,this[_0x1f0516(0x2bf)][_0x1f0516(0x368)]());return this['_sessions'][_0x1f0516(0x1b8)](_0xed9f8b,_0x3dc782),_0x3dc782;}[_0x2cc1b3(0x410)](_0x3e713c){const _0x445b63=_0x2cc1b3;var _0x17348f;const _0x336943=this[_0x445b63(0x156)]['get'](_0x3e713c);_0x336943&&(this[_0x445b63(0x156)][_0x445b63(0x386)](_0x3e713c),_0x336943['close']()),this[_0x445b63(0x156)][_0x445b63(0x343)]||(_0x17348f=this['_socket'])==null||_0x17348f[_0x445b63(0x2c5)]();}[_0x2cc1b3(0x28b)](){const _0x47e17d=_0x2cc1b3;var _0x2e536c;const _0xb5fb00=(_0x2e536c=this['_configService'][_0x47e17d(0x42f)](_t))!=null?_0x2e536c:Vt;return this[_0x47e17d(0x436)]['createSocket'](_0xb5fb00);}['_tryEnsureSocket'](){const _0x1059d1=_0x2cc1b3;try{const _0x20454e=this[_0x1059d1(0x28b)]();if(_0x20454e){const _0x995f66=_0x20454e[_0x1059d1(0x377)];_0x20454e['send']=_0x395bac=>(this['_rescheduleHeartbeatEvent'](),_0x995f66[_0x1059d1(0x2af)](_0x20454e,[_0x395bac])),_0x20454e[_0x1059d1(0x1fc)][_0x1059d1(0x4c8)](_0x3f883f=>this[_0x1059d1(0x392)](_0x20454e,_0x3f883f)),_0x20454e[_0x1059d1(0x471)][_0x1059d1(0x478)](C[_0x1059d1(0x342)](0x1))['subscribe'](_0x49f7a0=>this[_0x1059d1(0x402)][_0x1059d1(0x307)](_0x1059d1(0x48d),_0x49f7a0)),_0x20454e[_0x1059d1(0x4d1)]['pipe'](C[_0x1059d1(0x342)](0x1))[_0x1059d1(0x4c8)](()=>{const _0x479638=_0x1059d1;this[_0x479638(0x503)](_0x20454e);}),_0x20454e['close$'][_0x1059d1(0x478)](C['take'](0x1))[_0x1059d1(0x4c8)](_0x4eed3b=>{const _0xf4192d=_0x1059d1;this[_0xf4192d(0x402)][_0xf4192d(0x1a1)](_0xf4192d(0x48b),_0xf4192d(0x484),_0x4eed3b),this[_0xf4192d(0x3e1)]();});}}catch(_0x46767e){this[_0x1059d1(0x402)]['error'](_0x46767e),this[_0x1059d1(0x3e1)]();}}[_0x2cc1b3(0x503)](_0x1e16d9){const _0x314b53=_0x2cc1b3;this[_0x314b53(0x402)][_0x314b53(0x1a1)](_0x314b53(0x48b),_0x314b53(0x4ef)),_0x1e16d9[_0x314b53(0x377)]({'cmd':T[_0x314b53(0x2a0)]}),this['_rescheduleHeartbeatEvent']();}[_0x2cc1b3(0x3e1)](){const _0x11542d=_0x2cc1b3;var _0x293079;this[_0x11542d(0x40f)][_0x11542d(0x1a2)](0x2),this[_0x11542d(0x2bf)][_0x11542d(0x1a2)](null),this[_0x11542d(0x184)](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x11542d(0x2b7)]<((_0x293079=this[_0x11542d(0x3f8)]['getConfig'](Kt))!=null?_0x293079:Xt)?(this[_0x11542d(0x35c)](this[_0x11542d(0x2b7)]),this[_0x11542d(0x2b7)]+=0x1):this[_0x11542d(0x475)]['show']({'type':Q[_0x11542d(0x329)]['Error'],'content':this[_0x11542d(0x33c)]['t'](_0x11542d(0x2aa))});}[_0x2cc1b3(0x35c)](_0xf9d896){const _0xdd0b3e=_0x2cc1b3;var _0x277365;const _0x562c7b=((_0x277365=this[_0xdd0b3e(0x3f8)]['getConfig'](Gt))!=null?_0x277365:Yt)*0x2**_0xf9d896;this[_0xdd0b3e(0x475)][_0xdd0b3e(0x4f2)]({'type':Q['MessageType'][_0xdd0b3e(0x3b1)],'content':this[_0xdd0b3e(0x33c)]['t'](_0xdd0b3e(0x17e))}),this[_0xdd0b3e(0x148)]=setTimeout(()=>{const _0x271f63=_0xdd0b3e;this[_0x271f63(0x4e8)](),clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null;},_0x562c7b);}['_rescheduleHeartbeatEvent'](){const _0xd62f8e=_0x2cc1b3;var _0x39b47f;this[_0xd62f8e(0x4a6)](),this[_0xd62f8e(0x477)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x39b47f=this['_configService']['getConfig'](ut))!=null?_0x39b47f:Wt);}[_0x2cc1b3(0x260)](){const _0x542f5c=_0x2cc1b3;this['_socket']['send']({'cmd':T[_0x542f5c(0x398)]}),this[_0x542f5c(0x46c)]();}[_0x2cc1b3(0x46c)](){const _0x56d070=_0x2cc1b3;var _0x5a0f66;this[_0x56d070(0x1aa)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x5a0f66=this[_0x56d070(0x3f8)]['getConfig'](xe))!=null?_0x5a0f66:dt);}[_0x2cc1b3(0x392)](_0x327605,_0x2eda02){const _0x3026f3=_0x2cc1b3,{cmd:_0x33da2a}=_0x2eda02;_0x33da2a===T[_0x3026f3(0x2a0)]&&!this['_socketReady']&&(_0x327605[_0x3026f3(0x2fe)]=_0x2eda02['data']['memberID'],this[_0x3026f3(0x2bf)][_0x3026f3(0x1a2)](_0x327605),this['_status$'][_0x3026f3(0x1a2)](0x3),this[_0x3026f3(0x272)]=!0x0),_0x33da2a===T[_0x3026f3(0x398)]&&this['_clearTimeoutTimer'](),this[_0x3026f3(0x27c)]();}['_clearHeartbeatTimer'](){const _0x2a15b6=_0x2cc1b3;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2a15b6(0x477)]),this[_0x2a15b6(0x477)]=null);}[_0x2cc1b3(0x184)](){const _0x2a49=_0x2cc1b3;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2a49(0x1aa)]),this['_timeoutTimer']=null);}},exports[_0x2cc1b3(0x14e)]=pt([w(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),w(0x1,o[_0x2cc1b3(0x333)](o['LocaleService'])),w(0x2,L[_0x2cc1b3(0x280)]),w(0x3,o[_0x2cc1b3(0x4ba)]),w(0x4,o[_0x2cc1b3(0x149)]),w(0x5,ke)],exports[_0x2cc1b3(0x14e)]);var cs=Object[_0x2cc1b3(0x1b2)],ls=Object[_0x2cc1b3(0x47b)],hs=(_0x3a0986,_0x23b3f6,_0x3b4ac5,_0x3e0819)=>{const _0x41252d=_0x2cc1b3;for(var _0x23c93a=_0x3e0819>0x1?void 0x0:_0x3e0819?ls(_0x23b3f6,_0x3b4ac5):_0x23b3f6,_0x53b4f4=_0x3a0986[_0x41252d(0x209)]-0x1,_0x4b1e14;_0x53b4f4>=0x0;_0x53b4f4--)(_0x4b1e14=_0x3a0986[_0x53b4f4])&&(_0x23c93a=(_0x3e0819?_0x4b1e14(_0x23b3f6,_0x3b4ac5,_0x23c93a):_0x4b1e14(_0x23c93a))||_0x23c93a);return _0x3e0819&&_0x23c93a&&cs(_0x23b3f6,_0x3b4ac5,_0x23c93a),_0x23c93a;},ie=(_0x423c59,_0x565052)=>(_0x1e5ad9,_0x246046)=>_0x565052(_0x1e5ad9,_0x246046,_0x423c59);exports[_0x2cc1b3(0x15f)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x3d5531,_0x132145,_0x11decc,_0x322cc5,_0x136644){const _0x46a587=_0x2cc1b3;super(),u(this,_0x46a587(0x444),new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x46a587(0x28a),!0x1),(this[_0x46a587(0x3f8)]=_0x3d5531,this[_0x46a587(0x3c4)]=_0x132145,this[_0x46a587(0x37b)]=_0x11decc,this['_localeService']=_0x322cc5,this[_0x46a587(0x341)]=_0x136644,this[_0x46a587(0x183)]());}[_0x2cc1b3(0x36d)](){const _0x2da419=_0x2cc1b3;this[_0x2da419(0x28a)]=!0x0;}['enableLocalCache'](){const _0x5adad3=_0x2cc1b3;this[_0x5adad3(0x28a)]=!0x1;}[_0x2cc1b3(0x22c)](){const _0x1514ac=_0x2cc1b3;this[_0x1514ac(0x1f3)]()[_0x1514ac(0x360)](()=>super[_0x1514ac(0x22c)]());}async[_0x2cc1b3(0x4a7)](_0x635d31){const _0x28c6da=_0x2cc1b3;return this[_0x28c6da(0x28a)]?null:this[_0x28c6da(0x3c4)][_0x28c6da(0x243)](Xe(_0x635d31));}async[_0x2cc1b3(0x225)](_0x2ba752,_0x6992a){const _0xfdbe27=_0x2cc1b3;return!!this['_localStorageService'][_0xfdbe27(0x40a)](_0x2ba752,_0x6992a);}['updateOfflineData'](_0x2b2270,_0x123dea,_0x5cc3c6,_0x402ff4){const _0x325750=_0x2cc1b3,_0x16f701=this[_0x325750(0x341)][_0x325750(0x295)](_0x2b2270);this['_cachedData'][_0x325750(0x1b8)](_0x2b2270,{'unitID':_0x2b2270,'type':_0x123dea,'awaitingChangeset':_0x5cc3c6,'mutations':_0x402ff4,'rev':_0x16f701}),this['_saveTaskMap'][_0x325750(0x2ae)](_0x2b2270)||this['_scheduleSaving'](_0x2b2270);}[_0x2cc1b3(0x37e)](_0x520721){const _0x8d90d6=_0x2cc1b3,_0x55077e=this[_0x8d90d6(0x248)]();_0x55077e===0x0?this[_0x8d90d6(0x270)](_0x520721):this[_0x8d90d6(0x36e)][_0x8d90d6(0x1b8)](_0x520721,setTimeout(()=>this['_saveCache'](_0x520721),_0x55077e));}[_0x2cc1b3(0x248)](){const _0x4e18f9=_0x2cc1b3;var _0x50fcd2;return(_0x50fcd2=this[_0x4e18f9(0x3f8)]['getConfig'](St))!=null?_0x50fcd2:qt;}[_0x2cc1b3(0x270)](_0x1bc2b){const _0x36bd08=_0x2cc1b3,_0x27db6f=this[_0x36bd08(0x36e)]['get'](_0x1bc2b);return _0x27db6f!==void 0x0&&window[_0x36bd08(0x1ea)](_0x27db6f),this[_0x36bd08(0x3c4)][_0x36bd08(0x40a)](Xe(_0x1bc2b),this[_0x36bd08(0x444)][_0x36bd08(0x3ba)](_0x1bc2b))['then'](()=>this[_0x36bd08(0x36e)][_0x36bd08(0x386)](_0x1bc2b));}async[_0x2cc1b3(0x1f3)](){const _0x1d009d=_0x2cc1b3,_0x48a1f2=[];this[_0x1d009d(0x36e)][_0x1d009d(0x34c)]((_0x16db3f,_0x5337ac)=>{const _0x4be870=_0x1d009d;window[_0x4be870(0x1ea)](_0x16db3f),_0x48a1f2[_0x4be870(0x4bd)](this[_0x4be870(0x270)](_0x5337ac)[_0x4be870(0x360)](()=>{const _0x35660f=_0x4be870;this['_saveTaskMap'][_0x35660f(0x386)](_0x5337ac);}));}),await Promise[_0x1d009d(0x16a)](_0x48a1f2);}[_0x2cc1b3(0x183)](){const _0x22d836=_0x2cc1b3;this[_0x22d836(0x4be)](this[_0x22d836(0x37b)]['registerBeforeClose'](()=>{const _0x1e9907=_0x22d836;if(this[_0x1e9907(0x36e)][_0x1e9907(0x343)])return this[_0x1e9907(0x33c)]['t'](_0x1e9907(0x388));}));}},exports[_0x2cc1b3(0x15f)]=hs([ie(0x0,o['IConfigService']),ie(0x1,o['ILocalStorageService']),ie(0x2,L[_0x2cc1b3(0x1b6)]),ie(0x3,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),ie(0x4,o[_0x2cc1b3(0x333)](_['RevisionService']))],exports[_0x2cc1b3(0x15f)]);function Xe(_0x1bfcb9){return'unit-cache-'+_0x1bfcb9;}const pe=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x500));var Ct=(_0x336e2b=>(_0x336e2b[_0x336e2b[_0x2cc1b3(0x2f0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x336e2b[_0x336e2b['OTHER_CLIENTS_EDITING']=0x1]=_0x2cc1b3(0x194),_0x336e2b))(Ct||{});const qe=0x7530,ze=_0x2cc1b3(0x164);class _s extends o[_0x2cc1b3(0x460)]{constructor(){const _0xc3832d=_0x2cc1b3;super(),u(this,_0xc3832d(0x1f7),o[_0xc3832d(0x492)]['generateRandomId']()),u(this,_0xc3832d(0x2ed),new Set()),u(this,_0xc3832d(0x311),new Map()),u(this,_0xc3832d(0x291),null),u(this,_0xc3832d(0x182),new Map()),u(this,'_unitStatus',new Map()),this[_0xc3832d(0x4e1)]();}['dispose'](){const _0x437716=_0x2cc1b3;super['dispose'](),this['_clearOtherTimers'][_0x437716(0x34c)]((_0x1e083d,_0xf26d8f)=>this['_removeClearOtherTimer'](_0xf26d8f)),this[_0x437716(0x291)]&&window[_0x437716(0x2d1)](this[_0x437716(0x291)]);}['getUnitStatus$'](_0x33983a){const _0x7f0b5e=_0x2cc1b3;return this[_0x7f0b5e(0x1f4)](_0x33983a)[_0x7f0b5e(0x478)](v[_0x7f0b5e(0x25f)]());}[_0x2cc1b3(0x1ab)](_0x292dcf){const _0x422cad=_0x2cc1b3;this['_selfUnitIDs'][_0x422cad(0x343)]===0x0&&this[_0x422cad(0x3af)](),this[_0x422cad(0x2ed)][_0x422cad(0x506)](_0x292dcf),this[_0x422cad(0x337)]({'type':0x0,'memberID':this[_0x422cad(0x1f7)],'unitIDs':[_0x292dcf],'isForwarded':!0x1});}[_0x2cc1b3(0x201)](_0x389e2c){const _0x2485c5=_0x2cc1b3;this[_0x2485c5(0x2ed)][_0x2485c5(0x386)](_0x389e2c),this[_0x2485c5(0x2ed)][_0x2485c5(0x343)]===0x0&&this[_0x2485c5(0x291)]&&window['clearInterval'](this[_0x2485c5(0x291)]);}['_init'](){const _0x39546b=_0x2cc1b3;this['disposeWithMe'](o[_0x39546b(0x168)](v[_0x39546b(0x37f)](window,'storage')['subscribe'](_0x526256=>{const _0x551d05=_0x39546b;if(_0x526256[_0x551d05(0x47d)]!==ze||!_0x526256[_0x551d05(0x310)])return;const _0x5cf6c0=JSON[_0x551d05(0x207)](_0x526256[_0x551d05(0x310)]);this[_0x551d05(0x441)](_0x5cf6c0);}))),window['addEventListener']('unload',()=>this[_0x39546b(0x337)]({'type':0x1,'memberID':this[_0x39546b(0x1f7)],'unitIDs':Array[_0x39546b(0x346)](this[_0x39546b(0x2ed)])}));}[_0x2cc1b3(0x441)](_0x43437e){const _0x1c436f=_0x2cc1b3;switch(_0x43437e[_0x1c436f(0x3e9)]){case 0x0:this[_0x1c436f(0x3e8)](_0x43437e);break;case 0x1:this['_handleLeaveEvent'](_0x43437e);break;case 0x2:this[_0x1c436f(0x293)](_0x43437e);break;}}[_0x2cc1b3(0x3e8)](_0x23b1be){const _0x4843b4=_0x2cc1b3,{unitIDs:_0x2da22b,memberID:_0x3019a9,isForwarded:_0xd566a6}=_0x23b1be;_0x2da22b[_0x4843b4(0x34c)](_0x256fb2=>{const _0x268ebd=_0x4843b4;if(!_0xd566a6&&this[_0x268ebd(0x311)][_0x268ebd(0x2ae)](_0x256fb2)&&this[_0x268ebd(0x1f4)](_0x256fb2)['next'](0x1),!this[_0x268ebd(0x311)][_0x268ebd(0x2ae)](_0x256fb2)||!this[_0x268ebd(0x311)][_0x268ebd(0x3ba)](_0x256fb2)[_0x268ebd(0x2ae)](_0x3019a9)){const _0x133ac4=this[_0x268ebd(0x311)][_0x268ebd(0x3ba)](_0x256fb2)||new Set();_0x133ac4[_0x268ebd(0x506)](_0x3019a9),this[_0x268ebd(0x311)][_0x268ebd(0x1b8)](_0x256fb2,_0x133ac4),this[_0x268ebd(0x4f9)](_0x3019a9);}}),_0xd566a6||this[_0x4843b4(0x337)]({'type':0x0,'memberID':this[_0x4843b4(0x1f7)],'unitIDs':[...this[_0x4843b4(0x2ed)]],'isForwarded':!0x0});}[_0x2cc1b3(0x4f9)](_0x19cf49){const _0x3d7dc0=_0x2cc1b3;this[_0x3d7dc0(0x453)](_0x19cf49);const _0x11a117=window[_0x3d7dc0(0x252)](()=>{const _0x33a489=_0x3d7dc0;this[_0x33a489(0x311)][_0x33a489(0x34c)](_0x1422c9=>{const _0x1b0764=_0x33a489;_0x1422c9[_0x1b0764(0x386)](_0x19cf49);});},qe*0x2);this[_0x3d7dc0(0x182)][_0x3d7dc0(0x1b8)](_0x19cf49,_0x11a117);}[_0x2cc1b3(0x453)](_0x5c9065){const _0x242580=_0x2cc1b3;if(this[_0x242580(0x182)][_0x242580(0x2ae)](_0x5c9065)){const _0x59bf32=this[_0x242580(0x182)][_0x242580(0x3ba)](_0x5c9065);_0x59bf32&&window[_0x242580(0x1ea)](_0x59bf32),this[_0x242580(0x182)][_0x242580(0x1b8)](_0x5c9065,null);}}['_handleLeaveEvent'](_0x238f21){const _0x48a377=_0x2cc1b3,{memberID:_0x524d31,unitIDs:_0xa1b79b}=_0x238f21;_0xa1b79b[_0x48a377(0x34c)](_0x1f6243=>{const _0x24efe9=_0x48a377;var _0x5e7648;const _0x4e30cc=this[_0x24efe9(0x311)]['get'](_0x1f6243);_0x4e30cc&&(_0x4e30cc['delete'](_0x524d31),(_0x5e7648=this[_0x24efe9(0x1f4)](_0x1f6243))==null||_0x5e7648[_0x24efe9(0x1a2)](_0x4e30cc[_0x24efe9(0x343)]===0x0?0x0:0x1));}),this[_0x48a377(0x453)](_0x524d31);}[_0x2cc1b3(0x293)](_0x3ca38d){const _0x481332=_0x2cc1b3;this[_0x481332(0x4f9)](_0x3ca38d[_0x481332(0x2fe)]);}[_0x2cc1b3(0x337)](_0x1ed038){const _0x3ac692=_0x2cc1b3;localStorage[_0x3ac692(0x40a)](ze,JSON['stringify'](_0x1ed038));}[_0x2cc1b3(0x3af)](){const _0x1a5165=_0x2cc1b3;this[_0x1a5165(0x291)]=window[_0x1a5165(0x41e)](()=>{const _0x204421=_0x1a5165;this[_0x204421(0x337)]({'type':0x2,'memberID':this['_id']});},qe);}[_0x2cc1b3(0x1f4)](_0x53d6bc){const _0x3c1561=_0x2cc1b3;return this['_unitStatus'][_0x3c1561(0x2ae)](_0x53d6bc)||this['_unitStatus'][_0x3c1561(0x1b8)](_0x53d6bc,new v[(_0x3c1561(0x445))](0x0)),this['_unitStatus'][_0x3c1561(0x3ba)](_0x53d6bc);}}var us=Object['defineProperty'],ds=Object[_0x2cc1b3(0x47b)],Ss=(_0x14e1d7,_0x32a771,_0x456b83,_0xda5d10)=>{for(var _0xd00f60=_0xda5d10>0x1?void 0x0:_0xda5d10?ds(_0x32a771,_0x456b83):_0x32a771,_0x356562=_0x14e1d7['length']-0x1,_0x5a5b02;_0x356562>=0x0;_0x356562--)(_0x5a5b02=_0x14e1d7[_0x356562])&&(_0xd00f60=(_0xda5d10?_0x5a5b02(_0x32a771,_0x456b83,_0xd00f60):_0x5a5b02(_0xd00f60))||_0xd00f60);return _0xda5d10&&_0xd00f60&&us(_0x32a771,_0x456b83,_0xd00f60),_0xd00f60;},Je=(_0x41c141,_0x2679cf)=>(_0x1aad9e,_0xe76af4)=>_0x2679cf(_0x1aad9e,_0xe76af4,_0x41c141);let ve=class{constructor(_0x3ecd12,_0x24c62d){const _0x15c0eb=_0x2cc1b3;this[_0x15c0eb(0x3fe)]=_0x3ecd12,this[_0x15c0eb(0x2ad)]=_0x24c62d;}[_0x2cc1b3(0x327)](_0x3de660){const _0x4b43a1=_0x2cc1b3;this[_0x4b43a1(0x4ac)](_0x3de660),this['_transformPreviousActiveRange'](_0x3de660);}[_0x2cc1b3(0x457)](_0x54cc83){const _0xc30c76=_0x2cc1b3,_0x34df20=this[_0xc30c76(0x3fe)]['get'](P['IMEInputManagerService']),{redoCache:_0x52a65c}=_0x34df20[_0xc30c76(0x3d3)]();if(_0x52a65c[_0xc30c76(0x209)]===0x0)return _0x54cc83;let _0x1c2c8a=o['Tools'][_0xc30c76(0x51f)](_0x54cc83['mutations'][0x0]);for(let _0x578cb6=0x0;_0x578cb6<_0x52a65c[_0xc30c76(0x209)];_0x578cb6++){const _0xbd45ae={'id':_0xc30c76(0x3da),'params':{..._0x52a65c[_0x578cb6]}},_0x5ef3cc=this[_0xc30c76(0x2ad)]['transformMutation'](_0x1c2c8a,_0xbd45ae,!0x1);if(_[_0xc30c76(0x24a)](_0x5ef3cc))throw _0x5ef3cc[_0xc30c76(0x307)];_0x1c2c8a=_0x5ef3cc[_0xc30c76(0x47e)];}return{...o['Tools']['deepClone'](_0x54cc83),'mutations':[_0x1c2c8a]};}['_transformUndoRedoStack'](_0x3b36cc){const _0x3f1b88=_0x2cc1b3,_0x267379=this[_0x3f1b88(0x3fe)]['get'](P[_0x3f1b88(0x2fc)]),{undoCache:_0x607129,redoCache:_0x30f3d5}=_0x267379[_0x3f1b88(0x3d3)]();if(_0x607129[_0x3f1b88(0x209)]===0x0||_0x30f3d5[_0x3f1b88(0x209)]===0x0)return;const _0x16f0cb=[],_0x2adc3e=[];let _0x239e4a=o[_0x3f1b88(0x492)][_0x3f1b88(0x51f)](_0x3b36cc[_0x3f1b88(0x1d1)][0x0]),_0x37fe6a=o['Tools'][_0x3f1b88(0x51f)](_0x3b36cc[_0x3f1b88(0x1d1)][0x0]);for(let _0x57ef7f=_0x607129[_0x3f1b88(0x209)]-0x1;_0x57ef7f>=0x0;_0x57ef7f--){const _0x380d0d={'id':_0x3f1b88(0x3da),'params':{..._0x607129[_0x57ef7f]}},_0x26e299={'id':_0x3f1b88(0x3da),'params':{..._0x30f3d5[_0x57ef7f]}},_0x76ea9d=this[_0x3f1b88(0x2ad)][_0x3f1b88(0x261)](_0x239e4a,_0x380d0d,!0x1),_0x1ca153=this['_transformService']['transformMutation'](_0x37fe6a,_0x26e299,!0x1);if(_[_0x3f1b88(0x24a)](_0x76ea9d))throw _0x76ea9d[_0x3f1b88(0x307)];if(_[_0x3f1b88(0x24a)](_0x1ca153))throw _0x1ca153['error'];_0x16f0cb[_0x3f1b88(0x199)](_0x76ea9d[_0x3f1b88(0x285)][_0x3f1b88(0x19e)]),_0x2adc3e['unshift'](_0x1ca153['m2Prime']['params']),_0x239e4a=_0x76ea9d[_0x3f1b88(0x47e)],_0x37fe6a=_0x1ca153['m1Prime'];}_0x267379['setUndoRedoMutationParamsCache']({'undoCache':_0x16f0cb,'redoCache':_0x2adc3e});}[_0x2cc1b3(0x31a)](_0xf0db61){const _0x12366b=_0x2cc1b3,_0x44db74=this[_0x12366b(0x3fe)][_0x12366b(0x3ba)](P['IMEInputManagerService']),_0x2ae492=_0x44db74[_0x12366b(0x213)]();if(_0x2ae492==null)return;const _0x214521=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf0db61[_0x12366b(0x3ee)],'actions':null,'textRanges':[_0x2ae492]}}],_0x2106e0=this[_0x12366b(0x2ad)][_0x12366b(0x525)](_0xf0db61,_0x214521);if(!_[_0x12366b(0x421)](_0x2106e0))throw _0x2106e0[_0x12366b(0x307)];const _0x3a3282=_0x2106e0['m2Prime'][0x0][_0x12366b(0x19e)]['textRanges'];Array[_0x12366b(0x1a8)](_0x3a3282)&&_0x3a3282[_0x12366b(0x209)]&&_0x44db74[_0x12366b(0x3b7)](_0x3a3282[0x0]);}};ve=Ss([Je(0x0,o[_0x2cc1b3(0x333)](o['Injector'])),Je(0x1,_[_0x2cc1b3(0x4ca)])],ve);var vs=Object[_0x2cc1b3(0x1b2)],ms=Object[_0x2cc1b3(0x47b)],gs=(_0xc9c5d2,_0x30ed81,_0x2ad67e,_0x4cc3dc)=>{const _0x469e92=_0x2cc1b3;for(var _0x5d48da=_0x4cc3dc>0x1?void 0x0:_0x4cc3dc?ms(_0x30ed81,_0x2ad67e):_0x30ed81,_0x2c4204=_0xc9c5d2[_0x469e92(0x209)]-0x1,_0x2d77dd;_0x2c4204>=0x0;_0x2c4204--)(_0x2d77dd=_0xc9c5d2[_0x2c4204])&&(_0x5d48da=(_0x4cc3dc?_0x2d77dd(_0x30ed81,_0x2ad67e,_0x5d48da):_0x2d77dd(_0x5d48da))||_0x5d48da);return _0x4cc3dc&&_0x5d48da&&vs(_0x30ed81,_0x2ad67e,_0x5d48da),_0x5d48da;},Ze=(_0x233f92,_0x240706)=>(_0xfd988d,_0x53603e)=>_0x240706(_0xfd988d,_0x53603e,_0x233f92);let me=class{constructor(_0x235629,_0x519b66){const _0x35ca9d=_0x2cc1b3;this[_0x35ca9d(0x3fe)]=_0x235629,this[_0x35ca9d(0x2ad)]=_0x519b66;}[_0x2cc1b3(0x2e8)](_0x416dc4){const _0x342e39=_0x2cc1b3;var _0x9a73ee;const _0x41441e=this['_injector'][_0x342e39(0x3ba)](P[_0x342e39(0x35b)]),_0x1bec2e=(_0x9a73ee=_0x41441e[_0x342e39(0x30f)]())!=null?_0x9a73ee:[],_0x781b38=_0x1bec2e==null?void 0x0:_0x1bec2e['map'](P[_0x342e39(0x19b)]);if(_0x781b38['length']===0x0)return;const _0x23838b=[{'id':_0x342e39(0x3da),'params':{'unitId':_0x416dc4[_0x342e39(0x3ee)],'actions':null,'textRanges':_0x781b38}}],_0x4046f6=this[_0x342e39(0x2ad)][_0x342e39(0x525)](_0x416dc4,_0x23838b);if(!_['isTransformMutationsWithChangesetSuccess'](_0x4046f6))throw _0x4046f6[_0x342e39(0x307)];const _0x5cb746=_0x4046f6[_0x342e39(0x285)][0x0][_0x342e39(0x19e)][_0x342e39(0x1bf)];Array[_0x342e39(0x1a8)](_0x5cb746)&&_0x5cb746['length']&&_0x41441e[_0x342e39(0x19a)](_0x5cb746,!0x1);}};me=gs([Ze(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Ze(0x1,_['ITransformService'])],me);function Et(_0x3cf3a5){const _0xbee064=_0x2cc1b3;let _0x13039e='';for(const _0x4fc7e1 of _0x3cf3a5){const {startOffset:_0x337c3f,endOffset:_0x23c5ff,isActive:_0x297392}=_0x4fc7e1;_0x13039e[_0xbee064(0x209)]&&(_0x13039e+=','),_0x13039e+=_0x337c3f+':'+_0x23c5ff+':'+(_0x297392?'1':'0');}return _0x13039e;}function fs(_0x3d9d79){const _0x1ad505=_0x2cc1b3,_0x440423=_0x3d9d79['split'](','),_0x137f6d=[];for(const _0x63b174 of _0x440423){const [_0x1c17ed,_0x27b6d5,_0x150b6e]=_0x63b174[_0x1ad505(0x2ee)](':');_0x137f6d[_0x1ad505(0x4bd)]({'startOffset':Number(_0x1c17ed),'endOffset':Number(_0x27b6d5),'collapsed':_0x1c17ed===_0x27b6d5,'isActive':_0x150b6e==='1'});}return _0x137f6d[_0x1ad505(0x3eb)](_0x1936ad=>_0x1936ad[_0x1ad505(0x204)])||(_0x137f6d[0x0][_0x1ad505(0x204)]=!0x0),_0x137f6d;}class Fe extends o[_0x2cc1b3(0x516)]{constructor(){const _0x5b0ac8=_0x2cc1b3;super(...arguments),u(this,'_collabCursorState$',new v['BehaviorSubject'](null)),u(this,'collabCursorState$',this[_0x5b0ac8(0x18e)][_0x5b0ac8(0x368)]());}[_0x2cc1b3(0x2d6)](_0x4313be){const _0x1d1185=_0x2cc1b3,{unitID:_0x368289,memberID:_0x2c7c7c,textRanges:_0x3db626}=_0x4313be,_0x3f63ec=Et(_0x3db626),_0x4b87b2={'unitID':_0x368289,'memberID':_0x2c7c7c,'selection':_0x3f63ec};this['_collabCursorState$'][_0x1d1185(0x1a2)](_0x4b87b2);}}var Is=Object[_0x2cc1b3(0x1b2)],ps=Object[_0x2cc1b3(0x47b)],Cs=(_0x1f0cc2,_0x5b1599,_0x490b02,_0x4d59e0)=>{const _0x2caca8=_0x2cc1b3;for(var _0x202709=_0x4d59e0>0x1?void 0x0:_0x4d59e0?ps(_0x5b1599,_0x490b02):_0x5b1599,_0x5d0b50=_0x1f0cc2[_0x2caca8(0x209)]-0x1,_0x55c84c;_0x5d0b50>=0x0;_0x5d0b50--)(_0x55c84c=_0x1f0cc2[_0x5d0b50])&&(_0x202709=(_0x4d59e0?_0x55c84c(_0x5b1599,_0x490b02,_0x202709):_0x55c84c(_0x202709))||_0x202709);return _0x4d59e0&&_0x202709&&Is(_0x5b1599,_0x490b02,_0x202709),_0x202709;},Qe=(_0x318f08,_0x283a21)=>(_0x49d378,_0xf0dddd)=>_0x283a21(_0x49d378,_0xf0dddd,_0x318f08);function Es(_0x5d07e5){const _0x32d2ad=_0x2cc1b3,{unitID:_0x1a2520,mutations:_0x4946f9}=_0x5d07e5;return{'unitId':_0x1a2520,'subUnitId':_0x4946f9[0x0][_0x32d2ad(0x19e)]['subUnitId']};}let ge=class{constructor(_0x188e57,_0x47fc54){const _0x2c6376=_0x2cc1b3;this[_0x2c6376(0x3fe)]=_0x188e57,this['_transformService']=_0x47fc54;}[_0x2cc1b3(0x2e8)](_0xc9e6e3){const _0x3fd40c=_0x2cc1b3;var _0x247658,_0x205d47,_0x34bfe9;const _0x3b6d71=this[_0x3fd40c(0x3fe)][_0x3fd40c(0x3ba)](p[_0x3fd40c(0x154)]),{unitId:_0x527459,subUnitId:_0x35753d}=Es(_0xc9e6e3),_0x5a25c2=_0x3b6d71['getWorkbookSelections'](_0x527459)[_0x3fd40c(0x431)]();if(_0x5a25c2[_0x3fd40c(0x209)]===0x0||!_0x527459||!_0x35753d)return;const _0x7dc6b4=[{'id':p[_0x3fd40c(0x326)]['id'],'params':{'unitId':_0x527459,'subUnitId':_0x35753d,'selections':o['Tools'][_0x3fd40c(0x51f)](_0x5a25c2)}}],_0x169c7c=this['_transformService'][_0x3fd40c(0x525)](_0xc9e6e3,_0x7dc6b4);if(!_[_0x3fd40c(0x421)](_0x169c7c))throw _0x169c7c[_0x3fd40c(0x307)];const _0xf3b7b4=(_0x34bfe9=(_0x205d47=(_0x247658=_0x169c7c[_0x3fd40c(0x285)][0x0])==null?void 0x0:_0x247658[_0x3fd40c(0x19e)])==null?void 0x0:_0x205d47[_0x3fd40c(0x4a3)])!=null?_0x34bfe9:_0x5a25c2;Array[_0x3fd40c(0x1a8)](_0xf3b7b4)&&_0xf3b7b4[_0x3fd40c(0x209)]&&this[_0x3fd40c(0x3fe)][_0x3fd40c(0x3ba)](o[_0x3fd40c(0x1cf)])['executeCommand'](p[_0x3fd40c(0x326)]['id'],{'unitId':_0x527459,'subUnitId':_0x35753d,'selections':_0xf3b7b4});}};ge=Cs([Qe(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Qe(0x1,_[_0x2cc1b3(0x4ca)])],ge);const bs=new Set([p['InsertSheetMutation']['id']]);function et(_0x19c067,_0x558a14,_0x50fdfa,_0x1c57e5,_0x3a642f){const _0x2c025b=_0x2cc1b3;var _0x397a31,_0x34ced6,_0x572643,_0x93c143;const _0x4c5447=[];for(const _0x2dfb16 of _0x19c067)if(bs[_0x2c025b(0x2ae)](_0x2dfb16['id'])){if(_0x4c5447[_0x2c025b(0x209)]>0x0)break;_0x4c5447[_0x2c025b(0x4bd)](_0x2dfb16);break;}else _0x4c5447[_0x2c025b(0x4bd)](_0x2dfb16);const _0x51b85c=(_0x34ced6=(_0x397a31=_0x3a642f[_0x2c025b(0x215)]())==null?void 0x0:_0x397a31[_0x2c025b(0x4dc)])!=null?_0x34ced6:_0x2c025b(0x2f5),_0x5d4f08=(_0x93c143=(_0x572643=_0x3a642f['getCurrentUser']())==null?void 0x0:_0x572643[_0x2c025b(0x2fe)])!=null?_0x93c143:'unknown';return{'changeset':{'unitID':_0x558a14,'type':_[_0x2c025b(0x50a)](_0x50fdfa[_0x2c025b(0x1e0)](_0x558a14)),'baseRev':_0x1c57e5[_0x2c025b(0x295)](_0x558a14),'revision':0x0,'userID':_0x51b85c,'memberID':_0x5d4f08,'mutations':_0x4c5447},'pendingMutations':_0x19c067[_0x2c025b(0x3f9)](_0x4c5447[_0x2c025b(0x209)])};}function Ts(_0x5e16a4,_0x19095a,_0x2b3266,_0x55642c,_0x45f3fb){const _0x21e38b=_0x2cc1b3;var _0x3d7f84,_0x2122b0,_0x20edf1,_0x3b93b7;const _0x33fc5e=[_0x5e16a4[_0x21e38b(0x497)]((_0x17d359,_0x1fd6f6)=>{const _0x67e00e=_0x21e38b;var _0x53f2dd;const {id:_0x2207a1}=_0x17d359,{id:_0x23ec0b,type:_0x5717c0}=_0x1fd6f6,_0x1945db=(_0x53f2dd=_0x17d359[_0x67e00e(0x19e)])!=null?_0x53f2dd:{'actions':null},_0x29bc59=_0x1fd6f6[_0x67e00e(0x19e)];if(_0x2207a1&&_0x2207a1!==_0x23ec0b)throw new Error(_0x67e00e(0x467)+_0x2207a1+_0x67e00e(0x526)+_0x23ec0b+'.');return{..._0x17d359,'id':_0x23ec0b,'type':_0x5717c0,'params':{'unitId':_0x29bc59[_0x67e00e(0x440)],'textRanges':_0x29bc59[_0x67e00e(0x1bf)],'actions':o[_0x67e00e(0x250)][_0x67e00e(0x4a9)](_0x1945db[_0x67e00e(0x27e)],_0x29bc59[_0x67e00e(0x27e)])}};},{})],_0x1393ba=(_0x2122b0=(_0x3d7f84=_0x45f3fb['getCurrentUser']())==null?void 0x0:_0x3d7f84[_0x21e38b(0x4dc)])!=null?_0x2122b0:_0x21e38b(0x2f5),_0x487861=(_0x3b93b7=(_0x20edf1=_0x45f3fb[_0x21e38b(0x215)]())==null?void 0x0:_0x20edf1[_0x21e38b(0x2fe)])!=null?_0x3b93b7:'unknown';return{'changeset':{'unitID':_0x19095a,'type':_[_0x21e38b(0x50a)](_0x2b3266['getUnitType'](_0x19095a)),'baseRev':_0x55642c[_0x21e38b(0x295)](_0x19095a),'revision':0x0,'userID':_0x1393ba,'memberID':_0x487861,'mutations':_0x33fc5e},'pendingMutations':[]};}const Rs={'id':p[_0x2cc1b3(0x2d9)]['id'],'type':o[_0x2cc1b3(0x423)][_0x2cc1b3(0x438)],'params':{}};var Os=Object['defineProperty'],Ds=Object[_0x2cc1b3(0x47b)],K=(_0x15b7a7,_0x2342e6,_0x32ff9f,_0x366f74)=>{const _0x392ffc=_0x2cc1b3;for(var _0x105859=_0x366f74>0x1?void 0x0:_0x366f74?Ds(_0x2342e6,_0x32ff9f):_0x2342e6,_0x56c72b=_0x15b7a7[_0x392ffc(0x209)]-0x1,_0x20a2c3;_0x56c72b>=0x0;_0x56c72b--)(_0x20a2c3=_0x15b7a7[_0x56c72b])&&(_0x105859=(_0x366f74?_0x20a2c3(_0x2342e6,_0x32ff9f,_0x105859):_0x20a2c3(_0x105859))||_0x105859);return _0x366f74&&_0x105859&&Os(_0x2342e6,_0x32ff9f,_0x105859),_0x105859;},m=(_0x163edf,_0x454f6d)=>(_0x524d28,_0x4fdfcb)=>_0x454f6d(_0x524d28,_0x4fdfcb,_0x163edf),D=(_0x1b9250=>(_0x1b9250[_0x2cc1b3(0x45a)]=_0x2cc1b3(0x282),_0x1b9250['SYNCED']='synced',_0x1b9250['PENDING']=_0x2cc1b3(0x470),_0x1b9250[_0x2cc1b3(0x255)]=_0x2cc1b3(0x2db),_0x1b9250[_0x2cc1b3(0x297)]=_0x2cc1b3(0x317),_0x1b9250[_0x2cc1b3(0x1d9)]=_0x2cc1b3(0x448),_0x1b9250[_0x2cc1b3(0x3ec)]=_0x2cc1b3(0x1d4),_0x1b9250[_0x2cc1b3(0x38a)]=_0x2cc1b3(0x2d8),_0x1b9250))(D||{});class X{constructor(_0x5adff8,_0x43005b,_0x3fca82,_0x4c52dd,_0x46672a,_0x5a7db5,_0x294dc6,_0x5354a1,_0x195aac){const _0x183ce9=_0x2cc1b3;u(this,_0x183ce9(0x408),null),u(this,_0x183ce9(0x290),[]),(this[_0x183ce9(0x3ee)]=_0x5adff8,this[_0x183ce9(0x3e9)]=_0x43005b,this[_0x183ce9(0x283)]=_0x46672a,this[_0x183ce9(0x466)]=_0x5a7db5,this['_undoRedoService']=_0x294dc6,this['_revisionService']=_0x5354a1,this['_localCacheService']=_0x195aac,this[_0x183ce9(0x408)]=_0x3fca82,this[_0x183ce9(0x290)]=_0x4c52dd);}[_0x2cc1b3(0x358)](_0x27df4f){const _0x4a6727=_0x2cc1b3,_0x484439=this[_0x4a6727(0x341)]['getCurrentRevForDocument'](this[_0x4a6727(0x3ee)]);return _0x27df4f[_0x4a6727(0x456)]>_0x484439+0x1?(this[_0x4a6727(0x283)]['onMissingChangesets']({'from':_0x484439,'to':_0x27df4f['revision']-0x1}),!0x0):!0x1;}[_0x2cc1b3(0x1bc)](_0x4d2c09){const _0x4ea5c5=_0x2cc1b3;this[_0x4ea5c5(0x4b0)][_0x4ea5c5(0x3ff)](this[_0x4ea5c5(0x3ee)],_0x4d2c09);}['_transformSelections'](_0x47f556){const _0x20604d=_0x2cc1b3;var _0x1bc990,_0x45cfd9;(_0x45cfd9=(_0x1bc990=this[_0x20604d(0x283)])[_0x20604d(0x3d6)])==null||_0x45cfd9[_0x20604d(0x181)](_0x1bc990,_0x47f556);}[_0x2cc1b3(0x239)](_0x26d210){const _0x104291=_0x2cc1b3;var _0x528541,_0x1b2ab5;return(_0x1b2ab5=(_0x528541=this[_0x104291(0x283)])[_0x104291(0x4d0)])==null?void 0x0:_0x1b2ab5['call'](_0x528541,_0x26d210);}[_0x2cc1b3(0x23c)](_0x3d1c97){const _0x26e0a9=_0x2cc1b3;var _0x2df1b4,_0x4f3a49,_0x3ffe35;return(_0x3ffe35=(_0x4f3a49=(_0x2df1b4=this['_handler'])[_0x26e0a9(0x258)])==null?void 0x0:_0x4f3a49[_0x26e0a9(0x181)](_0x2df1b4,_0x3d1c97))!=null?_0x3ffe35:_0x3d1c97;}[_0x2cc1b3(0x3b8)](_0x48e13f){const _0x127327=_0x2cc1b3;var _0x7cbd50,_0x26db69;if(this[_0x127327(0x3e9)]===j[_0x127327(0x40b)]){const {unitID:_0x2d50ba,mutations:_0x4f9c4e,memberID:_0x408700}=_0x48e13f,_0x1dc5ec=_0x4f9c4e[0x0][_0x127327(0x19e)]['textRanges'];Array[_0x127327(0x1a8)](_0x1dc5ec)&&_0x1dc5ec[_0x127327(0x209)]>0x0&&((_0x26db69=(_0x7cbd50=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x26db69['call'](_0x7cbd50,{'unitID':_0x2d50ba,'memberID':_0x408700,'textRanges':_0x1dc5ec}));}}['_updateLocalCache'](){const _0x411e8d=_0x2cc1b3;this[_0x411e8d(0x359)][_0x411e8d(0x324)](this[_0x411e8d(0x3ee)],this[_0x411e8d(0x3e9)],this['_awaitingChangeset'],this[_0x411e8d(0x290)]);}[_0x2cc1b3(0x41d)](){const _0x38597e=_0x2cc1b3;return this[_0x38597e(0x341)][_0x38597e(0x295)](this[_0x38597e(0x3ee)]);}[_0x2cc1b3(0x48e)](){const _0x1deeb3=_0x2cc1b3;this[_0x1deeb3(0x341)][_0x1deeb3(0x2f2)](this[_0x1deeb3(0x3ee)]);}['_executeRemoteChangeset'](_0x3101ea){const _0x124d32=_0x2cc1b3;var _0x324177;const _0x5701a0=this['_transformRemoteChangesetByIMECache'](_0x3101ea),_0x4a91b6=o[_0x124d32(0x49b)](_0x5701a0[_0x124d32(0x1d1)],this['_commandService'],{'fromCollab':!0x0});if(!_0x4a91b6['result'])throw _0x4a91b6['error']instanceof Error?_0x4a91b6[_0x124d32(0x307)]:new Error((_0x324177=_0x4a91b6[_0x124d32(0x307)])!=null?_0x324177:_0x124d32(0x45c));this['_transformIMECache'](_0x5701a0),this['_transformUndoredo'](_0x3101ea),this[_0x124d32(0x399)](_0x5701a0),this[_0x124d32(0x3b8)](_0x5701a0),this['_incrementRevisionNumber']();}}let ce=class extends X{constructor(_0x4cb485,_0x33e80c,_0xf69744,_0x595c90,_0x1d932a,_0x2b76cc,_0x24746e,_0x18b1c8,_0x44b8df,_0xecc75){const _0x2cac81=_0x2cc1b3;super(_0x4cb485,_0x33e80c,null,[],_0xf69744,_0x18b1c8,_0x24746e,_0x595c90,_0x1d932a),u(this,_0x2cac81(0x4c5),'synced'),(this[_0x2cac81(0x3fe)]=_0x2b76cc,this[_0x2cac81(0x402)]=_0x44b8df,this[_0x2cac81(0x2ad)]=_0xecc75);}['appendMutation'](_0x2711e3){const _0xcf557a=_0x2cc1b3,_0x3bbc38=this[_0xcf557a(0x3fe)]['createInstance']($,this[_0xcf557a(0x3ee)],this[_0xcf557a(0x3e9)],[_0x2711e3],this[_0xcf557a(0x283)]);return _0x3bbc38[_0xcf557a(0x308)](),_0x3bbc38[_0xcf557a(0x46a)](),_0x3bbc38;}[_0x2cc1b3(0x2b4)](_0x5ecfc0){const _0x48fbfe=_0x2cc1b3;if(this[_0x48fbfe(0x358)](_0x5ecfc0))return this[_0x48fbfe(0x3fe)][_0x48fbfe(0x171)](H,this['unitID'],this[_0x48fbfe(0x3e9)],null,[],null,[_0x5ecfc0],this[_0x48fbfe(0x283)]);try{const _0x5dc078=this[_0x48fbfe(0x2ad)][_0x48fbfe(0x525)](_0x5ecfc0,[Rs]);if(_[_0x48fbfe(0x421)](_0x5dc078)){const {c1Prime:_0x3c2e1c}=_0x5dc078;return this['_executeRemoteChangeset'](_0x3c2e1c),this;}throw _0x5dc078[_0x48fbfe(0x307)];}catch(_0x53b718){return this[_0x48fbfe(0x402)][_0x48fbfe(0x307)](_0x53b718),this['_onConflict'](!0x1);}}[_0x2cc1b3(0x1de)](_0x272ddb){const _0xec8f08=_0x2cc1b3;return this[_0xec8f08(0x3fe)][_0xec8f08(0x171)](B,this[_0xec8f08(0x3ee)],this[_0xec8f08(0x3e9)],null,[],this[_0xec8f08(0x283)],_0x272ddb);}[_0x2cc1b3(0x174)](){const _0x33fbe2=_0x2cc1b3;throw new Error(_0x33fbe2(0x429));}['onRemoteRej'](){const _0x4823c3=_0x2cc1b3;throw new Error(_0x4823c3(0x176));}['toggleOffline'](){const _0x29a101=_0x2cc1b3;return this[_0x29a101(0x3fe)][_0x29a101(0x171)](F,this[_0x29a101(0x3ee)],this[_0x29a101(0x3e9)],null,[],this[_0x29a101(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ce=K([m(0x3,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x4,o['Inject'](exports[_0x2cc1b3(0x15f)])),m(0x5,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x6,o[_0x2cc1b3(0x4a8)]),m(0x7,o[_0x2cc1b3(0x1cf)]),m(0x8,o[_0x2cc1b3(0x4ba)]),m(0x9,_[_0x2cc1b3(0x4ca)])],ce);let $=class extends X{constructor(_0x79b7f2,_0x1b09f5,_0x4a4a29,_0x64f184,_0x3b9ffc,_0x510738,_0x1a4bbd,_0x4b49ee,_0x117259,_0x53a4a8,_0x47acf6,_0x3a1473,_0x138f49,_0x17ac9f){const _0x1f5f2d=_0x2cc1b3;super(_0x79b7f2,_0x1b09f5,null,_0x4a4a29,_0x64f184,_0x53a4a8,_0x17ac9f,_0x510738,_0x1a4bbd),u(this,_0x1f5f2d(0x4c5),_0x1f5f2d(0x470)),u(this,'_scheduleTimestamp',null),u(this,_0x1f5f2d(0x4a1),null),(this['_injector']=_0x3b9ffc,this[_0x1f5f2d(0x3ab)]=_0x4b49ee,this[_0x1f5f2d(0x402)]=_0x117259,this[_0x1f5f2d(0x3f8)]=_0x47acf6,this[_0x1f5f2d(0x2ad)]=_0x3a1473,this[_0x1f5f2d(0x46f)]=_0x138f49);}['appendMutation'](_0x23befb){const _0x65fb60=_0x2cc1b3;return this[_0x65fb60(0x290)]['push'](_0x23befb),this['_updateLocalCache'](),this;}[_0x2cc1b3(0x2b4)](_0x1080bd){const _0x147277=_0x2cc1b3;if(this[_0x147277(0x358)](_0x1080bd))return this[_0x147277(0x45f)](),this[_0x147277(0x3fe)][_0x147277(0x171)](H,this['unitID'],this[_0x147277(0x3e9)],null,this[_0x147277(0x290)],null,[_0x1080bd],this[_0x147277(0x283)]);try{const _0xfbfcf9=this[_0x147277(0x2ad)][_0x147277(0x525)](_0x1080bd,this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0xfbfcf9)){const {c1Prime:_0x584f03,m2Prime:_0xc314ba}=_0xfbfcf9;this['_executeRemoteChangeset'](_0x584f03);const _0x1f7b6b=this[_0x147277(0x3fe)][_0x147277(0x171)]($,this['unitID'],this['type'],_0xc314ba,this['_handler']);return this[_0x147277(0x45f)](),_0x1f7b6b[_0x147277(0x308)](this[_0x147277(0x196)]?Math[_0x147277(0x4c9)](0x0,new Date()[_0x147277(0x296)]()-this[_0x147277(0x196)]):this[_0x147277(0x3d7)]()),_0x1f7b6b;}throw _0xfbfcf9[_0x147277(0x307)];}catch(_0x147abb){return this[_0x147277(0x402)][_0x147277(0x307)](_0x147abb),this[_0x147277(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x97805b=_0x2cc1b3;throw new Error(_0x97805b(0x309));}[_0x2cc1b3(0x4f6)](){const _0x570a8f=_0x2cc1b3;return this['_clearScheduledTask'](),this[_0x570a8f(0x3fe)][_0x570a8f(0x171)](F,this[_0x570a8f(0x3ee)],this[_0x570a8f(0x3e9)],null,this['_pendingMutations'],this[_0x570a8f(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x308)](_0x45db2e){const _0x1f66b=_0x2cc1b3;_0x45db2e=_0x45db2e!=null?_0x45db2e:this['_getSendChangesetTimeout'](),this[_0x1f66b(0x196)]=new Date()[_0x1f66b(0x296)](),this[_0x1f66b(0x4a1)]=setTimeout(()=>{const _0x7d0b07=_0x1f66b;this[_0x7d0b07(0x45f)]();let _0x192b17=null;switch(this[_0x7d0b07(0x3e9)]){case j[_0x7d0b07(0x3a1)]:{_0x192b17=et(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this[_0x7d0b07(0x341)],this[_0x7d0b07(0x3ab)]);break;}case j[_0x7d0b07(0x40b)]:{this['_pendingMutations'][_0x7d0b07(0x3bc)](_0x3ddb15=>_0x3ddb15['id']===P[_0x7d0b07(0x321)]['id'])?_0x192b17=Ts(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this[_0x7d0b07(0x341)],this[_0x7d0b07(0x3ab)]):_0x192b17=et(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this['_revisionService'],this[_0x7d0b07(0x3ab)]);break;}default:throw new Error(_0x7d0b07(0x38b)+this[_0x7d0b07(0x3e9)]+_0x7d0b07(0x1c9));}const {changeset:_0x32b728,pendingMutations:_0xcb89af}=_0x192b17;this['_handler']['onSendChangeset'](_0x32b728);const _0x594803=_0xcb89af['length']?this[_0x7d0b07(0x3fe)]['createInstance'](x,this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x3e9)],_0x32b728,_0xcb89af,this[_0x7d0b07(0x283)]):this[_0x7d0b07(0x3fe)][_0x7d0b07(0x171)](k,this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x3e9)],_0x32b728,this['_handler']);_0x594803[_0x7d0b07(0x46a)](),this[_0x7d0b07(0x283)][_0x7d0b07(0x278)](this,_0x594803);},_0x45db2e);}[_0x2cc1b3(0x3d7)](){const _0x991097=_0x2cc1b3;var _0x4002db;return(_0x4002db=this['_configService'][_0x991097(0x42f)](ht))!=null?_0x4002db:Ft;}['resend'](){const _0x15c101=_0x2cc1b3;throw new Error(_0x15c101(0x32e));}[_0x2cc1b3(0x45f)](){const _0x56e7e6=_0x2cc1b3;this[_0x56e7e6(0x4a1)]!=null&&(clearTimeout(this[_0x56e7e6(0x4a1)]),this['_sendingTimer']=null);}[_0x2cc1b3(0x1de)](_0xd3022d){const _0x2a7651=_0x2cc1b3;return this[_0x2a7651(0x45f)](),this[_0x2a7651(0x3fe)]['createInstance'](B,this[_0x2a7651(0x3ee)],this[_0x2a7651(0x3e9)],null,this[_0x2a7651(0x290)],this[_0x2a7651(0x283)],_0xd3022d);}};$=K([m(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x6,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x7,o[_0x2cc1b3(0x333)](Y)),m(0x8,o['ILogService']),m(0x9,o[_0x2cc1b3(0x1cf)]),m(0xa,o[_0x2cc1b3(0x149)]),m(0xb,_[_0x2cc1b3(0x4ca)]),m(0xc,o['IUniverInstanceService']),m(0xd,o[_0x2cc1b3(0x4a8)])],$);let k=class extends X{constructor(_0x85e0e3,_0x42925f,_0x52def0,_0x4d7c8c,_0x525acc,_0x2d667f,_0x337bf5,_0x3a0415,_0x45067f,_0xb7aeb4,_0xe8ef9f){const _0x36d055=_0x2cc1b3;super(_0x85e0e3,_0x42925f,_0x52def0,[],_0x4d7c8c,_0x3a0415,_0xe8ef9f,_0x2d667f,_0x337bf5),u(this,_0x36d055(0x4c5),_0x36d055(0x2db)),(this[_0x36d055(0x3fe)]=_0x525acc,this[_0x36d055(0x402)]=_0x45067f,this['_transformService']=_0xb7aeb4);}['appendMutation'](_0x2238a2){const _0x2f850c=_0x2cc1b3,_0x3681bd=this[_0x2f850c(0x3fe)][_0x2f850c(0x171)](x,this[_0x2f850c(0x3ee)],this[_0x2f850c(0x3e9)],this[_0x2f850c(0x408)],[_0x2238a2],this['_handler']);return _0x3681bd[_0x2f850c(0x46a)](),_0x3681bd;}[_0x2cc1b3(0x2b4)](_0x4a0c5a){const _0x38e6c7=_0x2cc1b3;if(this[_0x38e6c7(0x358)](_0x4a0c5a))return this['_injector'][_0x38e6c7(0x171)](H,this[_0x38e6c7(0x3ee)],this[_0x38e6c7(0x3e9)],this[_0x38e6c7(0x408)],[],null,[_0x4a0c5a],this[_0x38e6c7(0x283)]);try{const _0x3887fa=this['_transformService'][_0x38e6c7(0x1f6)]([_0x4a0c5a],[this['_awaitingChangeset']],!0x1);if(_[_0x38e6c7(0x468)](_0x3887fa)){const {c1Prime:_0xfa6b9d,c2Prime:_0xa162ac}=_0x3887fa;this[_0x38e6c7(0x426)](_0xfa6b9d[0x0]),_0xa162ac[0x0][_0x38e6c7(0x1ec)]=this[_0x38e6c7(0x41d)]();const _0x10f19c=this['_injector'][_0x38e6c7(0x171)](k,this[_0x38e6c7(0x3ee)],this[_0x38e6c7(0x3e9)],_0xa162ac[0x0],this[_0x38e6c7(0x283)]);return _0x10f19c[_0x38e6c7(0x46a)](),_0x10f19c;}return this[_0x38e6c7(0x1de)](!0x1);}catch(_0x3b1260){return this[_0x38e6c7(0x402)][_0x38e6c7(0x307)](_0x3b1260),this[_0x38e6c7(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](_0x373a58){const _0xca2f62=_0x2cc1b3,_0x3521c3=this['_revisionService'][_0xca2f62(0x295)](this[_0xca2f62(0x3ee)]);if(_0x373a58[_0xca2f62(0x456)]<_0x3521c3-0x1)return this;if(this[_0xca2f62(0x358)](_0x373a58))return this[_0xca2f62(0x3fe)][_0xca2f62(0x171)](H,this[_0xca2f62(0x3ee)],this['type'],null,[],this[_0xca2f62(0x408)],[],this[_0xca2f62(0x283)]);this[_0xca2f62(0x48e)]();const _0x860566=this[_0xca2f62(0x3fe)][_0xca2f62(0x171)](ce,this[_0xca2f62(0x3ee)],this[_0xca2f62(0x3e9)],this['_handler']);return _0x860566['_updateLocalCache'](),_0x860566;}[_0x2cc1b3(0x320)](_0xb283a2){const _0x31081=_0x2cc1b3;return this[_0x31081(0x1de)](!!(_0xb283a2!=null&&_0xb283a2[_0x31081(0x3fc)]));}[_0x2cc1b3(0x4f6)](){const _0x494779=_0x2cc1b3;return this[_0x494779(0x3fe)][_0x494779(0x171)](F,this[_0x494779(0x3ee)],this['type'],this['_awaitingChangeset'],[],this[_0x494779(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){const _0x41c2bf=_0x2cc1b3;this[_0x41c2bf(0x283)][_0x41c2bf(0x3ed)](this['_awaitingChangeset']);}[_0x2cc1b3(0x1de)](_0x28828f){const _0x581296=_0x2cc1b3;return this[_0x581296(0x3fe)][_0x581296(0x171)](B,this[_0x581296(0x3ee)],this[_0x581296(0x3e9)],this['_awaitingChangeset'],[],this[_0x581296(0x283)],_0x28828f);}};k=K([m(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x5,o[_0x2cc1b3(0x333)](_['RevisionService'])),m(0x6,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x7,o['ICommandService']),m(0x8,o[_0x2cc1b3(0x4ba)]),m(0x9,_[_0x2cc1b3(0x4ca)]),m(0xa,o[_0x2cc1b3(0x4a8)])],k);let x=class extends X{constructor(_0x980c36,_0x11faf4,_0x3b7fea,_0x3f7358,_0x1ae06d,_0x5656f4,_0x5841ef,_0x905162,_0x57b88f,_0x2399b7,_0x4a3a43,_0x3c750d){const _0x8f43f9=_0x2cc1b3;super(_0x980c36,_0x11faf4,_0x3b7fea,_0x3f7358,_0x1ae06d,_0x57b88f,_0x3c750d,_0x5841ef,_0x905162),u(this,_0x8f43f9(0x4c5),_0x8f43f9(0x317)),(this[_0x8f43f9(0x3fe)]=_0x5656f4,this[_0x8f43f9(0x402)]=_0x2399b7,this[_0x8f43f9(0x2ad)]=_0x4a3a43);}['appendMutation'](_0x1b9f9b){const _0x55a7c4=_0x2cc1b3;return this[_0x55a7c4(0x290)][_0x55a7c4(0x4bd)](_0x1b9f9b),this;}['onRemoteChangeset'](_0x2d198c){const _0x197016=_0x2cc1b3;if(this['_checkMissing'](_0x2d198c))return this[_0x197016(0x3fe)][_0x197016(0x171)](H,this[_0x197016(0x3ee)],this[_0x197016(0x3e9)],this[_0x197016(0x408)],this[_0x197016(0x290)],null,[_0x2d198c],this[_0x197016(0x283)]);try{const _0x238951=this[_0x197016(0x2ad)][_0x197016(0x1f6)]([_0x2d198c],[this[_0x197016(0x408)]],!0x1);if(_[_0x197016(0x468)](_0x238951)){const {c1Prime:_0x17d3c3,c2Prime:_0x740b83}=_0x238951,_0x1a0f0f=this[_0x197016(0x2ad)][_0x197016(0x525)](_0x17d3c3[0x0],this[_0x197016(0x290)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x1a0f0f)){const {c1Prime:_0x3c782c,m2Prime:_0x3a0617}=_0x1a0f0f;return this[_0x197016(0x426)](_0x3c782c),_0x740b83[0x0][_0x197016(0x1ec)]=this['_getCurrentRevision'](),this[_0x197016(0x3fe)][_0x197016(0x171)](x,this[_0x197016(0x3ee)],this[_0x197016(0x3e9)],_0x740b83[0x0],_0x3a0617,this[_0x197016(0x283)]);}throw _0x1a0f0f[_0x197016(0x307)];}throw _0x238951[_0x197016(0x307)];}catch(_0x3f6913){return this[_0x197016(0x402)]['error'](_0x3f6913),this[_0x197016(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](_0x366a5c){const _0x2ae15e=_0x2cc1b3;if(this['_checkMissing'](_0x366a5c))return this[_0x2ae15e(0x3fe)][_0x2ae15e(0x171)](H,this[_0x2ae15e(0x3ee)],this[_0x2ae15e(0x3e9)],null,this['_pendingMutations'],this[_0x2ae15e(0x408)],[],this[_0x2ae15e(0x283)]);this[_0x2ae15e(0x48e)]();const _0x7be349=this[_0x2ae15e(0x3fe)][_0x2ae15e(0x171)]($,this[_0x2ae15e(0x3ee)],this[_0x2ae15e(0x3e9)],this['_pendingMutations'],this[_0x2ae15e(0x283)]);return _0x7be349['_schedule'](),_0x7be349['_updateLocalCache'](),_0x7be349;}[_0x2cc1b3(0x320)](_0x45a81e){const _0x5dec9f=_0x2cc1b3;return this[_0x5dec9f(0x1de)](!!(_0x45a81e!=null&&_0x45a81e['isPermissionRej']));}[_0x2cc1b3(0x4f6)](){const _0x27eefe=_0x2cc1b3;return this[_0x27eefe(0x3fe)][_0x27eefe(0x171)](F,this[_0x27eefe(0x3ee)],this[_0x27eefe(0x3e9)],this[_0x27eefe(0x408)],this[_0x27eefe(0x290)],this['_handler']);}['toggleOnline'](){return this;}[_0x2cc1b3(0x28c)](){const _0x23510f=_0x2cc1b3;this[_0x23510f(0x283)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x2cc1b3(0x1de)](_0x42e790){const _0x1b502e=_0x2cc1b3;return this[_0x1b502e(0x3fe)][_0x1b502e(0x171)](B,this[_0x1b502e(0x3ee)],this[_0x1b502e(0x3e9)],null,this[_0x1b502e(0x290)],this[_0x1b502e(0x283)],_0x42e790);}};x=K([m(0x5,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x6,o['Inject'](_['RevisionService'])),m(0x7,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x8,o['ICommandService']),m(0x9,o[_0x2cc1b3(0x4ba)]),m(0xa,_[_0x2cc1b3(0x4ca)]),m(0xb,o[_0x2cc1b3(0x4a8)])],x);let B=class extends X{constructor(_0x17bdec,_0x2e4702,_0x4e1857,_0x380fc0,_0x180c1b,_0xa963d0=!0x1,_0x40afa9,_0x26f1f7,_0x78481c,_0x30cf93,_0x41698b,_0x558ff2,_0x46510d){const _0x4078f7=_0x2cc1b3;super(_0x17bdec,_0x2e4702,_0x4e1857,_0x380fc0,_0x180c1b,_0x26f1f7,_0x78481c,_0x41698b,_0x30cf93),u(this,_0x4078f7(0x4c5),_0x4078f7(0x1d4)),(this['_isPermissionRej']=_0xa963d0,this[_0x4078f7(0x1fd)]=_0x40afa9,this[_0x4078f7(0x33c)]=_0x558ff2,this[_0x4078f7(0x50e)]=_0x46510d,this[_0x4078f7(0x458)](),this['_clearLocalCache'](),this[_0x4078f7(0x462)]());}[_0x2cc1b3(0x27b)](){return this;}['onRemoteChangeset'](){return this;}[_0x2cc1b3(0x174)](){return this;}[_0x2cc1b3(0x320)](){return this;}[_0x2cc1b3(0x4f6)](){return this;}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){const _0x1bb12f=_0x2cc1b3;throw new Error(_0x1bb12f(0x1a5));}['_clearLocalCache'](){const _0x3c9bbf=_0x2cc1b3;this['_localCacheService'][_0x3c9bbf(0x324)](this[_0x3c9bbf(0x3ee)],this[_0x3c9bbf(0x3e9)],null,[]);}[_0x2cc1b3(0x458)](){const _0x1361b0=_0x2cc1b3;this['_isPermissionRej']?this[_0x1361b0(0x50e)][_0x1361b0(0x4f2)]({'title':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x4bf)),'content':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x39d)),'type':'error','duration':0x0}):this['_notificationService']['show']({'title':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x286)),'content':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x42c)),'type':_0x1361b0(0x307),'duration':0x0});}[_0x2cc1b3(0x462)](){const _0x47e4e5=_0x2cc1b3;this[_0x47e4e5(0x1fd)][_0x47e4e5(0x1e8)](new p[(_0x47e4e5(0x33a))](this[_0x47e4e5(0x3ee)])['id'],!0x1);}};B=K([m(0x6,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x42e)])),m(0x7,o['ICommandService']),m(0x8,o[_0x2cc1b3(0x4a8)]),m(0x9,o['Inject'](exports['LocalCacheService'])),m(0xa,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0xb,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),m(0xc,L[_0x2cc1b3(0x14f)])],B);let F=class extends X{constructor(_0x16bda4,_0x4af6bc,_0x521024,_0x1cc606,_0x52fdc3,_0x2c95a9,_0x2c6283,_0x5e6b07,_0x45bde9,_0x5582af){const _0x61fc5b=_0x2cc1b3;super(_0x16bda4,_0x4af6bc,_0x521024,_0x1cc606,_0x52fdc3,_0x45bde9,_0x5582af,_0x2c6283,_0x5e6b07),u(this,_0x61fc5b(0x4c5),'offline'),this['_injector']=_0x2c95a9;}[_0x2cc1b3(0x27b)](_0x386a6b){const _0x1acbd1=_0x2cc1b3;return this['_pendingMutations'][_0x1acbd1(0x4bd)](_0x386a6b),this['_updateLocalCache'](),this;}[_0x2cc1b3(0x2b4)](_0x58767b){const _0x5a3328=_0x2cc1b3;throw new Error(_0x5a3328(0x264));}[_0x2cc1b3(0x174)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x9c7a1f=_0x2cc1b3;throw new Error(_0x9c7a1f(0x279));}[_0x2cc1b3(0x4f6)](){return this;}[_0x2cc1b3(0x2e0)](){const _0x599460=_0x2cc1b3,{_injector:_0x3ef422,_pendingMutations:_0xf9efec,_awaitingChangeset:_0x273964,unitID:_0x749d36,_handler:_0xeeac37,type:_0x2cb746}=this,_0x4d2968=bt(_0x3ef422,_0x749d36,_0x2cb746,_0x273964,_0xf9efec,_0xeeac37);return _0x4d2968 instanceof $?_0x4d2968[_0x599460(0x308)]():(_0x4d2968 instanceof x||_0x4d2968 instanceof k)&&_0x4d2968[_0x599460(0x28c)](),_0x4d2968;}[_0x2cc1b3(0x28c)](){const _0x13e357=_0x2cc1b3;throw new Error(_0x13e357(0x4d8));}};F=K([m(0x5,o[_0x2cc1b3(0x333)](o['Injector'])),m(0x6,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x7,o[_0x2cc1b3(0x333)](exports['LocalCacheService'])),m(0x8,o['ICommandService']),m(0x9,o[_0x2cc1b3(0x4a8)])],F);let H=class extends X{constructor(_0x55117a,_0x231557,_0x2fb6f8,_0x475ae2,_0x1e9715,_0x4a59b4,_0x320749,_0x533a7f,_0x437746,_0x392218,_0x47850a,_0x42adc0,_0x53ae25,_0x23b506){const _0x5d80af=_0x2cc1b3;super(_0x55117a,_0x231557,_0x2fb6f8,_0x475ae2,_0x320749,_0x42adc0,_0x53ae25,_0x437746,_0x392218),u(this,'status',_0x5d80af(0x448)),(this['_acknowledgedAwaitingChangeset']=_0x1e9715,this[_0x5d80af(0x47f)]=_0x4a59b4,this[_0x5d80af(0x3fe)]=_0x533a7f,this[_0x5d80af(0x402)]=_0x47850a,this[_0x5d80af(0x2ad)]=_0x23b506);}[_0x2cc1b3(0x3d2)](_0x4c8aec){const _0x7a744b=_0x2cc1b3;try{const _0x243d6c=[..._0x4c8aec,...this[_0x7a744b(0x47f)]],_0x4f6fa8=[this[_0x7a744b(0x408)]||this[_0x7a744b(0x4fd)]]['filter'](_0x18a323=>!!_0x18a323);let _0x549a3d,_0x5b538e;if(_0x4f6fa8[_0x7a744b(0x209)]){const _0x17953f=this[_0x7a744b(0x2ad)]['transformChangesets'](_0x243d6c,_0x4f6fa8,!0x1);if(!_[_0x7a744b(0x468)](_0x17953f))throw _0x17953f[_0x7a744b(0x307)];_0x549a3d=_0x17953f[_0x7a744b(0x4fc)],_0x5b538e=_0x17953f[_0x7a744b(0x1ad)];}else _0x549a3d=_0x243d6c,_0x5b538e=[];let _0x16bc75=this[_0x7a744b(0x290)];_0x549a3d[_0x7a744b(0x34c)](_0x149d26=>{const _0x54a355=_0x7a744b;let _0x21d900;if(_0x16bc75['length']){const _0x1b8c69=this[_0x54a355(0x2ad)][_0x54a355(0x525)](_0x149d26,_0x16bc75);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1b8c69))throw _0x1b8c69['error'];_0x21d900=_0x1b8c69[_0x54a355(0x4fc)],_0x16bc75=_0x1b8c69[_0x54a355(0x285)];}else _0x21d900=_0x149d26;this[_0x54a355(0x426)](_0x21d900);}),this[_0x7a744b(0x4fd)]&&this['_incrementRevisionNumber'](),this[_0x7a744b(0x408)]&&_0x5b538e[_0x7a744b(0x209)]&&(_0x5b538e[0x0]['baseRev']=this[_0x7a744b(0x41d)]());let _0x3f534d;if(this['_awaitingChangeset']&&_0x16bc75[_0x7a744b(0x209)]!==0x0)_0x3f534d=this['_injector'][_0x7a744b(0x171)](x,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],_0x5b538e[0x0],_0x16bc75,this['_handler']);else{if(this[_0x7a744b(0x408)]&&_0x16bc75[_0x7a744b(0x209)]===0x0)_0x5b538e[0x0]['baseRev']=this[_0x7a744b(0x41d)](),_0x3f534d=this[_0x7a744b(0x3fe)]['createInstance'](k,this['unitID'],this['type'],_0x5b538e[0x0],this[_0x7a744b(0x283)]);else{if(_0x16bc75[_0x7a744b(0x209)]!==0x0){const _0x4cbae4=this[_0x7a744b(0x3fe)][_0x7a744b(0x171)]($,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],_0x16bc75,this[_0x7a744b(0x283)]);_0x4cbae4[_0x7a744b(0x308)](),_0x3f534d=_0x4cbae4;}else _0x3f534d=this[_0x7a744b(0x3fe)][_0x7a744b(0x171)](ce,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],this[_0x7a744b(0x283)]);}}return _0x3f534d[_0x7a744b(0x46a)](),_0x3f534d;}catch(_0x25682c){return this[_0x7a744b(0x402)][_0x7a744b(0x307)](_0x7a744b(0x16c),_0x7a744b(0x1fe),_0x25682c),this[_0x7a744b(0x3fe)][_0x7a744b(0x171)](B,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],this[_0x7a744b(0x408)],this['_pendingMutations'],this[_0x7a744b(0x283)],!0x1);}}[_0x2cc1b3(0x28c)](){const _0x2427a1=_0x2cc1b3;throw new Error(_0x2427a1(0x489));}[_0x2cc1b3(0x27b)](_0x45f407){const _0x13e168=_0x2cc1b3;return this[_0x13e168(0x290)][_0x13e168(0x4bd)](_0x45f407),this;}[_0x2cc1b3(0x2b4)](_0x169dc4){const _0x17b934=_0x2cc1b3;return this[_0x17b934(0x47f)][_0x17b934(0x4bd)](_0x169dc4),this;}[_0x2cc1b3(0x174)](_0x5da449){const _0xaaa839=_0x2cc1b3;if(this['_awaitingChangeset'])return this[_0xaaa839(0x4fd)]=this[_0xaaa839(0x408)],this[_0xaaa839(0x408)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2cc1b3(0x320)](_0x51d396){const _0x11af3b=_0x2cc1b3;return this[_0x11af3b(0x1de)](!!(_0x51d396!=null&&_0x51d396[_0x11af3b(0x3fc)]));}[_0x2cc1b3(0x4f6)](){const _0x43b2c4=_0x2cc1b3;return this[_0x43b2c4(0x3fe)][_0x43b2c4(0x171)](F,this['unitID'],this[_0x43b2c4(0x3e9)],this[_0x43b2c4(0x408)],this[_0x43b2c4(0x290)],this[_0x43b2c4(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x1de)](_0x51a3f7){const _0x4f0373=_0x2cc1b3;return this['_injector']['createInstance'](B,this[_0x4f0373(0x3ee)],this[_0x4f0373(0x3e9)],this['_awaitingChangeset'],this[_0x4f0373(0x290)],this[_0x4f0373(0x283)],_0x51a3f7);}};H=K([m(0x7,o['Inject'](o['Injector'])),m(0x8,o['Inject'](_[_0x2cc1b3(0x4aa)])),m(0x9,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0xa,o['ILogService']),m(0xb,o[_0x2cc1b3(0x1cf)]),m(0xc,o['IUndoRedoService']),m(0xd,_[_0x2cc1b3(0x4ca)])],H);function bt(_0x4d50c1,_0x4d622a,_0x1010fe,_0x4a3351,_0x1f2c28,_0x1fbdb9){const _0x517ed1=_0x2cc1b3;return _0x4a3351&&_0x1f2c28[_0x517ed1(0x209)]?_0x4d50c1[_0x517ed1(0x171)](x,_0x4d622a,_0x1010fe,_0x4a3351,_0x1f2c28,_0x1fbdb9):_0x4a3351?_0x4d50c1[_0x517ed1(0x171)](k,_0x4d622a,_0x1010fe,_0x4a3351,_0x1fbdb9):_0x1f2c28['length']?_0x4d50c1[_0x517ed1(0x171)]($,_0x4d622a,_0x1010fe,_0x1f2c28,_0x1fbdb9):_0x4d50c1[_0x517ed1(0x171)](ce,_0x4d622a,_0x1010fe,_0x1fbdb9);}var Ps=Object[_0x2cc1b3(0x1b2)],Us=Object['getOwnPropertyDescriptor'],Ce=(_0x3a5d16,_0xb51974,_0x1c5a9e,_0x13de8c)=>{const _0x7b2e94=_0x2cc1b3;for(var _0x329add=_0x13de8c>0x1?void 0x0:_0x13de8c?Us(_0xb51974,_0x1c5a9e):_0xb51974,_0x5d4267=_0x3a5d16[_0x7b2e94(0x209)]-0x1,_0x1023f7;_0x5d4267>=0x0;_0x5d4267--)(_0x1023f7=_0x3a5d16[_0x5d4267])&&(_0x329add=(_0x13de8c?_0x1023f7(_0xb51974,_0x1c5a9e,_0x329add):_0x1023f7(_0x329add))||_0x329add);return _0x13de8c&&_0x329add&&Ps(_0xb51974,_0x1c5a9e,_0x329add),_0x329add;},I=(_0x50115b,_0x359b0e)=>(_0x38e277,_0x38f32f)=>_0x359b0e(_0x38e277,_0x38f32f,_0x50115b);exports[_0x2cc1b3(0x305)]=class extends o[_0x2cc1b3(0x516)]{constructor(_0x283233,_0x1f71f4,_0x10c5c0){const _0x35c0d0=_0x2cc1b3;super(),u(this,_0x35c0d0(0x339),new Map()),u(this,_0x35c0d0(0x403),new v['Subject']()),(this['_injector']=_0x283233,this['_collabSessionService']=_0x1f71f4,this[_0x35c0d0(0x46f)]=_0x10c5c0,this[_0x35c0d0(0x4e1)]());}['dispose'](){const _0x42d1a5=_0x2cc1b3;super['dispose'](),this[_0x42d1a5(0x339)][_0x42d1a5(0x34c)](_0x4bf42e=>_0x4bf42e[_0x42d1a5(0x22c)]()),this[_0x42d1a5(0x339)][_0x42d1a5(0x1f8)]();}['getCollabEntity'](_0x4c04ac){const _0x39cf99=_0x2cc1b3;var _0x14c29a;return(_0x14c29a=this[_0x39cf99(0x339)][_0x39cf99(0x3ba)](_0x4c04ac))!=null?_0x14c29a:null;}[_0x2cc1b3(0x1a6)](_0x464a2e){const _0x205191=_0x2cc1b3,_0x156834=this[_0x205191(0x1f0)](_0x464a2e);return _0x156834?v['of'](_0x156834):this[_0x205191(0x403)][_0x205191(0x478)](C[_0x205191(0x277)](_0x50699b=>_0x50699b[_0x205191(0x3ee)]===_0x464a2e));}[_0x2cc1b3(0x4e1)](){const _0x371c0d=_0x2cc1b3;this[_0x371c0d(0x46f)][_0x371c0d(0x25b)](o[_0x371c0d(0x271)][_0x371c0d(0x3a1)])[_0x371c0d(0x478)](v[_0x371c0d(0x1ef)](this[_0x371c0d(0x23e)]),C[_0x371c0d(0x33e)](0x10))[_0x371c0d(0x4c8)](async _0x2c7967=>{const _0x2e6f50=_0x371c0d,_0x5d2112=_0x2c7967[_0x2e6f50(0x15a)](),_0x42d65e=await this[_0x2e6f50(0x1dd)](_0x5d2112,j['UNIVER_SHEET']);this['_entities'][_0x2e6f50(0x1b8)](_0x5d2112,_0x42d65e);}),this['_univerInstanceService'][_0x371c0d(0x25b)](o[_0x371c0d(0x271)]['UNIVER_DOC'])[_0x371c0d(0x478)](v['takeUntil'](this['dispose$']),C['delay'](0x10))['pipe'](C[_0x371c0d(0x277)](_0x86b20c=>!_0x86b20c[_0x371c0d(0x15a)]()[_0x371c0d(0x521)]('__')))['subscribe'](async _0x25e4f5=>{const _0x300d61=_0x371c0d,_0x49c4b8=_0x25e4f5[_0x300d61(0x15a)](),_0x5e4a76=await this[_0x300d61(0x1dd)](_0x49c4b8,j[_0x300d61(0x40b)]);this['_entities'][_0x300d61(0x1b8)](_0x49c4b8,_0x5e4a76);}),v[_0x371c0d(0x3e0)](this[_0x371c0d(0x46f)][_0x371c0d(0x36a)](o[_0x371c0d(0x271)][_0x371c0d(0x3a1)]),this[_0x371c0d(0x46f)][_0x371c0d(0x36a)](o['UniverInstanceType'][_0x371c0d(0x40b)]))[_0x371c0d(0x478)](v[_0x371c0d(0x1ef)](this['dispose$']))['subscribe'](_0x28c899=>{const _0x4a4e72=_0x371c0d,_0x53f52a=_0x28c899[_0x4a4e72(0x15a)](),_0x2cc30d=this[_0x4a4e72(0x339)]['get'](_0x53f52a);_0x2cc30d&&(_0x2cc30d[_0x4a4e72(0x22c)](),this[_0x4a4e72(0x339)][_0x4a4e72(0x386)](_0x53f52a));});}async['_startCollaboration'](_0xae373a,_0x9e98e2){const _0x14c977=_0x2cc1b3,_0xc0a86a=await this[_0x14c977(0x1c7)][_0x14c977(0x33b)](_0xae373a),_0x10d882=this[_0x14c977(0x3fe)][_0x14c977(0x171)](this[_0x14c977(0x2b5)](_0x9e98e2),_0xae373a,_0x9e98e2,_0xc0a86a);return await _0x10d882['init'](),this['_entityInit$']['next'](_0x10d882),_0x10d882;}['_getCtorByUniverType'](_0xaa4f8d){const _0x5213f1=_0x2cc1b3;switch(_0xaa4f8d){case j[_0x5213f1(0x40b)]:return ye;case j['UNIVER_SHEET']:return exports[_0x5213f1(0x145)];default:throw new Error(_0x5213f1(0x4e0)+_0xaa4f8d);}}},exports['CollaborationController']=Ce([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x4b2)],exports['CollaborationController']),I(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),I(0x1,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x14e)])),I(0x2,o[_0x2cc1b3(0x298)])],exports[_0x2cc1b3(0x305)]);let fe=class extends o[_0x2cc1b3(0x516)]{constructor(_0x5adf97,_0x7c1107,_0x1462e4,_0x2f438b,_0x203c75,_0x415784,_0x52595a,_0x1a1141,_0x1a5d6c,_0x1e73ac,_0x452ce2,_0x20122e,_0x2bd2ca){const _0x456240=_0x2cc1b3;super(),u(this,_0x456240(0x393),new v[(_0x456240(0x445))](null)),u(this,'state$',this[_0x456240(0x393)]['asObservable']()),u(this,_0x456240(0x165)),u(this,_0x456240(0x30d),!0x1),u(this,_0x456240(0x4ff),this[_0x456240(0x344)]['pipe'](C['map'](_0x5bec3d=>_0x5bec3d?_0x5bec3d[_0x456240(0x4c5)]:D[_0x456240(0x38a)]),C[_0x456240(0x345)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x456240(0x2b1),[]),(this['unitID']=_0x5adf97,this[_0x456240(0x4d3)]=_0x7c1107,this[_0x456240(0x479)]=_0x1462e4,this['_injector']=_0x2f438b,this['_localCacheService']=_0x203c75,this[_0x456240(0x416)]=_0x415784,this[_0x456240(0x33c)]=_0x52595a,this[_0x456240(0x341)]=_0x1a1141,this['_logService']=_0x1a5d6c,this[_0x456240(0x466)]=_0x1e73ac,this[_0x456240(0x475)]=_0x452ce2,this['_permissionService']=_0x20122e,this[_0x456240(0x150)]=_0x2bd2ca);}get[_0x2cc1b3(0x2bb)](){const _0xf96e01=_0x2cc1b3;return this[_0xf96e01(0x165)];}async[_0x2cc1b3(0x3d0)](){const _0x514279=_0x2cc1b3;if(this[_0x514279(0x2bb)])throw new Error(_0x514279(0x23d));await this[_0x514279(0x4e1)]();}[_0x2cc1b3(0x287)](){const _0x14178c=_0x2cc1b3;return this[_0x14178c(0x30d)]=!0x0,o[_0x14178c(0x168)](()=>{const _0x2c9e30=_0x14178c;this[_0x2c9e30(0x30d)]=!0x1,this[_0x2c9e30(0x2ff)]();});}[_0x2cc1b3(0x4ae)](_0x33824a){const _0x1f7075=_0x2cc1b3;this[_0x1f7075(0x165)]=_0x33824a,this['_state$']['next'](_0x33824a);}async['_init'](){const _0x164f4f=_0x2cc1b3;var _0x235adc;return this[_0x164f4f(0x4ae)](await this[_0x164f4f(0x1c5)]()),this['_singleActiveUnitService']&&((_0x235adc=this['_singleActiveUnitService'])==null||_0x235adc[_0x164f4f(0x1ab)](this['unitID']),this[_0x164f4f(0x4be)](o['toDisposable'](this[_0x164f4f(0x150)][_0x164f4f(0x1fb)](this[_0x164f4f(0x3ee)])['subscribe'](_0xa9f70f=>{const _0x20eb2f=_0x164f4f;this[_0x20eb2f(0x402)]['debug'](_0x20eb2f(0x31e),_0x20eb2f(0x3cd),_0xa9f70f),_0xa9f70f===Ct[_0x20eb2f(0x194)]?(this[_0x20eb2f(0x475)]['show']({'content':this[_0x20eb2f(0x33c)]['t'](_0x20eb2f(0x3f6)),'type':Q['MessageType'][_0x20eb2f(0x3b1)]}),this['_permissionService'][_0x20eb2f(0x1e8)](new p[(_0x20eb2f(0x33a))](this[_0x20eb2f(0x3ee)])['id'],!0x1)):this[_0x20eb2f(0x1fd)][_0x20eb2f(0x1e8)](new p[(_0x20eb2f(0x33a))](this[_0x20eb2f(0x3ee)])['id'],!0x0);})))),this[_0x164f4f(0x4be)](o[_0x164f4f(0x168)](this[_0x164f4f(0x479)]['sessionStatus$']['subscribe'](_0x1966b5=>{const _0x4b65c6=_0x164f4f;_0x1966b5===G[_0x4b65c6(0x302)]?this[_0x4b65c6(0x51e)]():_0x1966b5===G[_0x4b65c6(0x38a)]&&this[_0x4b65c6(0x41f)]();}))),this['disposeWithMe'](o[_0x164f4f(0x168)](this[_0x164f4f(0x479)][_0x164f4f(0x4cf)]['subscribe'](_0x3b8231=>{const _0x471740=_0x164f4f;try{switch(_0x3b8231[_0x471740(0x266)]){case _[_0x471740(0x173)][_0x471740(0x353)]:{this['_onRemoteChangeset'](_[_0x471740(0x31b)](_0x3b8231[_0x471740(0x1c0)]));break;}case _[_0x471740(0x173)][_0x471740(0x4fe)]:{this[_0x471740(0x37a)](_0x3b8231[_0x471740(0x1c0)]);break;}case _[_0x471740(0x173)][_0x471740(0x2d4)]:{this[_0x471740(0x4e4)]();break;}case _[_0x471740(0x173)][_0x471740(0x2c4)]:{this['_onFetchMissResult'](_0x3b8231[_0x471740(0x1c0)][_0x471740(0x37d)]['map'](_0x56235b=>_[_0x471740(0x31b)](_0x56235b)));break;}case _[_0x471740(0x173)][_0x471740(0x172)]:this[_0x471740(0x4e4)]({'isPermissionRej':!0x0});}}catch(_0x1fe407){throw console[_0x471740(0x307)]('Error\x20on\x20receiving\x20event',_0x1fe407),_0x1fe407;}}))),this[_0x164f4f(0x165)];}[_0x2cc1b3(0x28f)](){const _0x2a1f12=_0x2cc1b3;this[_0x2a1f12(0x2c2)]=!0x1;}['_lockTransition'](){const _0x15d5e7=_0x2cc1b3;if(this[_0x15d5e7(0x2c2)])throw new Error(_0x15d5e7(0x20e));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x4ef072){const _0xdfe9c=_0x2cc1b3;this[_0xdfe9c(0x3d9)](),this[_0xdfe9c(0x4ae)](this['_state']['appendMutation'](_0x4ef072)),this[_0xdfe9c(0x28f)]();}[_0x2cc1b3(0x51c)](_0x1954d9){const _0x3db2e6=_0x2cc1b3;if(!(_0x1954d9['revision']<=this[_0x3db2e6(0x341)][_0x3db2e6(0x295)](this[_0x3db2e6(0x3ee)]))){if(this[_0x3db2e6(0x30d)]){this[_0x3db2e6(0x2b1)][_0x3db2e6(0x4bd)](_0x1954d9);return;}this[_0x3db2e6(0x2a5)](_0x1954d9);}}[_0x2cc1b3(0x2ff)](){const _0xcd7a5a=_0x2cc1b3;this[_0xcd7a5a(0x2b1)][_0xcd7a5a(0x34c)](_0x2aeff4=>this[_0xcd7a5a(0x2a5)](_0x2aeff4)),this[_0xcd7a5a(0x2b1)]=[];}[_0x2cc1b3(0x2a5)](_0x50365f){const _0xc9a63f=_0x2cc1b3,_0x341bd2=this[_0xc9a63f(0x416)][_0xc9a63f(0x158)]['fetchThroughInterceptors'](this['_compressMutationService'][_0xc9a63f(0x158)][_0xc9a63f(0x24f)]()[_0xc9a63f(0x284)])(_0x50365f['mutations'],null)||_0x50365f[_0xc9a63f(0x1d1)],_0x322f11={..._0x50365f,'mutations':_0x341bd2};this[_0xc9a63f(0x3d9)](),this['_updateState'](this[_0xc9a63f(0x165)]['onRemoteChangeset'](_0x322f11)),this[_0xc9a63f(0x28f)]();}[_0x2cc1b3(0x37a)](_0x9fd863){const _0x242ef7=_0x2cc1b3;this[_0x242ef7(0x3d9)](),this['_updateState'](this[_0x242ef7(0x165)][_0x242ef7(0x174)](_0x9fd863)),this[_0x242ef7(0x28f)]();}[_0x2cc1b3(0x4e4)](_0x96147f){const _0xadf614=_0x2cc1b3;this[_0xadf614(0x3d9)](),this['_updateState'](this[_0xadf614(0x165)][_0xadf614(0x320)](_0x96147f)),this[_0xadf614(0x28f)]();}['_onFetchMissResult'](_0x3cd078){const _0x3912a6=_0x2cc1b3;if(!(this[_0x3912a6(0x165)]instanceof H))throw new TypeError(_0x3912a6(0x2ca));const _0x286893=_0x3cd078[_0x3912a6(0x2a8)](_0x1d2e24=>{const _0x22faab=_0x3912a6,_0x16bff2=this[_0x22faab(0x416)][_0x22faab(0x158)][_0x22faab(0x49f)](this[_0x22faab(0x416)][_0x22faab(0x158)][_0x22faab(0x24f)]()[_0x22faab(0x284)])(_0x1d2e24[_0x22faab(0x1d1)],null)||_0x1d2e24[_0x22faab(0x1d1)];return{..._0x1d2e24,'mutations':_0x16bff2};});this[_0x3912a6(0x3d9)](),this[_0x3912a6(0x4ae)](this['_state']['onMissedChangesetFetched'](_0x286893)),this['_unlockTransition']();}['_toggleOffline'](){const _0x5df739=_0x2cc1b3;this['_lockTransition'](),this[_0x5df739(0x4ae)](this[_0x5df739(0x165)][_0x5df739(0x4f6)]()),this[_0x5df739(0x28f)]();}[_0x2cc1b3(0x51e)](){const _0x1efec3=_0x2cc1b3;this[_0x1efec3(0x3d9)](),this[_0x1efec3(0x4ae)](this[_0x1efec3(0x165)]['toggleOnline']()),this[_0x1efec3(0x28f)]();}async[_0x2cc1b3(0x1c5)](){return new Promise(_0x3f8d1d=>{const _0x2ed59c=_0x4b8d;this['_session'][_0x2ed59c(0x380)][_0x2ed59c(0x478)](C['take'](0x1))[_0x2ed59c(0x4c8)](async _0x300ad7=>{const _0x563471=_0x2ed59c;_0x3f8d1d(await this[_0x563471(0x472)](_0x300ad7===G[_0x563471(0x302)]));});});}['_createHandler'](){const _0x54b76c=this['unitID'];return{'onStateChange':(_0x133dbf,_0x196698)=>{const _0x2aa529=_0x4b8d;if(_0x133dbf!==this[_0x2aa529(0x165)])throw new Error(_0x2aa529(0x23a)+_0x133dbf[_0x2aa529(0x4c5)]+_0x2aa529(0x366)+_0x196698[_0x2aa529(0x4c5)]+_0x2aa529(0x361)+this[_0x2aa529(0x165)]['status']);this[_0x2aa529(0x4ae)](_0x196698);},'onSendChangeset':_0x3a5ee4=>{const _0x5c69b7=_0x4b8d,_0x502d11={'eventID':_['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x3a5ee4[_0x5c69b7(0x3ee)],'unitType':this[_0x5c69b7(0x4d3)],'changeset':_0x3a5ee4,'memberID':this[_0x5c69b7(0x479)][_0x5c69b7(0x3a8)]()}};this[_0x5c69b7(0x479)][_0x5c69b7(0x377)](_0x502d11,this[_0x5c69b7(0x3ee)]);},'onMissingChangesets':({from:_0x4f88fe,to:_0x5c4b55})=>{const _0x54c7bd=_0x4b8d;this[_0x54c7bd(0x402)]['debug'](_0x54c7bd(0x31e),_0x54c7bd(0x432)+_0x4f88fe+_0x54c7bd(0x335)+_0x5c4b55);const _0x34f4fd={'eventID':_[_0x54c7bd(0x173)][_0x54c7bd(0x4ed)],'data':{'unitID':_0x54b76c,'unitType':this[_0x54c7bd(0x4d3)],'from':_0x4f88fe,'to':_0x5c4b55}};this[_0x54c7bd(0x479)][_0x54c7bd(0x377)](_0x34f4fd,this[_0x54c7bd(0x3ee)]);}};}async[_0x2cc1b3(0x472)](_0x3dcf16){const _0x5a5c38=_0x2cc1b3;var _0x2697e6,_0x3d6060;const _0x46cb36=await this[_0x5a5c38(0x359)]['loadOfflineData'](this[_0x5a5c38(0x3ee)]),_0x31123e=(_0x2697e6=_0x46cb36==null?void 0x0:_0x46cb36[_0x5a5c38(0x1d1)])!=null?_0x2697e6:[],_0x19acb7=(_0x3d6060=_0x46cb36==null?void 0x0:_0x46cb36[_0x5a5c38(0x18f)])!=null?_0x3d6060:null,_0xdaed5c=this[_0x5a5c38(0x3ee)];try{this[_0x5a5c38(0x2d7)](_0x19acb7,_0x31123e);}catch(_0x2ad05e){this['_logService'][_0x5a5c38(0x307)](_0x2ad05e);}const _0x119bc0=this[_0x5a5c38(0x486)]();if(_0x3dcf16){const _0x9f36f6=bt(this[_0x5a5c38(0x3fe)],_0xdaed5c,this[_0x5a5c38(0x4d3)],_0x19acb7,_0x31123e,_0x119bc0);return _0x9f36f6 instanceof $?_0x9f36f6[_0x5a5c38(0x308)]():(_0x9f36f6 instanceof x||_0x9f36f6 instanceof k)&&_0x9f36f6[_0x5a5c38(0x28c)](),_0x9f36f6;}return this[_0x5a5c38(0x3fe)][_0x5a5c38(0x171)](F,_0xdaed5c,this[_0x5a5c38(0x4d3)],_0x19acb7,_0x31123e,_0x119bc0);}['_replayCachedMutations'](_0xe7121a,_0x4e71f8){const _0x287eec=_0x2cc1b3;var _0x58248b,_0x548ff6;const _0x1f5f55=this[_0x287eec(0x416)][_0x287eec(0x158)][_0x287eec(0x49f)](this[_0x287eec(0x416)][_0x287eec(0x158)][_0x287eec(0x24f)]()[_0x287eec(0x284)]);(_0x58248b=_0x1f5f55((_0xe7121a==null?void 0x0:_0xe7121a['mutations'])||[],null))==null||_0x58248b[_0x287eec(0x34c)](_0x48d45f=>this[_0x287eec(0x466)][_0x287eec(0x186)](_0x48d45f['id'],_0x48d45f[_0x287eec(0x19e)])),(_0x548ff6=_0x1f5f55(_0x4e71f8||[],null))==null||_0x548ff6['forEach'](_0x1f6c2b=>this[_0x287eec(0x466)]['executeCommand'](_0x1f6c2b['id'],_0x1f6c2b[_0x287eec(0x19e)]));}};fe=Ce([I(0x3,o['Inject'](o[_0x2cc1b3(0x2b3)])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x425)])),I(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),I(0x7,o['Inject'](_[_0x2cc1b3(0x4aa)])),I(0x8,o['ILogService']),I(0x9,o[_0x2cc1b3(0x1cf)]),I(0xa,L[_0x2cc1b3(0x280)]),I(0xb,o[_0x2cc1b3(0x42e)]),I(0xc,o[_0x2cc1b3(0x2c3)](pe))],fe);let ye=class extends fe{constructor(_0x19a5b3,_0x43a3c3,_0x8952cd,_0x40e31a,_0x35d220,_0x449dad,_0x5cd823,_0x3c96d6,_0x57d15c,_0x2e3581,_0x51780c,_0x16e55a,_0x48ca7f,_0x5b334a,_0x9d30f8,_0x22b4f1,_0x4daba7){const _0x429c9a=_0x2cc1b3;super(_0x19a5b3,_0x43a3c3,_0x8952cd,_0x40e31a,_0x35d220,_0x449dad,_0x5cd823,_0x3c96d6,_0x48ca7f,_0x5b334a,_0x9d30f8,_0x22b4f1,_0x4daba7),this[_0x429c9a(0x3ee)]=_0x19a5b3,this[_0x429c9a(0x3e9)]=_0x43a3c3,this['session']=_0x8952cd,this[_0x429c9a(0x2f3)]=_0x57d15c,this[_0x429c9a(0x356)]=_0x2e3581,this[_0x429c9a(0x3f3)]=_0x51780c,this[_0x429c9a(0x25e)]=_0x16e55a;}[_0x2cc1b3(0x486)](){const _0x511584=_0x2cc1b3,_0x4ad9ce=super[_0x511584(0x486)]();return _0x4ad9ce[_0x511584(0x4d0)]=_0x561714=>this['_docTransformIMECacheService'][_0x511584(0x327)](_0x561714),_0x4ad9ce[_0x511584(0x3d6)]=_0x49188d=>this[_0x511584(0x3f3)][_0x511584(0x2e8)](_0x49188d),_0x4ad9ce[_0x511584(0x314)]=_0x27458b=>this[_0x511584(0x25e)]['syncEditingCollabCursor'](_0x27458b),_0x4ad9ce[_0x511584(0x258)]=_0xf24265=>this[_0x511584(0x356)][_0x511584(0x457)](_0xf24265),_0x4ad9ce;}async[_0x2cc1b3(0x4e1)](){const _0x349bb4=_0x2cc1b3,_0x5da2cb=await super[_0x349bb4(0x4e1)]();return this[_0x349bb4(0x4be)](this[_0x349bb4(0x466)]['onCommandExecuted']((_0x300bcf,_0x36006d)=>{const _0x1a051b=_0x349bb4;if(_0x300bcf[_0x1a051b(0x3e9)]!==o[_0x1a051b(0x423)][_0x1a051b(0x438)]||_0x36006d!=null&&_0x36006d['fromCollab']||_0x36006d!=null&&_0x36006d[_0x1a051b(0x379)])return;const _0x1285f8=_0x300bcf[_0x1a051b(0x19e)];if((_0x1285f8==null?void 0x0:_0x1285f8[_0x1a051b(0x440)])!==this[_0x1a051b(0x3ee)])return;let _0x34b048=_0x300bcf;if(_0x34b048['id']===P[_0x1a051b(0x321)]['id']){const _0x5e2882=_0x34b048['params'];_0x34b048={'id':P['RichTextEditingMutation']['id'],'type':o[_0x1a051b(0x423)]['MUTATION'],'params':{'unitId':_0x5e2882['unitId'],'actions':_0x5e2882['actions'],'textRanges':null}};}const _0xcf4a8a=this[_0x1a051b(0x416)][_0x1a051b(0x158)][_0x1a051b(0x49f)](this['_compressMutationService'][_0x1a051b(0x158)][_0x1a051b(0x24f)]()[_0x1a051b(0x362)])([_0x34b048],null)||[_0x34b048];this[_0x1a051b(0x464)](_0xcf4a8a[0x0]);})),_0x5da2cb;}};ye=Ce([I(0x3,o['Inject'](o['Injector'])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o['Inject'](_[_0x2cc1b3(0x425)])),I(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),I(0x7,o[_0x2cc1b3(0x333)](_['RevisionService'])),I(0x8,o[_0x2cc1b3(0x333)](P[_0x2cc1b3(0x451)])),I(0x9,o[_0x2cc1b3(0x333)](ve)),I(0xa,o['Inject'](me)),I(0xb,o['Inject'](Fe)),I(0xc,o[_0x2cc1b3(0x4ba)]),I(0xd,o[_0x2cc1b3(0x1cf)]),I(0xe,L[_0x2cc1b3(0x280)]),I(0xf,o[_0x2cc1b3(0x42e)]),I(0x10,o[_0x2cc1b3(0x2c3)](pe))],ye),exports[_0x2cc1b3(0x145)]=class extends fe{constructor(_0xfac06a,_0x173d25,_0x43a5c8,_0x1f19b6,_0x211cbb,_0x50274a,_0x1c4639,_0x4d0b5d,_0x1de710,_0x144573,_0x57580a,_0x2ceb18,_0x189f5c,_0x24c0d1){const _0x517590=_0x2cc1b3;super(_0xfac06a,_0x173d25,_0x43a5c8,_0x1f19b6,_0x211cbb,_0x50274a,_0x1c4639,_0x4d0b5d,_0x144573,_0x57580a,_0x2ceb18,_0x189f5c,_0x24c0d1),this[_0x517590(0x3ee)]=_0xfac06a,this[_0x517590(0x3e9)]=_0x173d25,this[_0x517590(0x301)]=_0x43a5c8,this['_sheetTransformSelectionsService']=_0x1de710;}[_0x2cc1b3(0x486)](){const _0x2958d7=_0x2cc1b3,_0x1e3b6c=super[_0x2958d7(0x486)]();return _0x1e3b6c[_0x2958d7(0x3d6)]=_0x2516f2=>this[_0x2958d7(0x3f0)][_0x2958d7(0x2e8)](_0x2516f2),_0x1e3b6c;}async['_init'](){const _0x22bf19=_0x2cc1b3,_0x3cfb27=await super['_init']();return this[_0x22bf19(0x4be)](this['_commandService']['onCommandExecuted']((_0x479202,_0x1acd17)=>{const _0x4594e3=_0x22bf19;if(_0x479202[_0x4594e3(0x3e9)]!==o[_0x4594e3(0x423)][_0x4594e3(0x438)]||_0x1acd17!=null&&_0x1acd17[_0x4594e3(0x4ee)]||_0x1acd17!=null&&_0x1acd17['onlyLocal'])return;const _0xf62b20=_0x479202[_0x4594e3(0x19e)];if((_0xf62b20==null?void 0x0:_0xf62b20[_0x4594e3(0x440)])!==this[_0x4594e3(0x3ee)])return;const _0xa7c4be=_0x479202,_0x208f43=this[_0x4594e3(0x416)][_0x4594e3(0x158)][_0x4594e3(0x49f)](this['_compressMutationService'][_0x4594e3(0x158)]['getInterceptPoints']()[_0x4594e3(0x362)])([_0xa7c4be],null)||[_0xa7c4be];this[_0x4594e3(0x464)](_0x208f43[0x0]);})),_0x3cfb27;}},exports[_0x2cc1b3(0x145)]=Ce([I(0x3,o[_0x2cc1b3(0x333)](o['Injector'])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x425)])),I(0x6,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),I(0x7,o[_0x2cc1b3(0x333)](_['RevisionService'])),I(0x8,o[_0x2cc1b3(0x333)](ge)),I(0x9,o[_0x2cc1b3(0x4ba)]),I(0xa,o[_0x2cc1b3(0x1cf)]),I(0xb,L[_0x2cc1b3(0x280)]),I(0xc,o[_0x2cc1b3(0x42e)]),I(0xd,o[_0x2cc1b3(0x2c3)](pe))],exports[_0x2cc1b3(0x145)]);const tt=[_0x2cc1b3(0x3c6),_0x2cc1b3(0x1ee),_0x2cc1b3(0x46e),_0x2cc1b3(0x26c),'blue400',_0x2cc1b3(0x2a1)];class Ve extends o[_0x2cc1b3(0x460)]{constructor(){const _0x3799dd=_0x2cc1b3;super(...arguments),u(this,_0x3799dd(0x504),new Map()),u(this,_0x3799dd(0x17c),0x0);}['assignAColorForMemberID'](_0x85b00d){const _0x5336fc=_0x2cc1b3;if(this[_0x5336fc(0x504)]['has'](_0x85b00d))return this[_0x5336fc(0x504)]['get'](_0x85b00d);const _0x15a32e=tt[this[_0x5336fc(0x17c)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%tt[_0x5336fc(0x209)],this[_0x5336fc(0x504)][_0x5336fc(0x1b8)](_0x85b00d,_0x15a32e),_0x15a32e;}}var Ms=Object[_0x2cc1b3(0x1b2)],ws=Object['getOwnPropertyDescriptor'],ys=(_0x38f5df,_0x5fc4b6,_0xd0e2e4,_0x398501)=>{for(var _0x10da2a=_0x398501>0x1?void 0x0:_0x398501?ws(_0x5fc4b6,_0xd0e2e4):_0x5fc4b6,_0x10d4b9=_0x38f5df['length']-0x1,_0x5a4c11;_0x10d4b9>=0x0;_0x10d4b9--)(_0x5a4c11=_0x38f5df[_0x10d4b9])&&(_0x10da2a=(_0x398501?_0x5a4c11(_0x5fc4b6,_0xd0e2e4,_0x10da2a):_0x5a4c11(_0x10da2a))||_0x10da2a);return _0x398501&&_0x10da2a&&Ms(_0x5fc4b6,_0xd0e2e4,_0x10da2a),_0x10da2a;},q=(_0x38b6fd,_0x4c2547)=>(_0x3eade4,_0xd908e5)=>_0x4c2547(_0x3eade4,_0xd908e5,_0x38b6fd);const Ns=0x12c,Ls=0x64,As=()=>{let _0x5fc52f=[],_0x283a68=!0x1;return _0x2c8c8a=>{_0x5fc52f['push'](_0x2c8c8a),_0x283a68||(_0x283a68=!0x0,setTimeout(()=>{const _0xef2d03=_0x4b8d;_0x5fc52f[_0xef2d03(0x34c)](_0x12edda=>_0x12edda()),_0x5fc52f=[],_0x283a68=!0x1;}));};};let Ne=class extends o['RxDisposable']{constructor(_0x459907,_0xc1c5f0,_0x55412a,_0x5a6fea,_0x330d43,_0x4f68ae,_0x37538a,_0x3d836f){const _0x2b00bf=_0x2cc1b3;super(),u(this,'_online',!0x1),u(this,_0x2b00bf(0x4e1),!0x1),u(this,'_cursorInfo$',new v[(_0x2b00bf(0x445))](new Map())),u(this,_0x2b00bf(0x312),this[_0x2b00bf(0x267)][_0x2b00bf(0x368)]()),u(this,_0x2b00bf(0x3e7),new v[(_0x2b00bf(0x445))]([])),u(this,'roomMembers$',this[_0x2b00bf(0x3e7)][_0x2b00bf(0x478)](v[_0x2b00bf(0x2c6)](Ns))),u(this,_0x2b00bf(0x2a6),$e((_0x129479,_0x438c9a)=>{const _0x396db9=_0x2b00bf,_0x19af44={'eventID':_['CollaborationEvent'][_0x396db9(0x49a)],'data':{'unitID':this[_0x396db9(0x3ee)],'memberID':this['_session']['getMemberID'](),'selection':Ye['serializeRangeWithSheet'](_0x129479,_0x438c9a[_0x396db9(0x35a)])}};this[_0x396db9(0x479)][_0x396db9(0x377)](_0x19af44,this[_0x396db9(0x3ee)]);},Ls)),(this[_0x2b00bf(0x3ee)]=_0x459907,this[_0x2b00bf(0x479)]=_0xc1c5f0,this[_0x2b00bf(0x3fe)]=_0x55412a,this[_0x2b00bf(0x1ac)]=_0x5a6fea,this[_0x2b00bf(0x3ab)]=_0x330d43,this[_0x2b00bf(0x46f)]=_0x4f68ae,this[_0x2b00bf(0x466)]=_0x37538a,this[_0x2b00bf(0x406)]=_0x3d836f);}get[_0x2cc1b3(0x1f1)](){const _0xc2c069=_0x2cc1b3;return this['_cursorInfo$'][_0xc2c069(0x14c)]();}get['roomMembers'](){const _0x3d9474=_0x2cc1b3;return this[_0x3d9474(0x3e7)][_0x3d9474(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0xbccdba=_0x2cc1b3;super['dispose'](),this[_0xbccdba(0x267)]['next'](new Map()),this['_cursorInfo$'][_0xbccdba(0x491)](),this[_0xbccdba(0x3e7)][_0xbccdba(0x1a2)]([]),this[_0xbccdba(0x3e7)][_0xbccdba(0x491)]();}['init'](){const _0x415c8e=_0x2cc1b3;this[_0x415c8e(0x4e1)]||(this[_0x415c8e(0x4e1)]=!0x0,this[_0x415c8e(0x479)][_0x415c8e(0x380)][_0x415c8e(0x478)](v['takeUntil'](this[_0x415c8e(0x23e)]))[_0x415c8e(0x4c8)](_0x3537a5=>{const _0x266b35=_0x415c8e;_0x3537a5===G['ONLINE']?this[_0x266b35(0x51e)]():this['_toggleOffline']();}),this['_session'][_0x415c8e(0x4cf)][_0x415c8e(0x478)](v['takeUntil'](this[_0x415c8e(0x23e)]))[_0x415c8e(0x4c8)](_0x2732f6=>{const _0x3e2794=_0x415c8e,_0x3584f5=_0x2732f6[_0x3e2794(0x266)];_0x3584f5===_[_0x3e2794(0x173)][_0x3e2794(0x49a)]&&this[_0x3e2794(0x1f5)](_0x2732f6),_0x3584f5===_['CollaborationEvent'][_0x3e2794(0x21e)]&&this[_0x3e2794(0x28d)](_0x2732f6);}),this[_0x415c8e(0x450)](),this[_0x415c8e(0x4be)](this[_0x415c8e(0x466)][_0x415c8e(0x490)](_0x2cf9fb=>{const _0x3f78cf=_0x415c8e;if(this[_0x3f78cf(0x45d)]&&_0x2cf9fb['id']===p[_0x3f78cf(0x326)]['id']&&_0x2cf9fb[_0x3f78cf(0x19e)][_0x3f78cf(0x440)]===this[_0x3f78cf(0x3ee)]){const _0x324884=_0x2cf9fb[_0x3f78cf(0x19e)];this[_0x3f78cf(0x2a6)](_0x324884[_0x3f78cf(0x2a9)],_0x324884[_0x3f78cf(0x4a3)][0x0]);}})));}[_0x2cc1b3(0x1f5)](_0x9e1c39){const _0x5dd9ab=_0x2cc1b3;var _0x566363,_0x110504;const {memberID:_0x3d2a0e,selection:_0x6048ef}=_0x9e1c39[_0x5dd9ab(0x1c0)],{sheetName:_0x2fab4b,range:_0x1d41fc}=Ye[_0x5dd9ab(0x2ac)](_0x6048ef),_0x5a0d63={'name':(_0x110504=(_0x566363=this[_0x5dd9ab(0x3ab)][_0x5dd9ab(0x523)](this['unitID'],_0x3d2a0e))==null?void 0x0:_0x566363['name'])!=null?_0x110504:_0x5dd9ab(0x193),'range':this['_getMergeRange'](_0x2fab4b,_0x1d41fc),'sheetID':_0x2fab4b,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3d2a0e),'selection':_0x6048ef},_0x34d2ad=this[_0x5dd9ab(0x1f1)];_0x34d2ad['set'](_0x3d2a0e,_0x5a0d63),this[_0x5dd9ab(0x267)][_0x5dd9ab(0x1a2)](_0x34d2ad);}[_0x2cc1b3(0x28d)](_0x9b6c98){const _0x54f0c9=_0x2cc1b3,{memberID:_0x30f450}=_0x9b6c98[_0x54f0c9(0x1c0)],_0x1b60ab=this[_0x54f0c9(0x1f1)];_0x1b60ab['delete'](_0x30f450),this['_cursorInfo$'][_0x54f0c9(0x1a2)](_0x1b60ab);}[_0x2cc1b3(0x418)](_0x11be95,_0x1a1f18){const _0xcc79b2=_0x2cc1b3;var _0x2f2db6,_0x466bcf;const _0x54d887=(_0x466bcf=(_0x2f2db6=this[_0xcc79b2(0x46f)][_0xcc79b2(0x219)](this[_0xcc79b2(0x3ee)]))==null?void 0x0:_0x2f2db6[_0xcc79b2(0x4ce)](_0x11be95))==null?void 0x0:_0x466bcf['getMergeData']();return(_0x54d887==null?void 0x0:_0x54d887[_0xcc79b2(0x4da)](_0x1a7912=>o['Rectangle']['contains'](_0x1a7912,_0x1a1f18)))||_0x1a1f18;}[_0x2cc1b3(0x450)](){const _0x56bed2=_0x2cc1b3,_0x31adb3=new o['DisposableCollection'](),_0x2497bb=As(),_0xc34d3=()=>{const _0x1c356a=_0x4b8d;_0x31adb3['dispose']();const _0x33db6b=(_0x2675ac,_0x41e7ab,_0xc1e0ea,_0x4d7167)=>{const _0x4700ee=_0x4b8d;let _0x172289=[];switch(_0x2675ac['id']){case p['EffectRefRangId'][_0x4700ee(0x42b)]:{_0x172289=p[_0x4700ee(0x437)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x3c0)]:{_0x172289=p[_0x4700ee(0x1d7)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x227)]:{_0x172289=p[_0x4700ee(0x4e6)](_0x2675ac,_0x4d7167);break;}case p['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x172289=p[_0x4700ee(0x234)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x427)]:{_0x172289=p[_0x4700ee(0x175)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x505)]:{_0x172289=p[_0x4700ee(0x412)](_0x2675ac,_0x4d7167);break;}case p['EffectRefRangId'][_0x4700ee(0x203)]:{_0x172289=p['handleMoveRange'](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)]['RemoveColCommandId']:{_0x172289=p['handleIRemoveCol'](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x30e)]:{_0x172289=p[_0x4700ee(0x228)](_0x2675ac,_0x4d7167);break;}}const _0x599248=p[_0x4700ee(0x446)](_0x172289,_0x4d7167),_0x52b28d=this[_0x4700ee(0x1f1)]['get'](_0x41e7ab);if(_0x52b28d&&_0x599248){const _0x20e417={..._0x52b28d,'range':_0x599248};this[_0x4700ee(0x1f1)]['set'](_0x41e7ab,_0x20e417),_0x2497bb(()=>{const _0x2c01d9=_0x4700ee,_0x51cb5c=this[_0x2c01d9(0x406)]['registerRefRange'](_0x599248,_0x458ea8=>(_0x51cb5c[_0x2c01d9(0x22c)](),_0x33db6b(_0x458ea8,_0x41e7ab,_0xc1e0ea,_0x599248)));_0x31adb3['add'](_0x51cb5c);});}return{'redos':[],'undos':[]};};this[_0x1c356a(0x1f1)][_0x1c356a(0x34c)]((_0x52dfab,_0x43bd7f)=>{const _0x1155e7=_0x1c356a,{range:_0x17270f,sheetID:_0x3cb2eb}=_0x52dfab,_0x3dfdc2=this['_refRangeService']['registerRefRange'](_0x17270f,_0x5950d9=>(_0x3dfdc2[_0x1155e7(0x22c)](),_0x33db6b(_0x5950d9,_0x43bd7f,_0x3cb2eb,_0x17270f)));_0x31adb3[_0x1155e7(0x506)](_0x3dfdc2);});};this[_0x56bed2(0x4be)](o[_0x56bed2(0x168)](this['_cursorInfo$']['subscribe'](()=>{_0xc34d3();})));}[_0x2cc1b3(0x51e)](){const _0x2eb5c4=_0x2cc1b3;var _0x584ace,_0x1bf7f7;if(this[_0x2eb5c4(0x45d)]=!0x0,((_0x584ace=this[_0x2eb5c4(0x46f)][_0x2eb5c4(0x4cd)]())==null?void 0x0:_0x584ace[_0x2eb5c4(0x15a)]())!==this[_0x2eb5c4(0x3ee)])return;const _0x127275=(_0x1bf7f7=this[_0x2eb5c4(0x3fe)][_0x2eb5c4(0x3ba)](p[_0x2eb5c4(0x154)])[_0x2eb5c4(0x431)]())==null?void 0x0:_0x1bf7f7[0x0],_0x524fa1=this[_0x2eb5c4(0x46f)][_0x2eb5c4(0x244)](o[_0x2eb5c4(0x271)][_0x2eb5c4(0x3a1)])['getActiveSheet']();_0x127275&&_0x524fa1&&this[_0x2eb5c4(0x2a6)](_0x524fa1[_0x2eb5c4(0x1ba)](),_0x127275);}['_toggleOffline'](){const _0x184c1f=_0x2cc1b3;this[_0x184c1f(0x45d)]=!0x1;}};Ne=ys([q(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),q(0x3,o[_0x2cc1b3(0x333)](Ve)),q(0x4,o[_0x2cc1b3(0x333)](Y)),q(0x5,o['IUniverInstanceService']),q(0x6,o[_0x2cc1b3(0x1cf)]),q(0x7,o[_0x2cc1b3(0x333)](p[_0x2cc1b3(0x32f)]))],Ne);var js=Object[_0x2cc1b3(0x1b2)],$s=Object[_0x2cc1b3(0x47b)],xs=(_0x2383ec,_0x20c7af,_0x5abee9,_0x2651be)=>{const _0x2f9bb4=_0x2cc1b3;for(var _0x27e414=_0x2651be>0x1?void 0x0:_0x2651be?$s(_0x20c7af,_0x5abee9):_0x20c7af,_0x205ed0=_0x2383ec[_0x2f9bb4(0x209)]-0x1,_0x1e9cfc;_0x205ed0>=0x0;_0x205ed0--)(_0x1e9cfc=_0x2383ec[_0x205ed0])&&(_0x27e414=(_0x2651be?_0x1e9cfc(_0x20c7af,_0x5abee9,_0x27e414):_0x1e9cfc(_0x27e414))||_0x27e414);return _0x2651be&&_0x27e414&&js(_0x20c7af,_0x5abee9,_0x27e414),_0x27e414;},W=(_0x107f47,_0x57dd3c)=>(_0x33a4a6,_0x2f0997)=>_0x57dd3c(_0x33a4a6,_0x2f0997,_0x107f47);const Hs=0x12c,ks=0x64;let Le=class extends o[_0x2cc1b3(0x516)]{constructor(_0x39fa44,_0x2ceeb3,_0x37e82a,_0x240bd4,_0x41baa2,_0x2ae38f,_0x5edd6d,_0x475463,_0x5ac80d){const _0x1db231=_0x2cc1b3;super(),u(this,_0x1db231(0x45d),!0x1),u(this,_0x1db231(0x4e1),!0x1),u(this,_0x1db231(0x267),new v['BehaviorSubject'](new Map())),u(this,_0x1db231(0x312),this[_0x1db231(0x267)][_0x1db231(0x368)]()),u(this,_0x1db231(0x3e7),new v[(_0x1db231(0x445))]([])),u(this,_0x1db231(0x390),this[_0x1db231(0x3e7)][_0x1db231(0x478)](v[_0x1db231(0x2c6)](Hs))),u(this,_0x1db231(0x2a6),$e(_0x360b49=>{const _0x30d3c2=_0x1db231,_0x9c2a3a={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x30d3c2(0x3ee)],'memberID':this[_0x30d3c2(0x479)][_0x30d3c2(0x3a8)](),'selection':Et(_0x360b49)}};this[_0x30d3c2(0x479)][_0x30d3c2(0x377)](_0x9c2a3a,this['unitID']);},ks)),(this[_0x1db231(0x3ee)]=_0x39fa44,this['_session']=_0x2ceeb3,this[_0x1db231(0x3fe)]=_0x37e82a,this[_0x1db231(0x1ac)]=_0x240bd4,this[_0x1db231(0x3ab)]=_0x41baa2,this[_0x1db231(0x1a4)]=_0x2ae38f,this[_0x1db231(0x2ad)]=_0x5edd6d,this[_0x1db231(0x46f)]=_0x475463,this[_0x1db231(0x466)]=_0x5ac80d);}get[_0x2cc1b3(0x1f1)](){const _0x4e48a4=_0x2cc1b3;return this[_0x4e48a4(0x267)][_0x4e48a4(0x14c)]();}get[_0x2cc1b3(0x240)](){const _0x31c362=_0x2cc1b3;return this[_0x31c362(0x3e7)][_0x31c362(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0x36b98d=_0x2cc1b3;super[_0x36b98d(0x22c)](),this['_cursorInfo$']['next'](new Map()),this[_0x36b98d(0x267)]['complete'](),this[_0x36b98d(0x3e7)][_0x36b98d(0x1a2)]([]),this['_roomMembers$'][_0x36b98d(0x491)]();}[_0x2cc1b3(0x3d0)](){const _0x33bf29=_0x2cc1b3;this[_0x33bf29(0x4e1)]||(this[_0x33bf29(0x4e1)]=!0x0,this[_0x33bf29(0x479)]['sessionStatus$'][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this['dispose$']))[_0x33bf29(0x4c8)](_0x3ff799=>{const _0x5ec9d4=_0x33bf29;_0x3ff799===G['ONLINE']?this[_0x5ec9d4(0x51e)]():this[_0x5ec9d4(0x41f)]();}),this[_0x33bf29(0x479)][_0x33bf29(0x4cf)][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this[_0x33bf29(0x23e)]))[_0x33bf29(0x4c8)](_0x29183c=>{const _0x24bc1d=_0x33bf29,_0x3d255b=_0x29183c[_0x24bc1d(0x266)];_0x3d255b===_[_0x24bc1d(0x173)]['UPDATE_CURSOR']&&this[_0x24bc1d(0x1f5)](_0x29183c),_0x3d255b===_['CollaborationEvent'][_0x24bc1d(0x21e)]&&this[_0x24bc1d(0x28d)](_0x29183c);}),this['disposeWithMe'](this['_commandService'][_0x33bf29(0x490)](_0x207cf9=>{const _0xd5a7c8=_0x33bf29,_0x322f59=_0x207cf9[_0xd5a7c8(0x19e)];_0x322f59!=null&&this['_online']&&_0x207cf9['id']===P['SetTextSelectionsOperation']['id']&&_0x322f59['unitId']===this['unitID']&&_0x322f59[_0xd5a7c8(0x323)]===!0x1&&this[_0xd5a7c8(0x2a6)](_0x322f59[_0xd5a7c8(0x39b)]);})),this[_0x33bf29(0x1a4)][_0x33bf29(0x43f)][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this['dispose$']))['subscribe'](_0x248b24=>{const _0x5fa42a=_0x33bf29;if((_0x248b24==null?void 0x0:_0x248b24[_0x5fa42a(0x3ee)])!==this[_0x5fa42a(0x3ee)])return;const _0x1d567c={'eventID':_[_0x5fa42a(0x173)][_0x5fa42a(0x49a)],'data':_0x248b24};this['_onCursorUpdate'](_0x1d567c);}),this[_0x33bf29(0x4be)](this['_commandService'][_0x33bf29(0x490)](_0x9faf34=>{const _0x22f70e=_0x33bf29;if(_0x9faf34[_0x22f70e(0x19e)]==null)return;const _0x4410c3=_0x9faf34['params'];if(_0x9faf34['id']!==P[_0x22f70e(0x321)]['id']||_0x4410c3[_0x22f70e(0x440)]!==this[_0x22f70e(0x3ee)])return;const _0x5983c2={'id':_0x22f70e(0x3da),'params':_0x4410c3},_0x2347da=this[_0x22f70e(0x1f1)];for(const [_0x1d3127,_0x1283ea]of _0x2347da){const _0x3ab0c5={'id':_0x22f70e(0x3da),'params':{'unitId':this[_0x22f70e(0x3ee)],'actions':null,'textRanges':_0x1283ea[_0x22f70e(0x39b)]}},_0x5d7662=this['_transformService'][_0x22f70e(0x261)](_0x5983c2,_0x3ab0c5,!0x1);if(_[_0x22f70e(0x24a)](_0x5d7662))throw _0x5d7662[_0x22f70e(0x307)];_0x2347da[_0x22f70e(0x1b8)](_0x1d3127,{..._0x1283ea,'ranges':_0x5d7662[_0x22f70e(0x285)][_0x22f70e(0x19e)][_0x22f70e(0x1bf)]});}queueMicrotask(()=>{const _0x210e0f=_0x22f70e;this[_0x210e0f(0x267)][_0x210e0f(0x1a2)](_0x2347da);});})));}[_0x2cc1b3(0x1f5)](_0xd34a00){const _0x2ae1a9=_0x2cc1b3;var _0x56f14f,_0x2e99a1;const {memberID:_0x3d2cdf,selection:_0x5cbaa5}=_0xd34a00[_0x2ae1a9(0x1c0)],_0x498c5b=fs(_0x5cbaa5),_0x323428=(_0x2e99a1=(_0x56f14f=this['_memberService'][_0x2ae1a9(0x523)](this[_0x2ae1a9(0x3ee)],_0x3d2cdf))==null?void 0x0:_0x56f14f[_0x2ae1a9(0x2bc)])!=null?_0x2e99a1:_0x2ae1a9(0x193),_0x504161={'color':this[_0x2ae1a9(0x1ac)][_0x2ae1a9(0x211)](_0x3d2cdf),'name':_0x323428,'ranges':_0x498c5b},_0xde6fb1=this[_0x2ae1a9(0x1f1)];_0xde6fb1[_0x2ae1a9(0x1b8)](_0x3d2cdf,_0x504161),this[_0x2ae1a9(0x267)][_0x2ae1a9(0x1a2)](_0xde6fb1);}['_onCursorDelete'](_0x5ac66d){const _0x20e4e9=_0x2cc1b3,{memberID:_0x1fa8a4}=_0x5ac66d[_0x20e4e9(0x1c0)],_0x295ad8=this[_0x20e4e9(0x1f1)];_0x295ad8['delete'](_0x1fa8a4),this[_0x20e4e9(0x267)][_0x20e4e9(0x1a2)](_0x295ad8);}[_0x2cc1b3(0x51e)](){const _0x74c462=_0x2cc1b3;var _0x4f5458;if(this[_0x74c462(0x45d)]=!0x0,((_0x4f5458=this[_0x74c462(0x46f)][_0x74c462(0x4cd)]())==null?void 0x0:_0x4f5458['getUnitId']())!==this[_0x74c462(0x3ee)])return;const _0x1d8961=this[_0x74c462(0x3fe)][_0x74c462(0x3ba)](P['TextSelectionManagerService'])[_0x74c462(0x30f)](),_0x5aec7e=_0x1d8961==null?void 0x0:_0x1d8961[_0x74c462(0x2a8)](P[_0x74c462(0x19b)]);Array['isArray'](_0x5aec7e)&&_0x5aec7e[_0x74c462(0x209)]>0x0&&this[_0x74c462(0x2a6)](_0x5aec7e);}[_0x2cc1b3(0x41f)](){this['_online']=!0x1;}};Le=xs([W(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),W(0x3,o['Inject'](Ve)),W(0x4,o[_0x2cc1b3(0x333)](Y)),W(0x5,o['Inject'](Fe)),W(0x6,_[_0x2cc1b3(0x4ca)]),W(0x7,o[_0x2cc1b3(0x298)]),W(0x8,o[_0x2cc1b3(0x1cf)])],Le);var Bs=Object[_0x2cc1b3(0x1b2)],Fs=Object[_0x2cc1b3(0x47b)],Vs=(_0x574633,_0x7572ea,_0x361e9a,_0x3216cc)=>{for(var _0x5bf594=_0x3216cc>0x1?void 0x0:_0x3216cc?Fs(_0x7572ea,_0x361e9a):_0x7572ea,_0x30b4d8=_0x574633['length']-0x1,_0x5a33d2;_0x30b4d8>=0x0;_0x30b4d8--)(_0x5a33d2=_0x574633[_0x30b4d8])&&(_0x5bf594=(_0x3216cc?_0x5a33d2(_0x7572ea,_0x361e9a,_0x5bf594):_0x5a33d2(_0x5bf594))||_0x5bf594);return _0x3216cc&&_0x5bf594&&Bs(_0x7572ea,_0x361e9a,_0x5bf594),_0x5bf594;},Re=(_0x2d308a,_0x49dfdc)=>(_0x7f7309,_0x153fd1)=>_0x49dfdc(_0x7f7309,_0x153fd1,_0x2d308a);let Z=class extends o[_0x2cc1b3(0x516)]{constructor(_0xe2965e,_0xc72850,_0x22c144){const _0xee87e7=_0x2cc1b3;super(),u(this,_0xee87e7(0x339),new Map()),u(this,_0xee87e7(0x403),new v['Subject']()),(this['_univerInstanceService']=_0xe2965e,this[_0xee87e7(0x3fe)]=_0xc72850,this['_collabSessionService']=_0x22c144,this[_0xee87e7(0x4e1)]());}[_0x2cc1b3(0x22c)](){const _0x2009ff=_0x2cc1b3;super[_0x2009ff(0x22c)](),this[_0x2009ff(0x403)]['complete'](),this[_0x2009ff(0x339)][_0x2009ff(0x34c)](_0x5ad4a7=>_0x5ad4a7['dispose']());}[_0x2cc1b3(0x4a2)](_0x25712f){const _0x23e5dc=_0x2cc1b3;return this[_0x23e5dc(0x339)][_0x23e5dc(0x2ae)](_0x25712f)?this[_0x23e5dc(0x339)][_0x23e5dc(0x3ba)](_0x25712f)[_0x23e5dc(0x312)]:this[_0x23e5dc(0x403)][_0x23e5dc(0x478)](v['filter'](_0xb376df=>_0xb376df[_0x23e5dc(0x3ee)]===_0x25712f),v[_0x23e5dc(0x389)](_0x4c2f73=>_0x4c2f73['cursorInfo$']));}[_0x2cc1b3(0x4e1)](){const _0x10543b=_0x2cc1b3;this[_0x10543b(0x46f)][_0x10543b(0x25b)](o['UniverInstanceType'][_0x10543b(0x3a1)])[_0x10543b(0x478)](v[_0x10543b(0x1ef)](this[_0x10543b(0x23e)]))[_0x10543b(0x4c8)](async _0x1b313d=>{const _0x5a4366=_0x10543b,_0x164e6f=_0x1b313d[_0x5a4366(0x15a)](),_0x32aaa3=await this[_0x5a4366(0x24e)](_0x164e6f);this[_0x5a4366(0x403)][_0x5a4366(0x1a2)](_0x32aaa3),this[_0x5a4366(0x339)][_0x5a4366(0x1b8)](_0x164e6f,_0x32aaa3);}),this[_0x10543b(0x46f)][_0x10543b(0x25b)](o[_0x10543b(0x271)]['UNIVER_DOC'])[_0x10543b(0x478)](v['takeUntil'](this[_0x10543b(0x23e)]))[_0x10543b(0x478)](v[_0x10543b(0x277)](_0x1761d9=>!_0x1761d9['getUnitId']()[_0x10543b(0x521)]('__')))[_0x10543b(0x4c8)](async _0x9cc428=>{const _0x997915=_0x10543b,_0x51a65d=_0x9cc428[_0x997915(0x15a)](),_0x154501=await this[_0x997915(0x25d)](_0x51a65d);this[_0x997915(0x403)][_0x997915(0x1a2)](_0x154501),this[_0x997915(0x339)][_0x997915(0x1b8)](_0x51a65d,_0x154501);}),v[_0x10543b(0x3e0)](this[_0x10543b(0x46f)][_0x10543b(0x36a)](o[_0x10543b(0x271)][_0x10543b(0x40b)]),this[_0x10543b(0x46f)][_0x10543b(0x36a)](o['UniverInstanceType'][_0x10543b(0x3a1)]))[_0x10543b(0x478)](v[_0x10543b(0x1ef)](this[_0x10543b(0x23e)]))[_0x10543b(0x4c8)](_0x43d4b4=>{const _0xb7fd92=_0x10543b,_0x1d086f=_0x43d4b4[_0xb7fd92(0x15a)](),_0x15fe0a=this['_entities'][_0xb7fd92(0x3ba)](_0x1d086f);_0x15fe0a&&(_0x15fe0a[_0xb7fd92(0x22c)](),this[_0xb7fd92(0x339)]['delete'](_0x1d086f));});}async['_startSheetCollabCursor'](_0x29008){const _0x3dd2dc=_0x2cc1b3,_0x4732e6=await this[_0x3dd2dc(0x1c7)][_0x3dd2dc(0x33b)](_0x29008),_0x49ea7f=this[_0x3dd2dc(0x3fe)]['createInstance'](Ne,_0x29008,_0x4732e6);return _0x49ea7f[_0x3dd2dc(0x3d0)](),_0x49ea7f;}async[_0x2cc1b3(0x25d)](_0x347773){const _0x4a04dd=_0x2cc1b3,_0x1471e6=await this[_0x4a04dd(0x1c7)][_0x4a04dd(0x33b)](_0x347773),_0x5159c5=this[_0x4a04dd(0x3fe)][_0x4a04dd(0x171)](Le,_0x347773,_0x1471e6);return _0x5159c5['init'](),_0x5159c5;}};Z=Vs([o['OnLifecycle'](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x4b2)],Z),Re(0x0,o[_0x2cc1b3(0x298)]),Re(0x1,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Re(0x2,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x14e)]))],Z);const le=0x14,st=0xc8,Oe=0x4,Ws=0x5;function Gs(_0xbf6df2,_0x515a47){const _0x413f7c=_0x2cc1b3;let {radius:_0x44c78d,width:_0x902800,height:_0xdf057a}=_0x515a47;_0x44c78d=_0x44c78d!=null?_0x44c78d:0x0,_0x902800=_0x902800!=null?_0x902800:0x1e,_0xdf057a=_0xdf057a!=null?_0xdf057a:0x1e;let _0x491ede=0x0,_0x28a30a=0x0,_0x25d078=0x0;_0x491ede=_0x28a30a=_0x25d078=Math[_0x413f7c(0x2a7)](_0x44c78d,_0x902800/0x2,_0xdf057a/0x2),_0xbf6df2['beginPath'](),_0xbf6df2['moveTo'](_0x491ede,0x0),_0xbf6df2['lineTo'](_0x902800-_0x28a30a,0x0),_0xbf6df2[_0x413f7c(0x4b9)](_0x902800-_0x28a30a,_0x28a30a,_0x28a30a,Math['PI']*0x3/0x2,0x0,!0x1),_0xbf6df2[_0x413f7c(0x31d)](_0x902800,_0xdf057a-_0x25d078),_0xbf6df2[_0x413f7c(0x4b9)](_0x902800-_0x25d078,_0xdf057a-_0x25d078,_0x25d078,0x0,Math['PI']/0x2,!0x1),_0xbf6df2[_0x413f7c(0x31d)](0x0,_0xdf057a),_0xbf6df2[_0x413f7c(0x31d)](0x0,_0x491ede),_0xbf6df2[_0x413f7c(0x4b9)](_0x491ede,_0x491ede,_0x491ede,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xbf6df2[_0x413f7c(0x18d)](),_0x515a47[_0x413f7c(0x485)]&&(_0xbf6df2[_0x413f7c(0x2d2)](),_0xbf6df2['fillStyle']=_0x515a47[_0x413f7c(0x485)],_0x515a47[_0x413f7c(0x414)]===_0x413f7c(0x1bb)?_0xbf6df2['fill'](_0x413f7c(0x1bb)):_0xbf6df2[_0x413f7c(0x485)](),_0xbf6df2['restore']());}class Ee extends b['Shape']{constructor(_0x1eba88,_0x38456b){const _0x51957c=_0x2cc1b3;super(_0x1eba88,_0x38456b),u(this,'color'),u(this,'text'),(this['color']=_0x38456b==null?void 0x0:_0x38456b[_0x51957c(0x404)],this['text']=_0x38456b==null?void 0x0:_0x38456b['text']);}static[_0x2cc1b3(0x452)](_0x1225b5,_0x5ab6bf){const _0x398544=_0x2cc1b3,{text:_0x13bdbd,color:_0x207cd5}=_0x5ab6bf;_0x1225b5[_0x398544(0x2d2)](),_0x1225b5[_0x398544(0x40c)]=_0x398544(0x1a3);const _0x2aa998=_0x1225b5['measureText'](_0x13bdbd)[_0x398544(0x428)],_0x260094=Math[_0x398544(0x2a7)](_0x2aa998+0x2*Oe,st);Gs(_0x1225b5,{'height':le,'radius':0x4,'width':_0x260094,'fill':_0x207cd5,'evented':!0x1}),_0x1225b5[_0x398544(0x2d5)]=_0x398544(0x30c);const _0x3e78a1=Oe,_0x1519d6=le-Ws,_0x1bffe0=st-0x2*Oe;if(_0x2aa998>_0x1bffe0){let _0x5be3bf='',_0x1f1a8d=0x0;for(const _0x10ebd5 of _0x13bdbd){const _0x135d86=_0x1225b5['measureText'](_0x10ebd5)['width'];if(_0x1f1a8d+_0x135d86<=_0x1bffe0-_0x1225b5[_0x398544(0x319)](_0x398544(0x238))[_0x398544(0x428)])_0x5be3bf+=_0x10ebd5,_0x1f1a8d+=_0x135d86;else{_0x5be3bf+=_0x398544(0x238);break;}}_0x1225b5[_0x398544(0x4a0)](_0x5be3bf,_0x3e78a1,_0x1519d6);}else _0x1225b5[_0x398544(0x4a0)](_0x13bdbd,_0x3e78a1,_0x1519d6);_0x1225b5[_0x398544(0x2e3)]();}['_draw'](_0x13e3ab){const _0x3da461=_0x2cc1b3;Ee[_0x3da461(0x452)](_0x13e3ab,this);}}const Ys=0x1,Ks=1.5;class Tt extends b[_0x2cc1b3(0x232)]{constructor(_0x24517f,_0x4a9214){const _0x1ea31f=_0x2cc1b3;super(_0x24517f,_0x4a9214),u(this,_0x1ea31f(0x195)),u(this,_0x1ea31f(0x161),!0x1),u(this,_0x1ea31f(0x4b7)),u(this,_0x1ea31f(0x198),''),u(this,'_labelPosition',_0x1ea31f(0x1c6)),u(this,_0x1ea31f(0x433)),(_0x4a9214&&this['setShapeProps'](_0x4a9214),this['onPointerEnter$'][_0x1ea31f(0x155)](()=>this[_0x1ea31f(0x3a6)]({'hovered':!0x0})),this[_0x1ea31f(0x501)][_0x1ea31f(0x155)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2cc1b3(0x3a6)](_0x10c373){const _0x296407=_0x2cc1b3;var _0x34a6e6,_0x29c44c,_0x125afe,_0x1c0073,_0x4b9a57,_0x1b5e4a;this[_0x296407(0x195)]=(_0x34a6e6=_0x10c373[_0x296407(0x404)])!=null?_0x34a6e6:this['_color'],this[_0x296407(0x161)]=(_0x29c44c=_0x10c373[_0x296407(0x288)])!=null?_0x29c44c:this[_0x296407(0x161)],this[_0x296407(0x4b7)]=(_0x125afe=_0x10c373[_0x296407(0x35a)])!=null?_0x125afe:this['_range'],this[_0x296407(0x198)]=(_0x1c0073=_0x10c373[_0x296407(0x2bc)])!=null?_0x1c0073:this['_name'],this['_labelPosition']=(_0x4b9a57=_0x10c373['labelPosition'])!=null?_0x4b9a57:this[_0x296407(0x480)],this[_0x296407(0x433)]=(_0x1b5e4a=_0x10c373[_0x296407(0x328)])!=null?_0x1b5e4a:this[_0x296407(0x433)],this['transformByState']({'width':_0x10c373[_0x296407(0x428)],'height':_0x10c373[_0x296407(0x2df)]});}[_0x2cc1b3(0x2e4)](_0x4e0caf){const _0x433029=_0x2cc1b3,{row:_0x49d875,column:_0x186cbc}=_0x4e0caf;if(_0x49d875>=this['_range'][_0x433029(0x4f1)]&&_0x49d875<=this['_range'][_0x433029(0x3f2)]&&_0x186cbc>=this[_0x433029(0x4b7)][_0x433029(0x41b)]&&_0x186cbc<=this[_0x433029(0x4b7)]['endColumn']){this[_0x433029(0x3a6)]({'hovered':!0x0});return;}this[_0x433029(0x3a6)]({'hovered':!0x1});}[_0x2cc1b3(0x1e2)](_0xd00309){return!0x1;}['_draw'](_0x464f14){const _0x25412b=_0x2cc1b3;b[_0x25412b(0x2bd)][_0x25412b(0x452)](_0x464f14,{'width':this[_0x25412b(0x428)],'height':this[_0x25412b(0x2df)],'strokeWidth':Ks,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x25412b(0x433)]}),this['_hovered']&&(_0x464f14['save'](),_0x464f14[_0x25412b(0x3a3)](0x1,0x0,0x0,0x1,this[_0x25412b(0x428)],this[_0x25412b(0x480)]===_0x25412b(0x274)?0x0:-le),Ee[_0x25412b(0x452)](_0x464f14,{'text':this[_0x25412b(0x198)],'color':this[_0x25412b(0x195)]}),_0x464f14[_0x25412b(0x2e3)]());}}var Xs=Object[_0x2cc1b3(0x1b2)],qs=Object[_0x2cc1b3(0x47b)],zs=(_0x5158e1,_0x38f04d,_0x56850b,_0x7279c7)=>{const _0xbf5464=_0x2cc1b3;for(var _0x9e497=_0x7279c7>0x1?void 0x0:_0x7279c7?qs(_0x38f04d,_0x56850b):_0x38f04d,_0x428d9a=_0x5158e1[_0xbf5464(0x209)]-0x1,_0x4b4884;_0x428d9a>=0x0;_0x428d9a--)(_0x4b4884=_0x5158e1[_0x428d9a])&&(_0x9e497=(_0x7279c7?_0x4b4884(_0x38f04d,_0x56850b,_0x9e497):_0x4b4884(_0x9e497))||_0x9e497);return _0x7279c7&&_0x9e497&&Xs(_0x38f04d,_0x56850b,_0x9e497),_0x9e497;},De=(_0x47ddef,_0x59e8d7)=>(_0x46903f,_0x5957b7)=>_0x59e8d7(_0x46903f,_0x5957b7,_0x47ddef);const Js=0x1389;let Ae=class extends o[_0x2cc1b3(0x516)]{constructor(_0xff0ac,_0x482c63,_0x12f9f0,_0x28ac23){const _0x58f3db=_0x2cc1b3;super(),u(this,_0x58f3db(0x3ce),new Set()),u(this,_0x58f3db(0x443),null),(this[_0x58f3db(0x1c3)]=_0xff0ac,this['_sheetSkeletonManagerService']=_0x482c63,this['_collabCursorController']=_0x12f9f0,this[_0x58f3db(0x34d)]=_0x28ac23,this[_0x58f3db(0x4e1)]());}[_0x2cc1b3(0x4e1)](){const _0x3057bb=_0x2cc1b3;this[_0x3057bb(0x38e)]['currentSkeleton$'][_0x3057bb(0x478)](C[_0x3057bb(0x1ef)](this[_0x3057bb(0x23e)]),C[_0x3057bb(0x389)](_0x47f6d7=>{const _0x50e607=_0x3057bb;if(_0x47f6d7){const _0x54774=_0x47f6d7['sheetId'];return v['combineLatest'](this['_collabCursorController'][_0x50e607(0x4a2)](this[_0x50e607(0x1c3)][_0x50e607(0x440)]),this[_0x50e607(0x34d)][_0x50e607(0x1db)])['pipe'](C[_0x50e607(0x2a8)](([_0x1a2c6e,_0x51fe6f])=>{const _0xbc2da2=new Map();return _0x1a2c6e['forEach']((_0x28270e,_0x2d2b3b)=>{const _0x2c1fcf=_0x4b8d;if(_0x28270e['sheetID']===_0x54774){const _0x3a1e37={..._0x28270e};_0x3a1e37[_0x2c1fcf(0x404)]=_0x51fe6f[_0x28270e[_0x2c1fcf(0x404)]],_0xbc2da2['set'](_0x2d2b3b,_0x3a1e37);}}),{'skeleton':_0x47f6d7,'cursors':_0xbc2da2};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x3057bb(0x4c8)](({skeleton:_0x1d79f0,cursors:_0x4f596e})=>{const _0x515b60=_0x3057bb;this[_0x515b60(0x247)](),_0x1d79f0&&this[_0x515b60(0x33d)](_0x1d79f0,_0x4f596e);}),this[_0x3057bb(0x38e)][_0x3057bb(0x4c0)]['subscribe'](_0x50149f=>{const _0x30d657=_0x3057bb;if(_0x50149f==null)return;const {skeleton:_0x54fa58}=_0x50149f,{scene:_0x57efb2}=this[_0x30d657(0x1c3)];_0x57efb2[_0x30d657(0x1e4)][_0x30d657(0x155)]($e(_0xaab65e=>{const _0x4ef4f8=_0x30d657;var _0x4c641e,_0x5d4854;const {offsetX:_0x5bdcdb,offsetY:_0xc1eae}=_0xaab65e,{x:_0x32b0c1,y:_0x522f4d}=_0x57efb2[_0x4ef4f8(0x197)](b[_0x4ef4f8(0x316)][_0x4ef4f8(0x38d)]([_0x5bdcdb,_0xc1eae])),{scaleX:_0x2d9f2f,scaleY:_0x3dddaf}=_0x57efb2[_0x4ef4f8(0x263)](),_0x33cfb1=_0x57efb2['getViewport'](J[_0x4ef4f8(0x2e6)][_0x4ef4f8(0x35d)]),_0x4d9df8=_0x57efb2[_0x4ef4f8(0x22e)](b[_0x4ef4f8(0x316)]['FromArray']([_0x32b0c1,_0x522f4d]),_0x33cfb1),_0x21edde=_0x54fa58[_0x4ef4f8(0x31f)](_0x5bdcdb,_0xc1eae,_0x2d9f2f,_0x3dddaf,_0x4d9df8);((_0x4c641e=this[_0x4ef4f8(0x443)])==null?void 0x0:_0x4c641e['column'])===_0x21edde[_0x4ef4f8(0x31c)]&&((_0x5d4854=this[_0x4ef4f8(0x443)])==null?void 0x0:_0x5d4854[_0x4ef4f8(0x47a)])===_0x21edde[_0x4ef4f8(0x47a)]||this[_0x4ef4f8(0x3ce)][_0x4ef4f8(0x34c)](_0x439ada=>{const _0x1f46ea=_0x4ef4f8;_0x439ada[_0x1f46ea(0x2e4)](_0x21edde);});},0x64));});}['_updateCollabCursors'](_0x299070,_0x3a6d7b){const _0x3c41d9=_0x2cc1b3;var _0x52fe09;const _0x3aeecf=(_0x52fe09=this[_0x3c41d9(0x38e)][_0x3c41d9(0x206)]())==null?void 0x0:_0x52fe09[_0x3c41d9(0x41a)];if(!_0x3aeecf)return;const _0x5de10c=this['_getSheetObject']();if(!_0x5de10c)return;this[_0x3c41d9(0x3ce)][_0x3c41d9(0x34c)](_0xc85f7d=>{const _0x2c0864=_0x3c41d9;_0xc85f7d[_0x2c0864(0x3dc)]();});const {scene:_0x24761c}=_0x5de10c,_0x5d9167=Zs(Array[_0x3c41d9(0x346)](_0x3a6d7b['values']()))[_0x3c41d9(0x2a8)](_0x4f8424=>{const _0x12daa2=_0x3c41d9,{color:_0x511b73,range:_0xf33cae,name:_0x450567,selection:_0x318556,sheetID:_0x8d9753}=_0x4f8424,{startColumn:_0x2521ec,startRow:_0x2a94d1,endColumn:_0x1db40c,endRow:_0x10ce58}=_0xf33cae,_0x3f5420=J[_0x12daa2(0x20f)](_0x2a94d1,_0x2521ec,_0x24761c,_0x3aeecf),_0x1d2564=J['getCoordByCell'](_0x10ce58,_0x1db40c,_0x24761c,_0x3aeecf),{columnHeaderHeightAndMarginTop:_0x777bb7}=_0x3aeecf,{startX:_0xe5e59a,startY:_0x4da89c}=_0x3f5420,{endX:_0x553d6b,endY:_0x45557c}=_0x1d2564,_0x47ca24=_0x553d6b-_0xe5e59a,_0x17e9ff=_0x45557c-_0x4da89c,_0x53d2bc={'labelPosition':_0x4da89c-_0x777bb7>=le?_0x12daa2(0x1c6):_0x12daa2(0x274),'sheetID':_0x8d9753,'range':_0xf33cae,'color':_0x511b73,'name':_0x450567,'selection':_0x318556,'left':_0xe5e59a,'top':_0x4da89c,'width':_0x47ca24,'height':_0x17e9ff,'evented':!0x1,'zIndex':Js};return new Tt(_0x450567,_0x53d2bc);});_0x24761c['addObjects'](_0x5d9167,Ys),this[_0x3c41d9(0x3ce)]=new Set(_0x5d9167);}[_0x2cc1b3(0x247)](){const _0x4dc55a=_0x2cc1b3;var _0x5d2f29;(_0x5d2f29=this[_0x4dc55a(0x3ce)])==null||_0x5d2f29['forEach'](_0x135b1b=>_0x135b1b[_0x4dc55a(0x22c)]());}[_0x2cc1b3(0x47c)](){const _0x360c0c=_0x2cc1b3;return J[_0x360c0c(0x3bd)](this[_0x360c0c(0x1c3)][_0x360c0c(0x3f4)],this[_0x360c0c(0x1c3)]);}};Ae=zs([De(0x1,o['Inject'](J[_0x2cc1b3(0x454)])),De(0x2,o[_0x2cc1b3(0x333)](Z)),De(0x3,o[_0x2cc1b3(0x333)](o['ThemeService']))],Ae);function Zs(_0x2796ea){const _0x153673=_0x2cc1b3,_0x4eb5e1=new Map();return _0x2796ea[_0x153673(0x34c)](_0x47cfb4=>{const _0x26e9ed=_0x153673;if(_0x4eb5e1[_0x26e9ed(0x2ae)](_0x47cfb4[_0x26e9ed(0x17f)])){const _0x16675b=_0x4eb5e1[_0x26e9ed(0x3ba)](_0x47cfb4[_0x26e9ed(0x17f)]);_0x16675b[_0x26e9ed(0x2bc)]+=',\x20'+_0x47cfb4['name'];}else _0x4eb5e1['set'](_0x47cfb4['selection'],_0x47cfb4);}),Array[_0x153673(0x346)](_0x4eb5e1['values']());}var N=function(){const _0x54efcf=_0x2cc1b3;return N=Object[_0x54efcf(0x420)]||function(_0x35127c){const _0x193658=_0x54efcf;for(var _0x57b0de,_0x55bb82=0x1,_0x51f5f0=arguments[_0x193658(0x209)];_0x55bb82<_0x51f5f0;_0x55bb82++){_0x57b0de=arguments[_0x55bb82];for(var _0x1ef6f0 in _0x57b0de)Object[_0x193658(0x4c2)][_0x193658(0x35e)][_0x193658(0x181)](_0x57b0de,_0x1ef6f0)&&(_0x35127c[_0x1ef6f0]=_0x57b0de[_0x1ef6f0]);}return _0x35127c;},N['apply'](this,arguments);},Qs=function(_0xa510fc,_0x2b0251){const _0x20b6d=_0x2cc1b3;var _0x28b837={};for(var _0x322117 in _0xa510fc)Object[_0x20b6d(0x4c2)][_0x20b6d(0x35e)][_0x20b6d(0x181)](_0xa510fc,_0x322117)&&_0x2b0251['indexOf'](_0x322117)<0x0&&(_0x28b837[_0x322117]=_0xa510fc[_0x322117]);if(_0xa510fc!=null&&typeof Object[_0x20b6d(0x435)]==_0x20b6d(0x1b7)){for(var _0x3a257e=0x0,_0x322117=Object[_0x20b6d(0x435)](_0xa510fc);_0x3a257e<_0x322117['length'];_0x3a257e++)_0x2b0251[_0x20b6d(0x2ec)](_0x322117[_0x3a257e])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x20b6d(0x181)](_0xa510fc,_0x322117[_0x3a257e])&&(_0x28b837[_0x322117[_0x3a257e]]=_0xa510fc[_0x322117[_0x3a257e]]);}return _0x28b837;},We=y[_0x2cc1b3(0x401)](function(_0x3f6059,_0x2c8829){const _0x3097de=_0x2cc1b3;var _0x14bc51=_0x3f6059[_0x3097de(0x189)],_0x36b4f9=_0x3f6059['id'],_0x358b77=_0x3f6059[_0x3097de(0x253)],_0x52714a=_0x3f6059['extend'],_0x24de23=Qs(_0x3f6059,[_0x3097de(0x189),'id',_0x3097de(0x253),_0x3097de(0x4bb)]),_0x2d1a27=_0x3097de(0x1eb)[_0x3097de(0x32b)](_0x36b4f9,'\x20')[_0x3097de(0x32b)](_0x358b77||'')[_0x3097de(0x19c)](),_0x5117dd=y[_0x3097de(0x1d2)]('_'[_0x3097de(0x32b)](si()));return Rt(_0x14bc51,''[_0x3097de(0x32b)](_0x36b4f9),{'defIds':_0x14bc51[_0x3097de(0x2da)],'idSuffix':_0x5117dd['current']},N({'ref':_0x2c8829,'className':_0x2d1a27},_0x24de23),_0x52714a);});function Rt(_0x51431f,_0x36b0e6,_0x4a7edf,_0x119471,_0x198041){const _0x555edb=_0x2cc1b3;return y[_0x555edb(0x3cb)](_0x51431f[_0x555edb(0x200)],N(N({'key':_0x36b0e6},ei(_0x51431f,_0x4a7edf,_0x198041)),_0x119471),(ti(_0x51431f,_0x4a7edf)[_0x555edb(0x20c)]||[])[_0x555edb(0x2a8)](function(_0x3dd053,_0x2b9074){const _0x1f4b1e=_0x555edb;return Rt(_0x3dd053,''[_0x1f4b1e(0x32b)](_0x36b0e6,'-')['concat'](_0x51431f[_0x1f4b1e(0x200)],'-')['concat'](_0x2b9074),_0x4a7edf,void 0x0,_0x198041);}));}function ei(_0x3b9790,_0x2a1ff7,_0x291c02){const _0xad2476=_0x2cc1b3;var _0x32d71d=N({},_0x3b9790[_0xad2476(0x1a0)]);_0x291c02!=null&&_0x291c02[_0xad2476(0x330)]&&_0x32d71d[_0xad2476(0x485)]==='colorChannel1'&&(_0x32d71d['fill']=_0x291c02[_0xad2476(0x330)]);var _0x1cb8eb=_0x2a1ff7[_0xad2476(0x2da)];return!_0x1cb8eb||_0x1cb8eb[_0xad2476(0x209)]===0x0||(_0x3b9790[_0xad2476(0x200)]===_0xad2476(0x300)&&_0x32d71d[_0xad2476(0x411)]&&(_0x32d71d[_0xad2476(0x411)]=_0x32d71d[_0xad2476(0x411)]+_0x2a1ff7[_0xad2476(0x384)]),Object[_0xad2476(0x3bb)](_0x32d71d)[_0xad2476(0x34c)](function(_0x53d643){const _0x46dce6=_0xad2476;var _0x46062a=_0x53d643[0x0],_0x4ee6f2=_0x53d643[0x1];typeof _0x4ee6f2==_0x46dce6(0x26e)&&(_0x32d71d[_0x46062a]=_0x4ee6f2[_0x46dce6(0x34b)](/url\(#(.*)\)/,_0x46dce6(0x17a)[_0x46dce6(0x32b)](_0x2a1ff7[_0x46dce6(0x384)],')')));})),_0x32d71d;}function ti(_0x2a9154,_0x33f28f){const _0x4c88d9=_0x2cc1b3;var _0x3264ce,_0x4d98d5=_0x33f28f[_0x4c88d9(0x2da)];return!_0x4d98d5||_0x4d98d5[_0x4c88d9(0x209)]===0x0?_0x2a9154:_0x2a9154[_0x4c88d9(0x200)]===_0x4c88d9(0x29c)&&(!((_0x3264ce=_0x2a9154[_0x4c88d9(0x20c)])===null||_0x3264ce===void 0x0)&&_0x3264ce[_0x4c88d9(0x209)])?N(N({},_0x2a9154),{'children':_0x2a9154[_0x4c88d9(0x20c)][_0x4c88d9(0x2a8)](function(_0x798a9){const _0x4fa6c9=_0x4c88d9;return typeof _0x798a9[_0x4fa6c9(0x1a0)]['id']==_0x4fa6c9(0x26e)&&_0x4d98d5&&_0x4d98d5[_0x4fa6c9(0x2ec)](_0x798a9['attrs']['id'])>-0x1?N(N({},_0x798a9),{'attrs':N(N({},_0x798a9[_0x4fa6c9(0x1a0)]),{'id':_0x798a9[_0x4fa6c9(0x1a0)]['id']+_0x33f28f[_0x4fa6c9(0x384)]})}):_0x798a9;})}):_0x2a9154;}function si(){const _0x5dd9b5=_0x2cc1b3;return Math['random']()[_0x5dd9b5(0x28e)](0x24)[_0x5dd9b5(0x48a)](0x2,0x8);}We[_0x2cc1b3(0x18a)]='UniverIcon';var ii={'tag':'svg','attrs':{'fill':_0x2cc1b3(0x482),'viewBox':_0x2cc1b3(0x254),'width':_0x2cc1b3(0x509),'height':_0x2cc1b3(0x509)},'children':[{'tag':'g','attrs':{'clipPath':_0x2cc1b3(0x16f)},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'stroke':'currentColor','d':_0x2cc1b3(0x4d6),'strokeLinecap':'round','strokeLinejoin':_0x2cc1b3(0x4f4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'fill':_0x2cc1b3(0x2a4),'d':_0x2cc1b3(0x44e)}}]}]}],'defIds':[_0x2cc1b3(0x29f)]},Ot=y['forwardRef'](function(_0x1d8352,_0x4109e5){const _0x5d7735=_0x2cc1b3;return y[_0x5d7735(0x3cb)](We,Object[_0x5d7735(0x420)]({},_0x1d8352,{'id':_0x5d7735(0x223),'ref':_0x4109e5,'icon':ii}));});Ot[_0x2cc1b3(0x18a)]='OffLineSingle';var ni={'tag':_0x2cc1b3(0x15e),'attrs':{'fill':'none','viewBox':_0x2cc1b3(0x3e5),'width':_0x2cc1b3(0x509),'height':_0x2cc1b3(0x509)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'stroke':_0x2cc1b3(0x1c4),'d':_0x2cc1b3(0x230),'strokeLinecap':_0x2cc1b3(0x4f4),'strokeLinejoin':_0x2cc1b3(0x4f4),'strokeWidth':1.2}}]},{'tag':_0x2cc1b3(0x29c),'attrs':{},'children':[{'tag':_0x2cc1b3(0x1fa),'attrs':{'id':_0x2cc1b3(0x383)},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'fill':_0x2cc1b3(0x2a4),'d':_0x2cc1b3(0x44e),'transform':_0x2cc1b3(0x18c)}}]}]}],'defIds':[_0x2cc1b3(0x383)]},Dt=y[_0x2cc1b3(0x401)](function(_0x4a938e,_0x193b22){const _0x195fd1=_0x2cc1b3;return y['createElement'](We,Object[_0x195fd1(0x420)]({},_0x4a938e,{'id':_0x195fd1(0x170),'ref':_0x193b22,'icon':ni}));});Dt[_0x2cc1b3(0x18a)]=_0x2cc1b3(0x332);const ri='univer-online-status-icon',oi=_0x2cc1b3(0x2cc),ai='univer-online-status',ci='univer-online',li=_0x2cc1b3(0x424),ne={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x568615){const _0x9e5461=_0x2cc1b3;switch(_0x568615){case D[_0x9e5461(0x38a)]:return _0x9e5461(0x400);case D['CONFLICT']:return _0x9e5461(0x382);case D['FETCH_MISS']:return _0x9e5461(0x3f7);case D['NOT_COLLAB']:return _0x9e5461(0x269);case D['PENDING']:case D['AWAITING']:case D[_0x9e5461(0x297)]:return _0x9e5461(0x2a3);case D['SYNCED']:return _0x9e5461(0x23b);}}function Pt(_0x23aadc){const _0x2743fc=_0x2cc1b3,{status$:_0x318d10}=_0x23aadc,_0x5b8e5c=L[_0x2743fc(0x34f)](_0x318d10,D['NOT_COLLAB']),_0x252e33=o[_0x2743fc(0x510)](o[_0x2743fc(0x2f6)]),_0x1217cb=_0x5b8e5c!==D[_0x2743fc(0x38a)],_0x3728fe=_0x252e33['t'](hi(_0x5b8e5c)),_0x32309b=Ht(ne[_0x2743fc(0x313)],{[ne[_0x2743fc(0x369)]]:_0x1217cb,[ne[_0x2743fc(0x2d8)]]:!_0x1217cb}),_0x2835f4=_0x1217cb?y[_0x2743fc(0x3cb)](Dt,null):y[_0x2743fc(0x3cb)](Ot,null);return y[_0x2743fc(0x3cb)](_0x2743fc(0x527),{'className':_0x32309b},y[_0x2743fc(0x3cb)](_0x2743fc(0x527),{'className':ne[_0x2743fc(0x395)]},_0x2835f4),y[_0x2743fc(0x3cb)]('div',{'className':ne[_0x2743fc(0x2c7)]},_0x3728fe));}var _i=Object[_0x2cc1b3(0x1b2)],ui=Object[_0x2cc1b3(0x47b)],di=(_0x22e312,_0x24b6ee,_0x2d8f2b,_0x5e83a5)=>{const _0x546944=_0x2cc1b3;for(var _0x2da976=_0x5e83a5>0x1?void 0x0:_0x5e83a5?ui(_0x24b6ee,_0x2d8f2b):_0x24b6ee,_0x4fd182=_0x22e312[_0x546944(0x209)]-0x1,_0x38c536;_0x4fd182>=0x0;_0x4fd182--)(_0x38c536=_0x22e312[_0x4fd182])&&(_0x2da976=(_0x5e83a5?_0x38c536(_0x24b6ee,_0x2d8f2b,_0x2da976):_0x38c536(_0x2da976))||_0x2da976);return _0x5e83a5&&_0x2da976&&_i(_0x24b6ee,_0x2d8f2b,_0x2da976),_0x2da976;},he=(_0x2ecd28,_0x217ba8)=>(_0x382917,_0x5cd933)=>_0x217ba8(_0x382917,_0x5cd933,_0x2ecd28);exports[_0x2cc1b3(0x292)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x5159ee,_0x4ec262,_0x1a9c02,_0x1ee756){const _0x42088d=_0x2cc1b3;super(),u(this,_0x42088d(0x40f),new v[(_0x42088d(0x445))](D[_0x42088d(0x45a)])),(this['_univerInstanceService']=_0x5159ee,this[_0x42088d(0x476)]=_0x4ec262,this[_0x42088d(0x3fe)]=_0x1a9c02,this[_0x42088d(0x32d)]=_0x1ee756,this['_initStatusComponent'](),this[_0x42088d(0x3fa)]());}[_0x2cc1b3(0x331)](){const _0x311f35=_0x2cc1b3;this[_0x311f35(0x4be)](this[_0x311f35(0x476)]['registerComponent'](L['BuiltInUIPart'][_0x311f35(0x488)],()=>o[_0x311f35(0x262)](Si({'status$':this[_0x311f35(0x40f)][_0x311f35(0x368)]()}),this[_0x311f35(0x3fe)])));}[_0x2cc1b3(0x3fa)](){const _0x5f5d57=_0x2cc1b3;this['disposeWithMe'](o[_0x5f5d57(0x168)](this[_0x5f5d57(0x46f)][_0x5f5d57(0x1e6)][_0x5f5d57(0x478)](v['switchMap'](()=>{const _0x2d6e13=_0x5f5d57,_0x59bab7=this[_0x2d6e13(0x46f)][_0x2d6e13(0x4cd)]();return _0x59bab7?this[_0x2d6e13(0x32d)]['getCollabEntity$'](_0x59bab7[_0x2d6e13(0x15a)]()):v['of'](null);}),v[_0x5f5d57(0x389)](_0x472892=>_0x472892?_0x472892['status$']:v['of'](D[_0x5f5d57(0x45a)])))[_0x5f5d57(0x4c8)](_0x290596=>{const _0x25505e=_0x5f5d57;this['_status$'][_0x25505e(0x1a2)](_0x290596);})));}},exports[_0x2cc1b3(0x292)]=di([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x4b2)],exports['DesktopCollaborationStatusDisplayController']),he(0x0,o[_0x2cc1b3(0x298)]),he(0x1,L[_0x2cc1b3(0x2b9)]),he(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),he(0x3,o['Inject'](exports[_0x2cc1b3(0x305)]))],exports[_0x2cc1b3(0x292)]);function Si(_0x3ee421){const {status$:_0x321069}=_0x3ee421;return function(){return y['createElement'](Pt,{'status$':_0x321069});};}const Ge=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x371));var vi=Object[_0x2cc1b3(0x1b2)],mi=Object['getOwnPropertyDescriptor'],gi=(_0x32c0d5,_0x6893f3,_0x1fda72,_0x4a05f2)=>{const _0x47eefb=_0x2cc1b3;for(var _0x2a169d=_0x4a05f2>0x1?void 0x0:_0x4a05f2?mi(_0x6893f3,_0x1fda72):_0x6893f3,_0x1abb83=_0x32c0d5[_0x47eefb(0x209)]-0x1,_0x19c796;_0x1abb83>=0x0;_0x1abb83--)(_0x19c796=_0x32c0d5[_0x1abb83])&&(_0x2a169d=(_0x4a05f2?_0x19c796(_0x6893f3,_0x1fda72,_0x2a169d):_0x19c796(_0x2a169d))||_0x2a169d);return _0x4a05f2&&_0x2a169d&&vi(_0x6893f3,_0x1fda72,_0x2a169d),_0x2a169d;},z=(_0x5139e3,_0x353cc3)=>(_0x5aa814,_0x240eef)=>_0x353cc3(_0x5aa814,_0x240eef,_0x5139e3);exports[_0x2cc1b3(0x20b)]=class extends o['RxDisposable']{constructor(_0x1b66b2,_0x3dae43,_0x1a56e6,_0x21ff76,_0x187cc8,_0x363ae2){const _0x52d5aa=_0x2cc1b3;super(),this['_urlService']=_0x1b66b2,this[_0x52d5aa(0x402)]=_0x3dae43,this[_0x52d5aa(0x466)]=_0x1a56e6,this[_0x52d5aa(0x359)]=_0x21ff76,this[_0x52d5aa(0x3c1)]=_0x187cc8,_0x363ae2?_0x363ae2==null||_0x363ae2['whenReady']()[_0x52d5aa(0x360)](()=>this[_0x52d5aa(0x4e1)]()):(this['_logService'][_0x52d5aa(0x1a1)](_0x52d5aa(0x51d),_0x52d5aa(0x2b2)),this[_0x52d5aa(0x4e1)]());}async[_0x2cc1b3(0x4e1)](){const _0x83b9ce=_0x2cc1b3,_0x315ffb=this[_0x83b9ce(0x419)][_0x83b9ce(0x348)](_0x83b9ce(0x3f4)),_0x25b475=this[_0x83b9ce(0x419)][_0x83b9ce(0x348)](_0x83b9ce(0x3e9));if(!_0x315ffb||!_0x25b475){this[_0x83b9ce(0x402)][_0x83b9ce(0x1a1)](_0x83b9ce(0x51d),_0x83b9ce(0x21d));return;}switch(Number(_0x25b475)){case j[_0x83b9ce(0x3a1)]:{const _0x60a73f=await this[_0x83b9ce(0x39e)](_0x315ffb);this[_0x83b9ce(0x2ef)](_0x60a73f);break;}case j[_0x83b9ce(0x40b)]:{await this['_loadDoc'](_0x315ffb);break;}default:{this[_0x83b9ce(0x402)][_0x83b9ce(0x307)]('[DataLoaderController]',_0x83b9ce(0x3d4));break;}}}async[_0x2cc1b3(0x2ef)](_0xa1260c){const _0x2f9dd5=_0x2cc1b3;await this['_updateSubUnitFromURLParams'](_0xa1260c),_0xa1260c['activeSheet$']['pipe'](v['takeUntil'](this['dispose$']))[_0x2f9dd5(0x4c8)](_0x141069=>{const _0x24a9dd=_0x2f9dd5;_0x141069&&this[_0x24a9dd(0x493)](_0x141069);}),this[_0x2f9dd5(0x419)]['urlChange$'][_0x2f9dd5(0x478)](v[_0x2f9dd5(0x1ef)](this['dispose$']))[_0x2f9dd5(0x4c8)](()=>this[_0x2f9dd5(0x2cb)](_0xa1260c));}[_0x2cc1b3(0x493)](_0x20bb9e,_0x2f7c7d=!0x1){const _0x5222ad=_0x2cc1b3,_0x577bca=this[_0x5222ad(0x419)][_0x5222ad(0x348)]('subunit');_0x20bb9e['getSheetId']()!==_0x577bca&&this[_0x5222ad(0x419)][_0x5222ad(0x190)]('subunit',_0x20bb9e[_0x5222ad(0x1ba)](),_0x2f7c7d);}async[_0x2cc1b3(0x2cb)](_0x1c61c1){const _0x470b11=_0x2cc1b3;var _0x493797;const _0x2f29a7=this[_0x470b11(0x419)]['getParam'](_0x470b11(0x36b));if(!_0x2f29a7||!_0x1c61c1[_0x470b11(0x4ce)](_0x2f29a7)){const _0x566e5b=_0x1c61c1[_0x470b11(0x442)]()[0x0],_0x13ba28=_0x1c61c1[_0x470b11(0x4ce)](_0x566e5b);if(!_0x13ba28)return;this[_0x470b11(0x493)](_0x13ba28,!0x0),await this[_0x470b11(0x466)]['executeCommand'](p[_0x470b11(0x1b4)]['id'],{'unitId':_0x1c61c1[_0x470b11(0x15a)](),'subUnitId':_0x566e5b});return;}((_0x493797=_0x1c61c1[_0x470b11(0x2de)]())==null?void 0x0:_0x493797[_0x470b11(0x1ba)]())!==_0x2f29a7&&await this[_0x470b11(0x466)][_0x470b11(0x186)](p[_0x470b11(0x1b4)]['id'],{'unitId':_0x1c61c1[_0x470b11(0x15a)](),'subUnitId':_0x2f29a7});}async['_loadSheet'](_0x150d4d){const _0x147889=_0x2cc1b3;let _0x36ee12=0x0;const _0x5cad5d=await this[_0x147889(0x359)][_0x147889(0x4a7)](_0x150d4d);return _0x5cad5d&&(_0x5cad5d['awaitingChangeset']||_0x5cad5d[_0x147889(0x1d1)][_0x147889(0x209)]!==0x0)&&(_0x36ee12=_0x5cad5d[_0x147889(0x373)]),_0x36ee12===0x0&&this['_logService']['debug'](_0x147889(0x51d),_0x147889(0x205)),this[_0x147889(0x3c1)][_0x147889(0x3df)](_0x150d4d,_0x36ee12);}async[_0x2cc1b3(0x38c)](_0xab1e2){const _0x43bd87=_0x2cc1b3;let _0x337850=0x0;const _0x3295c9=await this[_0x43bd87(0x359)][_0x43bd87(0x4a7)](_0xab1e2);return _0x3295c9&&(_0x3295c9['awaitingChangeset']||_0x3295c9['mutations'][_0x43bd87(0x209)]!==0x0)&&(_0x337850=_0x3295c9[_0x43bd87(0x373)]),_0x337850===0x0&&this['_logService']['debug'](_0x43bd87(0x51d),_0x43bd87(0x205)),this['_snapshotService']['loadDoc'](_0xab1e2,_0x337850);}},exports[_0x2cc1b3(0x20b)]=gi([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x4b2)],exports[_0x2cc1b3(0x20b)]),z(0x0,Ge),z(0x1,o[_0x2cc1b3(0x4ba)]),z(0x2,o[_0x2cc1b3(0x1cf)]),z(0x3,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),z(0x4,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x465)])),z(0x5,o['Optional'](kt[_0x2cc1b3(0x22f)]))],exports[_0x2cc1b3(0x20b)]);var fi=Object[_0x2cc1b3(0x1b2)],Ii=Object[_0x2cc1b3(0x47b)],pi=(_0x51bb3f,_0x450e3e,_0x2ff307,_0x4d8248)=>{const _0xc8bb24=_0x2cc1b3;for(var _0x273223=_0x4d8248>0x1?void 0x0:_0x4d8248?Ii(_0x450e3e,_0x2ff307):_0x450e3e,_0x227c76=_0x51bb3f[_0xc8bb24(0x209)]-0x1,_0x40f8cb;_0x227c76>=0x0;_0x227c76--)(_0x40f8cb=_0x51bb3f[_0x227c76])&&(_0x273223=(_0x4d8248?_0x40f8cb(_0x450e3e,_0x2ff307,_0x273223):_0x40f8cb(_0x273223))||_0x273223);return _0x4d8248&&_0x273223&&fi(_0x450e3e,_0x2ff307,_0x273223),_0x273223;},it=(_0x477a4b,_0x2e6872)=>(_0x38923e,_0x319028)=>_0x2e6872(_0x38923e,_0x319028,_0x477a4b);const Ci=_0x2cc1b3(0x4d4),Ei=_0x2cc1b3(0x3dd);let ue=class extends o['Disposable']{constructor(_0x9aa984,_0x59039b){const _0x4b0d74=_0x2cc1b3;super(),this[_0x4b0d74(0x46f)]=_0x9aa984,this[_0x4b0d74(0x3f8)]=_0x59039b,this[_0x4b0d74(0x4e1)]();}[_0x2cc1b3(0x4e1)](){const _0x1f7833=_0x2cc1b3;this['disposeWithMe'](o[_0x1f7833(0x168)](this[_0x1f7833(0x46f)][_0x1f7833(0x1e6)][_0x1f7833(0x4c8)](()=>{const _0x591ac4=_0x1f7833;var _0x4d422b;const _0x23dcc9=this[_0x591ac4(0x46f)][_0x591ac4(0x4cd)]();let _0xc18513=(_0x4d422b=this[_0x591ac4(0x3f8)][_0x591ac4(0x42f)](Ci))!=null?_0x4d422b:Ei;_0x23dcc9 instanceof o[_0x591ac4(0x461)]&&(_0xc18513=_0x23dcc9[_0x591ac4(0x2bc)]),document['title']=_0xc18513;})));}};ue=pi([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x2eb)],ue),it(0x0,o[_0x2cc1b3(0x298)]),it(0x1,o[_0x2cc1b3(0x149)])],ue);var bi=Object[_0x2cc1b3(0x1b2)],Ti=Object[_0x2cc1b3(0x47b)],Ri=(_0x36af33,_0x308810,_0xf955a2,_0x36020f)=>{const _0x3eeaf1=_0x2cc1b3;for(var _0x5172aa=_0x36020f>0x1?void 0x0:_0x36020f?Ti(_0x308810,_0xf955a2):_0x308810,_0x592d4b=_0x36af33[_0x3eeaf1(0x209)]-0x1,_0x7f11df;_0x592d4b>=0x0;_0x592d4b--)(_0x7f11df=_0x36af33[_0x592d4b])&&(_0x5172aa=(_0x36020f?_0x7f11df(_0x308810,_0xf955a2,_0x5172aa):_0x7f11df(_0x5172aa))||_0x5172aa);return _0x36020f&&_0x5172aa&&bi(_0x308810,_0xf955a2,_0x5172aa),_0x5172aa;},nt=(_0x114048,_0x2e15f3)=>(_0xc5ae2f,_0x254586)=>_0x2e15f3(_0xc5ae2f,_0x254586,_0x114048);exports[_0x2cc1b3(0x4b5)]=class{constructor(_0x37e2ee,_0x39f408){const _0x31d3d5=_0x2cc1b3;this[_0x31d3d5(0x3f8)]=_0x37e2ee,this['_httpService']=_0x39f408;}async[_0x2cc1b3(0x1d3)](_0x57d1cb,_0x56e558){const _0x4a9287=_0x2cc1b3;var _0x131d4c;const {unitID:_0x570ca3,type:_0x1a07c8,revision:_0x509203=0x0}=_0x56e558,_0x2d8195=this[_0x4a9287(0x1f2)]()+'/'+_0x1a07c8+_0x4a9287(0x1c8)+_0x570ca3+_0x4a9287(0x216)+_0x509203,_0x2cdd62=(await this[_0x4a9287(0x15c)][_0x4a9287(0x3ba)](_0x2d8195))[_0x4a9287(0x4f8)],_0x233b35=(_0x131d4c=_0x2cdd62[_0x4a9287(0x4b3)])==null?void 0x0:_0x131d4c[_0x4a9287(0x27a)];if(_0x233b35){const _0xeffb77=_0x233b35==null?void 0x0:_0x233b35[_0x4a9287(0x522)],_0x57d430=o[_0x4a9287(0x370)][_0x4a9287(0x459)](o[_0x4a9287(0x3c8)](_0xeffb77));_0x233b35[_0x4a9287(0x522)]=_0x57d430,Object['entries'](_0x233b35['sheets'])['forEach'](([,_0x31d23])=>{const _0x3ebcd9=_0x4a9287,_0x87a868=_0x31d23[_0x3ebcd9(0x522)],_0x1b26fb=o[_0x3ebcd9(0x370)][_0x3ebcd9(0x459)](o[_0x3ebcd9(0x3c8)](_0x87a868));_0x31d23[_0x3ebcd9(0x522)]=_0x1b26fb;});}return _0x2cdd62;}async[_0x2cc1b3(0x16b)](_0x21b618,_0x5a0b8d){const _0x43be7a=_0x2cc1b3,{unitID:_0x448869,type:_0x14bab0,blockID:_0x34535b}=_0x5a0b8d,_0x1b9139=this[_0x43be7a(0x4b1)]()+'/'+_0x14bab0+_0x43be7a(0x1c8)+_0x448869+_0x43be7a(0x33f)+_0x34535b;return(await this['_httpService'][_0x43be7a(0x3ba)](_0x1b9139))['body'];}async[_0x2cc1b3(0x259)](_0x360f17,_0x80a10){const _0x5063eb=_0x2cc1b3,{unitID:_0x4acc7d,type:_0x1a5b93,from:_0x62bc08,to:_0x7e7c0d}=_0x80a10,_0x1573cb=this['_getAPIPrefix']()+'/'+_0x1a5b93+_0x5063eb(0x1c8)+_0x4acc7d+_0x5063eb(0x1cd)+_0x62bc08+_0x5063eb(0x4a4)+_0x7e7c0d;return(await this[_0x5063eb(0x15c)][_0x5063eb(0x3ba)](_0x1573cb))[_0x5063eb(0x4f8)];}[_0x2cc1b3(0x1f2)](){const _0x1a4a9b=_0x2cc1b3;var _0x348fce;return(_0x348fce=this[_0x1a4a9b(0x3f8)][_0x1a4a9b(0x42f)](lt))!=null?_0x348fce:this[_0x1a4a9b(0x4b1)]();}['_getAPIPrefix'](){const _0x597570=_0x2cc1b3;var _0x2b14f2;return(_0x2b14f2=this[_0x597570(0x3f8)][_0x597570(0x42f)](ct))!=null?_0x2b14f2:Bt;}async['getResourcesRequest'](_0x1a952a,_0x4487e5){const _0x47d6a0=_0x2cc1b3,_0x2e1285=_0x47d6a0(0x2dc)+_0x4487e5[_0x47d6a0(0x3e9)]+_0x47d6a0(0x1c8)+_0x4487e5[_0x47d6a0(0x3ee)]+_0x47d6a0(0x2dd);return(await this['_httpService']['get'](_0x2e1285,{'params':{'resourceId':JSON['stringify'](_0x4487e5['resourceIDs'])}}))[_0x47d6a0(0x4f8)];}[_0x2cc1b3(0x1e7)](){const _0xf23c40=_0x2cc1b3;throw new Error(_0xf23c40(0x514));}[_0x2cc1b3(0x413)](){const _0xf6843=_0x2cc1b3;throw new Error(_0xf6843(0x514));}[_0x2cc1b3(0x29a)](){const _0x234b22=_0x2cc1b3;throw new Error(_0x234b22(0x514));}},exports[_0x2cc1b3(0x4b5)]=Ri([nt(0x0,o[_0x2cc1b3(0x149)]),nt(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)]))],exports[_0x2cc1b3(0x4b5)]);var Oi=Object[_0x2cc1b3(0x1b2)],Di=Object[_0x2cc1b3(0x47b)],Pi=(_0x2b3b7b,_0x2e77c4,_0x54865a,_0x2b29eb)=>{const _0x29586b=_0x2cc1b3;for(var _0x21170b=_0x2b29eb>0x1?void 0x0:_0x2b29eb?Di(_0x2e77c4,_0x54865a):_0x2e77c4,_0x3f4ef0=_0x2b3b7b[_0x29586b(0x209)]-0x1,_0x365ccb;_0x3f4ef0>=0x0;_0x3f4ef0--)(_0x365ccb=_0x2b3b7b[_0x3f4ef0])&&(_0x21170b=(_0x2b29eb?_0x365ccb(_0x2e77c4,_0x54865a,_0x21170b):_0x365ccb(_0x21170b))||_0x21170b);return _0x2b29eb&&_0x21170b&&Oi(_0x2e77c4,_0x54865a,_0x21170b),_0x21170b;},re=(_0x2d56b3,_0x3e29a1)=>(_0x44124b,_0xb2cd15)=>_0x3e29a1(_0x44124b,_0xb2cd15,_0x2d56b3);let je=class extends o[_0x2cc1b3(0x3e3)]{constructor(_0x31db25,_0x4ab10d,_0x361abd,_0x2d7eab,_0x58e576){const _0x2b7680=_0x2cc1b3;super(_0x31db25,_0x4ab10d,_0x361abd),this[_0x2b7680(0x2ad)]=_0x2d7eab,this[_0x2b7680(0x402)]=_0x58e576;}[_0x2cc1b3(0x3ff)](_0x3b47b8,_0x4eaa76){const _0x3d7ea3=_0x2cc1b3,_0x1c9d19=this[_0x3d7ea3(0x43d)](_0x3b47b8);if(_0x1c9d19)try{const _0x222d35=this['_transformStack'](_0x1c9d19,_0x4eaa76);this['_substituteUndoStack'](_0x3b47b8,_0x222d35);}catch(_0x14dbd9){this[_0x3d7ea3(0x402)][_0x3d7ea3(0x307)]('[CollaborationUndoRedoService]',_0x14dbd9),this[_0x3d7ea3(0x49e)](_0x3b47b8);}const _0x4eb5e5=this[_0x3d7ea3(0x405)](_0x3b47b8);if(_0x4eb5e5)try{const _0x5574fb=this[_0x3d7ea3(0x14a)](_0x4eb5e5,_0x4eaa76);this[_0x3d7ea3(0x217)](_0x3b47b8,_0x5574fb);}catch(_0x3b7c95){this[_0x3d7ea3(0x402)][_0x3d7ea3(0x307)](_0x3b7c95),this[_0x3d7ea3(0x43a)](_0x3b47b8);}}[_0x2cc1b3(0x49e)](_0xdcdfc9){const _0x361682=_0x2cc1b3,_0x3cda55=this[_0x361682(0x43d)](_0xdcdfc9);_0x3cda55&&(_0x3cda55[_0x361682(0x209)]=0x0,this[_0x361682(0x3ac)]());}[_0x2cc1b3(0x43a)](_0x292c6b){const _0x1694a2=_0x2cc1b3,_0x10fbfc=this[_0x1694a2(0x405)](_0x292c6b);_0x10fbfc&&(_0x10fbfc[_0x1694a2(0x209)]=0x0,this['_updateStatus']());}[_0x2cc1b3(0x394)](_0x27ebea,_0x294277){const _0xd7b125=_0x2cc1b3;this[_0xd7b125(0x2fb)][_0xd7b125(0x1b8)](_0x27ebea,_0x294277),this[_0xd7b125(0x3ac)]();}[_0x2cc1b3(0x217)](_0x2fcf0c,_0x235cbf){const _0x43fb93=_0x2cc1b3;this[_0x43fb93(0x37c)][_0x43fb93(0x1b8)](_0x2fcf0c,_0x235cbf),this[_0x43fb93(0x3ac)]();}[_0x2cc1b3(0x14a)](_0x460883,_0x1c085c){const _0x165559=_0x2cc1b3,_0x2394af=[];let _0x54e7b4=_0x1c085c,_0xa26f3c=_0x1c085c;for(let _0x2d109f=_0x460883[_0x165559(0x209)]-0x1;_0x2d109f>=0x0;_0x2d109f--){const {unitID:_0x223b8e,undoMutations:_0x3a9583,redoMutations:_0x4a973c}=_0x460883[_0x2d109f],_0x48a4b9=this[_0x165559(0x2ad)][_0x165559(0x525)](_0x54e7b4,_0x3a9583),_0x39fd18=this[_0x165559(0x2ad)][_0x165559(0x525)](_0xa26f3c,_0x4a973c);if(_['isTransformMutationsWithChangesetFailure'](_0x48a4b9)||_[_0x165559(0x187)](_0x39fd18)){this[_0x165559(0x402)][_0x165559(0x307)](_0x165559(0x26a),'transformStack\x20failed!',_0x48a4b9,_0x39fd18);break;}_0x54e7b4=_0x48a4b9[_0x165559(0x4fc)],_0xa26f3c=_0x39fd18[_0x165559(0x4fc)],_0x2394af[_0x165559(0x4bd)]({'unitID':_0x223b8e,'undoMutations':_0x48a4b9['m2Prime'],'redoMutations':_0x39fd18[_0x165559(0x285)]});}return _0x2394af[_0x165559(0x1b9)]();}};function _0x4b8d(_0x5240d0,_0x29a010){const _0x1e5415=_0x1e54();return _0x4b8d=function(_0x4b8d19,_0x47f08d){_0x4b8d19=_0x4b8d19-0x145;let _0xa5532e=_0x1e5415[_0x4b8d19];return _0xa5532e;},_0x4b8d(_0x5240d0,_0x29a010);}je=Pi([re(0x0,o[_0x2cc1b3(0x298)]),re(0x1,o[_0x2cc1b3(0x1cf)]),re(0x2,o[_0x2cc1b3(0x45e)]),re(0x3,_[_0x2cc1b3(0x4ca)]),re(0x4,o['ILogService'])],je);class Ut extends o[_0x2cc1b3(0x516)]{constructor(){const _0x331437=_0x2cc1b3;super(),u(this,_0x331437(0x417)),this[_0x331437(0x417)]=v['fromEvent'](window,_0x331437(0x2b8))['pipe'](v[_0x331437(0x1ef)](this[_0x331437(0x23e)]),v[_0x331437(0x345)](0x1),v['mapTo'](void 0x0));}[_0x2cc1b3(0x190)](_0x29362a,_0x5aa2d9,_0x271455=!0x1){const _0x1dfc68=_0x2cc1b3,_0x18a8f3=new URL(window[_0x1dfc68(0x2cf)][_0x1dfc68(0x44a)]);_0x18a8f3['searchParams'][_0x1dfc68(0x1b8)](_0x29362a,_0x5aa2d9),_0x271455?window[_0x1dfc68(0x515)][_0x1dfc68(0x1b5)]('','',_0x18a8f3[_0x1dfc68(0x28e)]()):window['history']['pushState']('','',_0x18a8f3[_0x1dfc68(0x28e)]());}[_0x2cc1b3(0x294)](_0x4f2b85,_0x4a3790=!0x1){const _0x472851=_0x2cc1b3,_0x3001e5=new URL(window[_0x472851(0x2cf)][_0x472851(0x44a)]);_0x3001e5[_0x472851(0x3aa)][_0x472851(0x386)](_0x4f2b85),_0x4a3790?window['history'][_0x472851(0x1b5)]('','',_0x3001e5['toString']()):window[_0x472851(0x515)][_0x472851(0x29b)]('','',_0x3001e5[_0x472851(0x28e)]());}[_0x2cc1b3(0x348)](_0x3ee6bf){const _0x5446aa=_0x2cc1b3;var _0x5639e6;return(_0x5639e6=new URL(window['location'][_0x5446aa(0x44a)])[_0x5446aa(0x3aa)]['get'](_0x3ee6bf))!=null?_0x5639e6:void 0x0;}}const Pe=_0x2cc1b3(0x159),Ui=_0x2cc1b3(0x20d),Mi=_0x2cc1b3(0x365),oe=0x6,wi=1.5,Ue=0x4,yi=1.5,Ni='rgba(255,\x20255,\x20255,\x200.01)';class rt{constructor(_0x191ec5,_0x4836a9,_0xd4886d,_0x42166d){const _0x19e3f8=_0x2cc1b3;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0x19e3f8(0x221),null),u(this,_0x19e3f8(0x18b),null),u(this,'_hideTimer',null),u(this,_0x19e3f8(0x32c),null),(this[_0x19e3f8(0x214)]=_0x191ec5,this[_0x19e3f8(0x151)]=_0x4836a9,this[_0x19e3f8(0x3a7)]=_0xd4886d,this[_0x19e3f8(0x162)]=_0x42166d,this[_0x19e3f8(0x42a)]());}set[_0x2cc1b3(0x434)](_0x4f4311){const _0x55571b=_0x2cc1b3;_0x4f4311?(this[_0x55571b(0x18b)]&&this['_anchorDot'][_0x55571b(0x3bf)](),this[_0x55571b(0x221)]&&this[_0x55571b(0x221)][_0x55571b(0x4f2)]()):(this[_0x55571b(0x18b)]&&this[_0x55571b(0x18b)][_0x55571b(0x4f2)](),this[_0x55571b(0x221)]&&this[_0x55571b(0x221)][_0x55571b(0x3bf)]());}[_0x2cc1b3(0x22c)](){const _0x208924=_0x2cc1b3;for(const _0x8c10c7 of this[_0x208924(0x179)])_0x8c10c7[_0x208924(0x22c)]();this[_0x208924(0x221)]&&this[_0x208924(0x221)]['dispose'](),this[_0x208924(0x18b)]&&this[_0x208924(0x18b)][_0x208924(0x22c)](),this['_anchor']&&this['_anchor'][_0x208924(0x22c)](),this[_0x208924(0x32c)]&&this[_0x208924(0x32c)]();}[_0x2cc1b3(0x42a)](){const _0x390152=_0x2cc1b3;var _0x40aeb9;const {_docSkeleton:_0x2605db,_document:_0x53ba47}=this,{color:_0x2327ac,name:_0x9d4cc,ranges:_0x77e325}=this[_0x390152(0x214)],_0xe0e00a=_0x53ba47[_0x390152(0x153)](),{docsLeft:_0x308d2c,docsTop:_0x5323db}=_0xe0e00a,_0x33e81c=new b[(_0x390152(0x2c0))](_0xe0e00a,_0x2605db);for(const {startOffset:_0x21b9da,endOffset:_0x383657,collapsed:_0x1f0ddb,isActive:_0x3ce876}of _0x77e325){const _0x575012=_0x2605db[_0x390152(0x169)](_0x21b9da),_0x40faa4=_0x2605db['findNodePositionByCharIndex'](_0x383657);if(_0x3ce876){const {contentBoxPointGroup:_0x56b51f}=_0x33e81c[_0x390152(0x4ab)](_0x40faa4,_0x40faa4);if(_0x56b51f[_0x390152(0x209)]===0x0)continue;this['_drawAnchor'](_0x2327ac,_0x56b51f,_0x308d2c,_0x5323db,_0x9d4cc),this[_0x390152(0x32c)]=this[_0x390152(0x374)]();}if(!_0x1f0ddb&&_0x575012&&_0x40faa4){if(b['isValidRectRange'](_0x575012,_0x40faa4)){const _0x23e12c=new b[(_0x390152(0x246))](_0xe0e00a,_0x2605db),{pointGroup:_0x5cb889}=(_0x40aeb9=_0x23e12c[_0x390152(0x4ab)](_0x575012,_0x40faa4))!=null?_0x40aeb9:{};if(_0x5cb889==null||_0x5cb889['length']===0x0)continue;this['_drawRectRange'](_0x2327ac,_0x5cb889,_0x308d2c,_0x5323db);}else{const {contentBoxPointGroup:_0x246372}=_0x33e81c[_0x390152(0x4ab)](_0x575012,_0x40faa4);if(_0x246372[_0x390152(0x209)]===0x0)continue;this[_0x390152(0x146)](_0x2327ac,_0x246372,_0x308d2c,_0x5323db);}}}}['_drawAnchor'](_0x2a5870,_0x54bab8,_0x175bf5,_0x65b332,_0x2315c1){const _0x569023=_0x2cc1b3,_0x215046=this[_0x569023(0x1ce)](_0x54bab8),{left:_0x1dd34d,top:_0x26c3c0,height:_0x4aabf4}=_0x215046,_0x5a7018=this[_0x569023(0x17b)](),_0x5c525f=yi/_0x5a7018,_0xae793=new b[(_0x569023(0x2bd))](Pe+o[_0x569023(0x492)][_0x569023(0x39f)](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332,'height':_0x4aabf4,'width':wi,'fill':_0x2a5870||b[_0x569023(0x249)](o['COLORS'][_0x569023(0x242)],0x0),'strokeWidth':_0x5c525f,'stroke':Ni,'evented':!0x0});this[_0x569023(0x26d)]=_0xae793,this[_0x569023(0x151)][_0x569023(0x340)](_0xae793,b[_0x569023(0x25c)]);const _0x46f016=new b[(_0x569023(0x2bd))](Pe+o[_0x569023(0x492)]['generateRandomId'](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x2a5870||b[_0x569023(0x249)](o[_0x569023(0x499)][_0x569023(0x242)],0x0),'strokeWidth':0x0,'stroke':_0x2a5870||b[_0x569023(0x249)](o[_0x569023(0x499)][_0x569023(0x242)],0x0),'evented':!0x1});this[_0x569023(0x18b)]=_0x46f016,this[_0x569023(0x151)][_0x569023(0x340)](_0x46f016,b[_0x569023(0x25c)]);const _0x5cf0bd=new Ee(Pe+o[_0x569023(0x492)]['generateRandomId'](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332-le,'text':_0x2315c1,'color':_0x2a5870});this[_0x569023(0x221)]=_0x5cf0bd,this[_0x569023(0x151)][_0x569023(0x340)](_0x5cf0bd,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x2cc1b3(0x374)](){const _0xf5ad7e=_0x2cc1b3,_0x358f61=this['_anchor'][_0xf5ad7e(0x4e3)][_0xf5ad7e(0x155)](()=>{const _0x2a1e39=_0xf5ad7e;this[_0x2a1e39(0x434)]=!0x0;}),_0x104151=this[_0xf5ad7e(0x26d)]['onPointerLeave$'][_0xf5ad7e(0x155)](()=>{const _0x596762=_0xf5ad7e;this[_0x596762(0x2f7)]&&clearTimeout(this[_0x596762(0x2f7)]),this[_0x596762(0x2f7)]=setTimeout(()=>{const _0x21daf3=_0x596762;this[_0x21daf3(0x434)]=!0x1;},0x7d0);});return()=>{const _0x185def=_0xf5ad7e;_0x358f61[_0x185def(0x265)](),_0x104151['unsubscribe']();};}[_0x2cc1b3(0x146)](_0x46623a,_0xcca4b,_0x1afa75,_0x1cc06f){const _0x3bcd8e=_0x2cc1b3,_0x3b39fb=new o[(_0x3bcd8e(0x409))](_0x46623a)[_0x3bcd8e(0x1e1)](0.2)[_0x3bcd8e(0x2d3)](),_0x41eae7=new b[(_0x3bcd8e(0x447))](Ui+o[_0x3bcd8e(0x492)]['generateRandomId'](oe),{'pointsGroup':_0xcca4b,'fill':_0x3b39fb||b[_0x3bcd8e(0x249)](o[_0x3bcd8e(0x499)]['black'],0.2),'left':_0x1afa75,'top':_0x1cc06f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3bcd8e(0x179)][_0x3bcd8e(0x4bd)](_0x41eae7),this[_0x3bcd8e(0x151)]['addObject'](_0x41eae7,b[_0x3bcd8e(0x25c)]);}['_drawRectRange'](_0x1e292d,_0x2a1e4b,_0x201d88,_0x2fa7ff){const _0x52ffc7=_0x2cc1b3,_0x164e9f=new o[(_0x52ffc7(0x409))](_0x1e292d)[_0x52ffc7(0x1e1)](0.2)['toRgbString'](),_0x10f1c0=new b['RegularPolygon'](Mi+o[_0x52ffc7(0x492)][_0x52ffc7(0x39f)](oe),{'pointsGroup':_0x2a1e4b,'fill':_0x164e9f||b[_0x52ffc7(0x249)](o[_0x52ffc7(0x499)][_0x52ffc7(0x242)],0.2),'left':_0x201d88,'top':_0x2fa7ff,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52ffc7(0x179)][_0x52ffc7(0x4bd)](_0x10f1c0),this[_0x52ffc7(0x151)][_0x52ffc7(0x340)](_0x10f1c0,b[_0x52ffc7(0x25c)]);}[_0x2cc1b3(0x1ce)](_0x1f229e){const _0x3f5f6e=_0x1f229e[0x0],_0x5a88d1=_0x3f5f6e[0x0],_0x9de6d5=_0x3f5f6e[0x2],{x:_0x3407f5,y:_0x548131}=_0x5a88d1,{x:_0x8605d9,y:_0x34e3c0}=_0x9de6d5;return{'left':_0x3407f5,'top':_0x548131,'width':_0x8605d9-_0x3407f5,'height':_0x34e3c0-_0x548131};}['_getScale'](){const _0x82eea3=_0x2cc1b3,{scaleX:_0x736d68,scaleY:_0x20a5df}=this[_0x82eea3(0x151)][_0x82eea3(0x263)]();return Math['max'](_0x736d68,_0x20a5df);}}var Li=Object[_0x2cc1b3(0x1b2)],Ai=Object[_0x2cc1b3(0x47b)],ji=(_0x3de6b3,_0x5c9004,_0x2db240,_0x367494)=>{const _0x54af20=_0x2cc1b3;for(var _0x936512=_0x367494>0x1?void 0x0:_0x367494?Ai(_0x5c9004,_0x2db240):_0x5c9004,_0x43da06=_0x3de6b3[_0x54af20(0x209)]-0x1,_0x27f796;_0x43da06>=0x0;_0x43da06--)(_0x27f796=_0x3de6b3[_0x43da06])&&(_0x936512=(_0x367494?_0x27f796(_0x5c9004,_0x2db240,_0x936512):_0x27f796(_0x936512))||_0x936512);return _0x367494&&_0x936512&&Li(_0x5c9004,_0x2db240,_0x936512),_0x936512;},_e=(_0x399fb6,_0xee071b)=>(_0x559243,_0x414367)=>_0xee071b(_0x559243,_0x414367,_0x399fb6);let de=class extends o[_0x2cc1b3(0x516)]{constructor(_0x42b3bf,_0x545718,_0x5e902e,_0x3f7f4e,_0x101c1b){const _0x39ea19=_0x2cc1b3;super(),u(this,_0x39ea19(0x24d),[]),u(this,_0x39ea19(0x3ce),[]),(this[_0x39ea19(0x1c3)]=_0x42b3bf,this[_0x39ea19(0x160)]=_0x545718,this['_collabCursorController']=_0x5e902e,this[_0x39ea19(0x466)]=_0x3f7f4e,this[_0x39ea19(0x34d)]=_0x101c1b,this[_0x39ea19(0x4e1)]());}[_0x2cc1b3(0x4e1)](){const _0x572d6e=_0x2cc1b3,_0x3f1607=this[_0x572d6e(0x1c3)][_0x572d6e(0x440)],_0x527ff2=this[_0x572d6e(0x160)];this[_0x572d6e(0x4be)](v[_0x572d6e(0x3f5)]([this[_0x572d6e(0x502)][_0x572d6e(0x4a2)](_0x3f1607),this[_0x572d6e(0x34d)][_0x572d6e(0x1db)]])[_0x572d6e(0x478)](C['map'](([_0x3f4dcc,_0x5c783d])=>({'skeleton':_0x527ff2['getSkeleton'](),'cursors':[..._0x3f4dcc[_0x572d6e(0x4d7)]()]['flatMap'](_0xad58a4=>({..._0xad58a4,'color':_0x5c783d[_0xad58a4[_0x572d6e(0x404)]]}))})))[_0x572d6e(0x4c8)](_0x593e52=>{const _0x1444fe=_0x572d6e;if(this[_0x1444fe(0x247)](),_0x593e52){const {skeleton:_0x2b13b9,cursors:_0x5293d5}=_0x593e52;this[_0x1444fe(0x33d)](_0x2b13b9,_0x5293d5);}})),this[_0x572d6e(0x2c1)](),this[_0x572d6e(0x3a0)]();}['_updateCollabCursors'](_0x5aff3c,_0x145b55){const _0x12d361=_0x2cc1b3,{scene:_0x413605,mainComponent:_0x1982eb}=this[_0x12d361(0x1c3)],_0x6c0ef=_0x145b55['map'](_0x286acd=>new rt(_0x286acd,_0x413605,_0x5aff3c,_0x1982eb));this[_0x12d361(0x24d)]=_0x6c0ef,this[_0x12d361(0x3ce)]=_0x145b55;}[_0x2cc1b3(0x2c8)](){const _0x1107b6=_0x2cc1b3;this[_0x1107b6(0x247)]();const {scene:_0x293fcc,mainComponent:_0x2d5c25}=this[_0x1107b6(0x1c3)],_0xe0c817=this[_0x1107b6(0x160)][_0x1107b6(0x513)](),_0x1814be=this[_0x1107b6(0x3ce)][_0x1107b6(0x2a8)](_0x51c690=>new rt(_0x51c690,_0x293fcc,_0xe0c817,_0x2d5c25));this[_0x1107b6(0x24d)]=_0x1814be;}[_0x2cc1b3(0x247)](){const _0xb102db=_0x2cc1b3;this[_0xb102db(0x24d)][_0xb102db(0x34c)](_0x34e5fa=>_0x34e5fa[_0xb102db(0x22c)]()),this[_0xb102db(0x24d)]=[];}['_initCommandExecutedListener'](){const _0xb06d85=_0x2cc1b3,_0x41e245=[P[_0xb06d85(0x3c2)]['id']];this[_0xb06d85(0x4be)](this[_0xb06d85(0x466)]['onCommandExecuted'](_0x2ee8bb=>{const _0x27e6dc=_0xb06d85;_0x41e245[_0x27e6dc(0x15d)](_0x2ee8bb['id'])&&_0x2ee8bb['params'][_0x27e6dc(0x440)]===this['_context'][_0x27e6dc(0x440)]&&this['_refreshCollabCursors']();}));}[_0x2cc1b3(0x2c1)](){const _0x3ba2e2=_0x2cc1b3;this[_0x3ba2e2(0x4be)](o[_0x3ba2e2(0x507)](this[_0x3ba2e2(0x1c3)]['engine']['onTransformChange$'])[_0x3ba2e2(0x478)](C[_0x3ba2e2(0x277)](_0x308dbe=>_0x308dbe[_0x3ba2e2(0x3e9)]===b[_0x3ba2e2(0x233)][_0x3ba2e2(0x36c)]),C[_0x3ba2e2(0x21f)](0x10))['subscribe'](()=>{const _0x57bebd=_0x3ba2e2;this[_0x57bebd(0x2c8)]();}));}};de=ji([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x387)],de),_e(0x1,o['Inject'](P[_0x2cc1b3(0x210)])),_e(0x2,o[_0x2cc1b3(0x333)](Z)),_e(0x3,o[_0x2cc1b3(0x1cf)]),_e(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x185)]))],de);function _0x1e54(){const _0x2665ba=['CommentService','makeDirty','Univer','COLLAB_SUBMIT_CHANGESET_URL','loadSheet','merge','_onConnectionFailed','APPLY_REVISION_CONFILICT','LocalUndoRedoService','SUCCUSS','0\x200\x2017\x2016','CollaborationSocketService','_roomMembers$','_handleJoinEvent','type','YUUMI_UNABLE_LOAD_URL','some','CONFLICT','onSendChangeset','unitID','ISnapshotServerService','_sheetTransformSelectionsService','liveShareNewHost','endRow','_docTransformSelectionsService','unit','combineLatest','collaboration.single-unit.warning','collabStatus.fetchMiss','_configService','slice','_initStatusListener','Subject','isPermissionRej','cmd','_injector','transformUndoRedo','collabStatus.offline','forwardRef','_logService','_entityInit$','color','_getRedoStack','_refRangeService','LICENSE_IMPORT_SIZE_EXCEEDED','_awaitingChangeset','ColorKit','setItem','UNIVER_DOC','font','resolve','PERMISSION_DENIED','_status$','closeSession','xlink:href','handleInsertRow','saveSheetBlock','fillRule','deleteCollaborator','_compressMutationService','urlChange$','_getMergeRange','_urlService','skeleton','startColumn','ws://127.0.0.1:8000/universer-api/comb/connect','_getCurrentRevision','setInterval','_toggleOffline','assign','isTransformMutationsWithChangesetSuccess','rxjs','CommandType','univer-offline','CompressMutationService','_executeRemoteChangeset','InsertRangeMoveRightCommandId','width','[SyncedState]:\x20received\x20acknowledgement.','_render','DeleteRangeMoveLeftCommandId','conflict.content','_onJoinRoomEvent','IPermissionService','getConfig','getImageSourceCache','getCurrentSelections','fetching\x20missing\x20changesets\x20from\x20','_backgroundColor','_hover','getOwnPropertySymbols','_socketService','handleDeleteRangeMoveLeft','MUTATION','/universer-api/oidc/authpage','_clearRedo','?size=','enableAuthServer','_getUndoStack','POST','collabCursorState$','unitId','_handleEvent','getUnhiddenWorksheets','_lastPointer','_cachedData','BehaviorSubject','runRefRangeMutations','RegularPolygon','fetch_missing','@univerjs/ui','href','_submitChangeset','putCollaborators','_decreaseWaiting','M0\x200H16V16H0z','_initModules','_onRefRangeChange','DocStateChangeManagerService','drawWith','_removeClearOtherTimer','SheetSkeletonManagerService','_socket','revision','transformRemoteChangeset','_showConflictNotification','encode','NOT_COLLAB','439839tOqTFk','[CollaborationState]:\x20apply\x20error!','_online','IContextService','_clearScheduledTask','Disposable','Workbook','_disableEditing','EffectRefRangId','_onLocalMutation','SnapshotService','_commandService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','isTransformChangesetsSuccess','30604keWKsK','_updateLocalCache','LOGIN_URL_KEY','_waitForHeartbeatResponse','getImage','verdancy600','_univerInstanceService','pending','error$','_createInitialStateImpl','routeKey','30Baqmes','_messageService','_uiPartsService','_sendHeartbeatTimer','pipe','_session','row','getOwnPropertyDescriptor','_getSheetObject','key','m1Prime','_queuedRemoteChangesets','_labelPosition','ALREADY_EXISTS','none','file','socket\x20close','fill','_createHandler','HEARTBEAT_INTERVAL_KEY','HEADER_MENU','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','substring','[CollaborationSessionService]','INTERNAL_ERROR','[CollaborationSessionService]:\x20socket\x20error','_incrementRevisionNumber','reject','onCommandExecuted','complete','Tools','_updateURLWithCurrentState','12655zaajgM','SheetPermissionInitController','ERROR_IMAGE_TYPE','reduce','APPLY_NON_SEQUENTIAL_REVISION','COLORS','UPDATE_CURSOR','sequenceExecute','/object/','objectID','_clearUndo','fetchThroughInterceptors','fillText','_sendingTimer','getCollabCursors$','selections','&to=','append','_clearHeartbeatTimer','loadOfflineData','IUndoRedoService','compose','RevisionService','getRangePointData','_transformUndoRedoStack','@univerjs/drawing','_updateState','/collaborator','_undoRedoService','_getAPIPrefix','Starting','snapshot','objectType','SnapshotServerOverHTTPService','LICENSE_MAX_UNITS_EXCEEDED','_range','UPDATE_PERMISSION_OBJ','arc','ILogService','extend','registerHTTPInterceptor','push','disposeWithMe','permission.title','currentSkeleton$','/-/object/list','prototype','_http','_userManagerService','status','_onUserLeave','change$','subscribe','max','ITransformService','_getSignURL','rxjs/operators','getFocusedUnit','getSheetBySheetId','event$','onTransformIME','open$','UNDEFINED','_type','DEFAULT_FILE_NAME','_getUploadFileURL','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','values','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LifecycleStages','find','collaMsg','userID','csAckEvent','_clearCollaborationTimeoutTimer','IHTTPImplementation','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_init','UNIVER_PROJECT','onPointerEnter$','_onRemoteRejected','_renderManagerService','handleInsertCol','_registerRenderDependencies','_tryEnsureSocket','method','headers','image/png','?url=','FETCH_MISSING','fromCollab','socket\x20open.','_collaborationTimeoutTimer','startRow','show','UNIVER_COLLABORATION_CLIENT_PLUGIN','round','_getLoginPath','toggleOffline','mergeOverrideWithDependencies','body','_scheduleClearOtherTimer','_replaceFileID','joinRsp','c1Prime','_acknowledgedAwaitingChangeset','CHANGESET_ACK','status$','univer-pro.collaboration-client.single-active-unit-service','onPointerLeave$','_collabCursorController','_onConnectionOpen','_assignedColors','InsertRowCommandId','add','fromEventSubject','/-/object/-/batch_allowed','1em','mapDocumentTypeToUniverType','setCurrentUser','image/gif','INVALID_ARGUMENT','_notificationService','pluginName','useDependency','@univerjs/network','AuthzIoHttpService','getSkeleton','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','history','RxDisposable','csRejEvent','joinEvent','2922828YOMrfH','_config','@univerjs/sheets-ui','_onRemoteChangeset','[DataLoaderController]','_toggleOnline','deepClone','JOIN','startsWith','originalMeta','getMember','liveShareOperation','transformMutationsWithChangeset','\x20-\x20','div','UNAUTHENTICATED','SheetCollaborationEntity','_drawTextRange','lodash/debounce','_retryConnectingTimer','IConfigService','_transformStack','BASE64','getValue','WebURLService','CollaborationSessionService','INotificationService','_singleActiveUnitService','_scene','post','getOffsetConfig','SheetsSelectionsService','subscribeEvent','_sessions','CollaborationStatus','interceptor','collab-text-anchor-','getUnitId','38mBgtXa','_httpService','includes','svg','LocalCacheService','_docSkeletonManagerService','_hovered','_document','@univerjs/sheets','ACTIVE_UNIT_EVENT_CHANNEL','_state','_change$','_socketMessageSubscription','toDisposable','findNodePositionByCharIndex','all','getSheetBlock','[FetchMissState]','/universer-api/comb','COLLAB_SUBMIT_CHANGESET_URL_KEY','url(#off-line-single_clip0_910_343)','on-line-single','createInstance','PERMISSION_REJ','CollaborationEvent','onRemoteAck','handleInsertRangeMoveRight','[SyncedState]:\x20received\x20rejection.','7879wyVHlQ','responseType','_shapes','url(#$1','_getScale','_colorIndex','LIVESHARE_FETCH_OPERATIONS','session.will-retry','selection','updateMember','call','_clearOtherTimers','_setupBeforeClosingHandler','_clearTimeoutTimer','ThemeService','executeCommand','isTransformMutationsWithChangesetFailure','COMPLETION_FINISHED','icon','displayName','_anchorDot','translate(.97)','closePath','_collabCursorState$','awaitingChangeset','setParam','268cIvmuE','removeMember','Unknown\x20user','OTHER_CLIENTS_EDITING','_color','_scheduleTimestamp','getRelativeToViewportCoord','_name','unshift','replaceTextRanges','serializeDocRange','trim','HEARTBEAT_TIMEOUT_KEY','params','UNRECOGNIZED','attrs','debug','next','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_syncEditingCollabCursorService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity$','SessionStatus','isArray','/object','_timeoutTimer','editingUnit','_colorAssignService','c2Prime','IDLE','shouldCloseConn','/new_changes','_event$','defineProperty','WebSocketService','SetWorksheetActivateCommand','replaceState','IBeforeCloseService','function','set','reverse','getSheetId','evenodd','_transformUndoredo','SNAPSHOT_INVALID_SNAPSHOT','SEND_CHANGESET_TIMEOUT_KEY','textRanges','data','EXCHANGE_SIGN_URL_SERVER_URL_KEY','Module','_context','currentColor','_createInitialState','top','_collabSessionService','/unit/','\x20in\x20_schedule.','/allowed','_removeRoom','ERROR_IMAGE','/fetchmissing?from=','_getAnchorBounding','ICommandService','LIVESHARE_REQUEST_HOST','mutations','useRef','getUnitOnRev','conflict','_ws','[CollaborationSession]','handleDeleteRangeMoveUp','{fileID}','FETCH_MISS','HTTPService','currentTheme$','/universer-api/snapshot','_startCollaboration','_onConflict','encodeURIComponent','getUnitType','setAlpha','triggerDblclick','FileId','onPointerMove$','YUUMI_URL_COL_OUT_OF_RANGE','focused$','saveSnapshot','updatePermissionPoint','1953543yLTkap','clearTimeout','univerjs-icon\x20univerjs-icon-','baseRev','_collaborationSessionService','jiqing500','takeUntil','getCollabEntity','cursorInfo','_getSnapshotAPIPrefix','exhaustSavingTask','_ensureSubject','_onCursorUpdate','transformChangesets','_id','clear','_scheduleCollaborationTimeoutTimer','clipPath','getUnitStatus$','message$','_permissionService','failed\x20to\x20apply\x20missed\x20changesets!','localeService','tag','disposeUnit','path','MoveRangeCommandId','isActive','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getCurrent','parse','AUTHZ_URL_KEY','length','allowed','DataLoaderController','children','collab-text-range-','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','getCoordByCell','DocSkeletonManagerService','assignAColorForMemberID','json','getActiveRange','_cursor','getCurrentUser','/rev/','_substituteRedoStack','CHANGESET_REVISION_CONFILICT','getUniverSheetInstance','univer-pro.collaboration-client-socket-service','withCredentials','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','USERS_LEAVE','throttleTime','APPLY_PERMISSION_DENIED','_textBubble','LEAVE','off-line-single','_members','saveOfflineData','_unitID','InsertColCommandId','handleIRemoveRow','DependentOn','COLLAB_WEB_SOCKET_URL_KEY','initWorkbookPermissionChange','dispose','_sessionStatus$','getVpScrollXYInfoByPosToVp','IRemoteInstanceService','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','create','Shape','TRANSFORM_CHANGE_OBSERVABLE_TYPE','handleInsertRangeMoveDown','confirm','serializeCombRequest','UNIVER_SLIDE','...','_transformIMECache','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','collabStatus.synced','_transformRemoteChangesetByIMECache','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','dispose$','_roomMembers','roomMembers','readAsDataURL','black','getItem','getCurrentUnitForType','objectActions','NodePositionConvertToRectRange','_removeCollabCursors','_getSaveTimeout','getColor','isTransformMutationFailure','LICENSE_EXPORT_SIZE_EXCEEDED','react','_cursorShapes','_startSheetCollabCursor','getInterceptPoints','JSONX','_commentUpdate$','setTimeout','className','0\x200\x2016\x2016','AWAITING','UUID','UNKNOWN_CODE','onTransformRemoteChangesetByIMECache','fetchMissingChangesets','roles','getTypeOfUnitAdded$','TEXT_RANGE_LAYER_INDEX','_startDocCollabCursor','_docSyncEditingCollabCursorService','distinctUntilChanged','_sendHeartbeat','transformMutation','connectInjector','getAncestorScale','[OfflineState]:\x20received\x20changeset.','unsubscribe','eventID','_cursorInfo$','SNAPSHOT_SERVER_URL_KEY','collabStatus.notCollab','[CollaborationUndoRedoService]','_waitCount','red300','_anchor','string','_onCombEvent','_saveCache','UniverInstanceType','_socketReady','SNAPSHOT_URL_KEY','bottom','listCollaborators','COLLAB_WEB_SOCKET_URL','filter','onStateChange','[OfflineState]:\x20received\x20rejection.','workbook','appendMutation','_rescheduleHeartbeatEvent','requestParams','actions','_fetchMissChangesets','IMessageService','onStarting','not_collab','_handler','COMPRESS_MUTATION_APPLY','m2Prime','conflict.title','pauseCollaboration','hovered','DisposableCollection','_disabled','_createSocket','resend','_onCursorDelete','toString','_unlockTransition','_pendingMutations','_heartbeatTimer','DesktopCollaborationStatusDisplayController','_handleHeartbeatEvent','removeParam','getCurrentRevForDocument','getTime','AWAITING_WITH_PENDING','IUniverInstanceService','RETRY_CONNECTING_INTERVAL','saveChangeset','pushState','defs','url','IRenderManagerService','off-line-single_clip0_910_343','HELLO','gold400','put','collabStatus.syncing','#fff','_applyRemoteChangeset','_updateLocalCursor','min','map','subUnitId','session.connection-failed','CONNECTOR_DATA_TOO_LARGE','deserializeRangeWithSheet','_transformService','has','apply','commentUpdateEvent','_remoteChangesetQueue','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Injector','onRemoteChangeset','_getCtorByUniverType','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_retryCount','popstate','IUIPartsService','members','state','name','Rect','connection\x20error','_socket$','NodePositionConvertToCursor','_initResize','_transitionLocked','Optional','PSEUDO_FETCH_MISSING_RESULT','close','debounceTime','onlineStatusTitle','_refreshCollabCursors','/universer-api/stream/file/upload','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_updateSubUnitFromURLParams','univer-online-status-title','HEARTBEAT_INTERVAL','updateCursorEvent','location','code','clearInterval','save','toRgbString','CHANGESET_REJ','fillStyle','syncEditingCollabCursor','_replayCachedMutations','offline','EmptyMutation','defIds','awaiting','/universer-api/snapshot/','/resources','getActiveSheet','height','toggleOnline','ImageUploadStatusType','_HTTPService','restore','onMouseMove','onCommentUpdate','VIEWPORT_KEY','_initUnitPermissionChange','transformSelections','_snapshotServerService','symbol','Ready','indexOf','_selfUnitIDs','split','_setupSubUnitSync','NO_OTHER_CLIENTS_EDITING','LIVESHARE_TERMINATE','incrementRevForDocument','_docStateChangeManagerService','deserializeToCombResponse','unknown','LocaleService','_hideTimer','list','Error','image/bmp','_undoStacks','IMEInputManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','memberID','_exhaustRemoteChangesetQueue','use','session','ONLINE','OnLifecycle','setWaitCount','CollaborationController','SNAPSHOT_HAS_BEEN_REMOVED','error','_schedule','[PendingState]:\x20received\x20rejection.','image/jpg','auth.needGotoLoginAlert','#FFF','_collaborationPaused','RemoveRowCommandId','getDocRanges','newValue','_unitOnClients','cursorInfo$','onlineStatus','onSyncEditingCollabCursor','LICENSE_DISTRO_REJECTED','Vector2','awaiting_with_pending','UserManagerService','measureText','_transformPreviousActiveRange','parseProtocolChangeset','column','lineTo','[CollaborationEntity]','getCellPositionByOffset','onRemoteRej','RichTextEditingMutation','isInternalEditorID','isEditing','updateOfflineData','permissionRejEvent','SetSelectionsOperation','transformIMECache','backgroundColor','MessageType','close$','concat','_eventUnsubscribe','_collaborationController','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','RefRangeService','colorChannel1','_initStatusComponent','OnLineSingle','Inject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','\x20to\x20','JOINING','_send','CollaborationSession','_entities','WorkbookEditablePermission','requireSession','_localeService','_updateCollabCursors','delay','/block/','addObject','_revisionService','take','size','state$','shareReplay','from','objects','getParam','YUUMI_RATE_OVER_LIMIT','_initCloseConn','replace','forEach','_themeService','IAuthzIoService','useObservable','SUBMIT_CHANGESET','_initMergeInterceptor','session.room-full','NEW_CHANGESETS','@univerjs/docs','ImageIoService','_docTransformIMECacheService','LIVESHARE_OPERATION','_checkMissing','_localCacheService','range','TextSelectionManagerService','_scheduleReconnection','VIEW_MAIN','hasOwnProperty','UniverCollaborationClientPlugin','then','\x0aCurrent:\x20','COMPRESS_MUTATION_SEND','XHRHTTPImplementation','createIdentifier','collab-rect-range-','\x0aAfter:\x20','catch','asObservable','online','getTypeOfUnitDisposed$','subunit','resize','disableLocalCache','_saveTaskMap','@univerjs/engine-formula','textEncoder','uni.network.url-service','updatePermissionObjEvent','rev','_handleHover','save\x20fail\x20reason\x20is\x20','CollaborationStatusDisplay','send','ICollaborationSocketService','onlyLocal','_onRemoteACK','_beforeCloseService','_redoStacks','changesets','_scheduleSaving','fromEvent','sessionStatus$','getRoom','collabStatus.conflict','on-line-single_clip0_910_349','idSuffix','concatMap','delete','Steady','collaboration-client.offline-data-not-saved','switchMap','OFFLINE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_loadDoc','FromArray','_sheetSkeletonManagerService','_getAPIPrefixPath','roomMembers$','1339038iwAjGz','_onMessage','_state$','_substituteUndoStack','onlineStatusIcon','@univerjs/engine-render','RECV','HEARTBEAT','_transformSelections','action','ranges','304bRekfp','permission.content','_loadSheet','generateRandomId','_initCommandExecutedListener','UNIVER_SHEET','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','transform','UNIVER_UNKNOWN','stringify','setShapeProps','_docSkeleton','getMemberID','LIVESHARE_NEW_HOST','searchParams','_memberService','_updateStatus','TOO_MANY_REQUESTS','ImageSourceType','_scheduleHeartbeat','_onRecvEvent','Warning','USERS_ENTER','11rWlZVs','MSG_FOR_ERROR','collaborators','_joinRoom','setActiveRange','_syncEditingCollabCursor','INGEST','get','entries','every','getSheetObject','registerOnClose','hide','DeleteRangeMoveUpCommandId','_snapshotService','SetDocZoomRatioOperation','SHOULD_CLOSE_CONN','_localStorageService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','purple300','IURLService','b64DecodeUnicode','_onUserJoin','_commentService','createElement','FAIL','editing\x20status\x20changed\x20to','_cursors','createSocket','init','_registerDependencies','onMissedChangesetFetched','getUndoRedoMutationParamsCache','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNKNOWN_CMD','onTransformSelections','_getSendChangesetTimeout','override','_lockTransition','doc.mutation.rich-text-editing'];_0x1e54=function(){return _0x2665ba;};return _0x1e54();}var $i=Object[_0x2cc1b3(0x1b2)],xi=Object[_0x2cc1b3(0x47b)],Hi=(_0x138452,_0x10be1e,_0x3574f3,_0x24d921)=>{const _0x5702f4=_0x2cc1b3;for(var _0x22a59c=_0x24d921>0x1?void 0x0:_0x24d921?xi(_0x10be1e,_0x3574f3):_0x10be1e,_0x3fb14c=_0x138452[_0x5702f4(0x209)]-0x1,_0x4e9a1f;_0x3fb14c>=0x0;_0x3fb14c--)(_0x4e9a1f=_0x138452[_0x3fb14c])&&(_0x22a59c=(_0x24d921?_0x4e9a1f(_0x10be1e,_0x3574f3,_0x22a59c):_0x4e9a1f(_0x22a59c))||_0x22a59c);return _0x24d921&&_0x22a59c&&$i(_0x10be1e,_0x3574f3,_0x22a59c),_0x22a59c;},Me=(_0x33a6d0,_0x1d32d0)=>(_0x4fba67,_0x9ce281)=>_0x1d32d0(_0x4fba67,_0x9ce281,_0x33a6d0);let Ie=class{constructor(_0x1ceb4b,_0x42770b,_0x572aee){const _0x1c2bd5=_0x2cc1b3;this[_0x1c2bd5(0x3f8)]=_0x1ceb4b,this['_httpService']=_0x42770b,this[_0x1c2bd5(0x1ff)]=_0x572aee,this[_0x1c2bd5(0x3d0)]();}[_0x2cc1b3(0x3d0)](){const _0x58b0cf=_0x2cc1b3;this[_0x58b0cf(0x15c)][_0x58b0cf(0x4bc)]({'priority':0x1,'interceptor':(_0x1fd3b9,_0xc27f09)=>_0xc27f09(_0x1fd3b9)['pipe'](v[_0x58b0cf(0x385)](async _0x4c24da=>{const _0x3f494b=_0x58b0cf,_0x229e17=_0x4c24da;if(_0x229e17[_0x3f494b(0x4c5)]===0x191&&window[_0x3f494b(0x235)](this['localeService']['t'](_0x3f494b(0x30b)))){const _0x5c4318=window[_0x3f494b(0x1df)](window[_0x3f494b(0x2cf)][_0x3f494b(0x44a)]);window['location'][_0x3f494b(0x44a)]=this[_0x3f494b(0x4f5)]()+_0x3f494b(0x4ec)+_0x5c4318;}return _0x229e17;}))});}[_0x2cc1b3(0x4f5)](){const _0x3b7994=_0x2cc1b3;var _0x4f2333;return(_0x4f2333=this[_0x3b7994(0x3f8)][_0x3b7994(0x42f)](mt))!=null?_0x4f2333:Jt;}};Ie=Hi([Me(0x0,o[_0x2cc1b3(0x149)]),Me(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)])),Me(0x2,o[_0x2cc1b3(0x333)](o['LocaleService']))],Ie);var ki=Object[_0x2cc1b3(0x1b2)],Bi=Object[_0x2cc1b3(0x47b)],Fi=(_0x4ec7e5,_0x3909e2,_0x3498f5,_0x43149b)=>{const _0x5e9ac7=_0x2cc1b3;for(var _0x7043cf=_0x43149b>0x1?void 0x0:_0x43149b?Bi(_0x3909e2,_0x3498f5):_0x3909e2,_0x30b9ce=_0x4ec7e5[_0x5e9ac7(0x209)]-0x1,_0x322c80;_0x30b9ce>=0x0;_0x30b9ce--)(_0x322c80=_0x4ec7e5[_0x30b9ce])&&(_0x7043cf=(_0x43149b?_0x322c80(_0x3909e2,_0x3498f5,_0x7043cf):_0x322c80(_0x7043cf))||_0x7043cf);return _0x43149b&&_0x7043cf&&ki(_0x3909e2,_0x3498f5,_0x7043cf),_0x7043cf;},ot=(_0x8d98d,_0x30b962)=>(_0x5350d2,_0x52e7d0)=>_0x30b962(_0x5350d2,_0x52e7d0,_0x8d98d);const Mt='AUTHZ_URL_KEY',Vi='/universer-api/authz';exports['AuthzIoHttpService']=class extends o[_0x2cc1b3(0x460)]{constructor(_0x298eb4,_0xd09634){const _0x375fa1=_0x2cc1b3;super(),this[_0x375fa1(0x2e2)]=_0x298eb4,this[_0x375fa1(0x3f8)]=_0xd09634,this['_initMergeInterceptor']();}[_0x2cc1b3(0x351)](){const _0x32e3f2=_0x2cc1b3,_0x279a83=this;this[_0x32e3f2(0x4be)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':U['MergeInterceptorFactory']({'isMatch'(_0x1b9457){const _0x253f78=_0x32e3f2;var _0x1c46ef;if(_0x1b9457[_0x253f78(0x4e9)]===_0x253f78(0x43e)&&((_0x1c46ef=_0x1b9457[_0x253f78(0x27d)])!=null&&_0x1c46ef[_0x253f78(0x4f8)])){const {objectID:_0x3bdfdd,objectType:_0x19128e}=_0x1b9457['requestParams'][_0x253f78(0x4f8)]||{};if(!_0x3bdfdd||_0x19128e===void 0x0)return!0x1;const _0x225880=_0x279a83[_0x253f78(0x38f)]()+'/'+_0x19128e+_0x253f78(0x49c)+_0x3bdfdd+_0x253f78(0x1ca);if(_0x1b9457[_0x253f78(0x29d)]===_0x225880)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5bd419){const _0x2123cb=_0x32e3f2;var _0x5a3447;return(_0x5a3447=_0x5bd419[_0x2123cb(0x27d)])==null?void 0x0:_0x5a3447['body'];},'mergeParamsToRequest'(_0x1f5834,_0x2007fd){const _0x14da4c=_0x32e3f2,_0x18c104=_0x279a83[_0x14da4c(0x38f)]()+_0x14da4c(0x508),_0xcac93d=_0x1f5834[_0x14da4c(0x497)]((_0x43c279,_0x4c0b49)=>{const _0x50e638=_0x14da4c,{unitID:_0x384791,objectID:_0x495c47,objectType:_0x510c09,actions:_0x35af0d}=_0x4c0b49;return _0x43c279[_0x384791]||(_0x43c279[_0x384791]={}),_0x43c279[_0x384791][_0x495c47]||(_0x43c279[_0x384791][_0x495c47]={'objectID':_0x495c47,'objectType':_0x510c09,'actions':[]}),_0x43c279[_0x384791][_0x495c47][_0x50e638(0x27e)][_0x50e638(0x4bd)](..._0x35af0d),_0x43c279;},{}),_0x24a1a7=[];for(const _0x4185b4 in _0xcac93d)for(const _0x25e1b4 in _0xcac93d[_0x4185b4]){const {actions:_0x36b902,objectType:_0x503ca2}=_0xcac93d[_0x4185b4][_0x25e1b4],_0x10cd2d=[...new Set(_0x36b902)];_0x24a1a7['push']({'unitID':_0x4185b4,'objectID':_0x25e1b4,'objectType':_0x503ca2,'actions':_0x10cd2d});}return new U['HTTPRequest']('POST',_0x18c104,{'headers':_0x2007fd[_0x14da4c(0x4ea)],'withCredentials':_0x2007fd[_0x14da4c(0x21b)],'responseType':_0x2007fd[_0x14da4c(0x178)],'body':{'requests':_0x24a1a7}});}},{'distributeResult'(_0x373a90,_0x52bd12){const _0x3c6ac9=_0x32e3f2,{objectActions:_0x2b246e}=_0x373a90;return _0x52bd12[_0x3c6ac9(0x2a8)](_0x1c196d=>{const _0x5252ad=_0x3c6ac9,{unitID:_0x1f1be3,objectID:_0x8ff9a6,actions:_0x435a93}=_0x1c196d,_0x34cc53=_0x2b246e['find'](_0x5b5807=>_0x5b5807[_0x5252ad(0x3ee)]===_0x1f1be3&&_0x5b5807[_0x5252ad(0x49d)]===_0x8ff9a6),_0x5112c0=_0x435a93['map'](_0x552264=>_0x34cc53==null?void 0x0:_0x34cc53[_0x5252ad(0x27e)][_0x5252ad(0x4da)](_0x18b260=>_0x18b260[_0x5252ad(0x39a)]===_0x552264))['filter'](_0x2f4f33=>!!_0x2f4f33);return{'config':_0x1c196d,'result':{'actions':_0x5112c0,'error':_0x373a90[_0x5252ad(0x307)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3f6204=_0x2cc1b3;var _0x4a3c60;return(_0x4a3c60=this[_0x3f6204(0x3f8)][_0x3f6204(0x42f)](Mt))!=null?_0x4a3c60:Vi;}async[_0x2cc1b3(0x231)](_0x1758ca){const _0x2d37a2=_0x2cc1b3,_0x19a7fc=this[_0x2d37a2(0x38f)]()+'/'+_0x1758ca['objectType']+_0x2d37a2(0x1a9);return(await this[_0x2d37a2(0x2e2)][_0x2d37a2(0x152)](_0x19a7fc,{'body':_0x1758ca}))[_0x2d37a2(0x4f8)][_0x2d37a2(0x49d)]||'';}async[_0x2cc1b3(0x2f8)](_0x1c646b){const _0x508491=_0x2cc1b3,_0x4b5fbb=this[_0x508491(0x38f)]()+_0x508491(0x4c1);return(await this[_0x508491(0x2e2)][_0x508491(0x152)](_0x4b5fbb,{'body':_0x1c646b}))[_0x508491(0x4f8)][_0x508491(0x347)];}async['update'](_0x4d2e72){const _0x12e8d4=_0x2cc1b3,_0x26871f=this[_0x12e8d4(0x38f)]()+'/'+_0x4d2e72[_0x12e8d4(0x4b4)]+_0x12e8d4(0x49c)+_0x4d2e72['objectID'];await this[_0x12e8d4(0x2e2)][_0x12e8d4(0x2a2)](_0x26871f,{'body':_0x4d2e72});}async[_0x2cc1b3(0x20a)](_0x3ff5ee){const _0x23c297=_0x2cc1b3,_0x57de02=this[_0x23c297(0x38f)]()+'/'+_0x3ff5ee[_0x23c297(0x4b4)]+'/object/'+_0x3ff5ee[_0x23c297(0x49d)]+'/allowed';return(await this[_0x23c297(0x2e2)][_0x23c297(0x152)](_0x57de02,{'body':_0x3ff5ee}))['body'][_0x23c297(0x27e)];}async['batchAllowed'](_0x5e56ce){const _0x52f9e5=_0x2cc1b3,_0x296378=this[_0x52f9e5(0x38f)]()+_0x52f9e5(0x508);return(await this[_0x52f9e5(0x2e2)]['post'](_0x296378,{'body':{'requests':_0x5e56ce}}))['body'][_0x52f9e5(0x245)];}async['listRoles'](_0xe684dd){const _0x30d5fb=_0x2cc1b3,_0x482e78=this[_0x30d5fb(0x38f)]()+'/'+_0xe684dd['objectType']+'/role',_0x14badd=await this[_0x30d5fb(0x2e2)][_0x30d5fb(0x152)](_0x482e78,{'body':_0xe684dd});return{'roles':_0x14badd[_0x30d5fb(0x4f8)][_0x30d5fb(0x25a)],'actions':_0x14badd[_0x30d5fb(0x4f8)][_0x30d5fb(0x27e)]};}async[_0x2cc1b3(0x415)](_0x38ef34){const _0x29e1f2=_0x2cc1b3,_0x2ab1b5=this['_getAPIPrefixPath']()+_0x29e1f2(0x4af);await this[_0x29e1f2(0x2e2)][_0x29e1f2(0x386)](_0x2ab1b5,{'params':{'collaboratorID':_0x38ef34['collaboratorID'],'objectID':_0x38ef34[_0x29e1f2(0x49d)],'unitID':_0x38ef34['unitID']}});}async['updateCollaborator'](_0x6f7ce1){const _0x429344=_0x2cc1b3,_0x1b4db8=this['_getAPIPrefixPath']()+_0x429344(0x4af);await this[_0x429344(0x2e2)]['patch'](_0x1b4db8,{'body':_0x6f7ce1});}async['createCollaborator'](_0x5f2536){const _0x1895b0=_0x2cc1b3,_0x1af7b1=this[_0x1895b0(0x38f)]()+'/collaborator';await this[_0x1895b0(0x2e2)][_0x1895b0(0x152)](_0x1af7b1,{'body':_0x5f2536});}async[_0x2cc1b3(0x275)](_0x3df0c8){const _0x55cf48=_0x2cc1b3,_0x20ed0e=this[_0x55cf48(0x38f)]()+_0x55cf48(0x4af);return(await this[_0x55cf48(0x2e2)][_0x55cf48(0x3ba)](_0x20ed0e,{'params':{'objectID':_0x3df0c8[_0x55cf48(0x49d)],'unitID':_0x3df0c8[_0x55cf48(0x3ee)]}}))['body'][_0x55cf48(0x3b5)];}async[_0x2cc1b3(0x44c)](_0x3660ba){const _0x12b07a=_0x2cc1b3,_0x35fb5f=this[_0x12b07a(0x38f)]()+_0x12b07a(0x4af);await this[_0x12b07a(0x2e2)][_0x12b07a(0x2a2)](_0x35fb5f,{'body':_0x3660ba});}},exports[_0x2cc1b3(0x512)]=Fi([ot(0x0,o['Inject'](U[_0x2cc1b3(0x1da)])),ot(0x1,o['Inject'](o[_0x2cc1b3(0x149)]))],exports[_0x2cc1b3(0x512)]);var Wi=Object[_0x2cc1b3(0x1b2)],Gi=Object[_0x2cc1b3(0x47b)],Yi=(_0x438fa0,_0x4692b5,_0x18c873,_0x1f8dd1)=>{for(var _0x5a2a88=_0x1f8dd1>0x1?void 0x0:_0x1f8dd1?Gi(_0x4692b5,_0x18c873):_0x4692b5,_0x5bcae4=_0x438fa0['length']-0x1,_0x2a065e;_0x5bcae4>=0x0;_0x5bcae4--)(_0x2a065e=_0x438fa0[_0x5bcae4])&&(_0x5a2a88=(_0x1f8dd1?_0x2a065e(_0x4692b5,_0x18c873,_0x5a2a88):_0x2a065e(_0x5a2a88))||_0x5a2a88);return _0x1f8dd1&&_0x5a2a88&&Wi(_0x4692b5,_0x18c873,_0x5a2a88),_0x5a2a88;},at=(_0x327ce5,_0x49c9b1)=>(_0x1ddc26,_0x359163)=>_0x49c9b1(_0x1ddc26,_0x359163,_0x327ce5);const Ki=[_0x2cc1b3(0x4eb),'image/jpeg',_0x2cc1b3(0x30a),_0x2cc1b3(0x50c),_0x2cc1b3(0x2fa)],Xi=0x5*0x400*0x400,qi=_0x2cc1b3(0x3a2),zi=_0x2cc1b3(0x2c9),Ji=_0x2cc1b3(0x1c1),Zi='/universer-api/file/{fileID}/sign-url';exports[_0x2cc1b3(0x355)]=class{constructor(_0x3c607f,_0x32acf8){const _0x2684e1=_0x2cc1b3;u(this,'_waitCount',0x0),u(this,_0x2684e1(0x166),new v['Subject']()),u(this,_0x2684e1(0x4c7),this[_0x2684e1(0x166)]),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x3c607f,this[_0x2684e1(0x3f8)]=_0x32acf8);}[_0x2cc1b3(0x304)](_0x2a0eee){const _0x474783=_0x2cc1b3;this[_0x474783(0x26b)]=_0x2a0eee,this[_0x474783(0x166)][_0x474783(0x1a2)](_0x2a0eee);}[_0x2cc1b3(0x430)](_0x35b91b,_0xf6299){const _0x1e6313=_0x2cc1b3;if(_0xf6299===A['ImageSourceType'][_0x1e6313(0x14b)]){const _0x12fc4e=new Image();return _0x12fc4e['src']=_0x35b91b,_0x12fc4e;}return this['_imageSourceCache'][_0x1e6313(0x3ba)](_0x35b91b);}['addImageSourceCache'](_0x1276fa,_0x556bbc,_0x427a58){const _0x238d86=_0x2cc1b3;_0x556bbc===A[_0x238d86(0x3ae)][_0x238d86(0x14b)]||_0x427a58==null||this['_imageSourceCache'][_0x238d86(0x1b8)](_0x1276fa,_0x427a58);}async[_0x2cc1b3(0x46d)](_0x1f7ca9){const _0x4ad423=_0x2cc1b3;try{const _0x50ea5e=this[_0x4ad423(0x4fa)](this[_0x4ad423(0x4cb)](),''+_0x1f7ca9),_0x13f9fe=(await this[_0x4ad423(0x15c)]['get'](_0x50ea5e))[_0x4ad423(0x4f8)];return _0x13f9fe[_0x4ad423(0x307)]&&_0x13f9fe[_0x4ad423(0x307)][_0x4ad423(0x2d0)]===gt['OK']?Promise[_0x4ad423(0x40d)](_0x13f9fe[_0x4ad423(0x29d)]):Promise[_0x4ad423(0x48f)](_0x13f9fe[_0x4ad423(0x307)]);}catch(_0x476edc){return Promise[_0x4ad423(0x48f)](_0x476edc);}}async['saveImage'](_0x17d8bf){const _0x1fd876=_0x2cc1b3;let _0x28a755='';if(!Ki[_0x1fd876(0x15d)](_0x17d8bf[_0x1fd876(0x3e9)]))return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A[_0x1fd876(0x2e1)][_0x1fd876(0x496)]));if(_0x17d8bf[_0x1fd876(0x343)]>Xi)return this[_0x1fd876(0x44d)](),Promise['reject'](new Error(A[_0x1fd876(0x2e1)]['ERROR_EXCEED_SIZE']));try{const _0x36bdbe=new FormData();_0x36bdbe[_0x1fd876(0x4a5)](_0x1fd876(0x483),_0x17d8bf);const _0x2edabf=this[_0x1fd876(0x4d5)]()+_0x1fd876(0x43b)+_0x17d8bf[_0x1fd876(0x343)]['toString'](),_0x381220=await(await fetch(_0x2edabf,{'method':_0x1fd876(0x43e),'body':_0x36bdbe}))[_0x1fd876(0x212)]();if(typeof _0x381220['FileId']!=_0x1fd876(0x26e))return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A[_0x1fd876(0x2e1)][_0x1fd876(0x1cc)]));_0x28a755=_0x381220[_0x1fd876(0x1e3)];}catch{return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x415928,_0x2d3d30)=>{const _0x123c85=_0x1fd876,_0x15e047=new FileReader();_0x15e047[_0x123c85(0x241)](_0x17d8bf),_0x15e047['onload']=_0x473849=>{const _0x139ff2=_0x123c85;var _0x941270;const _0x4ccb64=(_0x941270=_0x473849['target'])==null?void 0x0:_0x941270['result'];if(_0x4ccb64==null){this[_0x139ff2(0x44d)](),_0x2d3d30(new Error(A[_0x139ff2(0x2e1)][_0x139ff2(0x1cc)]));return;}const _0x39db10=o['Tools'][_0x139ff2(0x39f)](0x6);_0x415928({'imageId':_0x39db10,'imageSourceType':A['ImageSourceType'][_0x139ff2(0x256)],'source':_0x28a755,'base64Cache':_0x4ccb64,'status':A[_0x139ff2(0x2e1)][_0x139ff2(0x3e4)]}),this['_decreaseWaiting']();};});}[_0x2cc1b3(0x4d5)](){const _0xa7b944=_0x2cc1b3;var _0x4cd108;return(_0x4cd108=this[_0xa7b944(0x3f8)][_0xa7b944(0x42f)](qi))!=null?_0x4cd108:zi;}[_0x2cc1b3(0x4cb)](){const _0x533304=_0x2cc1b3;var _0x4716b0;return(_0x4716b0=this['_configService'][_0x533304(0x42f)](Ji))!=null?_0x4716b0:Zi;}[_0x2cc1b3(0x4fa)](_0x291f87,_0x23c4b8){const _0x400608=_0x2cc1b3;return _0x291f87[_0x400608(0x34b)](_0x400608(0x1d8),_0x23c4b8);}[_0x2cc1b3(0x44d)](){const _0x14d01f=_0x2cc1b3;this[_0x14d01f(0x26b)]-=0x1,this['_change$'][_0x14d01f(0x1a2)](this[_0x14d01f(0x26b)]);}},exports[_0x2cc1b3(0x355)]=Yi([at(0x0,o[_0x2cc1b3(0x333)](U['HTTPService'])),at(0x1,o['IConfigService'])],exports[_0x2cc1b3(0x355)]);var Qi=Object[_0x2cc1b3(0x1b2)],en=Object['getOwnPropertyDescriptor'],tn=(_0x29fbec,_0xad87af,_0x27e97b,_0x53d4b9)=>{const _0x9788cc=_0x2cc1b3;for(var _0x54b468=_0x53d4b9>0x1?void 0x0:_0x53d4b9?en(_0xad87af,_0x27e97b):_0xad87af,_0x169135=_0x29fbec[_0x9788cc(0x209)]-0x1,_0x177a31;_0x169135>=0x0;_0x169135--)(_0x177a31=_0x29fbec[_0x169135])&&(_0x54b468=(_0x53d4b9?_0x177a31(_0xad87af,_0x27e97b,_0x54b468):_0x177a31(_0x54b468))||_0x54b468);return _0x53d4b9&&_0x54b468&&Qi(_0xad87af,_0x27e97b,_0x54b468),_0x54b468;},ae=(_0x153306,_0x18a906)=>(_0x342c0a,_0x4bb392)=>_0x18a906(_0x342c0a,_0x4bb392,_0x153306);let Se=class extends o['RxDisposable']{constructor(_0x409471,_0x5e8aec,_0x3e8afb,_0x7f65f2,_0x131d95){const _0x5d29d8=_0x2cc1b3;super(),this[_0x5d29d8(0x3fe)]=_0x409471,this[_0x5d29d8(0x46f)]=_0x5e8aec,this['_permissionService']=_0x3e8afb,this[_0x5d29d8(0x1ed)]=_0x7f65f2,this[_0x5d29d8(0x33c)]=_0x131d95,this[_0x5d29d8(0x2e7)](),this[_0x5d29d8(0x34a)]();}[_0x2cc1b3(0x34a)](){const _0x4492b6=_0x2cc1b3,_0x52c181=async _0x304710=>{const _0x3403d1=_0x4b8d;(await this[_0x3403d1(0x1ed)][_0x3403d1(0x33b)](_0x304710))[_0x3403d1(0x4cf)][_0x3403d1(0x478)](C['filter'](_0x521eee=>_0x521eee[_0x3403d1(0x266)]===_['CollaborationEvent'][_0x3403d1(0x3c3)]),C[_0x3403d1(0x1ef)](this['dispose$']))[_0x3403d1(0x4c8)](_0xaa0463=>{const _0x211081=_0x3403d1,_0x5708cd=_0xaa0463,{reason:_0x178f50}=_0x5708cd[_0x211081(0x1c0)];this[_0x211081(0x3fe)][_0x211081(0x3ba)](L['IMessageService'])[_0x211081(0x4f2)]({'type':Q[_0x211081(0x329)][_0x211081(0x2f9)],'content':this[_0x211081(0x33c)]['t']('collaboration.closeRoom')+'('+_0x178f50+')'}),this[_0x211081(0x1fd)][_0x211081(0x1e8)](new p['WorkbookEditablePermission'](_0x304710)['id'],!0x1),this[_0x211081(0x1ed)][_0x211081(0x410)](_0x304710);});};v[_0x4492b6(0x3e0)](this[_0x4492b6(0x46f)][_0x4492b6(0x25b)](o[_0x4492b6(0x271)][_0x4492b6(0x3a1)]),this[_0x4492b6(0x46f)][_0x4492b6(0x25b)](o[_0x4492b6(0x271)][_0x4492b6(0x40b)]))[_0x4492b6(0x478)](C[_0x4492b6(0x2a8)](_0xfcb6cc=>_0xfcb6cc[_0x4492b6(0x15a)]()),C[_0x4492b6(0x277)](_0x3e2fd9=>!o['isInternalEditorID'](_0x3e2fd9)),C[_0x4492b6(0x1ef)](this[_0x4492b6(0x23e)]))[_0x4492b6(0x4c8)](_0x32558c=>{_0x52c181(_0x32558c);});}['_initUnitPermissionChange'](){const _0x190417=_0x2cc1b3,_0x52474f=async _0x377f9c=>{const _0x5b9682=_0x4b8d;(await this['_collaborationSessionService'][_0x5b9682(0x33b)](_0x377f9c))[_0x5b9682(0x4cf)][_0x5b9682(0x478)](C[_0x5b9682(0x277)](_0x4c6ea5=>_0x4c6ea5[_0x5b9682(0x266)]===_[_0x5b9682(0x173)][_0x5b9682(0x4b8)]),C[_0x5b9682(0x1ef)](this['dispose$']))[_0x5b9682(0x4c8)](_0x1e5897=>{const _0x451489=_0x5b9682,_0x49002e=_0x1e5897,{objectId:_0x224954}=_0x49002e[_0x451489(0x1c0)];_0x224954===_0x377f9c&&this['_injector'][_0x451489(0x3ba)](J[_0x451489(0x495)])[_0x451489(0x22b)](_0x377f9c);});};v['merge'](this['_univerInstanceService'][_0x190417(0x25b)](o['UniverInstanceType']['UNIVER_SHEET']),this[_0x190417(0x46f)]['getTypeOfUnitAdded$'](o[_0x190417(0x271)][_0x190417(0x40b)]))[_0x190417(0x478)](C[_0x190417(0x2a8)](_0x18ba68=>_0x18ba68[_0x190417(0x15a)]()),C[_0x190417(0x277)](_0x2dc22d=>!o[_0x190417(0x322)](_0x2dc22d)),C[_0x190417(0x1ef)](this['dispose$']))[_0x190417(0x4c8)](_0x40c657=>{_0x52474f(_0x40c657);});}};Se=tn([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)]['Starting'],Se),ae(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),ae(0x1,o[_0x2cc1b3(0x298)]),ae(0x2,o[_0x2cc1b3(0x42e)]),ae(0x3,o['Inject'](exports[_0x2cc1b3(0x14e)])),ae(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)]))],Se);var wt=Object[_0x2cc1b3(0x1b2)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x3d5987,_0x485303,_0x462dc5)=>_0x485303 in _0x3d5987?wt(_0x3d5987,_0x485303,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x462dc5}):_0x3d5987[_0x485303]=_0x462dc5,rn=(_0x574b38,_0x785499,_0x5c9a8a,_0x3b467f)=>{const _0x557e72=_0x2cc1b3;for(var _0x113b52=_0x3b467f>0x1?void 0x0:_0x3b467f?sn(_0x785499,_0x5c9a8a):_0x785499,_0xd3d262=_0x574b38[_0x557e72(0x209)]-0x1,_0x402b30;_0xd3d262>=0x0;_0xd3d262--)(_0x402b30=_0x574b38[_0xd3d262])&&(_0x113b52=(_0x3b467f?_0x402b30(_0x785499,_0x5c9a8a,_0x113b52):_0x402b30(_0x113b52))||_0x113b52);return _0x3b467f&&_0x113b52&&wt(_0x785499,_0x5c9a8a,_0x113b52),_0x113b52;},we=(_0x1ce412,_0x33fb0a)=>(_0x258ee9,_0x3cdb30)=>_0x33fb0a(_0x258ee9,_0x3cdb30,_0x1ce412),on=(_0x4ae002,_0x3f54bc,_0x2d6bb3)=>nn(_0x4ae002,_0x3f54bc+'',_0x2d6bb3);const an=_0x2cc1b3(0x4f3);exports[_0x2cc1b3(0x35f)]=class extends o['Plugin']{constructor(_0x5f1624,_0x13aa7e,_0xc04934,_0xed506f){const _0x2facf4=_0x2cc1b3;super(),this[_0x2facf4(0x51a)]=_0x5f1624,this[_0x2facf4(0x402)]=_0x13aa7e,this['_renderManagerService']=_0xc04934,this[_0x2facf4(0x3fe)]=_0xed506f;}[_0x2cc1b3(0x281)](_0x394022){const _0x553443=_0x2cc1b3;this[_0x553443(0x3d1)](_0x394022);}['onRendered'](){const _0x5bded4=_0x2cc1b3;this[_0x5bded4(0x4e7)]();}[_0x2cc1b3(0x3d1)](_0x33ab47){const _0x4c85e4=_0x2cc1b3;var _0x11f60e,_0x34cdd1,_0x48409f,_0x237452;_0x33ab47[_0x4c85e4(0x2ae)](o['IUndoRedoService'])&&this[_0x4c85e4(0x402)][_0x4c85e4(0x307)]('[UniverCollaborationClientPlugin]',_0x4c85e4(0x334));let _0x10825d=[[o[_0x4c85e4(0x4a8)],{'useClass':je}],[exports[_0x4c85e4(0x14e)]],[Ve],[U['HTTPService']],[Ge,{'useClass':Ut}],[Y],[exports[_0x4c85e4(0x15f)]],[U['WebSocketService']],[ge],[me],[ve],[Fe],[Ie],[Be],[Se],[ke,{'useClass':(_0x34cdd1=(_0x11f60e=this[_0x4c85e4(0x51a)])==null?void 0x0:_0x11f60e['socketService'])!=null?_0x34cdd1:exports['CollaborationSocketService']}],[U[_0x4c85e4(0x4df)],{'useClass':U[_0x4c85e4(0x363)]}],[o[_0x4c85e4(0x3ef)],{'useClass':exports[_0x4c85e4(0x4b5)]}],[o[_0x4c85e4(0x34e)],{'useClass':exports['AuthzIoHttpService']}],[A['IImageIoService'],{'useClass':exports[_0x4c85e4(0x355)]}],[exports[_0x4c85e4(0x305)]],[exports['DataLoaderController']],[exports['DesktopCollaborationStatusDisplayController']],[ue],[Z]];(_0x48409f=this[_0x4c85e4(0x51a)])!=null&&_0x48409f['enableSingleActiveInstanceLock']&&_0x10825d['push']([pe,{'useClass':_s}]),_0x10825d=o[_0x4c85e4(0x4f7)](_0x10825d,(_0x237452=this[_0x4c85e4(0x51a)])==null?void 0x0:_0x237452[_0x4c85e4(0x3d8)]),_0x10825d[_0x4c85e4(0x34c)](_0x3df8a7=>_0x33ab47[_0x4c85e4(0x506)](_0x3df8a7)),this['_initModules']();}[_0x2cc1b3(0x4e7)](){const _0x2dd4e0=_0x2cc1b3;this[_0x2dd4e0(0x4be)](this[_0x2dd4e0(0x4e5)]['registerRenderModule'](o[_0x2dd4e0(0x271)][_0x2dd4e0(0x40b)],[de])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](o['UniverInstanceType'][_0x2dd4e0(0x3a1)],[Ae]));}[_0x2cc1b3(0x44f)](){const _0x2fbf63=_0x2cc1b3;var _0x324d7d,_0x1a1093;this['_injector'][_0x2fbf63(0x3ba)](U[_0x2fbf63(0x1da)])[_0x2fbf63(0x4bc)]({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x324d7d=this['_config'])!=null&&_0x324d7d['enableOfflineEditing']||this[_0x2fbf63(0x3fe)]['get'](exports[_0x2fbf63(0x15f)])[_0x2fbf63(0x36d)](),(_0x1a1093=this[_0x2fbf63(0x51a)])!=null&&_0x1a1093[_0x2fbf63(0x43c)]&&this[_0x2fbf63(0x3fe)][_0x2fbf63(0x3ba)](Ie);}},on(exports[_0x2cc1b3(0x35f)],_0x2cc1b3(0x50f),an),exports[_0x2cc1b3(0x35f)]=rn([o[_0x2cc1b3(0x229)](_['UniverCollaborationPlugin']),we(0x1,o['ILogService']),we(0x2,b[_0x2cc1b3(0x29e)]),we(0x3,o[_0x2cc1b3(0x333)](o['Injector']))],exports[_0x2cc1b3(0x35f)]),exports[_0x2cc1b3(0x208)]=Mt,exports[_0x2cc1b3(0x16e)]=vt,exports[_0x2cc1b3(0x22a)]=_t,exports[_0x2cc1b3(0x157)]=D,exports[_0x2cc1b3(0x376)]=Pt,exports[_0x2cc1b3(0x3db)]=Be,exports[_0x2cc1b3(0x487)]=ut,exports[_0x2cc1b3(0x19d)]=xe,exports[_0x2cc1b3(0x378)]=ke,exports[_0x2cc1b3(0x3c7)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x2cc1b3(0x46b)]=mt,exports[_0x2cc1b3(0x1be)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports['SNAPSHOT_URL_KEY']=lt,exports[_0x2cc1b3(0x1a7)]=G,exports['SheetCollabCursorShape']=Tt,exports[_0x2cc1b3(0x14d)]=Ut,exports[_0x2cc1b3(0x2f4)]=ft,exports[_0x2cc1b3(0x236)]=It;
|
1
|
+
'use strict';const _0x3022d6=_0xbc10;(function(_0x137f62,_0x25dadd){const _0x5ae9e6=_0xbc10,_0x19d4bc=_0x137f62();while(!![]){try{const _0x1c8c05=parseInt(_0x5ae9e6(0x247))/0x1*(parseInt(_0x5ae9e6(0x3ed))/0x2)+-parseInt(_0x5ae9e6(0x1b5))/0x3+-parseInt(_0x5ae9e6(0x2c1))/0x4*(parseInt(_0x5ae9e6(0x430))/0x5)+-parseInt(_0x5ae9e6(0x27d))/0x6*(parseInt(_0x5ae9e6(0xcb))/0x7)+parseInt(_0x5ae9e6(0x14c))/0x8+parseInt(_0x5ae9e6(0xd9))/0x9+parseInt(_0x5ae9e6(0xa3))/0xa*(-parseInt(_0x5ae9e6(0x228))/0xb);if(_0x1c8c05===_0x25dadd)break;else _0x19d4bc['push'](_0x19d4bc['shift']());}catch(_0x355c8b){_0x19d4bc['push'](_0x19d4bc['shift']());}}}(_0x1991,0x31338));var xt=Object[_0x3022d6(0x131)],Ht=(_0x344738,_0x2f667c,_0x2c472e)=>_0x2f667c in _0x344738?xt(_0x344738,_0x2f667c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c472e}):_0x344738[_0x2f667c]=_0x2c472e,u=(_0x1560d5,_0x321f50,_0x42d4af)=>Ht(_0x1560d5,typeof _0x321f50!='symbol'?_0x321f50+'':_0x321f50,_0x42d4af);Object['defineProperty'](exports,Symbol[_0x3022d6(0x19b)],{'value':_0x3022d6(0x11c)});const o=require(_0x3022d6(0x315)),p=require('@univerjs/sheets'),Q=require(_0x3022d6(0x8b)),L=require(_0x3022d6(0xea)),_=require(_0x3022d6(0x31d)),v=require(_0x3022d6(0x2c6)),E=require(_0x3022d6(0x1cf)),P=require(_0x3022d6(0x417)),U=require('@univerjs/network'),A=require(_0x3022d6(0x453)),b=require(_0x3022d6(0x214)),Ke=require('@univerjs/engine-formula'),xe=require(_0x3022d6(0x8f)),J=require(_0x3022d6(0x294)),y=require('react'),kt=require(_0x3022d6(0x7e)),Bt=require(_0x3022d6(0x23c)),ct=_0x3022d6(0x351),Vt=_0x3022d6(0x45f),lt=_0x3022d6(0xcf),ht=_0x3022d6(0x445),Wt=0x7d0,_t=_0x3022d6(0x3df),Ft=_0x3022d6(0x1e3),ut=_0x3022d6(0x29a),Gt=0x7530,He='HEARTBEAT_TIMEOUT',dt=0x2710,Yt=_0x3022d6(0x3b7),Kt=0x4e20,Xt=_0x3022d6(0x451),qt=0x3,St=_0x3022d6(0x15f),zt=0x3e8,vt=_0x3022d6(0x1ba),Jt=_0x3022d6(0x458),mt='LOGIN_URL_KEY',Zt=_0x3022d6(0x3c7);var gt=(_0x40fb7e=>(_0x40fb7e[_0x40fb7e[_0x3022d6(0x2fc)]=0x0]='UNDEFINED',_0x40fb7e[_0x40fb7e['OK']=0x1]='OK',_0x40fb7e[_0x40fb7e[_0x3022d6(0xba)]=0x2]='INTERNAL_ERROR',_0x40fb7e[_0x40fb7e['PERMISSION_DENIED']=0x3]=_0x3022d6(0x1a9),_0x40fb7e[_0x40fb7e[_0x3022d6(0x3e8)]=0x4]=_0x3022d6(0x3e8),_0x40fb7e[_0x40fb7e[_0x3022d6(0x18c)]=0x5]=_0x3022d6(0x18c),_0x40fb7e[_0x40fb7e[_0x3022d6(0x466)]=0x6]=_0x3022d6(0x466),_0x40fb7e[_0x40fb7e['INVALID_ARGUMENT']=0x7]=_0x3022d6(0x1bf),_0x40fb7e[_0x40fb7e[_0x3022d6(0x2a0)]=0x8]=_0x3022d6(0x2a0),_0x40fb7e[_0x40fb7e[_0x3022d6(0x24b)]=0x9]=_0x3022d6(0x24b),_0x40fb7e[_0x40fb7e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3022d6(0x105),_0x40fb7e[_0x40fb7e[_0x3022d6(0x1eb)]=0x1771]=_0x3022d6(0x1eb),_0x40fb7e[_0x40fb7e[_0x3022d6(0x428)]=0x1772]=_0x3022d6(0x428),_0x40fb7e[_0x40fb7e[_0x3022d6(0x207)]=0x1b59]=_0x3022d6(0x207),_0x40fb7e[_0x40fb7e[_0x3022d6(0x3da)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x40fb7e[_0x40fb7e[_0x3022d6(0x340)]=0x1b5b]=_0x3022d6(0x340),_0x40fb7e[_0x40fb7e[_0x3022d6(0xd0)]=0x1b5c]=_0x3022d6(0xd0),_0x40fb7e[_0x40fb7e['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3022d6(0x2aa),_0x40fb7e[_0x40fb7e[_0x3022d6(0x91)]=0x2329]=_0x3022d6(0x91),_0x40fb7e[_0x40fb7e[_0x3022d6(0x85)]=0x232a]=_0x3022d6(0x85),_0x40fb7e[_0x40fb7e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3022d6(0x1b9),_0x40fb7e[_0x40fb7e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3022d6(0x1b8),_0x40fb7e[_0x40fb7e[_0x3022d6(0x169)]=0x232d]=_0x3022d6(0x169),_0x40fb7e[_0x40fb7e[_0x3022d6(0x33b)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x40fb7e[_0x40fb7e[_0x3022d6(0x212)]=0x2712]=_0x3022d6(0x212),_0x40fb7e[_0x40fb7e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3022d6(0x2ef),_0x40fb7e[_0x40fb7e[_0x3022d6(0x1be)]=0x2714]=_0x3022d6(0x1be),_0x40fb7e[_0x40fb7e[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x40fb7e))(gt||{}),j=(_0x4d4b84=>(_0x4d4b84[_0x4d4b84[_0x3022d6(0x380)]=0x0]=_0x3022d6(0x380),_0x4d4b84[_0x4d4b84[_0x3022d6(0x237)]=0x1]=_0x3022d6(0x237),_0x4d4b84[_0x4d4b84['UNIVER_SHEET']=0x2]=_0x3022d6(0x2c0),_0x4d4b84[_0x4d4b84[_0x3022d6(0x16c)]=0x3]=_0x3022d6(0x16c),_0x4d4b84[_0x4d4b84[_0x3022d6(0x413)]=0x4]=_0x3022d6(0x413),_0x4d4b84[_0x4d4b84['UNRECOGNIZED']=-0x1]=_0x3022d6(0x322),_0x4d4b84))(j||{}),T=(_0x263be1=>(_0x263be1[_0x263be1[_0x3022d6(0x349)]=0x0]=_0x3022d6(0x349),_0x263be1[_0x263be1[_0x3022d6(0x24a)]=0x1]='HELLO',_0x263be1[_0x263be1[_0x3022d6(0x157)]=0x2]=_0x3022d6(0x157),_0x263be1[_0x263be1['LEAVE']=0x3]=_0x3022d6(0xdc),_0x263be1[_0x263be1[_0x3022d6(0x145)]=0x4]=_0x3022d6(0x145),_0x263be1[_0x263be1[_0x3022d6(0x462)]=0x5]=_0x3022d6(0x462),_0x263be1[_0x263be1[_0x3022d6(0x40c)]=0x6]='RECV',_0x263be1[_0x263be1[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x263be1))(T||{}),ke=(_0x2b0903=>(_0x2b0903[_0x2b0903[_0x3022d6(0x249)]=0x0]='UNKNOWN_CODE',_0x2b0903[_0x2b0903['OK']=0x1]='OK',_0x2b0903[_0x2b0903['FAIL']=0x2]=_0x3022d6(0x2ff),_0x2b0903[_0x2b0903[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x2b0903))(ke||{}),ft=(_0x23a8bb=>(_0x23a8bb[_0x23a8bb[_0x3022d6(0x357)]=0x0]=_0x3022d6(0x357),_0x23a8bb[_0x23a8bb['HttpImport']=0x1]=_0x3022d6(0x3fb),_0x23a8bb[_0x23a8bb[_0x3022d6(0x355)]=0x2]=_0x3022d6(0x355),_0x23a8bb[_0x23a8bb[_0x3022d6(0x449)]=0x3]=_0x3022d6(0x449),_0x23a8bb[_0x23a8bb[_0x3022d6(0x23a)]=0x4]='UnitSnapshot',_0x23a8bb[_0x23a8bb[_0x3022d6(0x322)]=-0x1]='UNRECOGNIZED',_0x23a8bb))(ft||{}),Qt=Object[_0x3022d6(0x131)],es=Object[_0x3022d6(0x2b4)],ts=(_0x4211d1,_0x380bb5,_0x1bcdc6,_0x4178f2)=>{const _0x18c44f=_0x3022d6;for(var _0x22f674=_0x4178f2>0x1?void 0x0:_0x4178f2?es(_0x380bb5,_0x1bcdc6):_0x380bb5,_0x19dad2=_0x4211d1[_0x18c44f(0x2ce)]-0x1,_0x445e22;_0x19dad2>=0x0;_0x19dad2--)(_0x445e22=_0x4211d1[_0x19dad2])&&(_0x22f674=(_0x4178f2?_0x445e22(_0x380bb5,_0x1bcdc6,_0x22f674):_0x445e22(_0x22f674))||_0x22f674);return _0x4178f2&&_0x22f674&&Qt(_0x380bb5,_0x1bcdc6,_0x22f674),_0x22f674;},Xe=(_0x2dfffe,_0x5d368e)=>(_0x1bcd98,_0x221df2)=>_0x5d368e(_0x1bcd98,_0x221df2,_0x2dfffe);let Y=class extends o[_0x3022d6(0x1c9)]{constructor(_0x1ee660,_0x16a4c7){const _0x4d57a9=_0x3022d6;super(),u(this,_0x4d57a9(0x350),new Map()),(this[_0x4d57a9(0x17c)]=_0x1ee660,this['_userManagerService']=_0x16a4c7,this[_0x4d57a9(0x14a)](o[_0x4d57a9(0x24c)](v[_0x4d57a9(0xc5)](this[_0x4d57a9(0x17c)]['getTypeOfUnitDisposed$'](o[_0x4d57a9(0x23f)][_0x4d57a9(0x2c0)])['pipe'](E[_0x4d57a9(0x317)](_0x3b1a4b=>_0x3b1a4b['getUnitId']())),this[_0x4d57a9(0x17c)][_0x4d57a9(0x3ae)](o[_0x4d57a9(0x23f)][_0x4d57a9(0x237)])['pipe'](E[_0x4d57a9(0x317)](_0x21dfe9=>_0x21dfe9[_0x4d57a9(0x29c)]())),this['_univerInstanceService'][_0x4d57a9(0x3ae)](o[_0x4d57a9(0x23f)]['UNIVER_SLIDE'])['pipe'](E[_0x4d57a9(0x317)](_0x5264ca=>_0x5264ca['getUnitId']())))['subscribe'](_0x37c363=>this[_0x4d57a9(0x97)](_0x37c363)))));}[_0x3022d6(0x20e)](_0x4a4096){const _0x1bedcf=_0x3022d6;this['_userManagerService'][_0x1bedcf(0x20e)](_0x4a4096);}[_0x3022d6(0x129)](){const _0x340c7d=_0x3022d6;return this['_userManagerService'][_0x340c7d(0x129)]();}[_0x3022d6(0x165)](_0x3d1db6,_0x58e2ec){const _0x197f19=_0x3022d6;let _0xf181b7=this[_0x197f19(0x350)]['get'](_0x3d1db6);_0xf181b7||(_0xf181b7=new ss(),this[_0x197f19(0x350)][_0x197f19(0x182)](_0x3d1db6,_0xf181b7)),_0xf181b7[_0x197f19(0x165)](_0x58e2ec);}['removeMember'](_0x58f775,_0x560396){const _0x47e57c=_0x3022d6,_0x2172e2=this['_roomMembers'][_0x47e57c(0x84)](_0x58f775);_0x2172e2&&_0x2172e2[_0x47e57c(0x25d)](_0x560396);}['getRoom'](_0x363ec9){const _0xd6f08=_0x3022d6;return this[_0xd6f08(0x350)][_0xd6f08(0x84)](_0x363ec9);}[_0x3022d6(0x18f)](_0x4c13cc,_0xaf5f52){const _0x416d16=_0x3022d6,_0x46036a=this[_0x416d16(0x350)]['get'](_0x4c13cc);if(_0x46036a)return _0x46036a[_0x416d16(0x18f)](_0xaf5f52);}['_removeRoom'](_0x201d3e){const _0x180049=_0x3022d6,_0x6d81e4=this['_roomMembers']['get'](_0x201d3e);_0x6d81e4&&(_0x6d81e4[_0x180049(0x147)](),this[_0x180049(0x350)][_0x180049(0x1af)](_0x201d3e));}[_0x3022d6(0x147)](){const _0x125083=_0x3022d6;this[_0x125083(0x350)][_0x125083(0x3d3)](_0x10a089=>_0x10a089['dispose']()),this[_0x125083(0x350)][_0x125083(0xe4)]();}};Y=ts([Xe(0x0,o[_0x3022d6(0xb8)]),Xe(0x1,o['Inject'](o[_0x3022d6(0x168)]))],Y);class ss extends o[_0x3022d6(0x1c9)]{constructor(){const _0x38be72=_0x3022d6;super(...arguments),u(this,_0x38be72(0x400),new Map());}[_0x3022d6(0x147)](){const _0x52b467=_0x3022d6;this[_0x52b467(0x400)]['clear']();}[_0x3022d6(0x165)](_0x252ca8){const _0x281af3=_0x3022d6;this['_members']['set'](_0x252ca8[_0x281af3(0x36f)],_0x252ca8);}['removeMember'](_0x4f3a18){const _0x5a191c=_0x3022d6;this[_0x5a191c(0x400)][_0x5a191c(0x1af)](_0x4f3a18);}[_0x3022d6(0x18f)](_0x26bff1){const _0xd2bc34=_0x3022d6;return this[_0xd2bc34(0x400)][_0xd2bc34(0x84)](_0x26bff1);}}function It(_0x286f72){const _0x2d149e=_0x3022d6;var _0x283380,_0x502022,_0x113967,_0x4853f6;const _0x2c21c7=_0x286f72[_0x2d149e(0x2be)],_0x40d301=JSON[_0x2d149e(0x2ab)](_0x2c21c7);switch(_0x40d301[_0x2d149e(0x27b)]){case T[_0x2d149e(0x462)]:case T[_0x2d149e(0x24a)]:{const _0xae97b9=_0x40d301['infoRsp'];return{..._0x40d301,'data':_0xae97b9,'cmd':_0x40d301['cmd']};}case T[_0x2d149e(0x157)]:{const _0x77d3d6=_0x40d301['joinRsp'];return{..._0x40d301,'data':_0x77d3d6,'cmd':_0x40d301[_0x2d149e(0x27b)]};}case T[_0x2d149e(0x40c)]:{const _0x4c3868=_0x40d301[_0x2d149e(0x1dd)];switch(_0x4c3868[_0x2d149e(0x31c)]){case _['CollaborationEvent']['PERMISSION_REJ']:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x283380=_0x4c3868[_0x2d149e(0xf7)])==null?void 0x0:_0x283380['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x420)]:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x502022=_0x4c3868[_0x2d149e(0x1a2)])==null?void 0x0:_0x502022['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['NEW_CHANGESETS']:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x113967=_0x4c3868[_0x2d149e(0x40a)])==null?void 0x0:_0x113967['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x459)]:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x4853f6=_0x4c3868[_0x2d149e(0x1e2)])==null?void 0x0:_0x4853f6['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x426)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x125)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['USERS_ENTER']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x345)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['USERS_LEAVE']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x154)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x179)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21a)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x2b3)]:case _[_0x2d149e(0x26c)]['LIVESHARE_OPERATION']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x284)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x3a9)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21a)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _['CollaborationEvent'][_0x2d149e(0x384)]:return{..._0x40d301,'data':_0x4c3868,'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x2bd)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21f)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['UPDATE_PERMISSION_OBJ']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868['updatePermissionObjEvent']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['SHOULD_CLOSE_CONN']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x236)]},'cmd':_0x40d301['cmd']};default:return _0x40d301;}}default:return _0x40d301;}}function pt(_0x2fe806){const _0xadf2ba=_0x3022d6;switch(_0x2fe806[_0xadf2ba(0x27b)]){case T[_0xadf2ba(0x462)]:case T[_0xadf2ba(0x24a)]:return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806['routeKey']});case T[_0xadf2ba(0x145)]:{let _0x9d2086;switch(_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x31c)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)]['UPDATE_CURSOR'],'updateCursorEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x1b6)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)]['USERS_LEAVE'],'leaveEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0xde)],'joinEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x9d2086={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2fe806[_0xadf2ba(0x2be)]['data']};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x176)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x176)],'liveShareOperation':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _[_0xadf2ba(0x26c)]['LIVESHARE_TERMINATE']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x3a9)],'liveShareTerminate':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent'][_0xadf2ba(0xd3)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0xd3)],'liveShareRequestHost':_0x2fe806[_0xadf2ba(0x2be)]['data']};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x2b3)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x2b3)]};break;}default:_0x9d2086={'eventID':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x31c)]};}return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806[_0xadf2ba(0x372)],'collaMsg':_0x9d2086});}case T[_0xadf2ba(0x157)]:return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806['routeKey'],'joinReq':_0x2fe806[_0xadf2ba(0x2be)]});case T[_0xadf2ba(0xdc)]:return JSON['stringify']({'cmd':_0x2fe806['cmd'],'routeKey':_0x2fe806[_0xadf2ba(0x372)],'leaveReq':_0x2fe806[_0xadf2ba(0x2be)]});default:throw new Error(_0xadf2ba(0x300));}}var is=Object['defineProperty'],ns=Object['getOwnPropertyDescriptor'],rs=(_0x295300,_0x25a473,_0x36e9ea,_0x1b5657)=>{const _0x16ebe8=_0x3022d6;for(var _0xbd7ab1=_0x1b5657>0x1?void 0x0:_0x1b5657?ns(_0x25a473,_0x36e9ea):_0x25a473,_0x4a4670=_0x295300[_0x16ebe8(0x2ce)]-0x1,_0x21683f;_0x4a4670>=0x0;_0x4a4670--)(_0x21683f=_0x295300[_0x4a4670])&&(_0xbd7ab1=(_0x1b5657?_0x21683f(_0x25a473,_0x36e9ea,_0xbd7ab1):_0x21683f(_0xbd7ab1))||_0xbd7ab1);return _0x1b5657&&_0xbd7ab1&&is(_0x25a473,_0x36e9ea,_0xbd7ab1),_0xbd7ab1;},se=(_0x235ee3,_0x5794ac)=>(_0x37b5b2,_0x2b4bff)=>_0x5794ac(_0x37b5b2,_0x2b4bff,_0x235ee3);const Be=o[_0x3022d6(0x2f4)](_0x3022d6(0x28a));function os(_0x5f5b4a,_0x1cfdff,_0x1bc97b){const _0xe015b0=_0x3022d6;return _0x5f5b4a+'/'+_0x1cfdff+_0xe015b0(0x3b5)+_0x1bc97b+_0xe015b0(0x454);}exports[_0x3022d6(0x3b0)]=class{constructor(_0x53e780,_0x2b38ba,_0x2c78eb,_0x22912d,_0x55105d){const _0x958d61=_0x3022d6;this[_0x958d61(0x2ae)]=_0x53e780,this[_0x958d61(0x200)]=_0x2b38ba,this[_0x958d61(0xee)]=_0x2c78eb,this[_0x958d61(0x38b)]=_0x22912d,this[_0x958d61(0x307)]=_0x55105d;}[_0x3022d6(0x112)](_0x4ab63f){const _0x225098=_0x3022d6,_0x2c1a0b=this[_0x225098(0x200)][_0x225098(0x112)](_0x4ab63f);if(!_0x2c1a0b)throw new Error(_0x225098(0x11e));const _0x2c3c6f=new o[(_0x225098(0x1fc))](),_0x569ac8=new v[(_0x225098(0x21b))]();_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](_0x2c1a0b[_0x225098(0x2a8)][_0x225098(0x265)](_0x3e1b2f=>_0x569ac8[_0x225098(0x116)](_0x3e1b2f)))),_0x2c3c6f['add'](o[_0x225098(0x24c)](()=>_0x569ac8[_0x225098(0x19e)]()));const _0x147b5b=new v[(_0x225098(0x21b))]();_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](_0x2c1a0b['error$'][_0x225098(0x265)](_0x5d2187=>_0x147b5b[_0x225098(0x116)](_0x5d2187)))),_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](()=>_0x147b5b['complete']()));const _0x81b421=new v[(_0x225098(0x21b))]();_0x2c3c6f['add'](o[_0x225098(0x24c)](_0x2c1a0b[_0x225098(0x40b)][_0x225098(0x265)](_0x486390=>{const _0x54e024=_0x225098,_0x7511d0=It(_0x486390);_0x81b421[_0x54e024(0x116)](_0x7511d0);}))),_0x2c3c6f['add'](o[_0x225098(0x24c)](()=>_0x81b421[_0x225098(0x19e)]()));const _0x47934d=()=>{const _0x32310f=_0x225098;_0x147b5b[_0x32310f(0x116)](new Event(_0x32310f(0x366))),_0x569ac8['next'](new CloseEvent(_0x32310f(0x366))),_0xd7e53c[_0x32310f(0x22c)]();},_0xd7e53c={'memberID':'','close$':_0x569ac8[_0x225098(0x295)](),'error$':_0x147b5b[_0x225098(0x295)](),'open$':_0x2c1a0b[_0x225098(0x25b)],'message$':_0x81b421[_0x225098(0x295)](),'send':_0x44ff56=>{const _0x295cd7=_0x225098;if(_0x44ff56[_0x295cd7(0x27b)]===T[_0x295cd7(0x145)]){if(_0x44ff56[_0x295cd7(0x2be)][_0x295cd7(0x31c)]===_[_0x295cd7(0x26c)][_0x295cd7(0x37d)]){this[_0x295cd7(0x438)](_0xd7e53c,_0x44ff56[_0x295cd7(0x2be)])[_0x295cd7(0x104)](_0x3b160a=>{const _0x37f2c9=_0x295cd7;this[_0x37f2c9(0x38b)][_0x37f2c9(0x404)](_0x3b160a),_0x47934d();});return;}if(_0x44ff56['data']['eventID']===_[_0x295cd7(0x26c)][_0x295cd7(0x44f)]){const _0x21e818=_0x44ff56[_0x295cd7(0x2be)];this['_fetchMissChangesets'](_0x21e818)[_0x295cd7(0x156)](_0xb08435=>{const _0x4fe6de=_0x295cd7;_0x81b421[_0x4fe6de(0x116)]({'cmd':T[_0x4fe6de(0x40c)],'code':ke['OK'],'routeKey':_0x21e818[_0x4fe6de(0x2be)][_0x4fe6de(0x367)],'routeType':'','data':{'eventID':_[_0x4fe6de(0x26c)][_0x4fe6de(0x127)],'data':{'changesets':_0xb08435}}});})['catch'](_0x2666bd=>{const _0x120002=_0x295cd7;this[_0x120002(0x38b)][_0x120002(0x404)](_0x2666bd),_0x47934d();});return;}}_0x2c1a0b['send'](pt(_0x44ff56));},'close':()=>{const _0x482e80=_0x225098;_0x2c1a0b['close'](),_0x2c3c6f[_0x482e80(0x147)]();}};return _0xd7e53c;}async['_submitChangeset'](_0xc6c9c9,_0x52ee93){const _0x3aa633=_0x3022d6;var _0x27b936;const {unitType:_0x25939e,unitID:_0x37d525,changeset:_0x404bd9}=_0x52ee93[_0x3aa633(0x2be)],_0xf0966e={'unitID':_0x37d525,'memberID':_0xc6c9c9['memberID'],'type':_0x25939e,'changeset':_['parseChangesetToProtocol'](_0x404bd9)},_0x16a6b0=os((_0x27b936=this[_0x3aa633(0xee)][_0x3aa633(0x1bd)](vt))!=null?_0x27b936:Jt,_0x25939e,_0x37d525);try{await this[_0x3aa633(0x2ae)][_0x3aa633(0x45d)](_0x16a6b0,{'body':_0xf0966e});}catch(_0x57010d){throw this[_0x3aa633(0x38b)][_0x3aa633(0x404)]('[CollaborationSession]',_0x3aa633(0xc3)),_0x57010d;}}async[_0x3022d6(0xf6)](_0x56ee5b){const _0x3eac13=_0x3022d6,{unitID:_0x57f563,from:_0x492027,to:_0x440964,unitType:_0x288ce9}=_0x56ee5b[_0x3eac13(0x2be)];return(await this[_0x3eac13(0x307)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x57f563,'type':_0x288ce9,'from':_0x492027,'to':_0x440964}))[_0x3eac13(0x183)];}},exports[_0x3022d6(0x3b0)]=rs([se(0x0,o['Inject'](U[_0x3022d6(0x37e)])),se(0x1,o[_0x3022d6(0x291)](U[_0x3022d6(0x2e8)])),se(0x2,o[_0x3022d6(0x3be)]),se(0x3,o['ILogService']),se(0x4,o[_0x3022d6(0x143)])],exports['CollaborationSocketService']);class Ve{constructor(){const _0x3709e8=_0x3022d6;u(this,'_commentUpdate$',new v['Subject']()),u(this,_0x3709e8(0x45b),this[_0x3709e8(0x394)][_0x3709e8(0x295)]());}['onCommentUpdate'](_0x188d74){const _0x3d9c4c=_0x3022d6;this[_0x3d9c4c(0x394)][_0x3d9c4c(0x116)](_0x188d74);}}var as=Object[_0x3022d6(0x131)],cs=Object[_0x3022d6(0x2b4)],Et=(_0x150305,_0x30c649,_0x3f30fe,_0x47ffd1)=>{for(var _0x3ab926=_0x47ffd1>0x1?void 0x0:_0x47ffd1?cs(_0x30c649,_0x3f30fe):_0x30c649,_0x5a92b2=_0x150305['length']-0x1,_0x3093b9;_0x5a92b2>=0x0;_0x5a92b2--)(_0x3093b9=_0x150305[_0x5a92b2])&&(_0x3ab926=(_0x47ffd1?_0x3093b9(_0x30c649,_0x3f30fe,_0x3ab926):_0x3093b9(_0x3ab926))||_0x3ab926);return _0x47ffd1&&_0x3ab926&&as(_0x30c649,_0x3f30fe,_0x3ab926),_0x3ab926;},M=(_0x1af416,_0x7efeec)=>(_0x23bb22,_0xc105c6)=>_0x7efeec(_0x23bb22,_0xc105c6,_0x1af416),G=(_0x2e474b=>(_0x2e474b[_0x2e474b[_0x3022d6(0x1ab)]=0x0]=_0x3022d6(0x1ab),_0x2e474b[_0x2e474b[_0x3022d6(0x297)]=0x1]=_0x3022d6(0x297),_0x2e474b[_0x2e474b['OFFLINE']=0x2]=_0x3022d6(0x316),_0x2e474b[_0x2e474b[_0x3022d6(0x194)]=0x3]=_0x3022d6(0x194),_0x2e474b))(G||{});exports[_0x3022d6(0x343)]=class extends o['RxDisposable']{constructor(_0x4bbe2b,_0x55d84d,_0x26d98e,_0x2ef77d,_0x34108c,_0x1aaf81,_0x22bad2,_0x57170d,_0xe241c7){const _0x3efc7d=_0x3022d6;super(),u(this,_0x3efc7d(0x283),new v[(_0x3efc7d(0x141))](0x0)),u(this,_0x3efc7d(0x370),this[_0x3efc7d(0x283)]['asObservable']()),u(this,'_event$',new v['Subject']()),u(this,'event$',this[_0x3efc7d(0x17b)][_0x3efc7d(0x295)]()),u(this,_0x3efc7d(0x38d)),u(this,_0x3efc7d(0x3c3)),u(this,_0x3efc7d(0xb2)),(this[_0x3efc7d(0x328)]=_0x4bbe2b,this['_logService']=_0x26d98e,this[_0x3efc7d(0x2ed)]=_0x2ef77d,this['_messageService']=_0x34108c,this[_0x3efc7d(0xee)]=_0x1aaf81,this[_0x3efc7d(0x3b1)]=_0x22bad2,this[_0x3efc7d(0x16b)]=_0x57170d,this[_0x3efc7d(0x14f)]=_0xe241c7,_0x55d84d[_0x3efc7d(0x23e)](E[_0x3efc7d(0xc7)](this['dispose$']))[_0x3efc7d(0x265)](_0x424d0f=>{const _0x3d0031=_0x3efc7d;var _0x1a847c;typeof _0x424d0f>'u'||(this[_0x3d0031(0x38d)]=_0x424d0f,_0x424d0f?(this[_0x3d0031(0x320)](_0x424d0f),this[_0x3d0031(0x3c3)]=this[_0x3d0031(0x38d)][_0x3d0031(0x40b)][_0x3d0031(0x265)](_0xec03b7=>{const _0x583b5d=_0x3d0031;_0xec03b7['routeKey']===this[_0x583b5d(0x328)]&&this['_onCombEvent'](_0xec03b7);})):(this[_0x3d0031(0x283)][_0x3d0031(0x116)](0x2),(_0x1a847c=this[_0x3d0031(0x3c3)])==null||_0x1a847c[_0x3d0031(0x2b9)](),this[_0x3d0031(0x3c3)]=null));}),this[_0x3efc7d(0x14a)](this['_beforeCloseService'][_0x3efc7d(0x465)](()=>{const _0xee932b=_0x3efc7d;var _0x25b827;(_0x25b827=this[_0xee932b(0x38d)])==null||_0x25b827[_0xee932b(0x362)]({'cmd':T[_0xee932b(0xdc)],'data':{'roomID':this[_0xee932b(0x328)]}});})));}get['sessionStatus'](){const _0x27898d=_0x3022d6;return this[_0x27898d(0x283)][_0x27898d(0x386)]();}[_0x3022d6(0x3f2)](){const _0x5a1856=_0x3022d6;var _0x270fc7,_0x253f42;return(_0x253f42=(_0x270fc7=this[_0x5a1856(0x38d)])==null?void 0x0:_0x270fc7[_0x5a1856(0x36f)])!=null?_0x253f42:null;}['dispose'](){const _0x251fff=_0x3022d6;super[_0x251fff(0x147)](),this[_0x251fff(0x374)]['next'](),this['dispose$']['complete']();}[_0x3022d6(0x22c)](){const _0x3f32ee=_0x3022d6;var _0x5e6c87,_0x348b77;(_0x5e6c87=this[_0x3f32ee(0x38d)])==null||_0x5e6c87[_0x3f32ee(0x362)]({'cmd':T[_0x3f32ee(0xdc)],'data':{'roomID':this['_unitID']}}),this[_0x3f32ee(0x17b)][_0x3f32ee(0x19e)](),this[_0x3f32ee(0x283)]['complete'](),(_0x348b77=this[_0x3f32ee(0x38d)])==null||_0x348b77[_0x3f32ee(0x22c)](),this[_0x3f32ee(0x147)]();}[_0x3022d6(0x1a4)](_0x2ebd9c){const _0x4b0db9=_0x3022d6;_0x2ebd9c['cmd']===T[_0x4b0db9(0x157)]?this['_onJoinRoomEvent'](_0x2ebd9c):_0x2ebd9c[_0x4b0db9(0x27b)]===T['RECV']&&this[_0x4b0db9(0x268)](_0x2ebd9c);}[_0x3022d6(0x320)](_0x4c0486){const _0x26a4df=_0x3022d6;this['_sessionStatus$'][_0x26a4df(0x116)](0x1),_0x4c0486[_0x26a4df(0x362)]({'cmd':T[_0x26a4df(0x157)],'routeKey':this[_0x26a4df(0x328)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x3022d6(0x93)](_0xc4dc01){const _0x7a3970=_0x3022d6;var _0x313230;if(_0xc4dc01[_0x7a3970(0x2a2)]===ke[_0x7a3970(0x2ff)]){this['_messageService']['show']({'type':Q['MessageType'][_0x7a3970(0x1e0)],'content':this['_localeService']['t'](_0x7a3970(0xa2))}),this[_0x7a3970(0x283)]['next'](0x2);return;}this[_0x7a3970(0x283)][_0x7a3970(0x116)](0x3);const _0xc267a5=(_0x313230=_0xc4dc01[_0x7a3970(0x2be)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x313230[_0x7a3970(0x12d)];_0xc267a5&&_0xc267a5[_0x7a3970(0x3d3)](_0x256952=>this['_memberService'][_0x7a3970(0x165)](this[_0x7a3970(0x328)],_0x256952));}['_onRecvEvent'](_0x4533f2){const _0x5345d8=_0x3022d6;try{const _0x52855c=_0x4533f2[_0x5345d8(0x2be)];switch(_0x52855c[_0x5345d8(0x31c)]){case _[_0x5345d8(0x26c)][_0x5345d8(0xde)]:this[_0x5345d8(0x13c)](_0x52855c),this[_0x5345d8(0x17b)]['next'](_0x52855c);break;case _['CollaborationEvent'][_0x5345d8(0x1b6)]:this[_0x5345d8(0x12b)](_0x52855c),this[_0x5345d8(0x17b)]['next'](_0x52855c);break;case _[_0x5345d8(0x26c)][_0x5345d8(0x420)]:this['_clearCollaborationTimeoutTimer'](),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;case _[_0x5345d8(0x26c)][_0x5345d8(0x384)]:this['_logService']['error'](_0x5345d8(0x92)+JSON[_0x5345d8(0x258)](_0x52855c)),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;case _[_0x5345d8(0x26c)]['COMMENT_UPDATE']:this[_0x5345d8(0x14f)][_0x5345d8(0x1e9)](_0x52855c[_0x5345d8(0x2be)]),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;default:this[_0x5345d8(0x17b)]['next'](_0x52855c);}}catch(_0x704f1f){this['_logService'][_0x5345d8(0x404)](_0x704f1f,_0x4533f2);}}['_onUserJoin'](_0x38bdf0){const _0x8ca08e=_0x3022d6;this['_memberService'][_0x8ca08e(0x165)](this[_0x8ca08e(0x328)],_0x38bdf0[_0x8ca08e(0x2be)]);}[_0x3022d6(0x12b)](_0x226d4d){const _0x2de287=_0x3022d6;this[_0x2de287(0x16b)]['removeMember'](this[_0x2de287(0x328)],_0x226d4d[_0x2de287(0x2be)]['memberID']);}async[_0x3022d6(0x362)](_0x3fe405,_0x5172f6){const _0x5b24dc=_0x3022d6;if(this[_0x5b24dc(0x306)]!==0x3||!this[_0x5b24dc(0x38d)])throw new Error(_0x5b24dc(0x187));try{_0x3fe405['eventID']===_[_0x5b24dc(0x26c)][_0x5b24dc(0x310)]&&this[_0x5b24dc(0x2de)](),this[_0x5b24dc(0x38d)][_0x5b24dc(0x362)]({'cmd':T[_0x5b24dc(0x145)],'routeKey':_0x5172f6,'routeType':'','data':_0x3fe405});}catch(_0x2e9d16){this[_0x5b24dc(0x38b)][_0x5b24dc(0x404)](_0x2e9d16);}}[_0x3022d6(0x2de)](){const _0x4937cb=_0x3022d6;var _0x559ef4;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x174059=_0xbc10;this[_0x174059(0xb2)]=null,this[_0x174059(0x38e)][_0x174059(0x1d3)]({'type':Q[_0x174059(0x1e5)][_0x174059(0x19c)],'content':this[_0x174059(0x3b1)]['t'](_0x174059(0x1d4))});},(_0x559ef4=this[_0x4937cb(0xee)][_0x4937cb(0x1bd)](He))!=null?_0x559ef4:dt);}['_clearCollaborationTimeoutTimer'](){const _0x3ddca7=_0x3022d6;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x3ddca7(0xb2)]),this[_0x3ddca7(0xb2)]=null);}},exports['CollaborationSession']=Et([M(0x2,o[_0x3022d6(0x22f)]),M(0x3,L[_0x3022d6(0x3db)]),M(0x4,L[_0x3022d6(0xaf)]),M(0x5,o[_0x3022d6(0x3be)]),M(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),M(0x7,o[_0x3022d6(0x291)](Y)),M(0x8,o[_0x3022d6(0x291)](Ve))],exports['CollaborationSession']),exports[_0x3022d6(0x2ee)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x50311e,_0x496ed1,_0x277eb6,_0x3b147f,_0x296ed7,_0x38d5cb){const _0x498b88=_0x3022d6;super(),u(this,'_socket$',new v[(_0x498b88(0x141))](void 0x0)),u(this,_0x498b88(0xac),new Map()),u(this,_0x498b88(0x30d),new v['BehaviorSubject'](0x0)),u(this,_0x498b88(0x358),this[_0x498b88(0x30d)]['asObservable']()),u(this,_0x498b88(0x219),!0x1),u(this,_0x498b88(0x318)),u(this,_0x498b88(0xae)),u(this,_0x498b88(0x387)),u(this,'_retryCount',0x0),(this[_0x498b88(0x123)]=_0x50311e,this[_0x498b88(0x3b1)]=_0x496ed1,this[_0x498b88(0x38e)]=_0x277eb6,this[_0x498b88(0x38b)]=_0x3b147f,this[_0x498b88(0xee)]=_0x296ed7,this[_0x498b88(0x19f)]=_0x38d5cb);}get[_0x3022d6(0x38d)](){const _0x481f7e=_0x3022d6;return this[_0x481f7e(0x2e4)]['getValue']();}['dispose'](){const _0x3c2a9a=_0x3022d6;super[_0x3c2a9a(0x147)](),this[_0x3c2a9a(0xac)][_0x3c2a9a(0x3d3)](_0x596b0c=>_0x596b0c[_0x3c2a9a(0x147)]()),this[_0x3c2a9a(0xac)]['clear'](),this['_status$'][_0x3c2a9a(0x19e)]();}async[_0x3022d6(0x3b2)](_0x535be5){const _0x1a3942=_0x3022d6;if(this[_0x1a3942(0xac)][_0x1a3942(0x151)](_0x535be5))return this['_sessions'][_0x1a3942(0x84)](_0x535be5);this['_tryEnsureSocket']();const _0x1bab06=this[_0x1a3942(0x123)][_0x1a3942(0x89)](exports['CollaborationSession'],_0x535be5,this['_socket$']['asObservable']());return this[_0x1a3942(0xac)][_0x1a3942(0x182)](_0x535be5,_0x1bab06),_0x1bab06;}[_0x3022d6(0x186)](_0x392676){const _0x508515=_0x3022d6;var _0x5e4bcd;const _0x100b2f=this[_0x508515(0xac)]['get'](_0x392676);_0x100b2f&&(this[_0x508515(0xac)][_0x508515(0x1af)](_0x392676),_0x100b2f[_0x508515(0x22c)]()),this[_0x508515(0xac)][_0x508515(0x2ca)]||(_0x5e4bcd=this['_socket'])==null||_0x5e4bcd['close']();}['_createSocket'](){const _0x41ae52=_0x3022d6;var _0x32863b;const _0x597158=(_0x32863b=this[_0x41ae52(0xee)]['getConfig'](_t))!=null?_0x32863b:Ft;return this[_0x41ae52(0x19f)][_0x41ae52(0x112)](_0x597158);}['_tryEnsureSocket'](){const _0x1fe93e=_0x3022d6;try{const _0x2bb311=this[_0x1fe93e(0x20a)]();if(_0x2bb311){const _0x48c6fc=_0x2bb311[_0x1fe93e(0x362)];_0x2bb311[_0x1fe93e(0x362)]=_0x40ee79=>(this['_rescheduleHeartbeatEvent'](),_0x48c6fc[_0x1fe93e(0xd6)](_0x2bb311,[_0x40ee79])),_0x2bb311[_0x1fe93e(0x40b)][_0x1fe93e(0x265)](_0x2ba1ba=>this[_0x1fe93e(0x2eb)](_0x2bb311,_0x2ba1ba)),_0x2bb311['error$'][_0x1fe93e(0x23e)](E[_0x1fe93e(0x2e9)](0x1))[_0x1fe93e(0x265)](_0x1a1bda=>this['_logService'][_0x1fe93e(0x404)]('[CollaborationSessionService]:\x20socket\x20error',_0x1a1bda)),_0x2bb311[_0x1fe93e(0x25b)][_0x1fe93e(0x23e)](E[_0x1fe93e(0x2e9)](0x1))[_0x1fe93e(0x265)](()=>{const _0x3cda27=_0x1fe93e;this[_0x3cda27(0x2b2)](_0x2bb311);}),_0x2bb311[_0x1fe93e(0x2a8)][_0x1fe93e(0x23e)](E['take'](0x1))[_0x1fe93e(0x265)](_0x1b98cc=>{const _0x4115ec=_0x1fe93e;this[_0x4115ec(0x38b)][_0x4115ec(0xf9)]('[CollaborationSessionService]',_0x4115ec(0x22e),_0x1b98cc),this[_0x4115ec(0x121)]();});}}catch(_0x38f43d){this['_logService']['error'](_0x38f43d),this['_onConnectionFailed']();}}[_0x3022d6(0x2b2)](_0x203391){const _0x29c4e2=_0x3022d6;this[_0x29c4e2(0x38b)]['debug'](_0x29c4e2(0x359),_0x29c4e2(0x108)),_0x203391[_0x29c4e2(0x362)]({'cmd':T['HELLO']}),this[_0x29c4e2(0x193)]();}[_0x3022d6(0x121)](){const _0x16da08=_0x3022d6;var _0x14b16f;this['_status$'][_0x16da08(0x116)](0x2),this[_0x16da08(0x2e4)][_0x16da08(0x116)](null),this[_0x16da08(0x398)](),this[_0x16da08(0xe9)](),this[_0x16da08(0x219)]=!0x1,this[_0x16da08(0x452)]<((_0x14b16f=this['_configService'][_0x16da08(0x1bd)](Xt))!=null?_0x14b16f:qt)?(this[_0x16da08(0xbc)](this['_retryCount']),this[_0x16da08(0x452)]+=0x1):this[_0x16da08(0x38e)][_0x16da08(0x1d3)]({'type':Q[_0x16da08(0x1e5)][_0x16da08(0x19c)],'content':this[_0x16da08(0x3b1)]['t'](_0x16da08(0x2c2))});}[_0x3022d6(0xbc)](_0x5debf5){const _0x4bee5c=_0x3022d6;var _0x37fe45;const _0x464395=((_0x37fe45=this['_configService']['getConfig'](Yt))!=null?_0x37fe45:Kt)*0x2**_0x5debf5;this['_messageService'][_0x4bee5c(0x1d3)]({'type':Q[_0x4bee5c(0x1e5)]['Warning'],'content':this[_0x4bee5c(0x3b1)]['t'](_0x4bee5c(0xe0))}),this[_0x4bee5c(0x387)]=setTimeout(()=>{const _0x562a98=_0x4bee5c;this[_0x562a98(0x2c9)](),clearTimeout(this[_0x562a98(0x387)]),this['_retryConnectingTimer']=null;},_0x464395);}[_0x3022d6(0x193)](){const _0x408550=_0x3022d6;var _0x502f46;this[_0x408550(0xe9)](),this[_0x408550(0x318)]=setTimeout(()=>this[_0x408550(0x2a4)](),(_0x502f46=this['_configService'][_0x408550(0x1bd)](ut))!=null?_0x502f46:Gt);}[_0x3022d6(0x2a4)](){const _0x31451d=_0x3022d6;this[_0x31451d(0x38d)]['send']({'cmd':T[_0x31451d(0x462)]}),this[_0x31451d(0x155)]();}[_0x3022d6(0x155)](){const _0xb89689=_0x3022d6;var _0x5cade4;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0x5cade4=this[_0xb89689(0xee)][_0xb89689(0x1bd)](He))!=null?_0x5cade4:dt);}[_0x3022d6(0x2eb)](_0x21f316,_0x3b2fe9){const _0x477899=_0x3022d6,{cmd:_0x13c3e4}=_0x3b2fe9;_0x13c3e4===T[_0x477899(0x24a)]&&!this['_socketReady']&&(_0x21f316[_0x477899(0x36f)]=_0x3b2fe9[_0x477899(0x2be)]['memberID'],this[_0x477899(0x2e4)][_0x477899(0x116)](_0x21f316),this[_0x477899(0x30d)]['next'](0x3),this[_0x477899(0x219)]=!0x0),_0x13c3e4===T[_0x477899(0x462)]&&this[_0x477899(0x398)](),this[_0x477899(0x193)]();}[_0x3022d6(0xe9)](){const _0x340d41=_0x3022d6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x340d41(0x318)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x3ed13c=_0x3022d6;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3ed13c(0xae)]=null);}},exports[_0x3022d6(0x2ee)]=Et([M(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),M(0x1,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),M(0x2,L[_0x3022d6(0xaf)]),M(0x3,o['ILogService']),M(0x4,o[_0x3022d6(0x3be)]),M(0x5,Be)],exports[_0x3022d6(0x2ee)]);var ls=Object['defineProperty'],hs=Object['getOwnPropertyDescriptor'],_s=(_0x5efbe1,_0x33b587,_0x471a65,_0x1008a8)=>{const _0x173ff6=_0x3022d6;for(var _0x192979=_0x1008a8>0x1?void 0x0:_0x1008a8?hs(_0x33b587,_0x471a65):_0x33b587,_0x8b15ae=_0x5efbe1[_0x173ff6(0x2ce)]-0x1,_0xa76f8e;_0x8b15ae>=0x0;_0x8b15ae--)(_0xa76f8e=_0x5efbe1[_0x8b15ae])&&(_0x192979=(_0x1008a8?_0xa76f8e(_0x33b587,_0x471a65,_0x192979):_0xa76f8e(_0x192979))||_0x192979);return _0x1008a8&&_0x192979&&ls(_0x33b587,_0x471a65,_0x192979),_0x192979;},ie=(_0x3eb3e7,_0x8ba7f3)=>(_0x55fd9d,_0x2dac49)=>_0x8ba7f3(_0x55fd9d,_0x2dac49,_0x3eb3e7);exports[_0x3022d6(0x174)]=class extends o['Disposable']{constructor(_0x25935f,_0x332295,_0x8dd6e5,_0x58b954,_0x894b28){const _0x4fb45e=_0x3022d6;super(),u(this,_0x4fb45e(0xdf),new Map()),u(this,_0x4fb45e(0x13d),new Map()),u(this,_0x4fb45e(0x44c),!0x1),(this[_0x4fb45e(0xee)]=_0x25935f,this[_0x4fb45e(0x2df)]=_0x332295,this[_0x4fb45e(0x2ed)]=_0x8dd6e5,this[_0x4fb45e(0x3b1)]=_0x58b954,this[_0x4fb45e(0x254)]=_0x894b28,this[_0x4fb45e(0x299)]());}['disableLocalCache'](){const _0x2f2bfe=_0x3022d6;this[_0x2f2bfe(0x44c)]=!0x0;}['enableLocalCache'](){const _0x4d5b4b=_0x3022d6;this[_0x4d5b4b(0x44c)]=!0x1;}[_0x3022d6(0x147)](){const _0x1ea836=_0x3022d6;this[_0x1ea836(0x2e5)]()[_0x1ea836(0x156)](()=>super[_0x1ea836(0x147)]());}async[_0x3022d6(0x3b8)](_0x2bd7ae){const _0x1b12a9=_0x3022d6;return this['_disabled']?null:this['_localStorageService'][_0x1b12a9(0x1e4)](qe(_0x2bd7ae));}async[_0x3022d6(0x25c)](_0x298dbd,_0x3d9c21){const _0x40ba56=_0x3022d6;return!!this[_0x40ba56(0x2df)][_0x40ba56(0x31f)](_0x298dbd,_0x3d9c21);}[_0x3022d6(0xbb)](_0x1c5bed,_0x4e47c4,_0x4eb31e,_0x1ed609){const _0x1ac5dd=_0x3022d6,_0x57bba6=this[_0x1ac5dd(0x254)][_0x1ac5dd(0x33a)](_0x1c5bed);this[_0x1ac5dd(0xdf)][_0x1ac5dd(0x182)](_0x1c5bed,{'unitID':_0x1c5bed,'type':_0x4e47c4,'awaitingChangeset':_0x4eb31e,'mutations':_0x1ed609,'rev':_0x57bba6}),this[_0x1ac5dd(0x13d)]['has'](_0x1c5bed)||this[_0x1ac5dd(0x192)](_0x1c5bed);}[_0x3022d6(0x192)](_0x3d21af){const _0x3560f6=_0x3022d6,_0x55bcda=this['_getSaveTimeout']();_0x55bcda===0x0?this[_0x3560f6(0x443)](_0x3d21af):this['_saveTaskMap'][_0x3560f6(0x182)](_0x3d21af,setTimeout(()=>this[_0x3560f6(0x443)](_0x3d21af),_0x55bcda));}[_0x3022d6(0x234)](){const _0x3624aa=_0x3022d6;var _0x2cd08e;return(_0x2cd08e=this[_0x3624aa(0xee)]['getConfig'](St))!=null?_0x2cd08e:zt;}[_0x3022d6(0x443)](_0x1f1416){const _0x2f5046=_0x3022d6,_0x56c934=this['_saveTaskMap'][_0x2f5046(0x84)](_0x1f1416);return _0x56c934!==void 0x0&&window[_0x2f5046(0x1b4)](_0x56c934),this[_0x2f5046(0x2df)]['setItem'](qe(_0x1f1416),this[_0x2f5046(0xdf)][_0x2f5046(0x84)](_0x1f1416))[_0x2f5046(0x156)](()=>this[_0x2f5046(0x13d)][_0x2f5046(0x1af)](_0x1f1416));}async[_0x3022d6(0x2e5)](){const _0x5bca9b=_0x3022d6,_0x3eb8b9=[];this['_saveTaskMap'][_0x5bca9b(0x3d3)]((_0x169d8f,_0xd45b4)=>{const _0x2a3477=_0x5bca9b;window['clearTimeout'](_0x169d8f),_0x3eb8b9[_0x2a3477(0x42d)](this[_0x2a3477(0x443)](_0xd45b4)[_0x2a3477(0x156)](()=>{const _0xdcd0b6=_0x2a3477;this[_0xdcd0b6(0x13d)][_0xdcd0b6(0x1af)](_0xd45b4);}));}),await Promise[_0x5bca9b(0x3ac)](_0x3eb8b9);}[_0x3022d6(0x299)](){const _0x2442c7=_0x3022d6;this[_0x2442c7(0x14a)](this['_beforeCloseService'][_0x2442c7(0x31a)](()=>{const _0x407bb9=_0x2442c7;if(this['_saveTaskMap'][_0x407bb9(0x2ca)])return this[_0x407bb9(0x3b1)]['t'](_0x407bb9(0x397));}));}},exports['LocalCacheService']=_s([ie(0x0,o['IConfigService']),ie(0x1,o['ILocalStorageService']),ie(0x2,L[_0x3022d6(0x3db)]),ie(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),ie(0x4,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)]))],exports[_0x3022d6(0x174)]);function qe(_0x2b6b36){const _0x3acedd=_0x3022d6;return _0x3acedd(0x211)+_0x2b6b36;}const pe=o['createIdentifier'](_0x3022d6(0x376));var Ct=(_0x54c139=>(_0x54c139[_0x54c139[_0x3022d6(0x3f7)]=0x0]=_0x3022d6(0x3f7),_0x54c139[_0x54c139[_0x3022d6(0x2e1)]=0x1]=_0x3022d6(0x2e1),_0x54c139))(Ct||{});const ze=0x7530,Je='ACTIVE_UNIT_EVENT_CHANNEL';class us extends o[_0x3022d6(0x1c9)]{constructor(){const _0x42beef=_0x3022d6;super(),u(this,'_id',o[_0x42beef(0x418)][_0x42beef(0x24e)]()),u(this,_0x42beef(0x35e),new Set()),u(this,_0x42beef(0x423),new Map()),u(this,_0x42beef(0x42a),null),u(this,'_clearOtherTimers',new Map()),u(this,_0x42beef(0x175),new Map()),this[_0x42beef(0x11b)]();}[_0x3022d6(0x147)](){const _0x484617=_0x3022d6;super[_0x484617(0x147)](),this[_0x484617(0xa8)][_0x484617(0x3d3)]((_0x3bfe7f,_0x6ed19)=>this[_0x484617(0x334)](_0x6ed19)),this['_heartbeatTimer']&&window[_0x484617(0xcd)](this[_0x484617(0x42a)]);}['getUnitStatus$'](_0x5bdf65){const _0x3ca3d0=_0x3022d6;return this[_0x3ca3d0(0x1bc)](_0x5bdf65)[_0x3ca3d0(0x23e)](v[_0x3ca3d0(0x1fe)]());}[_0x3022d6(0x313)](_0x57679c){const _0x2eeb27=_0x3022d6;this['_selfUnitIDs'][_0x2eeb27(0x2ca)]===0x0&&this[_0x2eeb27(0x261)](),this['_selfUnitIDs'][_0x2eeb27(0xe1)](_0x57679c),this[_0x2eeb27(0xff)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x57679c],'isForwarded':!0x1});}['disposeUnit'](_0x261eb2){const _0x103157=_0x3022d6;this[_0x103157(0x35e)][_0x103157(0x1af)](_0x261eb2),this[_0x103157(0x35e)][_0x103157(0x2ca)]===0x0&&this[_0x103157(0x42a)]&&window[_0x103157(0xcd)](this[_0x103157(0x42a)]);}[_0x3022d6(0x11b)](){const _0x454faf=_0x3022d6;this[_0x454faf(0x14a)](o['toDisposable'](v[_0x454faf(0x163)](window,_0x454faf(0x21d))[_0x454faf(0x265)](_0x37086b=>{const _0xb92c89=_0x454faf;if(_0x37086b[_0xb92c89(0xda)]!==Je||!_0x37086b['newValue'])return;const _0x289d84=JSON[_0xb92c89(0x2ab)](_0x37086b[_0xb92c89(0x3d6)]);this[_0xb92c89(0x119)](_0x289d84);}))),window[_0x454faf(0x29d)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x454faf(0x188)],'unitIDs':Array[_0x454faf(0x39f)](this[_0x454faf(0x35e)])}));}[_0x3022d6(0x119)](_0x1bc7f5){const _0x12ec3a=_0x3022d6;switch(_0x1bc7f5[_0x12ec3a(0x1f3)]){case 0x0:this[_0x12ec3a(0x1d6)](_0x1bc7f5);break;case 0x1:this[_0x12ec3a(0x1db)](_0x1bc7f5);break;case 0x2:this['_handleHeartbeatEvent'](_0x1bc7f5);break;}}[_0x3022d6(0x1d6)](_0xecf1f9){const _0xbd12e2=_0x3022d6,{unitIDs:_0x2ed7d7,memberID:_0xb2ea1a,isForwarded:_0x51026f}=_0xecf1f9;_0x2ed7d7[_0xbd12e2(0x3d3)](_0x197e78=>{const _0x354f90=_0xbd12e2;if(!_0x51026f&&this[_0x354f90(0x423)][_0x354f90(0x151)](_0x197e78)&&this[_0x354f90(0x1bc)](_0x197e78)[_0x354f90(0x116)](0x1),!this[_0x354f90(0x423)][_0x354f90(0x151)](_0x197e78)||!this[_0x354f90(0x423)]['get'](_0x197e78)['has'](_0xb2ea1a)){const _0x480e9a=this['_unitOnClients'][_0x354f90(0x84)](_0x197e78)||new Set();_0x480e9a['add'](_0xb2ea1a),this[_0x354f90(0x423)][_0x354f90(0x182)](_0x197e78,_0x480e9a),this[_0x354f90(0x305)](_0xb2ea1a);}}),_0x51026f||this[_0xbd12e2(0xff)]({'type':0x0,'memberID':this[_0xbd12e2(0x188)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3022d6(0x305)](_0xb4cefc){const _0x40d92f=_0x3022d6;this[_0x40d92f(0x334)](_0xb4cefc);const _0x8e46b5=window[_0x40d92f(0x3ba)](()=>{const _0x402c38=_0x40d92f;this['_unitOnClients'][_0x402c38(0x3d3)](_0x5da93d=>{const _0x374487=_0x402c38;_0x5da93d[_0x374487(0x1af)](_0xb4cefc);});},ze*0x2);this[_0x40d92f(0xa8)][_0x40d92f(0x182)](_0xb4cefc,_0x8e46b5);}[_0x3022d6(0x334)](_0x7b44b4){const _0x49c533=_0x3022d6;if(this[_0x49c533(0xa8)][_0x49c533(0x151)](_0x7b44b4)){const _0x43978e=this[_0x49c533(0xa8)]['get'](_0x7b44b4);_0x43978e&&window[_0x49c533(0x1b4)](_0x43978e),this[_0x49c533(0xa8)]['set'](_0x7b44b4,null);}}[_0x3022d6(0x1db)](_0x5d4b60){const _0x5daf42=_0x3022d6,{memberID:_0x818d75,unitIDs:_0x1b41a8}=_0x5d4b60;_0x1b41a8[_0x5daf42(0x3d3)](_0x59b558=>{const _0x335a9a=_0x5daf42;var _0x44b9a9;const _0x4e5a49=this['_unitOnClients'][_0x335a9a(0x84)](_0x59b558);_0x4e5a49&&(_0x4e5a49[_0x335a9a(0x1af)](_0x818d75),(_0x44b9a9=this[_0x335a9a(0x1bc)](_0x59b558))==null||_0x44b9a9['next'](_0x4e5a49['size']===0x0?0x0:0x1));}),this[_0x5daf42(0x334)](_0x818d75);}[_0x3022d6(0x3c9)](_0x35027e){const _0x100d7c=_0x3022d6;this[_0x100d7c(0x305)](_0x35027e[_0x100d7c(0x36f)]);}['_send'](_0x428603){const _0x22b480=_0x3022d6;localStorage[_0x22b480(0x31f)](Je,JSON[_0x22b480(0x258)](_0x428603));}['_scheduleHeartbeat'](){const _0x5df6fd=_0x3022d6;this[_0x5df6fd(0x42a)]=window[_0x5df6fd(0x1aa)](()=>{const _0x52c2bd=_0x5df6fd;this[_0x52c2bd(0xff)]({'type':0x2,'memberID':this[_0x52c2bd(0x188)]});},ze);}[_0x3022d6(0x1bc)](_0x4dc8df){const _0x619c22=_0x3022d6;return this[_0x619c22(0x175)][_0x619c22(0x151)](_0x4dc8df)||this[_0x619c22(0x175)]['set'](_0x4dc8df,new v[(_0x619c22(0x141))](0x0)),this[_0x619c22(0x175)][_0x619c22(0x84)](_0x4dc8df);}}var ds=Object['defineProperty'],Ss=Object[_0x3022d6(0x2b4)],vs=(_0x216560,_0x5787b1,_0x464625,_0x5ca31c)=>{const _0x96976a=_0x3022d6;for(var _0x238240=_0x5ca31c>0x1?void 0x0:_0x5ca31c?Ss(_0x5787b1,_0x464625):_0x5787b1,_0x5922c8=_0x216560[_0x96976a(0x2ce)]-0x1,_0x504353;_0x5922c8>=0x0;_0x5922c8--)(_0x504353=_0x216560[_0x5922c8])&&(_0x238240=(_0x5ca31c?_0x504353(_0x5787b1,_0x464625,_0x238240):_0x504353(_0x238240))||_0x238240);return _0x5ca31c&&_0x238240&&ds(_0x5787b1,_0x464625,_0x238240),_0x238240;},Ze=(_0x28a2b6,_0x4c8dcd)=>(_0x55930c,_0x3eef43)=>_0x4c8dcd(_0x55930c,_0x3eef43,_0x28a2b6);let ve=class{constructor(_0x40752b,_0x30495e){const _0x1e32a7=_0x3022d6;this['_injector']=_0x40752b,this[_0x1e32a7(0x223)]=_0x30495e;}[_0x3022d6(0x377)](_0x572638){const _0x56555b=_0x3022d6;this[_0x56555b(0x2f5)](_0x572638),this[_0x56555b(0x90)](_0x572638);}[_0x3022d6(0x364)](_0x51fe01){const _0x1d7a8d=_0x3022d6,_0xb5b606=this[_0x1d7a8d(0x123)][_0x1d7a8d(0x84)](P[_0x1d7a8d(0x464)]),{redoCache:_0x333deb}=_0xb5b606[_0x1d7a8d(0x41e)]();if(_0x333deb[_0x1d7a8d(0x2ce)]===0x0)return _0x51fe01;let _0x1fd84e=o[_0x1d7a8d(0x418)][_0x1d7a8d(0x201)](_0x51fe01['mutations'][0x0]);for(let _0x1f5997=0x0;_0x1f5997<_0x333deb['length'];_0x1f5997++){const _0x5a21d9={'id':_0x1d7a8d(0x290),'params':{..._0x333deb[_0x1f5997]}},_0x2f89c2=this[_0x1d7a8d(0x223)][_0x1d7a8d(0x28e)](_0x1fd84e,_0x5a21d9,!0x1);if(_['isTransformMutationFailure'](_0x2f89c2))throw _0x2f89c2[_0x1d7a8d(0x404)];_0x1fd84e=_0x2f89c2[_0x1d7a8d(0x39e)];}return{...o[_0x1d7a8d(0x418)][_0x1d7a8d(0x201)](_0x51fe01),'mutations':[_0x1fd84e]};}[_0x3022d6(0x2f5)](_0x5790ed){const _0x59fc47=_0x3022d6,_0x474b46=this[_0x59fc47(0x123)][_0x59fc47(0x84)](P[_0x59fc47(0x464)]),{undoCache:_0x4c6c23,redoCache:_0x1dba12}=_0x474b46[_0x59fc47(0x41e)]();if(_0x4c6c23[_0x59fc47(0x2ce)]===0x0||_0x1dba12[_0x59fc47(0x2ce)]===0x0)return;const _0x531790=[],_0x58c5c0=[];let _0x148472=o[_0x59fc47(0x418)][_0x59fc47(0x201)](_0x5790ed[_0x59fc47(0x2a5)][0x0]),_0x32e0c2=o['Tools'][_0x59fc47(0x201)](_0x5790ed['mutations'][0x0]);for(let _0x5700fa=_0x4c6c23[_0x59fc47(0x2ce)]-0x1;_0x5700fa>=0x0;_0x5700fa--){const _0x4dd3d7={'id':_0x59fc47(0x290),'params':{..._0x4c6c23[_0x5700fa]}},_0x4bdcbd={'id':_0x59fc47(0x290),'params':{..._0x1dba12[_0x5700fa]}},_0x329f05=this[_0x59fc47(0x223)][_0x59fc47(0x28e)](_0x148472,_0x4dd3d7,!0x1),_0x77b3d4=this[_0x59fc47(0x223)]['transformMutation'](_0x32e0c2,_0x4bdcbd,!0x1);if(_[_0x59fc47(0x36a)](_0x329f05))throw _0x329f05['error'];if(_[_0x59fc47(0x36a)](_0x77b3d4))throw _0x77b3d4[_0x59fc47(0x404)];_0x531790['unshift'](_0x329f05[_0x59fc47(0x469)][_0x59fc47(0xd7)]),_0x58c5c0[_0x59fc47(0x3ec)](_0x77b3d4[_0x59fc47(0x469)][_0x59fc47(0xd7)]),_0x148472=_0x329f05[_0x59fc47(0x39e)],_0x32e0c2=_0x77b3d4['m1Prime'];}_0x474b46['setUndoRedoMutationParamsCache']({'undoCache':_0x531790,'redoCache':_0x58c5c0});}[_0x3022d6(0x90)](_0x58addf){const _0x14c88d=_0x3022d6,_0x700f28=this[_0x14c88d(0x123)][_0x14c88d(0x84)](P[_0x14c88d(0x464)]),_0x3f0817=_0x700f28[_0x14c88d(0x7c)]();if(_0x3f0817==null)return;const _0x30fa1c=[{'id':_0x14c88d(0x290),'params':{'unitId':_0x58addf['unitID'],'actions':null,'textRanges':[_0x3f0817]}}],_0x1bede1=this[_0x14c88d(0x223)][_0x14c88d(0x375)](_0x58addf,_0x30fa1c);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1bede1))throw _0x1bede1[_0x14c88d(0x404)];const _0x508d7d=_0x1bede1[_0x14c88d(0x469)][0x0][_0x14c88d(0xd7)]['textRanges'];Array[_0x14c88d(0x3a1)](_0x508d7d)&&_0x508d7d['length']&&_0x700f28['setActiveRange'](_0x508d7d[0x0]);}};ve=vs([Ze(0x0,o['Inject'](o['Injector'])),Ze(0x1,_[_0x3022d6(0x1d1)])],ve);var ms=Object['defineProperty'],gs=Object['getOwnPropertyDescriptor'],fs=(_0x4943a1,_0x513b46,_0x4d2e1f,_0xda901b)=>{const _0x3ad03f=_0x3022d6;for(var _0x8417dc=_0xda901b>0x1?void 0x0:_0xda901b?gs(_0x513b46,_0x4d2e1f):_0x513b46,_0x515f38=_0x4943a1[_0x3ad03f(0x2ce)]-0x1,_0x53719f;_0x515f38>=0x0;_0x515f38--)(_0x53719f=_0x4943a1[_0x515f38])&&(_0x8417dc=(_0xda901b?_0x53719f(_0x513b46,_0x4d2e1f,_0x8417dc):_0x53719f(_0x8417dc))||_0x8417dc);return _0xda901b&&_0x8417dc&&ms(_0x513b46,_0x4d2e1f,_0x8417dc),_0x8417dc;},Qe=(_0x521d19,_0x16ff44)=>(_0x4a172d,_0x576d5d)=>_0x16ff44(_0x4a172d,_0x576d5d,_0x521d19);let me=class{constructor(_0x5b301c,_0xba05d9){const _0x213f0e=_0x3022d6;this[_0x213f0e(0x123)]=_0x5b301c,this[_0x213f0e(0x223)]=_0xba05d9;}['transformSelections'](_0x5bf815){const _0x4aab1c=_0x3022d6;var _0x172ae2;const _0x378ecf=this[_0x4aab1c(0x123)][_0x4aab1c(0x84)](P[_0x4aab1c(0x329)]),_0x5c4b07=(_0x172ae2=_0x378ecf[_0x4aab1c(0x3bd)]())!=null?_0x172ae2:[],_0x186286=_0x5c4b07==null?void 0x0:_0x5c4b07[_0x4aab1c(0x317)](P[_0x4aab1c(0x3f1)]);if(_0x186286['length']===0x0)return;const _0x124bff=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5bf815[_0x4aab1c(0x367)],'actions':null,'textRanges':_0x186286}}],_0x2cb350=this[_0x4aab1c(0x223)][_0x4aab1c(0x375)](_0x5bf815,_0x124bff);if(!_[_0x4aab1c(0x10c)](_0x2cb350))throw _0x2cb350[_0x4aab1c(0x404)];const _0x24d70a=_0x2cb350['m2Prime'][0x0]['params'][_0x4aab1c(0x134)];Array['isArray'](_0x24d70a)&&_0x24d70a[_0x4aab1c(0x2ce)]&&_0x378ecf[_0x4aab1c(0x335)](_0x24d70a,!0x1);}};me=fs([Qe(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),Qe(0x1,_[_0x3022d6(0x1d1)])],me);function bt(_0x9dde2f){const _0xc20c6b=_0x3022d6;let _0x221a32='';for(const _0x1afc88 of _0x9dde2f){const {startOffset:_0x11c009,endOffset:_0x34fcb1,isActive:_0x2c4141}=_0x1afc88;_0x221a32[_0xc20c6b(0x2ce)]&&(_0x221a32+=','),_0x221a32+=_0x11c009+':'+_0x34fcb1+':'+(_0x2c4141?'1':'0');}return _0x221a32;}function Is(_0x232016){const _0x3337de=_0x3022d6,_0xf6a234=_0x232016['split'](','),_0x44efbc=[];for(const _0x55e957 of _0xf6a234){const [_0x598983,_0x1c1b54,_0x23957d]=_0x55e957['split'](':');_0x44efbc[_0x3337de(0x42d)]({'startOffset':Number(_0x598983),'endOffset':Number(_0x1c1b54),'collapsed':_0x598983===_0x1c1b54,'isActive':_0x23957d==='1'});}return _0x44efbc['some'](_0x3fdd7a=>_0x3fdd7a['isActive'])||(_0x44efbc[0x0][_0x3337de(0x311)]=!0x0),_0x44efbc;}class We extends o['RxDisposable']{constructor(){const _0x30522c=_0x3022d6;super(...arguments),u(this,_0x30522c(0x15c),new v[(_0x30522c(0x141))](null)),u(this,_0x30522c(0x3d9),this[_0x30522c(0x15c)][_0x30522c(0x295)]());}[_0x3022d6(0x2fe)](_0x1549c2){const _0x5a65db=_0x3022d6,{unitID:_0x4ba37c,memberID:_0x286a75,textRanges:_0x17fd5a}=_0x1549c2,_0xfbf8c3=bt(_0x17fd5a),_0x56e712={'unitID':_0x4ba37c,'memberID':_0x286a75,'selection':_0xfbf8c3};this[_0x5a65db(0x15c)]['next'](_0x56e712);}}var ps=Object['defineProperty'],Es=Object[_0x3022d6(0x2b4)],Cs=(_0x3f0d1a,_0x358edf,_0x1f789d,_0x59b426)=>{const _0xc70db1=_0x3022d6;for(var _0x4ad5cc=_0x59b426>0x1?void 0x0:_0x59b426?Es(_0x358edf,_0x1f789d):_0x358edf,_0xe11b17=_0x3f0d1a[_0xc70db1(0x2ce)]-0x1,_0x3e0915;_0xe11b17>=0x0;_0xe11b17--)(_0x3e0915=_0x3f0d1a[_0xe11b17])&&(_0x4ad5cc=(_0x59b426?_0x3e0915(_0x358edf,_0x1f789d,_0x4ad5cc):_0x3e0915(_0x4ad5cc))||_0x4ad5cc);return _0x59b426&&_0x4ad5cc&&ps(_0x358edf,_0x1f789d,_0x4ad5cc),_0x4ad5cc;},et=(_0x41730f,_0x7dfd34)=>(_0x5ad6c3,_0x3e4c3f)=>_0x7dfd34(_0x5ad6c3,_0x3e4c3f,_0x41730f);function bs(_0x2d1c1e){const _0x1dea0b=_0x3022d6,{unitID:_0x263411,mutations:_0x32bd98}=_0x2d1c1e;return{'unitId':_0x263411,'subUnitId':_0x32bd98[0x0][_0x1dea0b(0xd7)][_0x1dea0b(0x3d1)]};}let ge=class{constructor(_0x1e3aeb,_0xa5ed21){this['_injector']=_0x1e3aeb,this['_transformService']=_0xa5ed21;}[_0x3022d6(0xbd)](_0x3e28c0){const _0x22d43b=_0x3022d6;var _0x378b22,_0x26a32a,_0x13d21b;const _0x191cad=this[_0x22d43b(0x123)]['get'](p['SheetsSelectionsService']),{unitId:_0x401365,subUnitId:_0x2e921e}=bs(_0x3e28c0),_0x4c276d=_0x191cad[_0x22d43b(0x185)](_0x401365)[_0x22d43b(0xbe)]();if(_0x4c276d[_0x22d43b(0x2ce)]===0x0||!_0x401365||!_0x2e921e)return;const _0x2537b1=[{'id':p['SetSelectionsOperation']['id'],'params':{'unitId':_0x401365,'subUnitId':_0x2e921e,'selections':o[_0x22d43b(0x418)][_0x22d43b(0x201)](_0x4c276d)}}],_0x3cf102=this[_0x22d43b(0x223)][_0x22d43b(0x375)](_0x3e28c0,_0x2537b1);if(!_[_0x22d43b(0x10c)](_0x3cf102))throw _0x3cf102[_0x22d43b(0x404)];const _0x49136e=(_0x13d21b=(_0x26a32a=(_0x378b22=_0x3cf102[_0x22d43b(0x469)][0x0])==null?void 0x0:_0x378b22['params'])==null?void 0x0:_0x26a32a[_0x22d43b(0x2e7)])!=null?_0x13d21b:_0x4c276d;Array[_0x22d43b(0x3a1)](_0x49136e)&&_0x49136e[_0x22d43b(0x2ce)]&&this[_0x22d43b(0x123)][_0x22d43b(0x84)](o['ICommandService'])['executeCommand'](p[_0x22d43b(0x231)]['id'],{'unitId':_0x401365,'subUnitId':_0x2e921e,'selections':_0x49136e});}};ge=Cs([et(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),et(0x1,_['ITransformService'])],ge);const Ts=new Set([p[_0x3022d6(0x3d5)]['id']]);function tt(_0x26f792,_0x512bff,_0x37be72,_0x4ca68f,_0x1646e2){const _0x583edf=_0x3022d6;var _0x4cfa96,_0x412edb,_0x3e8031,_0x4b2f44;const _0x31fdaa=[];for(const _0xc050b6 of _0x26f792)if(Ts[_0x583edf(0x151)](_0xc050b6['id'])){if(_0x31fdaa[_0x583edf(0x2ce)]>0x0)break;_0x31fdaa[_0x583edf(0x42d)](_0xc050b6);break;}else _0x31fdaa[_0x583edf(0x42d)](_0xc050b6);const _0x5675fd=(_0x412edb=(_0x4cfa96=_0x1646e2[_0x583edf(0x129)]())==null?void 0x0:_0x4cfa96[_0x583edf(0x81)])!=null?_0x412edb:'unknown',_0x2beb24=(_0x4b2f44=(_0x3e8031=_0x1646e2[_0x583edf(0x129)]())==null?void 0x0:_0x3e8031[_0x583edf(0x36f)])!=null?_0x4b2f44:_0x583edf(0x2ad);return{'changeset':{'unitID':_0x512bff,'type':_[_0x583edf(0x3c4)](_0x37be72['getUnitType'](_0x512bff)),'baseRev':_0x4ca68f[_0x583edf(0x33a)](_0x512bff),'revision':0x0,'userID':_0x5675fd,'memberID':_0x2beb24,'mutations':_0x31fdaa},'pendingMutations':_0x26f792[_0x583edf(0x21e)](_0x31fdaa[_0x583edf(0x2ce)])};}function Rs(_0xf1d120,_0x3cc37e,_0x222102,_0x419f99,_0x44873a){const _0x49c1c9=_0x3022d6;var _0x163447,_0x2bd26b,_0x3a52cd,_0x472e3a;const _0x1f5291=[_0xf1d120[_0x49c1c9(0xb0)]((_0x6f6420,_0x278660)=>{const _0x5998c1=_0x49c1c9;var _0x3a02a7;const {id:_0x19d1c7}=_0x6f6420,{id:_0x3d8e02,type:_0x3cda21}=_0x278660,_0x5cabbf=(_0x3a02a7=_0x6f6420[_0x5998c1(0xd7)])!=null?_0x3a02a7:{'actions':null},_0x3e48d1=_0x278660[_0x5998c1(0xd7)];if(_0x19d1c7&&_0x19d1c7!==_0x3d8e02)throw new Error(_0x5998c1(0x333)+_0x19d1c7+'\x20-\x20'+_0x3d8e02+'.');return{..._0x6f6420,'id':_0x3d8e02,'type':_0x3cda21,'params':{'unitId':_0x3e48d1[_0x5998c1(0x347)],'textRanges':_0x3e48d1[_0x5998c1(0x134)],'actions':o[_0x5998c1(0x30c)]['compose'](_0x5cabbf[_0x5998c1(0x2d6)],_0x3e48d1['actions'])}};},{})],_0x3d061a=(_0x2bd26b=(_0x163447=_0x44873a[_0x49c1c9(0x129)]())==null?void 0x0:_0x163447[_0x49c1c9(0x81)])!=null?_0x2bd26b:'unknown',_0x1ddd84=(_0x472e3a=(_0x3a52cd=_0x44873a['getCurrentUser']())==null?void 0x0:_0x3a52cd['memberID'])!=null?_0x472e3a:'unknown';return{'changeset':{'unitID':_0x3cc37e,'type':_[_0x49c1c9(0x3c4)](_0x222102[_0x49c1c9(0x110)](_0x3cc37e)),'baseRev':_0x419f99[_0x49c1c9(0x33a)](_0x3cc37e),'revision':0x0,'userID':_0x3d061a,'memberID':_0x1ddd84,'mutations':_0x1f5291},'pendingMutations':[]};}const Os={'id':p[_0x3022d6(0x3f8)]['id'],'type':o[_0x3022d6(0x2c5)]['MUTATION'],'params':{}};var Ds=Object[_0x3022d6(0x131)],Ps=Object[_0x3022d6(0x2b4)],K=(_0x1d63e7,_0x4a8ea0,_0x2cd564,_0x162116)=>{const _0x5c0593=_0x3022d6;for(var _0x28402f=_0x162116>0x1?void 0x0:_0x162116?Ps(_0x4a8ea0,_0x2cd564):_0x4a8ea0,_0x3b6618=_0x1d63e7[_0x5c0593(0x2ce)]-0x1,_0x219653;_0x3b6618>=0x0;_0x3b6618--)(_0x219653=_0x1d63e7[_0x3b6618])&&(_0x28402f=(_0x162116?_0x219653(_0x4a8ea0,_0x2cd564,_0x28402f):_0x219653(_0x28402f))||_0x28402f);return _0x162116&&_0x28402f&&Ds(_0x4a8ea0,_0x2cd564,_0x28402f),_0x28402f;},m=(_0x31e4b6,_0xda1eb5)=>(_0x934e15,_0x1208ae)=>_0xda1eb5(_0x934e15,_0x1208ae,_0x31e4b6),D=(_0x4e40a3=>(_0x4e40a3[_0x3022d6(0x463)]=_0x3022d6(0x159),_0x4e40a3[_0x3022d6(0xf8)]='synced',_0x4e40a3[_0x3022d6(0x270)]=_0x3022d6(0x1ed),_0x4e40a3[_0x3022d6(0x1d0)]=_0x3022d6(0x450),_0x4e40a3['AWAITING_WITH_PENDING']=_0x3022d6(0x3f0),_0x4e40a3[_0x3022d6(0x1d2)]='fetch_missing',_0x4e40a3['CONFLICT']=_0x3022d6(0x3a0),_0x4e40a3[_0x3022d6(0x316)]=_0x3022d6(0x3b3),_0x4e40a3))(D||{});class X{constructor(_0x54a8a9,_0x95156f,_0x573774,_0x50f8fe,_0x1ea378,_0x4ee12a,_0x40f900,_0x1b71b5,_0x2b42d9){const _0x548d79=_0x3022d6;u(this,_0x548d79(0x3e3),null),u(this,'_pendingMutations',[]),(this['unitID']=_0x54a8a9,this[_0x548d79(0x1f3)]=_0x95156f,this[_0x548d79(0x3ce)]=_0x1ea378,this[_0x548d79(0x467)]=_0x4ee12a,this['_undoRedoService']=_0x40f900,this[_0x548d79(0x254)]=_0x1b71b5,this['_localCacheService']=_0x2b42d9,this['_awaitingChangeset']=_0x573774,this[_0x548d79(0x229)]=_0x50f8fe);}[_0x3022d6(0x1ef)](_0x46f82d){const _0x2725e8=_0x3022d6,_0x10f1e2=this[_0x2725e8(0x254)][_0x2725e8(0x33a)](this[_0x2725e8(0x367)]);return _0x46f82d[_0x2725e8(0x33d)]>_0x10f1e2+0x1?(this['_handler'][_0x2725e8(0x2b0)]({'from':_0x10f1e2,'to':_0x46f82d[_0x2725e8(0x33d)]-0x1}),!0x0):!0x1;}[_0x3022d6(0x241)](_0x4a0822){const _0x1e83ac=_0x3022d6;this[_0x1e83ac(0x42c)]['transformUndoRedo'](this['unitID'],_0x4a0822);}['_transformSelections'](_0x1bf423){const _0x525d44=_0x3022d6;var _0x4e462f,_0x50cd91;(_0x50cd91=(_0x4e462f=this[_0x525d44(0x3ce)])[_0x525d44(0x118)])==null||_0x50cd91[_0x525d44(0x422)](_0x4e462f,_0x1bf423);}[_0x3022d6(0x3de)](_0x416d2c){const _0x3ca126=_0x3022d6;var _0x15490d,_0x32a163;return(_0x32a163=(_0x15490d=this[_0x3ca126(0x3ce)])['onTransformIME'])==null?void 0x0:_0x32a163['call'](_0x15490d,_0x416d2c);}['_transformRemoteChangesetByIMECache'](_0x2cbc1e){const _0x53de4b=_0x3022d6;var _0x1f26c9,_0x4d63e8,_0x192ba9;return(_0x192ba9=(_0x4d63e8=(_0x1f26c9=this[_0x53de4b(0x3ce)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4d63e8[_0x53de4b(0x422)](_0x1f26c9,_0x2cbc1e))!=null?_0x192ba9:_0x2cbc1e;}['_syncEditingCollabCursor'](_0x28fd6e){const _0x423166=_0x3022d6;var _0x576b23,_0x1b160f;if(this[_0x423166(0x1f3)]===j[_0x423166(0x237)]){const {unitID:_0x4c5925,mutations:_0x7880ca,memberID:_0x3ac3d0}=_0x28fd6e,_0x496e7a=_0x7880ca[0x0][_0x423166(0xd7)][_0x423166(0x134)];Array['isArray'](_0x496e7a)&&_0x496e7a[_0x423166(0x2ce)]>0x0&&((_0x1b160f=(_0x576b23=this[_0x423166(0x3ce)])['onSyncEditingCollabCursor'])==null||_0x1b160f[_0x423166(0x422)](_0x576b23,{'unitID':_0x4c5925,'memberID':_0x3ac3d0,'textRanges':_0x496e7a}));}}[_0x3022d6(0x34d)](){const _0x9ec650=_0x3022d6;this[_0x9ec650(0x3ea)][_0x9ec650(0xbb)](this[_0x9ec650(0x367)],this[_0x9ec650(0x1f3)],this[_0x9ec650(0x3e3)],this[_0x9ec650(0x229)]);}[_0x3022d6(0x2e2)](){const _0x4ea688=_0x3022d6;return this[_0x4ea688(0x254)][_0x4ea688(0x33a)](this[_0x4ea688(0x367)]);}[_0x3022d6(0x3ad)](){const _0x355d68=_0x3022d6;this[_0x355d68(0x254)]['incrementRevForDocument'](this['unitID']);}[_0x3022d6(0x415)](_0x1e4ca3){const _0x24f1d0=_0x3022d6;var _0x192910;const _0x2ee049=this[_0x24f1d0(0x158)](_0x1e4ca3),_0x2aecaa=o['sequenceExecute'](_0x2ee049[_0x24f1d0(0x2a5)],this[_0x24f1d0(0x467)],{'fromCollab':!0x0});if(!_0x2aecaa[_0x24f1d0(0x3c5)])throw _0x2aecaa[_0x24f1d0(0x404)]instanceof Error?_0x2aecaa[_0x24f1d0(0x404)]:new Error((_0x192910=_0x2aecaa['error'])!=null?_0x192910:_0x24f1d0(0x217));this[_0x24f1d0(0x3de)](_0x2ee049),this['_transformUndoredo'](_0x1e4ca3),this[_0x24f1d0(0xdd)](_0x2ee049),this[_0x24f1d0(0x3c1)](_0x2ee049),this[_0x24f1d0(0x3ad)]();}}let ce=class extends X{constructor(_0x1180ec,_0xa8c4a4,_0xe87f20,_0x2fc83b,_0x418408,_0x350184,_0x3af90f,_0x3d4bde,_0x1feb46,_0x490b7b){const _0x56cafd=_0x3022d6;super(_0x1180ec,_0xa8c4a4,null,[],_0xe87f20,_0x3d4bde,_0x3af90f,_0x2fc83b,_0x418408),u(this,_0x56cafd(0x15b),'synced'),(this[_0x56cafd(0x123)]=_0x350184,this[_0x56cafd(0x38b)]=_0x1feb46,this[_0x56cafd(0x223)]=_0x490b7b);}[_0x3022d6(0x39c)](_0x16fffe){const _0x30fbf6=_0x3022d6,_0x43ae5c=this[_0x30fbf6(0x123)][_0x30fbf6(0x89)]($,this[_0x30fbf6(0x367)],this[_0x30fbf6(0x1f3)],[_0x16fffe],this[_0x30fbf6(0x3ce)]);return _0x43ae5c[_0x30fbf6(0x455)](),_0x43ae5c['_updateLocalCache'](),_0x43ae5c;}['onRemoteChangeset'](_0x129711){const _0x18e7a9=_0x3022d6;if(this[_0x18e7a9(0x1ef)](_0x129711))return this[_0x18e7a9(0x123)][_0x18e7a9(0x89)](H,this[_0x18e7a9(0x367)],this[_0x18e7a9(0x1f3)],null,[],null,[_0x129711],this['_handler']);try{const _0x3811c4=this['_transformService'][_0x18e7a9(0x375)](_0x129711,[Os]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3811c4)){const {c1Prime:_0x567e85}=_0x3811c4;return this[_0x18e7a9(0x415)](_0x567e85),this;}throw _0x3811c4[_0x18e7a9(0x404)];}catch(_0x483141){return this[_0x18e7a9(0x38b)][_0x18e7a9(0x404)](_0x483141),this[_0x18e7a9(0x24f)](!0x1);}}[_0x3022d6(0x24f)](_0x3ef64d){const _0xa6a591=_0x3022d6;return this[_0xa6a591(0x123)][_0xa6a591(0x89)](B,this['unitID'],this[_0xa6a591(0x1f3)],null,[],this[_0xa6a591(0x3ce)],_0x3ef64d);}[_0x3022d6(0xc1)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3022d6(0x19d)](){const _0x11c763=_0x3022d6;throw new Error(_0x11c763(0x389));}[_0x3022d6(0x2b5)](){const _0x5b8f59=_0x3022d6;return this[_0x5b8f59(0x123)]['createInstance'](V,this[_0x5b8f59(0x367)],this[_0x5b8f59(0x1f3)],null,[],this[_0x5b8f59(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ce=K([m(0x3,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x4,o[_0x3022d6(0x291)](exports['LocalCacheService'])),m(0x5,o['Inject'](o[_0x3022d6(0x448)])),m(0x6,o['IUndoRedoService']),m(0x7,o[_0x3022d6(0x3e6)]),m(0x8,o['ILogService']),m(0x9,_['ITransformService'])],ce);let $=class extends X{constructor(_0x478f5c,_0x10b3d6,_0x47898d,_0x3e15d6,_0x518de2,_0x5f3629,_0x35a3bb,_0x15d241,_0x5858cd,_0x55d847,_0x1ebb08,_0x471be0,_0x9c612b,_0x35809f){const _0x1f6cf2=_0x3022d6;super(_0x478f5c,_0x10b3d6,null,_0x47898d,_0x3e15d6,_0x55d847,_0x35809f,_0x5f3629,_0x35a3bb),u(this,_0x1f6cf2(0x15b),_0x1f6cf2(0x1ed)),u(this,_0x1f6cf2(0x3cf),null),u(this,_0x1f6cf2(0x1f4),null),(this[_0x1f6cf2(0x123)]=_0x518de2,this[_0x1f6cf2(0x16b)]=_0x15d241,this[_0x1f6cf2(0x38b)]=_0x5858cd,this[_0x1f6cf2(0xee)]=_0x1ebb08,this[_0x1f6cf2(0x223)]=_0x471be0,this[_0x1f6cf2(0x17c)]=_0x9c612b);}[_0x3022d6(0x39c)](_0x3a8743){const _0x35ce8f=_0x3022d6;return this[_0x35ce8f(0x229)]['push'](_0x3a8743),this[_0x35ce8f(0x34d)](),this;}[_0x3022d6(0x138)](_0x30945e){const _0x37f1db=_0x3022d6;if(this[_0x37f1db(0x1ef)](_0x30945e))return this[_0x37f1db(0x2e6)](),this[_0x37f1db(0x123)][_0x37f1db(0x89)](H,this[_0x37f1db(0x367)],this['type'],null,this[_0x37f1db(0x229)],null,[_0x30945e],this[_0x37f1db(0x3ce)]);try{const _0x1cb749=this['_transformService'][_0x37f1db(0x375)](_0x30945e,this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x1cb749)){const {c1Prime:_0x24c5f2,m2Prime:_0x1dc9a1}=_0x1cb749;this[_0x37f1db(0x415)](_0x24c5f2);const _0x1b7363=this[_0x37f1db(0x123)][_0x37f1db(0x89)]($,this[_0x37f1db(0x367)],this[_0x37f1db(0x1f3)],_0x1dc9a1,this[_0x37f1db(0x3ce)]);return this['_clearScheduledTask'](),_0x1b7363['_schedule'](this[_0x37f1db(0x3cf)]?Math['max'](0x0,new Date()[_0x37f1db(0x1fd)]()-this[_0x37f1db(0x3cf)]):this[_0x37f1db(0x250)]()),_0x1b7363;}throw _0x1cb749[_0x37f1db(0x404)];}catch(_0x3b6761){return this[_0x37f1db(0x38b)][_0x37f1db(0x404)](_0x3b6761),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](){const _0x600518=_0x3022d6;throw new Error(_0x600518(0x1f5));}[_0x3022d6(0x19d)](){const _0x4586c4=_0x3022d6;throw new Error(_0x4586c4(0x14b));}[_0x3022d6(0x2b5)](){const _0x2e2cc3=_0x3022d6;return this['_clearScheduledTask'](),this['_injector'][_0x2e2cc3(0x89)](V,this[_0x2e2cc3(0x367)],this[_0x2e2cc3(0x1f3)],null,this['_pendingMutations'],this[_0x2e2cc3(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x455)](_0x237c9f){const _0x1ed62a=_0x3022d6;_0x237c9f=_0x237c9f!=null?_0x237c9f:this[_0x1ed62a(0x250)](),this[_0x1ed62a(0x3cf)]=new Date()[_0x1ed62a(0x1fd)](),this[_0x1ed62a(0x1f4)]=setTimeout(()=>{const _0x573e65=_0x1ed62a;this[_0x573e65(0x2e6)]();let _0x58c62a=null;switch(this[_0x573e65(0x1f3)]){case j['UNIVER_SHEET']:{_0x58c62a=tt(this['_pendingMutations'],this['unitID'],this[_0x573e65(0x17c)],this['_revisionService'],this['_memberService']);break;}case j[_0x573e65(0x237)]:{this['_pendingMutations']['every'](_0x389115=>_0x389115['id']===P[_0x573e65(0x365)]['id'])?_0x58c62a=Rs(this['_pendingMutations'],this[_0x573e65(0x367)],this[_0x573e65(0x17c)],this[_0x573e65(0x254)],this['_memberService']):_0x58c62a=tt(this['_pendingMutations'],this['unitID'],this[_0x573e65(0x17c)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x573e65(0x461)+this['type']+_0x573e65(0x43d));}const {changeset:_0x39519a,pendingMutations:_0x36d424}=_0x58c62a;this[_0x573e65(0x3ce)]['onSendChangeset'](_0x39519a);const _0x463500=_0x36d424[_0x573e65(0x2ce)]?this[_0x573e65(0x123)][_0x573e65(0x89)](x,this[_0x573e65(0x367)],this[_0x573e65(0x1f3)],_0x39519a,_0x36d424,this[_0x573e65(0x3ce)]):this[_0x573e65(0x123)]['createInstance'](k,this[_0x573e65(0x367)],this[_0x573e65(0x1f3)],_0x39519a,this[_0x573e65(0x3ce)]);_0x463500[_0x573e65(0x34d)](),this[_0x573e65(0x3ce)][_0x573e65(0x218)](this,_0x463500);},_0x237c9f);}['_getSendChangesetTimeout'](){const _0xdd0fd2=_0x3022d6;var _0x58d8b1;return(_0x58d8b1=this['_configService'][_0xdd0fd2(0x1bd)](ht))!=null?_0x58d8b1:Wt;}[_0x3022d6(0x40f)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3022d6(0x2e6)](){const _0x1bcda4=_0x3022d6;this[_0x1bcda4(0x1f4)]!=null&&(clearTimeout(this[_0x1bcda4(0x1f4)]),this[_0x1bcda4(0x1f4)]=null);}[_0x3022d6(0x24f)](_0x305875){const _0x3857cc=_0x3022d6;return this[_0x3857cc(0x2e6)](),this[_0x3857cc(0x123)]['createInstance'](B,this['unitID'],this[_0x3857cc(0x1f3)],null,this[_0x3857cc(0x229)],this[_0x3857cc(0x3ce)],_0x305875);}};$=K([m(0x4,o[_0x3022d6(0x291)](o['Injector'])),m(0x5,o[_0x3022d6(0x291)](_['RevisionService'])),m(0x6,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x7,o[_0x3022d6(0x291)](Y)),m(0x8,o['ILogService']),m(0x9,o[_0x3022d6(0x3e6)]),m(0xa,o[_0x3022d6(0x3be)]),m(0xb,_[_0x3022d6(0x1d1)]),m(0xc,o[_0x3022d6(0xb8)]),m(0xd,o[_0x3022d6(0x114)])],$);let k=class extends X{constructor(_0xad95d0,_0x58fb5e,_0x378de6,_0x2f0da1,_0x559c0e,_0x5e33a4,_0x4947fb,_0x19e90c,_0x52b65f,_0x57e926,_0x1ecf7e){const _0x3afb07=_0x3022d6;super(_0xad95d0,_0x58fb5e,_0x378de6,[],_0x2f0da1,_0x19e90c,_0x1ecf7e,_0x5e33a4,_0x4947fb),u(this,'status',_0x3afb07(0x450)),(this[_0x3afb07(0x123)]=_0x559c0e,this[_0x3afb07(0x38b)]=_0x52b65f,this[_0x3afb07(0x223)]=_0x57e926);}[_0x3022d6(0x39c)](_0x5ee04f){const _0xbb817d=_0x3022d6,_0x38baf3=this[_0xbb817d(0x123)][_0xbb817d(0x89)](x,this['unitID'],this[_0xbb817d(0x1f3)],this['_awaitingChangeset'],[_0x5ee04f],this[_0xbb817d(0x3ce)]);return _0x38baf3[_0xbb817d(0x34d)](),_0x38baf3;}[_0x3022d6(0x138)](_0x328b73){const _0x5c2a96=_0x3022d6;if(this[_0x5c2a96(0x1ef)](_0x328b73))return this[_0x5c2a96(0x123)][_0x5c2a96(0x89)](H,this['unitID'],this[_0x5c2a96(0x1f3)],this[_0x5c2a96(0x3e3)],[],null,[_0x328b73],this[_0x5c2a96(0x3ce)]);try{const _0x4dbc67=this[_0x5c2a96(0x223)][_0x5c2a96(0x232)]([_0x328b73],[this[_0x5c2a96(0x3e3)]],!0x1);if(_[_0x5c2a96(0x2cf)](_0x4dbc67)){const {c1Prime:_0x3a578b,c2Prime:_0xd399ee}=_0x4dbc67;this[_0x5c2a96(0x415)](_0x3a578b[0x0]),_0xd399ee[0x0][_0x5c2a96(0x1da)]=this['_getCurrentRevision']();const _0x3031c6=this[_0x5c2a96(0x123)]['createInstance'](k,this['unitID'],this['type'],_0xd399ee[0x0],this[_0x5c2a96(0x3ce)]);return _0x3031c6[_0x5c2a96(0x34d)](),_0x3031c6;}return this[_0x5c2a96(0x24f)](!0x1);}catch(_0xe14102){return this[_0x5c2a96(0x38b)][_0x5c2a96(0x404)](_0xe14102),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](_0xac73c0){const _0x17c96d=_0x3022d6,_0x12a54d=this[_0x17c96d(0x254)][_0x17c96d(0x33a)](this['unitID']);if(_0xac73c0[_0x17c96d(0x33d)]<_0x12a54d-0x1)return this;if(this[_0x17c96d(0x1ef)](_0xac73c0))return this['_injector'][_0x17c96d(0x89)](H,this[_0x17c96d(0x367)],this[_0x17c96d(0x1f3)],null,[],this[_0x17c96d(0x3e3)],[],this['_handler']);this[_0x17c96d(0x3ad)]();const _0x512f1e=this['_injector'][_0x17c96d(0x89)](ce,this[_0x17c96d(0x367)],this[_0x17c96d(0x1f3)],this[_0x17c96d(0x3ce)]);return _0x512f1e[_0x17c96d(0x34d)](),_0x512f1e;}['onRemoteRej'](_0x4b5783){const _0x1cb382=_0x3022d6;return this[_0x1cb382(0x24f)](!!(_0x4b5783!=null&&_0x4b5783['isPermissionRej']));}[_0x3022d6(0x2b5)](){const _0x481c94=_0x3022d6;return this[_0x481c94(0x123)][_0x481c94(0x89)](V,this[_0x481c94(0x367)],this[_0x481c94(0x1f3)],this[_0x481c94(0x3e3)],[],this['_handler']);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0x12cf20=_0x3022d6;this[_0x12cf20(0x3ce)]['onSendChangeset'](this[_0x12cf20(0x3e3)]);}[_0x3022d6(0x24f)](_0x4509b6){const _0x43c488=_0x3022d6;return this['_injector'][_0x43c488(0x89)](B,this['unitID'],this[_0x43c488(0x1f3)],this[_0x43c488(0x3e3)],[],this['_handler'],_0x4509b6);}};k=K([m(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x5,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x6,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x7,o['ICommandService']),m(0x8,o[_0x3022d6(0x22f)]),m(0x9,_[_0x3022d6(0x1d1)]),m(0xa,o[_0x3022d6(0x114)])],k);let x=class extends X{constructor(_0x540732,_0x18dd8a,_0x445ce1,_0x1575e9,_0x324ca3,_0xd9fb39,_0xc48921,_0x3fad45,_0x1565a0,_0x38b790,_0x22af90,_0x4376a8){const _0x4f6979=_0x3022d6;super(_0x540732,_0x18dd8a,_0x445ce1,_0x1575e9,_0x324ca3,_0x1565a0,_0x4376a8,_0xc48921,_0x3fad45),u(this,_0x4f6979(0x15b),_0x4f6979(0x3f0)),(this[_0x4f6979(0x123)]=_0xd9fb39,this[_0x4f6979(0x38b)]=_0x38b790,this[_0x4f6979(0x223)]=_0x22af90);}[_0x3022d6(0x39c)](_0x36cd02){const _0x5ee7e1=_0x3022d6;return this[_0x5ee7e1(0x229)][_0x5ee7e1(0x42d)](_0x36cd02),this;}[_0x3022d6(0x138)](_0x5f318b){const _0x4988d8=_0x3022d6;if(this['_checkMissing'](_0x5f318b))return this[_0x4988d8(0x123)][_0x4988d8(0x89)](H,this[_0x4988d8(0x367)],this[_0x4988d8(0x1f3)],this[_0x4988d8(0x3e3)],this[_0x4988d8(0x229)],null,[_0x5f318b],this[_0x4988d8(0x3ce)]);try{const _0x14c260=this['_transformService'][_0x4988d8(0x232)]([_0x5f318b],[this[_0x4988d8(0x3e3)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x14c260)){const {c1Prime:_0x3254cc,c2Prime:_0x4ead3a}=_0x14c260,_0x1fc8ee=this[_0x4988d8(0x223)][_0x4988d8(0x375)](_0x3254cc[0x0],this[_0x4988d8(0x229)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x1fc8ee)){const {c1Prime:_0x2ae596,m2Prime:_0x1b45cf}=_0x1fc8ee;return this['_executeRemoteChangeset'](_0x2ae596),_0x4ead3a[0x0]['baseRev']=this[_0x4988d8(0x2e2)](),this[_0x4988d8(0x123)][_0x4988d8(0x89)](x,this['unitID'],this[_0x4988d8(0x1f3)],_0x4ead3a[0x0],_0x1b45cf,this[_0x4988d8(0x3ce)]);}throw _0x1fc8ee[_0x4988d8(0x404)];}throw _0x14c260[_0x4988d8(0x404)];}catch(_0x49480d){return this[_0x4988d8(0x38b)][_0x4988d8(0x404)](_0x49480d),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](_0xbb7b49){const _0x318a76=_0x3022d6;if(this[_0x318a76(0x1ef)](_0xbb7b49))return this[_0x318a76(0x123)][_0x318a76(0x89)](H,this[_0x318a76(0x367)],this[_0x318a76(0x1f3)],null,this['_pendingMutations'],this[_0x318a76(0x3e3)],[],this[_0x318a76(0x3ce)]);this[_0x318a76(0x3ad)]();const _0xd33353=this[_0x318a76(0x123)][_0x318a76(0x89)]($,this[_0x318a76(0x367)],this['type'],this[_0x318a76(0x229)],this['_handler']);return _0xd33353[_0x318a76(0x455)](),_0xd33353[_0x318a76(0x34d)](),_0xd33353;}[_0x3022d6(0x19d)](_0x46c4e8){const _0x54c51b=_0x3022d6;return this[_0x54c51b(0x24f)](!!(_0x46c4e8!=null&&_0x46c4e8[_0x54c51b(0x278)]));}[_0x3022d6(0x2b5)](){const _0x12a183=_0x3022d6;return this[_0x12a183(0x123)][_0x12a183(0x89)](V,this[_0x12a183(0x367)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x12a183(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0x1954c3=_0x3022d6;this[_0x1954c3(0x3ce)][_0x1954c3(0x3f5)](this[_0x1954c3(0x3e3)]);}[_0x3022d6(0x24f)](_0x537625){const _0x44e703=_0x3022d6;return this[_0x44e703(0x123)]['createInstance'](B,this[_0x44e703(0x367)],this[_0x44e703(0x1f3)],null,this[_0x44e703(0x229)],this[_0x44e703(0x3ce)],_0x537625);}};x=K([m(0x5,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x6,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x7,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x8,o['ICommandService']),m(0x9,o[_0x3022d6(0x22f)]),m(0xa,_[_0x3022d6(0x1d1)]),m(0xb,o[_0x3022d6(0x114)])],x);let B=class extends X{constructor(_0x1d14f0,_0x305aa6,_0x175bba,_0x592d17,_0xe4ab68,_0x535609=!0x1,_0x2f1e76,_0x45a94f,_0x2e285d,_0x53d8a4,_0x42897a,_0x299b53,_0x53643b){const _0x61b990=_0x3022d6;super(_0x1d14f0,_0x305aa6,_0x175bba,_0x592d17,_0xe4ab68,_0x45a94f,_0x2e285d,_0x42897a,_0x53d8a4),u(this,_0x61b990(0x15b),_0x61b990(0x3a0)),(this['_isPermissionRej']=_0x535609,this[_0x61b990(0x3a2)]=_0x2f1e76,this[_0x61b990(0x3b1)]=_0x299b53,this['_notificationService']=_0x53643b,this[_0x61b990(0x41d)](),this['_clearLocalCache'](),this[_0x61b990(0x3e9)]());}[_0x3022d6(0x39c)](){return this;}[_0x3022d6(0x138)](){return this;}[_0x3022d6(0xc1)](){return this;}[_0x3022d6(0x19d)](){return this;}['toggleOffline'](){return this;}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0xe1508c=_0x3022d6;throw new Error(_0xe1508c(0x191));}[_0x3022d6(0x8d)](){const _0x3b4916=_0x3022d6;this[_0x3b4916(0x3ea)][_0x3b4916(0xbb)](this[_0x3b4916(0x367)],this['type'],null,[]);}['_showConflictNotification'](){const _0x5c7229=_0x3022d6;this[_0x5c7229(0x2cb)]?this[_0x5c7229(0x2d1)][_0x5c7229(0x1d3)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x5c7229(0x3b1)]['t'](_0x5c7229(0xb5)),'type':'error','duration':0x0}):this['_notificationService'][_0x5c7229(0x1d3)]({'title':this[_0x5c7229(0x3b1)]['t'](_0x5c7229(0x437)),'content':this['_localeService']['t'](_0x5c7229(0x2a7)),'type':_0x5c7229(0x404),'duration':0x0});}['_disableEditing'](){this['_permissionService']['updatePermissionPoint'](new p['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};B=K([m(0x6,o['Inject'](o[_0x3022d6(0x346)])),m(0x7,o[_0x3022d6(0x3e6)]),m(0x8,o[_0x3022d6(0x114)]),m(0x9,o['Inject'](exports['LocalCacheService'])),m(0xa,o['Inject'](_['RevisionService'])),m(0xb,o[_0x3022d6(0x291)](o['LocaleService'])),m(0xc,L[_0x3022d6(0xfd)])],B);let V=class extends X{constructor(_0x575fd6,_0x47952d,_0x2d2ccd,_0x4b5200,_0x2404c6,_0x5003bf,_0x142410,_0x59ee06,_0x295e3a,_0x47503a){const _0x112d35=_0x3022d6;super(_0x575fd6,_0x47952d,_0x2d2ccd,_0x4b5200,_0x2404c6,_0x295e3a,_0x47503a,_0x142410,_0x59ee06),u(this,'status',_0x112d35(0x3b3)),this['_injector']=_0x5003bf;}[_0x3022d6(0x39c)](_0x3d0251){const _0x57749a=_0x3022d6;return this[_0x57749a(0x229)][_0x57749a(0x42d)](_0x3d0251),this[_0x57749a(0x34d)](),this;}['onRemoteChangeset'](_0x1571aa){const _0x46ad6b=_0x3022d6;throw new Error(_0x46ad6b(0x3f6));}[_0x3022d6(0xc1)](){const _0x5d4e27=_0x3022d6;throw new Error(_0x5d4e27(0x41f));}[_0x3022d6(0x19d)](){const _0x485344=_0x3022d6;throw new Error(_0x485344(0x339));}[_0x3022d6(0x2b5)](){return this;}[_0x3022d6(0xbf)](){const {_injector:_0x4afdcc,_pendingMutations:_0xbc93e8,_awaitingChangeset:_0x43e856,unitID:_0x49259e,_handler:_0x33b0a9,type:_0x29f261}=this,_0x346bb5=Tt(_0x4afdcc,_0x49259e,_0x29f261,_0x43e856,_0xbc93e8,_0x33b0a9);return _0x346bb5 instanceof $?_0x346bb5['_schedule']():(_0x346bb5 instanceof x||_0x346bb5 instanceof k)&&_0x346bb5['resend'](),_0x346bb5;}['resend'](){const _0x19b740=_0x3022d6;throw new Error(_0x19b740(0x12e));}};V=K([m(0x5,o[_0x3022d6(0x291)](o['Injector'])),m(0x6,o[_0x3022d6(0x291)](_['RevisionService'])),m(0x7,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x8,o[_0x3022d6(0x3e6)]),m(0x9,o['IUndoRedoService'])],V);let H=class extends X{constructor(_0xed3494,_0x33dd9d,_0x366ee5,_0xb9976,_0x3069eb,_0x4e0ac0,_0x134033,_0x49330e,_0xd6f547,_0x7a70da,_0x325cf5,_0x14a2e2,_0x1f0776,_0x262250){const _0x110326=_0x3022d6;super(_0xed3494,_0x33dd9d,_0x366ee5,_0xb9976,_0x134033,_0x14a2e2,_0x1f0776,_0xd6f547,_0x7a70da),u(this,_0x110326(0x15b),_0x110326(0x28f)),(this['_acknowledgedAwaitingChangeset']=_0x3069eb,this[_0x110326(0x139)]=_0x4e0ac0,this[_0x110326(0x123)]=_0x49330e,this['_logService']=_0x325cf5,this['_transformService']=_0x262250);}['onMissedChangesetFetched'](_0x301a93){const _0x5b6c7f=_0x3022d6;try{const _0x1f496b=[..._0x301a93,...this[_0x5b6c7f(0x139)]],_0x566b5a=[this['_awaitingChangeset']||this[_0x5b6c7f(0xc2)]][_0x5b6c7f(0x1c0)](_0x1c938c=>!!_0x1c938c);let _0x5248cf,_0x450724;if(_0x566b5a[_0x5b6c7f(0x2ce)]){const _0x336cb4=this[_0x5b6c7f(0x223)][_0x5b6c7f(0x232)](_0x1f496b,_0x566b5a,!0x1);if(!_[_0x5b6c7f(0x2cf)](_0x336cb4))throw _0x336cb4[_0x5b6c7f(0x404)];_0x5248cf=_0x336cb4[_0x5b6c7f(0x3c6)],_0x450724=_0x336cb4[_0x5b6c7f(0x41a)];}else _0x5248cf=_0x1f496b,_0x450724=[];let _0x5693b1=this[_0x5b6c7f(0x229)];_0x5248cf[_0x5b6c7f(0x3d3)](_0xa167e9=>{const _0x3deceb=_0x5b6c7f;let _0x33cec9;if(_0x5693b1[_0x3deceb(0x2ce)]){const _0x5eee7f=this[_0x3deceb(0x223)][_0x3deceb(0x375)](_0xa167e9,_0x5693b1);if(!_[_0x3deceb(0x10c)](_0x5eee7f))throw _0x5eee7f[_0x3deceb(0x404)];_0x33cec9=_0x5eee7f[_0x3deceb(0x3c6)],_0x5693b1=_0x5eee7f[_0x3deceb(0x469)];}else _0x33cec9=_0xa167e9;this[_0x3deceb(0x415)](_0x33cec9);}),this[_0x5b6c7f(0xc2)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x450724[_0x5b6c7f(0x2ce)]&&(_0x450724[0x0][_0x5b6c7f(0x1da)]=this['_getCurrentRevision']());let _0x1a3fba;if(this['_awaitingChangeset']&&_0x5693b1['length']!==0x0)_0x1a3fba=this['_injector'][_0x5b6c7f(0x89)](x,this[_0x5b6c7f(0x367)],this['type'],_0x450724[0x0],_0x5693b1,this[_0x5b6c7f(0x3ce)]);else{if(this[_0x5b6c7f(0x3e3)]&&_0x5693b1['length']===0x0)_0x450724[0x0][_0x5b6c7f(0x1da)]=this[_0x5b6c7f(0x2e2)](),_0x1a3fba=this['_injector'][_0x5b6c7f(0x89)](k,this['unitID'],this[_0x5b6c7f(0x1f3)],_0x450724[0x0],this['_handler']);else{if(_0x5693b1[_0x5b6c7f(0x2ce)]!==0x0){const _0x6ca3ce=this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)]($,this['unitID'],this['type'],_0x5693b1,this[_0x5b6c7f(0x3ce)]);_0x6ca3ce[_0x5b6c7f(0x455)](),_0x1a3fba=_0x6ca3ce;}else _0x1a3fba=this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)](ce,this[_0x5b6c7f(0x367)],this['type'],this[_0x5b6c7f(0x3ce)]);}}return _0x1a3fba[_0x5b6c7f(0x34d)](),_0x1a3fba;}catch(_0x1c5a53){return this[_0x5b6c7f(0x38b)][_0x5b6c7f(0x404)](_0x5b6c7f(0x1a3),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1c5a53),this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)](B,this[_0x5b6c7f(0x367)],this[_0x5b6c7f(0x1f3)],this[_0x5b6c7f(0x3e3)],this[_0x5b6c7f(0x229)],this[_0x5b6c7f(0x3ce)],!0x1);}}[_0x3022d6(0x40f)](){const _0x1cdea1=_0x3022d6;throw new Error(_0x1cdea1(0x204));}['appendMutation'](_0x15c2e1){const _0x370357=_0x3022d6;return this['_pendingMutations'][_0x370357(0x42d)](_0x15c2e1),this;}[_0x3022d6(0x138)](_0x528053){const _0x24f7fb=_0x3022d6;return this[_0x24f7fb(0x139)][_0x24f7fb(0x42d)](_0x528053),this;}[_0x3022d6(0xc1)](_0x2ceca0){const _0x192ac9=_0x3022d6;if(this[_0x192ac9(0x3e3)])return this[_0x192ac9(0xc2)]=this['_awaitingChangeset'],this[_0x192ac9(0x3e3)]=null,this;throw new Error(_0x192ac9(0xf5));}[_0x3022d6(0x19d)](_0x5bc87f){const _0x4bcf50=_0x3022d6;return this[_0x4bcf50(0x24f)](!!(_0x5bc87f!=null&&_0x5bc87f['isPermissionRej']));}[_0x3022d6(0x2b5)](){const _0x2ef8df=_0x3022d6;return this[_0x2ef8df(0x123)][_0x2ef8df(0x89)](V,this[_0x2ef8df(0x367)],this[_0x2ef8df(0x1f3)],this[_0x2ef8df(0x3e3)],this[_0x2ef8df(0x229)],this[_0x2ef8df(0x3ce)]);}['toggleOnline'](){return this;}[_0x3022d6(0x24f)](_0xd0fe24){const _0x59135d=_0x3022d6;return this['_injector'][_0x59135d(0x89)](B,this[_0x59135d(0x367)],this[_0x59135d(0x1f3)],this[_0x59135d(0x3e3)],this[_0x59135d(0x229)],this['_handler'],_0xd0fe24);}};H=K([m(0x7,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x8,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x9,o['Inject'](exports[_0x3022d6(0x174)])),m(0xa,o[_0x3022d6(0x22f)]),m(0xb,o['ICommandService']),m(0xc,o[_0x3022d6(0x114)]),m(0xd,_[_0x3022d6(0x1d1)])],H);function Tt(_0x365636,_0x213eda,_0x519fde,_0x345076,_0x2a479d,_0x46650e){const _0x31b58a=_0x3022d6;return _0x345076&&_0x2a479d[_0x31b58a(0x2ce)]?_0x365636[_0x31b58a(0x89)](x,_0x213eda,_0x519fde,_0x345076,_0x2a479d,_0x46650e):_0x345076?_0x365636[_0x31b58a(0x89)](k,_0x213eda,_0x519fde,_0x345076,_0x46650e):_0x2a479d['length']?_0x365636['createInstance']($,_0x213eda,_0x519fde,_0x2a479d,_0x46650e):_0x365636[_0x31b58a(0x89)](ce,_0x213eda,_0x519fde,_0x46650e);}var Us=Object[_0x3022d6(0x131)],ws=Object[_0x3022d6(0x2b4)],Ee=(_0x43132f,_0x4cfd39,_0x47ae75,_0x32b9c4)=>{const _0x4d8e18=_0x3022d6;for(var _0x3debec=_0x32b9c4>0x1?void 0x0:_0x32b9c4?ws(_0x4cfd39,_0x47ae75):_0x4cfd39,_0x4d80a7=_0x43132f[_0x4d8e18(0x2ce)]-0x1,_0x59500c;_0x4d80a7>=0x0;_0x4d80a7--)(_0x59500c=_0x43132f[_0x4d80a7])&&(_0x3debec=(_0x32b9c4?_0x59500c(_0x4cfd39,_0x47ae75,_0x3debec):_0x59500c(_0x3debec))||_0x3debec);return _0x32b9c4&&_0x3debec&&Us(_0x4cfd39,_0x47ae75,_0x3debec),_0x3debec;},I=(_0x13dcd9,_0x4ebab0)=>(_0x1c06de,_0x5a8d3e)=>_0x4ebab0(_0x1c06de,_0x5a8d3e,_0x13dcd9);exports['CollaborationController']=class extends o['RxDisposable']{constructor(_0x5e2e76,_0x491d1d,_0x5844e7){const _0xdd5bd2=_0x3022d6;super(),u(this,_0xdd5bd2(0x23d),new Map()),u(this,_0xdd5bd2(0x242),new v[(_0xdd5bd2(0x21b))]()),(this[_0xdd5bd2(0x123)]=_0x5e2e76,this['_collabSessionService']=_0x491d1d,this[_0xdd5bd2(0x17c)]=_0x5844e7,this[_0xdd5bd2(0x11b)]());}[_0x3022d6(0x147)](){const _0x1d1575=_0x3022d6;super[_0x1d1575(0x147)](),this[_0x1d1575(0x23d)][_0x1d1575(0x3d3)](_0x30bbd1=>_0x30bbd1[_0x1d1575(0x147)]()),this['_entities'][_0x1d1575(0xe4)]();}[_0x3022d6(0x18d)](_0x1fc72e){var _0x1442dc;return(_0x1442dc=this['_entities']['get'](_0x1fc72e))!=null?_0x1442dc:null;}[_0x3022d6(0x293)](_0x10637a){const _0x232a25=_0x3022d6,_0x2d920d=this[_0x232a25(0x18d)](_0x10637a);return _0x2d920d?v['of'](_0x2d920d):this[_0x232a25(0x242)][_0x232a25(0x23e)](E[_0x232a25(0x1c0)](_0x23d388=>_0x23d388['unitID']===_0x10637a));}[_0x3022d6(0x11b)](){const _0x449d3c=_0x3022d6;this[_0x449d3c(0x17c)]['getTypeOfUnitAdded$'](o[_0x449d3c(0x23f)][_0x449d3c(0x2c0)])[_0x449d3c(0x23e)](v[_0x449d3c(0xc7)](this['dispose$']),E['delay'](0x10))[_0x449d3c(0x265)](async _0x4c3865=>{const _0x44dcad=_0x449d3c,_0x5a4465=_0x4c3865[_0x44dcad(0x29c)](),_0x6faeec=await this[_0x44dcad(0x2fd)](_0x5a4465,j[_0x44dcad(0x2c0)]);this[_0x44dcad(0x23d)][_0x44dcad(0x182)](_0x5a4465,_0x6faeec);}),this[_0x449d3c(0x17c)][_0x449d3c(0x2f6)](o[_0x449d3c(0x23f)][_0x449d3c(0x237)])['pipe'](v['takeUntil'](this[_0x449d3c(0x374)]),E[_0x449d3c(0x3eb)](0x10))[_0x449d3c(0x23e)](E[_0x449d3c(0x1c0)](_0x1491ca=>!_0x1491ca[_0x449d3c(0x29c)]()[_0x449d3c(0x1f6)]('__')))['subscribe'](async _0x52a7e9=>{const _0x21fec0=_0x449d3c,_0x4d985b=_0x52a7e9[_0x21fec0(0x29c)](),_0x2c8f21=await this[_0x21fec0(0x2fd)](_0x4d985b,j['UNIVER_DOC']);this[_0x21fec0(0x23d)][_0x21fec0(0x182)](_0x4d985b,_0x2c8f21);}),v['merge'](this['_univerInstanceService'][_0x449d3c(0x3ae)](o[_0x449d3c(0x23f)]['UNIVER_SHEET']),this[_0x449d3c(0x17c)][_0x449d3c(0x3ae)](o['UniverInstanceType'][_0x449d3c(0x237)]))[_0x449d3c(0x23e)](v[_0x449d3c(0xc7)](this['dispose$']))['subscribe'](_0x17ebd4=>{const _0xf0ffea=_0x449d3c,_0x3bc1b9=_0x17ebd4[_0xf0ffea(0x29c)](),_0x1aaf75=this[_0xf0ffea(0x23d)][_0xf0ffea(0x84)](_0x3bc1b9);_0x1aaf75&&(_0x1aaf75[_0xf0ffea(0x147)](),this[_0xf0ffea(0x23d)][_0xf0ffea(0x1af)](_0x3bc1b9));});}async[_0x3022d6(0x2fd)](_0x41f989,_0x4fea51){const _0x4cddd4=_0x3022d6,_0x3e99df=await this[_0x4cddd4(0x3e2)][_0x4cddd4(0x3b2)](_0x41f989),_0x24a5ec=this[_0x4cddd4(0x123)][_0x4cddd4(0x89)](this[_0x4cddd4(0x352)](_0x4fea51),_0x41f989,_0x4fea51,_0x3e99df);return await _0x24a5ec['init'](),this[_0x4cddd4(0x242)][_0x4cddd4(0x116)](_0x24a5ec),_0x24a5ec;}[_0x3022d6(0x352)](_0x43312c){const _0x2d8253=_0x3022d6;switch(_0x43312c){case j['UNIVER_DOC']:return Ne;case j[_0x2d8253(0x2c0)]:return exports[_0x2d8253(0x3e4)];default:throw new Error(_0x2d8253(0x3a6)+_0x43312c);}}},exports['CollaborationController']=Ee([o['OnLifecycle'](o[_0x3022d6(0x32a)][_0x3022d6(0xd4)],exports[_0x3022d6(0x431)]),I(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x1,o[_0x3022d6(0x291)](exports['CollaborationSessionService'])),I(0x2,o[_0x3022d6(0xb8)])],exports[_0x3022d6(0x431)]);let fe=class extends o[_0x3022d6(0x460)]{constructor(_0x2fcf48,_0x36c9ba,_0x2ae391,_0x53e4c4,_0x3752b5,_0x11476b,_0x10fdc6,_0xb585cf,_0xc73805,_0x4722a6,_0xaac408,_0x4850a6,_0xb9699b){const _0x219175=_0x3022d6;super(),u(this,_0x219175(0x439),new v[(_0x219175(0x141))](null)),u(this,_0x219175(0x43b),this[_0x219175(0x439)][_0x219175(0x295)]()),u(this,_0x219175(0x2d5)),u(this,_0x219175(0x39a),!0x1),u(this,_0x219175(0x358),this[_0x219175(0x43b)]['pipe'](E[_0x219175(0x317)](_0x211726=>_0x211726?_0x211726[_0x219175(0x15b)]:D[_0x219175(0x316)]),E[_0x219175(0x3af)](0x1))),u(this,_0x219175(0x42f),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x219175(0x367)]=_0x2fcf48,this['_type']=_0x36c9ba,this[_0x219175(0x1b0)]=_0x2ae391,this[_0x219175(0x123)]=_0x53e4c4,this[_0x219175(0x3ea)]=_0x3752b5,this[_0x219175(0x238)]=_0x11476b,this[_0x219175(0x3b1)]=_0x10fdc6,this[_0x219175(0x254)]=_0xb585cf,this[_0x219175(0x38b)]=_0xc73805,this[_0x219175(0x467)]=_0x4722a6,this[_0x219175(0x38e)]=_0xaac408,this[_0x219175(0x3a2)]=_0x4850a6,this[_0x219175(0x15a)]=_0xb9699b);}get[_0x3022d6(0x3bb)](){return this['_state'];}async['init'](){const _0x1ebd90=_0x3022d6;if(this[_0x1ebd90(0x3bb)])throw new Error(_0x1ebd90(0x312));await this['_init']();}['pauseCollaboration'](){const _0x2b79cb=_0x3022d6;return this[_0x2b79cb(0x39a)]=!0x0,o[_0x2b79cb(0x24c)](()=>{const _0x404824=_0x2b79cb;this[_0x404824(0x39a)]=!0x1,this[_0x404824(0x3cd)]();});}[_0x3022d6(0xfe)](_0x4523e6){const _0x2ce5da=_0x3022d6;this[_0x2ce5da(0x2d5)]=_0x4523e6,this[_0x2ce5da(0x439)][_0x2ce5da(0x116)](_0x4523e6);}async['_init'](){const _0x43f2da=_0x3022d6;var _0x5af108;return this[_0x43f2da(0xfe)](await this[_0x43f2da(0x344)]()),this['_singleActiveUnitService']&&((_0x5af108=this[_0x43f2da(0x15a)])==null||_0x5af108[_0x43f2da(0x313)](this[_0x43f2da(0x367)]),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x15a)][_0x43f2da(0x32e)](this['unitID'])[_0x43f2da(0x265)](_0x44c433=>{const _0x10b895=_0x43f2da;this['_logService'][_0x10b895(0xf9)](_0x10b895(0x3dc),_0x10b895(0x429),_0x44c433),_0x44c433===Ct[_0x10b895(0x2e1)]?(this[_0x10b895(0x38e)]['show']({'content':this[_0x10b895(0x3b1)]['t'](_0x10b895(0x1e6)),'type':Q[_0x10b895(0x1e5)]['Warning']}),this[_0x10b895(0x3a2)][_0x10b895(0x27f)](new p[(_0x10b895(0x32f))](this[_0x10b895(0x367)])['id'],!0x1)):this[_0x10b895(0x3a2)]['updatePermissionPoint'](new p[(_0x10b895(0x32f))](this[_0x10b895(0x367)])['id'],!0x0);})))),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x1b0)][_0x43f2da(0x370)][_0x43f2da(0x265)](_0x4ed6b5=>{const _0x542ab1=_0x43f2da;_0x4ed6b5===G[_0x542ab1(0x194)]?this[_0x542ab1(0x30a)]():_0x4ed6b5===G['OFFLINE']&&this[_0x542ab1(0x20b)]();}))),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x1b0)][_0x43f2da(0x144)][_0x43f2da(0x265)](_0x1d72de=>{const _0x155acd=_0x43f2da;try{switch(_0x1d72de['eventID']){case _[_0x155acd(0x26c)][_0x155acd(0x310)]:{this[_0x155acd(0x381)](_['parseProtocolChangeset'](_0x1d72de[_0x155acd(0x2be)]));break;}case _[_0x155acd(0x26c)][_0x155acd(0x420)]:{this['_onRemoteACK'](_0x1d72de['data']);break;}case _[_0x155acd(0x26c)][_0x155acd(0x459)]:{this[_0x155acd(0x3e7)]();break;}case _[_0x155acd(0x26c)][_0x155acd(0x127)]:{this[_0x155acd(0x88)](_0x1d72de['data'][_0x155acd(0x183)][_0x155acd(0x317)](_0x393630=>_[_0x155acd(0xe6)](_0x393630)));break;}case _['CollaborationEvent'][_0x155acd(0x12a)]:this[_0x155acd(0x3e7)]({'isPermissionRej':!0x0});}}catch(_0x1a9945){throw console[_0x155acd(0x404)](_0x155acd(0x44a),_0x1a9945),_0x1a9945;}}))),this[_0x43f2da(0x2d5)];}[_0x3022d6(0x2bc)](){const _0x176e7b=_0x3022d6;this[_0x176e7b(0x42f)]=!0x1;}[_0x3022d6(0xec)](){const _0x301c7e=_0x3022d6;if(this[_0x301c7e(0x42f)])throw new Error(_0x301c7e(0x29f));this[_0x301c7e(0x42f)]=!0x0;}[_0x3022d6(0xa4)](_0x4c66c3){const _0x4dcb5b=_0x3022d6;this[_0x4dcb5b(0xec)](),this[_0x4dcb5b(0xfe)](this[_0x4dcb5b(0x2d5)][_0x4dcb5b(0x39c)](_0x4c66c3)),this[_0x4dcb5b(0x2bc)]();}['_onRemoteChangeset'](_0x3ee877){const _0x2829a5=_0x3022d6;if(!(_0x3ee877[_0x2829a5(0x33d)]<=this[_0x2829a5(0x254)][_0x2829a5(0x33a)](this['unitID']))){if(this[_0x2829a5(0x39a)]){this[_0x2829a5(0xa1)][_0x2829a5(0x42d)](_0x3ee877);return;}this[_0x2829a5(0xd5)](_0x3ee877);}}['_exhaustRemoteChangesetQueue'](){const _0x3731a0=_0x3022d6;this[_0x3731a0(0xa1)][_0x3731a0(0x3d3)](_0x239ddf=>this['_applyRemoteChangeset'](_0x239ddf)),this[_0x3731a0(0xa1)]=[];}[_0x3022d6(0xd5)](_0x4f01ec){const _0x241cc6=_0x3022d6,_0x2c2a37=this['_compressMutationService'][_0x241cc6(0x161)][_0x241cc6(0x3d2)](this['_compressMutationService'][_0x241cc6(0x161)][_0x241cc6(0x35a)]()['COMPRESS_MUTATION_APPLY'])(_0x4f01ec['mutations'],null)||_0x4f01ec['mutations'],_0x5b6ce1={..._0x4f01ec,'mutations':_0x2c2a37};this[_0x241cc6(0xec)](),this[_0x241cc6(0xfe)](this['_state'][_0x241cc6(0x138)](_0x5b6ce1)),this[_0x241cc6(0x2bc)]();}['_onRemoteACK'](_0x538748){const _0x45594f=_0x3022d6;this[_0x45594f(0xec)](),this[_0x45594f(0xfe)](this['_state'][_0x45594f(0xc1)](_0x538748)),this[_0x45594f(0x2bc)]();}[_0x3022d6(0x3e7)](_0x30432c){const _0x297d39=_0x3022d6;this[_0x297d39(0xec)](),this[_0x297d39(0xfe)](this[_0x297d39(0x2d5)]['onRemoteRej'](_0x30432c)),this[_0x297d39(0x2bc)]();}[_0x3022d6(0x88)](_0x432633){const _0x473506=_0x3022d6;if(!(this['_state']instanceof H))throw new TypeError(_0x473506(0x1fb));const _0x56b3a8=_0x432633[_0x473506(0x317)](_0x40751a=>{const _0x4d9300=_0x473506,_0x2ba300=this['_compressMutationService'][_0x4d9300(0x161)][_0x4d9300(0x3d2)](this[_0x4d9300(0x238)][_0x4d9300(0x161)]['getInterceptPoints']()[_0x4d9300(0x9f)])(_0x40751a[_0x4d9300(0x2a5)],null)||_0x40751a[_0x4d9300(0x2a5)];return{..._0x40751a,'mutations':_0x2ba300};});this[_0x473506(0xec)](),this[_0x473506(0xfe)](this[_0x473506(0x2d5)][_0x473506(0x31e)](_0x56b3a8)),this['_unlockTransition']();}[_0x3022d6(0x20b)](){const _0x14a7ea=_0x3022d6;this['_lockTransition'](),this[_0x14a7ea(0xfe)](this[_0x14a7ea(0x2d5)][_0x14a7ea(0x2b5)]()),this[_0x14a7ea(0x2bc)]();}[_0x3022d6(0x30a)](){const _0x542acb=_0x3022d6;this[_0x542acb(0xec)](),this[_0x542acb(0xfe)](this[_0x542acb(0x2d5)][_0x542acb(0xbf)]()),this['_unlockTransition']();}async[_0x3022d6(0x344)](){return new Promise(_0x421371=>{const _0x595c85=_0xbc10;this[_0x595c85(0x1b0)]['sessionStatus$']['pipe'](E[_0x595c85(0x2e9)](0x1))['subscribe'](async _0x4594c6=>{const _0xa18a84=_0x595c85;_0x421371(await this['_createInitialStateImpl'](_0x4594c6===G[_0xa18a84(0x194)]));});});}['_createHandler'](){const _0x1d17a6=this['unitID'];return{'onStateChange':(_0x40fd66,_0x35632b)=>{const _0x44df82=_0xbc10;if(_0x40fd66!==this[_0x44df82(0x2d5)])throw new Error(_0x44df82(0x412)+_0x40fd66[_0x44df82(0x15b)]+'\x0aAfter:\x20'+_0x35632b[_0x44df82(0x15b)]+_0x44df82(0x3cb)+this[_0x44df82(0x2d5)][_0x44df82(0x15b)]);this[_0x44df82(0xfe)](_0x35632b);},'onSendChangeset':_0x1c2eb6=>{const _0x4b5d49=_0xbc10,_0x4c3faa={'eventID':_[_0x4b5d49(0x26c)][_0x4b5d49(0x37d)],'data':{'unitID':_0x1c2eb6[_0x4b5d49(0x367)],'unitType':this['_type'],'changeset':_0x1c2eb6,'memberID':this[_0x4b5d49(0x1b0)][_0x4b5d49(0x3f2)]()}};this[_0x4b5d49(0x1b0)]['send'](_0x4c3faa,this['unitID']);},'onMissingChangesets':({from:_0x175b10,to:_0x18ee4f})=>{const _0x22280b=_0xbc10;this[_0x22280b(0x38b)]['debug']('[CollaborationEntity]',_0x22280b(0x26d)+_0x175b10+_0x22280b(0xc6)+_0x18ee4f);const _0x465f5b={'eventID':_[_0x22280b(0x26c)][_0x22280b(0x44f)],'data':{'unitID':_0x1d17a6,'unitType':this[_0x22280b(0x18a)],'from':_0x175b10,'to':_0x18ee4f}};this['_session'][_0x22280b(0x362)](_0x465f5b,this[_0x22280b(0x367)]);}};}async['_createInitialStateImpl'](_0x4f1e1c){const _0x4fd687=_0x3022d6;var _0x3cfc1d,_0x2f86c1;const _0x53ab13=await this[_0x4fd687(0x3ea)][_0x4fd687(0x3b8)](this[_0x4fd687(0x367)]),_0x1a5d2d=(_0x3cfc1d=_0x53ab13==null?void 0x0:_0x53ab13[_0x4fd687(0x2a5)])!=null?_0x3cfc1d:[],_0x24c06e=(_0x2f86c1=_0x53ab13==null?void 0x0:_0x53ab13[_0x4fd687(0xca)])!=null?_0x2f86c1:null,_0x58ebfc=this[_0x4fd687(0x367)];try{this[_0x4fd687(0x243)](_0x24c06e,_0x1a5d2d);}catch(_0x184ad5){this[_0x4fd687(0x38b)][_0x4fd687(0x404)](_0x184ad5);}const _0x5aaee9=this['_createHandler']();if(_0x4f1e1c){const _0x2a1169=Tt(this[_0x4fd687(0x123)],_0x58ebfc,this[_0x4fd687(0x18a)],_0x24c06e,_0x1a5d2d,_0x5aaee9);return _0x2a1169 instanceof $?_0x2a1169[_0x4fd687(0x455)]():(_0x2a1169 instanceof x||_0x2a1169 instanceof k)&&_0x2a1169[_0x4fd687(0x40f)](),_0x2a1169;}return this[_0x4fd687(0x123)]['createInstance'](V,_0x58ebfc,this[_0x4fd687(0x18a)],_0x24c06e,_0x1a5d2d,_0x5aaee9);}[_0x3022d6(0x243)](_0x47d26e,_0x2e7385){const _0x53e60f=_0x3022d6;var _0x3f77fb,_0x7bfbbc;const _0x5f01cf=this[_0x53e60f(0x238)][_0x53e60f(0x161)][_0x53e60f(0x3d2)](this[_0x53e60f(0x238)]['interceptor'][_0x53e60f(0x35a)]()['COMPRESS_MUTATION_APPLY']);(_0x3f77fb=_0x5f01cf((_0x47d26e==null?void 0x0:_0x47d26e[_0x53e60f(0x2a5)])||[],null))==null||_0x3f77fb[_0x53e60f(0x3d3)](_0x4052a5=>this[_0x53e60f(0x467)][_0x53e60f(0x2a3)](_0x4052a5['id'],_0x4052a5[_0x53e60f(0xd7)])),(_0x7bfbbc=_0x5f01cf(_0x2e7385||[],null))==null||_0x7bfbbc['forEach'](_0x4465d1=>this[_0x53e60f(0x467)][_0x53e60f(0x2a3)](_0x4465d1['id'],_0x4465d1[_0x53e60f(0xd7)]));}};fe=Ee([I(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x4,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),I(0x5,o['Inject'](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),I(0x7,o['Inject'](_['RevisionService'])),I(0x8,o[_0x3022d6(0x22f)]),I(0x9,o['ICommandService']),I(0xa,L[_0x3022d6(0xaf)]),I(0xb,o[_0x3022d6(0x346)]),I(0xc,o[_0x3022d6(0x37a)](pe))],fe);let Ne=class extends fe{constructor(_0xeb18b9,_0x3c5401,_0x2f06fa,_0x5b1f2c,_0x5d1b2b,_0x5b4b3d,_0x508807,_0x2f40f6,_0x3d5994,_0x594176,_0x5d61c8,_0xedf129,_0x211053,_0x28e66c,_0x15bcb7,_0x51abe7,_0x336df5){const _0x22baa7=_0x3022d6;super(_0xeb18b9,_0x3c5401,_0x2f06fa,_0x5b1f2c,_0x5d1b2b,_0x5b4b3d,_0x508807,_0x2f40f6,_0x211053,_0x28e66c,_0x15bcb7,_0x51abe7,_0x336df5),this[_0x22baa7(0x367)]=_0xeb18b9,this['type']=_0x3c5401,this[_0x22baa7(0x31b)]=_0x2f06fa,this[_0x22baa7(0xce)]=_0x3d5994,this[_0x22baa7(0x3c0)]=_0x594176,this['_docTransformSelectionsService']=_0x5d61c8,this[_0x22baa7(0x296)]=_0xedf129;}[_0x3022d6(0xfa)](){const _0x5a9065=_0x3022d6,_0x38173f=super[_0x5a9065(0xfa)]();return _0x38173f[_0x5a9065(0x440)]=_0x2d216c=>this['_docTransformIMECacheService'][_0x5a9065(0x377)](_0x2d216c),_0x38173f[_0x5a9065(0x118)]=_0x3dc004=>this[_0x5a9065(0x2af)]['transformSelections'](_0x3dc004),_0x38173f[_0x5a9065(0x1b2)]=_0x447116=>this[_0x5a9065(0x296)]['syncEditingCollabCursor'](_0x447116),_0x38173f['onTransformRemoteChangesetByIMECache']=_0x54ff5e=>this[_0x5a9065(0x3c0)][_0x5a9065(0x364)](_0x54ff5e),_0x38173f;}async[_0x3022d6(0x11b)](){const _0x175d40=_0x3022d6,_0x4e8d67=await super[_0x175d40(0x11b)]();return this[_0x175d40(0x14a)](this[_0x175d40(0x467)]['onCommandExecuted']((_0xfe5c4e,_0x101370)=>{const _0x96331=_0x175d40;if(_0xfe5c4e[_0x96331(0x1f3)]!==o[_0x96331(0x2c5)][_0x96331(0x146)]||_0x101370!=null&&_0x101370[_0x96331(0x424)]||_0x101370!=null&&_0x101370[_0x96331(0x38a)])return;const _0x3479e3=_0xfe5c4e[_0x96331(0xd7)];if((_0x3479e3==null?void 0x0:_0x3479e3['unitId'])!==this[_0x96331(0x367)])return;let _0x1e1bde=_0xfe5c4e;if(_0x1e1bde['id']===P[_0x96331(0x365)]['id']){const _0x319844=_0x1e1bde[_0x96331(0xd7)];_0x1e1bde={'id':P[_0x96331(0x365)]['id'],'type':o[_0x96331(0x2c5)][_0x96331(0x146)],'params':{'unitId':_0x319844['unitId'],'actions':_0x319844[_0x96331(0x2d6)],'textRanges':null}};}const _0x3bb770=this[_0x96331(0x238)][_0x96331(0x161)][_0x96331(0x3d2)](this[_0x96331(0x238)][_0x96331(0x161)][_0x96331(0x35a)]()[_0x96331(0x30b)])([_0x1e1bde],null)||[_0x1e1bde];this['_onLocalMutation'](_0x3bb770[0x0]);})),_0x4e8d67;}};Ne=Ee([I(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x4,o['Inject'](exports[_0x3022d6(0x174)])),I(0x5,o[_0x3022d6(0x291)](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o['LocaleService'])),I(0x7,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),I(0x8,o[_0x3022d6(0x291)](P[_0x3022d6(0x287)])),I(0x9,o[_0x3022d6(0x291)](ve)),I(0xa,o[_0x3022d6(0x291)](me)),I(0xb,o['Inject'](We)),I(0xc,o[_0x3022d6(0x22f)]),I(0xd,o['ICommandService']),I(0xe,L['IMessageService']),I(0xf,o[_0x3022d6(0x346)]),I(0x10,o[_0x3022d6(0x37a)](pe))],Ne),exports[_0x3022d6(0x3e4)]=class extends fe{constructor(_0x20a9e3,_0xe2094e,_0x394262,_0x3c3334,_0x1f805c,_0x219517,_0x1d8671,_0x235d34,_0x275878,_0x159fa1,_0x259978,_0x522688,_0x1a4ce0,_0x2338f3){const _0x22b2f6=_0x3022d6;super(_0x20a9e3,_0xe2094e,_0x394262,_0x3c3334,_0x1f805c,_0x219517,_0x1d8671,_0x235d34,_0x159fa1,_0x259978,_0x522688,_0x1a4ce0,_0x2338f3),this[_0x22b2f6(0x367)]=_0x20a9e3,this[_0x22b2f6(0x1f3)]=_0xe2094e,this[_0x22b2f6(0x31b)]=_0x394262,this[_0x22b2f6(0x44e)]=_0x275878;}[_0x3022d6(0xfa)](){const _0x22c396=_0x3022d6,_0x53d7a8=super[_0x22c396(0xfa)]();return _0x53d7a8[_0x22c396(0x118)]=_0x4b0ea9=>this[_0x22c396(0x44e)][_0x22c396(0xbd)](_0x4b0ea9),_0x53d7a8;}async[_0x3022d6(0x11b)](){const _0x161557=_0x3022d6,_0x9e3d2b=await super[_0x161557(0x11b)]();return this[_0x161557(0x14a)](this['_commandService'][_0x161557(0x2a1)]((_0x17ddd6,_0x29f65b)=>{const _0x176451=_0x161557;if(_0x17ddd6[_0x176451(0x1f3)]!==o['CommandType'][_0x176451(0x146)]||_0x29f65b!=null&&_0x29f65b[_0x176451(0x424)]||_0x29f65b!=null&&_0x29f65b[_0x176451(0x38a)])return;const _0x40204d=_0x17ddd6[_0x176451(0xd7)];if((_0x40204d==null?void 0x0:_0x40204d[_0x176451(0x347)])!==this[_0x176451(0x367)])return;const _0x2ff0dc=_0x17ddd6,_0xb90525=this[_0x176451(0x238)][_0x176451(0x161)][_0x176451(0x3d2)](this['_compressMutationService'][_0x176451(0x161)][_0x176451(0x35a)]()[_0x176451(0x30b)])([_0x2ff0dc],null)||[_0x2ff0dc];this[_0x176451(0xa4)](_0xb90525[0x0]);})),_0x9e3d2b;}},exports[_0x3022d6(0x3e4)]=Ee([I(0x3,o[_0x3022d6(0x291)](o['Injector'])),I(0x4,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),I(0x5,o[_0x3022d6(0x291)](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),I(0x7,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),I(0x8,o[_0x3022d6(0x291)](ge)),I(0x9,o[_0x3022d6(0x22f)]),I(0xa,o[_0x3022d6(0x3e6)]),I(0xb,L[_0x3022d6(0xaf)]),I(0xc,o[_0x3022d6(0x346)]),I(0xd,o[_0x3022d6(0x37a)](pe))],exports[_0x3022d6(0x3e4)]);const st=[_0x3022d6(0x3bf),_0x3022d6(0x341),_0x3022d6(0x36c),_0x3022d6(0x3b6),_0x3022d6(0x321),_0x3022d6(0xb7)];class Fe extends o[_0x3022d6(0x1c9)]{constructor(){const _0x3f5e7b=_0x3022d6;super(...arguments),u(this,_0x3f5e7b(0x3dd),new Map()),u(this,_0x3f5e7b(0x13b),0x0);}['assignAColorForMemberID'](_0x16f695){const _0x1f0d29=_0x3022d6;if(this[_0x1f0d29(0x3dd)][_0x1f0d29(0x151)](_0x16f695))return this['_assignedColors'][_0x1f0d29(0x84)](_0x16f695);const _0x2c8883=st[this[_0x1f0d29(0x13b)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%st['length'],this[_0x1f0d29(0x3dd)][_0x1f0d29(0x182)](_0x16f695,_0x2c8883),_0x2c8883;}}var Ms=Object[_0x3022d6(0x131)],ys=Object['getOwnPropertyDescriptor'],Ns=(_0x4ce4cb,_0x5b10f1,_0x5d8f8d,_0x4fc7ed)=>{const _0x21fc65=_0x3022d6;for(var _0x16b2df=_0x4fc7ed>0x1?void 0x0:_0x4fc7ed?ys(_0x5b10f1,_0x5d8f8d):_0x5b10f1,_0x491ca1=_0x4ce4cb[_0x21fc65(0x2ce)]-0x1,_0x3b3ffd;_0x491ca1>=0x0;_0x491ca1--)(_0x3b3ffd=_0x4ce4cb[_0x491ca1])&&(_0x16b2df=(_0x4fc7ed?_0x3b3ffd(_0x5b10f1,_0x5d8f8d,_0x16b2df):_0x3b3ffd(_0x16b2df))||_0x16b2df);return _0x4fc7ed&&_0x16b2df&&Ms(_0x5b10f1,_0x5d8f8d,_0x16b2df),_0x16b2df;},q=(_0x534e98,_0x4bd84d)=>(_0x127c99,_0x5337fc)=>_0x4bd84d(_0x127c99,_0x5337fc,_0x534e98);const Ls=0x12c,As=0x64,js=()=>{let _0x1e0ac6=[],_0x4c0342=!0x1;return _0x3a1542=>{_0x1e0ac6['push'](_0x3a1542),_0x4c0342||(_0x4c0342=!0x0,setTimeout(()=>{const _0x5b430c=_0xbc10;_0x1e0ac6[_0x5b430c(0x3d3)](_0x59f2d3=>_0x59f2d3()),_0x1e0ac6=[],_0x4c0342=!0x1;}));};};let Le=class extends o[_0x3022d6(0x460)]{constructor(_0x3d2681,_0x147c26,_0x31fe81,_0x5ab6c4,_0x22b641,_0x35ea40,_0x4a875f,_0x575d2c){const _0x23190b=_0x3022d6;super(),u(this,_0x23190b(0xa7),!0x1),u(this,_0x23190b(0x11b),!0x1),u(this,_0x23190b(0x130),new v[(_0x23190b(0x141))](new Map())),u(this,_0x23190b(0x210),this['_cursorInfo$'][_0x23190b(0x295)]()),u(this,_0x23190b(0x3fa),new v[(_0x23190b(0x141))]([])),u(this,_0x23190b(0xf3),this[_0x23190b(0x3fa)][_0x23190b(0x23e)](v[_0x23190b(0x280)](Ls))),u(this,_0x23190b(0x1f1),xe((_0x387b75,_0x8e0f08)=>{const _0x292851=_0x23190b,_0x158d4d={'eventID':_['CollaborationEvent'][_0x292851(0x426)],'data':{'unitID':this['unitID'],'memberID':this[_0x292851(0x1b0)]['getMemberID'](),'selection':Ke[_0x292851(0x1c1)](_0x387b75,_0x8e0f08[_0x292851(0x271)])}};this['_session'][_0x292851(0x362)](_0x158d4d,this[_0x292851(0x367)]);},As)),(this[_0x23190b(0x367)]=_0x3d2681,this[_0x23190b(0x1b0)]=_0x147c26,this[_0x23190b(0x123)]=_0x31fe81,this[_0x23190b(0x26b)]=_0x5ab6c4,this[_0x23190b(0x16b)]=_0x22b641,this[_0x23190b(0x17c)]=_0x35ea40,this[_0x23190b(0x467)]=_0x4a875f,this['_refRangeService']=_0x575d2c);}get['cursorInfo'](){const _0x585e9c=_0x3022d6;return this[_0x585e9c(0x130)]['getValue']();}get[_0x3022d6(0x240)](){const _0x1475da=_0x3022d6;return this[_0x1475da(0x3fa)][_0x1475da(0x386)]();}['dispose'](){const _0x347ccf=_0x3022d6;super[_0x347ccf(0x147)](),this[_0x347ccf(0x130)]['next'](new Map()),this['_cursorInfo$'][_0x347ccf(0x19e)](),this[_0x347ccf(0x3fa)][_0x347ccf(0x116)]([]),this['_roomMembers$'][_0x347ccf(0x19e)]();}[_0x3022d6(0x388)](){const _0x5780d6=_0x3022d6;this[_0x5780d6(0x11b)]||(this[_0x5780d6(0x11b)]=!0x0,this[_0x5780d6(0x1b0)]['sessionStatus$'][_0x5780d6(0x23e)](v['takeUntil'](this[_0x5780d6(0x374)]))[_0x5780d6(0x265)](_0x1f8f9f=>{const _0x149056=_0x5780d6;_0x1f8f9f===G[_0x149056(0x194)]?this[_0x149056(0x30a)]():this[_0x149056(0x20b)]();}),this['_session']['event$'][_0x5780d6(0x23e)](v['takeUntil'](this['dispose$']))[_0x5780d6(0x265)](_0x269997=>{const _0x55fa8d=_0x5780d6,_0x9f1c9f=_0x269997[_0x55fa8d(0x31c)];_0x9f1c9f===_[_0x55fa8d(0x26c)]['UPDATE_CURSOR']&&this[_0x55fa8d(0xab)](_0x269997),_0x9f1c9f===_['CollaborationEvent'][_0x55fa8d(0x1b6)]&&this['_onCursorDelete'](_0x269997);}),this[_0x5780d6(0x3f9)](),this[_0x5780d6(0x14a)](this['_commandService']['onCommandExecuted'](_0x33ee35=>{const _0x56d2b4=_0x5780d6;if(this['_online']&&_0x33ee35['id']===p[_0x56d2b4(0x231)]['id']&&_0x33ee35[_0x56d2b4(0xd7)][_0x56d2b4(0x347)]===this['unitID']){const _0x130564=_0x33ee35['params'];this['_updateLocalCursor'](_0x130564[_0x56d2b4(0x3d1)],_0x130564[_0x56d2b4(0x2e7)][0x0]);}})));}['_onCursorUpdate'](_0x453cd2){const _0x15ff59=_0x3022d6;var _0x35e629,_0x3b6f85;const {memberID:_0xfe6f7f,selection:_0x352e4e}=_0x453cd2[_0x15ff59(0x2be)],{sheetName:_0xd96678,range:_0x2b5ebc}=Ke[_0x15ff59(0x1a8)](_0x352e4e),_0xe8b54={'name':(_0x3b6f85=(_0x35e629=this[_0x15ff59(0x16b)][_0x15ff59(0x18f)](this[_0x15ff59(0x367)],_0xfe6f7f))==null?void 0x0:_0x35e629[_0x15ff59(0x1fa)])!=null?_0x3b6f85:'Unknown\x20user','range':this[_0x15ff59(0x371)](_0xd96678,_0x2b5ebc),'sheetID':_0xd96678,'color':this['_colorAssignService'][_0x15ff59(0x288)](_0xfe6f7f),'selection':_0x352e4e},_0x4fd53d=this['cursorInfo'];_0x4fd53d[_0x15ff59(0x182)](_0xfe6f7f,_0xe8b54),this[_0x15ff59(0x130)][_0x15ff59(0x116)](_0x4fd53d);}[_0x3022d6(0x16e)](_0x5c0d55){const _0x216e3b=_0x3022d6,{memberID:_0xa15997}=_0x5c0d55[_0x216e3b(0x2be)],_0x1c9452=this[_0x216e3b(0x3ca)];_0x1c9452[_0x216e3b(0x1af)](_0xa15997),this[_0x216e3b(0x130)][_0x216e3b(0x116)](_0x1c9452);}[_0x3022d6(0x371)](_0x20aaa2,_0xb1ee8f){const _0x32a65c=_0x3022d6;var _0x10e095,_0x2c6407;const _0x2163a2=(_0x2c6407=(_0x10e095=this[_0x32a65c(0x17c)][_0x32a65c(0x95)](this[_0x32a65c(0x367)]))==null?void 0x0:_0x10e095['getSheetBySheetId'](_0x20aaa2))==null?void 0x0:_0x2c6407[_0x32a65c(0x34a)]();return(_0x2163a2==null?void 0x0:_0x2163a2[_0x32a65c(0x99)](_0x4c8cbd=>o['Rectangle']['contains'](_0x4c8cbd,_0xb1ee8f)))||_0xb1ee8f;}[_0x3022d6(0x3f9)](){const _0x50022e=_0x3022d6,_0x3ae3cf=new o['DisposableCollection'](),_0x58ad63=js(),_0x47dffb=()=>{const _0x2d729a=_0xbc10;_0x3ae3cf[_0x2d729a(0x147)]();const _0x588c79=(_0x171abd,_0x583f02,_0x3f5b57,_0xb3c34d)=>{const _0x7bafcc=_0x2d729a;let _0x529413=[];switch(_0x171abd['id']){case p['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x529413=p[_0x7bafcc(0x369)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['DeleteRangeMoveUpCommandId']:{_0x529413=p[_0x7bafcc(0x148)](_0x171abd,_0xb3c34d);break;}case p['EffectRefRangId'][_0x7bafcc(0x34e)]:{_0x529413=p[_0x7bafcc(0x1f0)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x2e3)]:{_0x529413=p[_0x7bafcc(0x432)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x1e8)]:{_0x529413=p[_0x7bafcc(0x16a)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0xe3)]:{_0x529413=p['handleInsertRow'](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x86)]:{_0x529413=p['handleMoveRange'](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['RemoveColCommandId']:{_0x529413=p[_0x7bafcc(0x323)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['RemoveRowCommandId']:{_0x529413=p[_0x7bafcc(0x442)](_0x171abd,_0xb3c34d);break;}}const _0x1eea94=p[_0x7bafcc(0xb6)](_0x529413,_0xb3c34d),_0x39bf5f=this[_0x7bafcc(0x3ca)][_0x7bafcc(0x84)](_0x583f02);if(_0x39bf5f&&_0x1eea94){const _0x3ed2d0={..._0x39bf5f,'range':_0x1eea94};this['cursorInfo'][_0x7bafcc(0x182)](_0x583f02,_0x3ed2d0),_0x58ad63(()=>{const _0x12bd55=_0x7bafcc,_0x34897d=this[_0x12bd55(0x286)][_0x12bd55(0x356)](_0x1eea94,_0x573923=>(_0x34897d[_0x12bd55(0x147)](),_0x588c79(_0x573923,_0x583f02,_0x3f5b57,_0x1eea94)));_0x3ae3cf[_0x12bd55(0xe1)](_0x34897d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2d729a(0x3d3)]((_0x5d2e9c,_0x1b5031)=>{const _0x35ccf0=_0x2d729a,{range:_0x3897a8,sheetID:_0x208c31}=_0x5d2e9c,_0x5ee685=this[_0x35ccf0(0x286)]['registerRefRange'](_0x3897a8,_0x58b2fd=>(_0x5ee685[_0x35ccf0(0x147)](),_0x588c79(_0x58b2fd,_0x1b5031,_0x208c31,_0x3897a8)));_0x3ae3cf['add'](_0x5ee685);});};this[_0x50022e(0x14a)](o[_0x50022e(0x24c)](this[_0x50022e(0x130)]['subscribe'](()=>{_0x47dffb();})));}['_toggleOnline'](){const _0x2a960c=_0x3022d6;var _0x175a4b,_0x8198c6;if(this[_0x2a960c(0xa7)]=!0x0,((_0x175a4b=this['_univerInstanceService'][_0x2a960c(0x45c)]())==null?void 0x0:_0x175a4b[_0x2a960c(0x29c)]())!==this[_0x2a960c(0x367)])return;const _0x4909eb=(_0x8198c6=this[_0x2a960c(0x123)][_0x2a960c(0x84)](p[_0x2a960c(0x303)])[_0x2a960c(0xbe)]())==null?void 0x0:_0x8198c6[0x0],_0x59ade2=this[_0x2a960c(0x17c)]['getCurrentUnitForType'](o[_0x2a960c(0x23f)][_0x2a960c(0x2c0)])[_0x2a960c(0x34b)]();_0x4909eb&&_0x59ade2&&this[_0x2a960c(0x1f1)](_0x59ade2[_0x2a960c(0x3a8)](),_0x4909eb);}[_0x3022d6(0x20b)](){this['_online']=!0x1;}};Le=Ns([q(0x2,o['Inject'](o[_0x3022d6(0x448)])),q(0x3,o[_0x3022d6(0x291)](Fe)),q(0x4,o['Inject'](Y)),q(0x5,o[_0x3022d6(0xb8)]),q(0x6,o[_0x3022d6(0x3e6)]),q(0x7,o[_0x3022d6(0x291)](p['RefRangeService']))],Le);var $s=Object[_0x3022d6(0x131)],xs=Object[_0x3022d6(0x2b4)],Hs=(_0x482d3e,_0x3e2e4f,_0x9ccfe9,_0x31d24d)=>{const _0x1a63a0=_0x3022d6;for(var _0x2e68cc=_0x31d24d>0x1?void 0x0:_0x31d24d?xs(_0x3e2e4f,_0x9ccfe9):_0x3e2e4f,_0x4a462e=_0x482d3e[_0x1a63a0(0x2ce)]-0x1,_0x30c1e3;_0x4a462e>=0x0;_0x4a462e--)(_0x30c1e3=_0x482d3e[_0x4a462e])&&(_0x2e68cc=(_0x31d24d?_0x30c1e3(_0x3e2e4f,_0x9ccfe9,_0x2e68cc):_0x30c1e3(_0x2e68cc))||_0x2e68cc);return _0x31d24d&&_0x2e68cc&&$s(_0x3e2e4f,_0x9ccfe9,_0x2e68cc),_0x2e68cc;},F=(_0x27e7fe,_0x423bc3)=>(_0x37ba10,_0x349b52)=>_0x423bc3(_0x37ba10,_0x349b52,_0x27e7fe);const ks=0x12c,Bs=0x64;let Ae=class extends o[_0x3022d6(0x460)]{constructor(_0x499004,_0x398ecf,_0x323392,_0x38b5bf,_0x57cd51,_0x496d33,_0x17988b,_0x51f4f9,_0x3912e1){const _0x1e3861=_0x3022d6;super(),u(this,_0x1e3861(0xa7),!0x1),u(this,_0x1e3861(0x11b),!0x1),u(this,_0x1e3861(0x130),new v[(_0x1e3861(0x141))](new Map())),u(this,_0x1e3861(0x210),this[_0x1e3861(0x130)][_0x1e3861(0x295)]()),u(this,_0x1e3861(0x3fa),new v['BehaviorSubject']([])),u(this,_0x1e3861(0xf3),this[_0x1e3861(0x3fa)][_0x1e3861(0x23e)](v[_0x1e3861(0x280)](ks))),u(this,_0x1e3861(0x1f1),xe(_0x4ce576=>{const _0x2a4bfb=_0x1e3861,_0x18c8c7={'eventID':_[_0x2a4bfb(0x26c)][_0x2a4bfb(0x426)],'data':{'unitID':this[_0x2a4bfb(0x367)],'memberID':this['_session'][_0x2a4bfb(0x3f2)](),'selection':bt(_0x4ce576)}};this['_session'][_0x2a4bfb(0x362)](_0x18c8c7,this[_0x2a4bfb(0x367)]);},Bs)),(this[_0x1e3861(0x367)]=_0x499004,this[_0x1e3861(0x1b0)]=_0x398ecf,this[_0x1e3861(0x123)]=_0x323392,this[_0x1e3861(0x26b)]=_0x38b5bf,this[_0x1e3861(0x16b)]=_0x57cd51,this['_syncEditingCollabCursorService']=_0x496d33,this[_0x1e3861(0x223)]=_0x17988b,this['_univerInstanceService']=_0x51f4f9,this[_0x1e3861(0x467)]=_0x3912e1);}get[_0x3022d6(0x3ca)](){const _0x24b48a=_0x3022d6;return this['_cursorInfo$'][_0x24b48a(0x386)]();}get[_0x3022d6(0x240)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x1e9ddd=_0x3022d6;super[_0x1e9ddd(0x147)](),this['_cursorInfo$']['next'](new Map()),this[_0x1e9ddd(0x130)][_0x1e9ddd(0x19e)](),this[_0x1e9ddd(0x3fa)]['next']([]),this[_0x1e9ddd(0x3fa)]['complete']();}[_0x3022d6(0x388)](){const _0x26cd26=_0x3022d6;this[_0x26cd26(0x11b)]||(this[_0x26cd26(0x11b)]=!0x0,this['_session'][_0x26cd26(0x370)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this[_0x26cd26(0x374)]))[_0x26cd26(0x265)](_0x124102=>{const _0x1a23d1=_0x26cd26;_0x124102===G[_0x1a23d1(0x194)]?this[_0x1a23d1(0x30a)]():this[_0x1a23d1(0x20b)]();}),this['_session'][_0x26cd26(0x144)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this['dispose$']))[_0x26cd26(0x265)](_0x4828b7=>{const _0x5d016c=_0x26cd26,_0x15fa62=_0x4828b7[_0x5d016c(0x31c)];_0x15fa62===_[_0x5d016c(0x26c)][_0x5d016c(0x426)]&&this['_onCursorUpdate'](_0x4828b7),_0x15fa62===_[_0x5d016c(0x26c)][_0x5d016c(0x1b6)]&&this[_0x5d016c(0x16e)](_0x4828b7);}),this[_0x26cd26(0x14a)](this[_0x26cd26(0x467)]['onCommandExecuted'](_0x522bb2=>{const _0x3b33af=_0x26cd26,_0xd10c11=_0x522bb2[_0x3b33af(0xd7)];_0xd10c11!=null&&this[_0x3b33af(0xa7)]&&_0x522bb2['id']===P[_0x3b33af(0x447)]['id']&&_0xd10c11[_0x3b33af(0x347)]===this[_0x3b33af(0x367)]&&_0xd10c11[_0x3b33af(0x167)]===!0x1&&this[_0x3b33af(0x1f1)](_0xd10c11[_0x3b33af(0x41c)]);})),this[_0x26cd26(0x308)][_0x26cd26(0x3d9)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this['dispose$']))[_0x26cd26(0x265)](_0x5db2a2=>{const _0x4c6953=_0x26cd26;if((_0x5db2a2==null?void 0x0:_0x5db2a2[_0x4c6953(0x367)])!==this[_0x4c6953(0x367)])return;const _0x57ae1b={'eventID':_['CollaborationEvent'][_0x4c6953(0x426)],'data':_0x5db2a2};this[_0x4c6953(0xab)](_0x57ae1b);}),this[_0x26cd26(0x14a)](this[_0x26cd26(0x467)][_0x26cd26(0x2a1)](_0x5aae3b=>{const _0x1ebb07=_0x26cd26;if(_0x5aae3b['params']==null)return;const _0x5316f9=_0x5aae3b[_0x1ebb07(0xd7)];if(_0x5aae3b['id']!==P[_0x1ebb07(0x365)]['id']||_0x5316f9[_0x1ebb07(0x347)]!==this[_0x1ebb07(0x367)])return;const _0x318e39={'id':_0x1ebb07(0x290),'params':_0x5316f9},_0x125d4a=this[_0x1ebb07(0x3ca)];for(const [_0x1fecf6,_0x552a89]of _0x125d4a){const _0x2d9969={'id':_0x1ebb07(0x290),'params':{'unitId':this[_0x1ebb07(0x367)],'actions':null,'textRanges':_0x552a89['ranges']}},_0x5cb14d=this[_0x1ebb07(0x223)][_0x1ebb07(0x28e)](_0x318e39,_0x2d9969,!0x1);if(_['isTransformMutationFailure'](_0x5cb14d))throw _0x5cb14d['error'];_0x125d4a[_0x1ebb07(0x182)](_0x1fecf6,{..._0x552a89,'ranges':_0x5cb14d[_0x1ebb07(0x469)]['params'][_0x1ebb07(0x134)]});}queueMicrotask(()=>{const _0x28502b=_0x1ebb07;this['_cursorInfo$'][_0x28502b(0x116)](_0x125d4a);});})));}[_0x3022d6(0xab)](_0x3ce280){const _0x4ac320=_0x3022d6;var _0x4ac7a7,_0x949b3a;const {memberID:_0x1934ba,selection:_0x4ccae7}=_0x3ce280[_0x4ac320(0x2be)],_0x1aa938=Is(_0x4ccae7),_0x3e1a7f=(_0x949b3a=(_0x4ac7a7=this['_memberService'][_0x4ac320(0x18f)](this[_0x4ac320(0x367)],_0x1934ba))==null?void 0x0:_0x4ac7a7[_0x4ac320(0x1fa)])!=null?_0x949b3a:_0x4ac320(0x1f2),_0x3990bd={'color':this[_0x4ac320(0x26b)][_0x4ac320(0x288)](_0x1934ba),'name':_0x3e1a7f,'ranges':_0x1aa938},_0x42cb94=this['cursorInfo'];_0x42cb94[_0x4ac320(0x182)](_0x1934ba,_0x3990bd),this[_0x4ac320(0x130)]['next'](_0x42cb94);}[_0x3022d6(0x16e)](_0x2ee17b){const _0x550d23=_0x3022d6,{memberID:_0x5e6357}=_0x2ee17b['data'],_0x7c044b=this[_0x550d23(0x3ca)];_0x7c044b[_0x550d23(0x1af)](_0x5e6357),this[_0x550d23(0x130)]['next'](_0x7c044b);}[_0x3022d6(0x30a)](){const _0x542f6b=_0x3022d6;var _0x46bb76;if(this[_0x542f6b(0xa7)]=!0x0,((_0x46bb76=this[_0x542f6b(0x17c)][_0x542f6b(0x45c)]())==null?void 0x0:_0x46bb76['getUnitId']())!==this[_0x542f6b(0x367)])return;const _0x2fe22b=this[_0x542f6b(0x123)][_0x542f6b(0x84)](P[_0x542f6b(0x329)])['getDocRanges'](),_0x2e777e=_0x2fe22b==null?void 0x0:_0x2fe22b[_0x542f6b(0x317)](P[_0x542f6b(0x3f1)]);Array[_0x542f6b(0x3a1)](_0x2e777e)&&_0x2e777e['length']>0x0&&this['_updateLocalCursor'](_0x2e777e);}['_toggleOffline'](){const _0x40fa06=_0x3022d6;this[_0x40fa06(0xa7)]=!0x1;}};Ae=Hs([F(0x2,o[_0x3022d6(0x291)](o['Injector'])),F(0x3,o['Inject'](Fe)),F(0x4,o[_0x3022d6(0x291)](Y)),F(0x5,o[_0x3022d6(0x291)](We)),F(0x6,_['ITransformService']),F(0x7,o[_0x3022d6(0xb8)]),F(0x8,o['ICommandService'])],Ae);var Vs=Object[_0x3022d6(0x131)],Ws=Object[_0x3022d6(0x2b4)],Fs=(_0x5b7d38,_0x53f4ea,_0x43a881,_0x3da234)=>{const _0x2be400=_0x3022d6;for(var _0x2855ff=_0x3da234>0x1?void 0x0:_0x3da234?Ws(_0x53f4ea,_0x43a881):_0x53f4ea,_0x2c3e74=_0x5b7d38[_0x2be400(0x2ce)]-0x1,_0x5563ce;_0x2c3e74>=0x0;_0x2c3e74--)(_0x5563ce=_0x5b7d38[_0x2c3e74])&&(_0x2855ff=(_0x3da234?_0x5563ce(_0x53f4ea,_0x43a881,_0x2855ff):_0x5563ce(_0x2855ff))||_0x2855ff);return _0x3da234&&_0x2855ff&&Vs(_0x53f4ea,_0x43a881,_0x2855ff),_0x2855ff;},Re=(_0x164277,_0x5e90e3)=>(_0x4f9e0b,_0xe67962)=>_0x5e90e3(_0x4f9e0b,_0xe67962,_0x164277);function _0x1991(){const _0x20ed93=['rxjs','url','_clearUndo','_tryEnsureSocket','size','_isPermissionRej','svg','getSkeleton','length','isTransformChangesetsSuccess','onPointerMove$','_notificationService','xlink:href','top','allowed','_state','actions','isTransformMutationsWithChangesetFailure','_color','_snapshotService','_undoStacks','substring','mapTo','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scheduleCollaborationTimeoutTimer','_localStorageService','LOCAL_CACHE_INTERVAL_KEY','OTHER_CLIENTS_EDITING','_getCurrentRevision','InsertRangeMoveDownCommandId','_socket$','exhaustSavingTask','_clearScheduledTask','selections','WebSocketService','take','restore','_onMessage','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_beforeCloseService','CollaborationSessionService','YUUMI_RATE_OVER_LIMIT','_themeService','_scene','originalMeta','lineTo','createIdentifier','_transformUndoRedoStack','getTypeOfUnitAdded$','trim','onMouseMove','target','includes','/-/object/list','UNDEFINED','_startCollaboration','syncEditingCollabCursor','FAIL','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','IAuthzIoService','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','SheetsSelectionsService','NodePositionConvertToCursor','_scheduleClearOtherTimer','sessionStatus','_snapshotServerService','_syncEditingCollabCursorService','RevisionService','_toggleOnline','COMPRESS_MUTATION_SEND','JSONX','_status$','setShapeProps','colorChannel1','NEW_CHANGESETS','isActive','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','editingUnit','ThemeService','@univerjs/core','OFFLINE','map','_sendHeartbeatTimer','AWAITING_WITH_PENDING','registerBeforeClose','session','eventID','@univerjs-pro/collaboration','onMissedChangesetFetched','setItem','_joinRoom','blue400','UNRECOGNIZED','handleIRemoveCol','univer-online-status-title','initWorkbookPermissionChange','_uiPartsService','patch','_unitID','TextSelectionManagerService','LifecycleStages','closePath','IHTTPImplementation','Ready','getUnitStatus$','WorkbookEditablePermission','UPDATE_PERMISSION_OBJ','Shape','_name','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_removeClearOtherTimer','replaceTextRanges','DataLoaderController','_initUnitPermissionChange','getRangePointData','[OfflineState]:\x20received\x20rejection.','getCurrentRevForDocument','YUUMI_UNABLE_LOAD_URL','univer-online','revision','_cursor','list','APPLY_REVISION_CONFILICT','jiqing500','rev','CollaborationSession','_createInitialState','joinEvent','IPermissionService','unitId','&to=','UNKNOWN_CMD','getMergeData','getActiveSheet','/universer-api/authz','_updateLocalCache','InsertColCommandId','ImageUploadStatusType','_roomMembers','SNAPSHOT_SERVER_URL_KEY','_getCtorByUniverType','hasOwnProperty','_getAnchorBounding','HttpExport','registerRefRange','Undefined','status$','[CollaborationSessionService]','getInterceptPoints','whenReady','propertyIsEnumerable','onPointerLeave$','_selfUnitIDs','getVpScrollXYInfoByPosToVp','_startDocCollabCursor','idSuffix','send','BASE64','transformRemoteChangeset','RichTextEditingMutation','connection\x20error','unitID','Steady','handleDeleteRangeMoveLeft','isTransformMutationFailure','registerRenderModule','verdancy600','startColumn','_replaceFileID','memberID','sessionStatus$','_getMergeRange','routeKey','/object/','dispose$','transformMutationsWithChangeset','univer-pro.collaboration-client.single-active-unit-service','transformIMECache','_labelPosition','defIds','Optional','update','prototype','SUBMIT_CHANGESET','HTTPService','headers','UNIVER_UNKNOWN','_onRemoteChangeset','DocSkeletonManagerService','string','MSG_FOR_ERROR','encode','getValue','_retryConnectingTimer','init','[SyncedState]:\x20received\x20rejection.','onlyLocal','_logService','fillText','_socket','_messageService','DependentOn','IRemoteInstanceService','_setupSubUnitSync','transformUndoRedo','SnapshotService','_commentUpdate$','transformByState','_HTTPService','collaboration-client.offline-data-not-saved','_clearTimeoutTimer','SheetSkeletonManagerService','_collaborationPaused','makeDirty','appendMutation','onlineStatusTitle','m1Prime','from','conflict','isArray','_permissionService','objectType','/universer-api/file/{fileID}/sign-url','getImage','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','selection','getSheetId','LIVESHARE_TERMINATE','searchParams','replace','all','_incrementRevisionNumber','getTypeOfUnitDisposed$','shareReplay','CollaborationSocketService','_localeService','requireSession','offline','_registerDependencies','/unit/','red300','RETRY_CONNECTING_INTERVAL','loadOfflineData','saveSnapshot','setTimeout','state','loadSheet','getDocRanges','IConfigService','purple300','_docTransformIMECacheService','_syncEditingCollabCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','_socketMessageSubscription','mapDocumentTypeToUniverType','result','c1Prime','/universer-api/oidc/authpage','0\x200\x2016\x2016','_handleHeartbeatEvent','cursorInfo','\x0aCurrent:\x20','text','_exhaustRemoteChangesetQueue','_handler','_scheduleTimestamp','put','subUnitId','fetchThroughInterceptors','forEach','color','InsertSheetMutation','newValue','off-line-single_clip0_910_343','random','collabCursorState$','APPLY_NON_SEQUENTIAL_REVISION','IBeforeCloseService','[CollaborationEntity]','_assignedColors','_transformIMECache','COLLAB_WEB_SOCKET_URL','_draw','encodeURIComponent','_collabSessionService','_awaitingChangeset','SheetCollaborationEntity','fromEventSubject','ICommandService','_onRemoteRejected','NOT_FOUND','_disableEditing','_localCacheService','delay','unshift','8dGgQhj','url(#$1','OnLifecycle','awaiting_with_pending','serializeDocRange','getMemberID','resourceIDs','ImageSourceType','onSendChangeset','[OfflineState]:\x20received\x20changeset.','NO_OTHER_CLIENTS_EDITING','EmptyMutation','_onRefRangeChange','_roomMembers$','HttpImport','_cursorShapes','fetchMissingChangesets','Vector2','_getRedoStack','_members','round','collaborators','UniverIcon','error','_handleHover','_eventUnsubscribe','roles','objectID','activeSheet$','newCsEvent','message$','RECV','path','off-line-single','resend','/collaborator','on-line-single','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNIVER_PROJECT','_urlService','_executeRemoteChangeset','getCoordByCell','@univerjs/docs','Tools','concat','c2Prime','sheetId','ranges','_showConflictNotification','getUndoRedoMutationParamsCache','[OfflineState]:\x20received\x20acknowledgement.','CHANGESET_ACK','defs','call','_unitOnClients','fromCollab','useRef','UPDATE_CURSOR','_startSheetCollabCursor','SNAPSHOT_HAS_BEEN_REMOVED','editing\x20status\x20changed\x20to','_heartbeatTimer','measureText','_undoRedoService','push','FileId','_transitionLocked','4835vlFzud','CollaborationController','handleInsertRangeMoveDown','_getSnapshotAPIPrefix','title','onStarting','children','conflict.title','_submitChangeset','_state$','on-line-single_clip0_910_349','state$','sheetID','\x20in\x20_schedule.','LocaleService','fill','onTransformIME','unitId\x20is\x20not\x20found','handleIRemoveRow','_saveCache','_getAPIPrefix','SEND_CHANGESET_TIMEOUT','_waitCount','SetTextSelectionsOperation','Injector','UnitEmbedded','Error\x20on\x20receiving\x20event','currentSkeleton$','_disabled','subunit','_sheetTransformSelectionsService','FETCH_MISSING','awaiting','RETRY_CONNECTING_MAX_COUNT','_retryCount','@univerjs/drawing','/new_changes','_schedule','transform','_lastPointer','/universer-api/comb','CHANGESET_REJ','connectInjector','commentUpdate$','getFocusedUnit','post','none','/universer-api/snapshot','RxDisposable','[PendingState]:\x20unhandled\x20univer\x20type:\x20','HEARTBEAT','NOT_COLLAB','IMEInputManagerService','registerOnClose','ALREADY_EXISTS','_commandService','collaboration.closeRoom','m2Prime','getActiveRange','createElement','clsx','_getSheetObject','_removeCollabCursors','userID','backgroundColor','SHOULD_CLOSE_CONN','get','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MoveRangeCommandId','_config','_onFetchMissResult','createInstance','_imageSourceCache','@univerjs/design','responseType','_clearLocalCache','entries','lodash/debounce','_transformPreviousActiveRange','LICENSE_MAX_UNITS_EXCEEDED','save\x20fail\x20reason\x20is\x20','_onJoinRoomEvent','_hideTimer','getUniverSheetInstance','VIEWPORT_KEY','_removeRoom','skeleton','find','registerComponent','getResourcesRequest','assign','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','registerHTTPInterceptor','COMPRESS_MUTATION_APPLY','_initMergeInterceptor','_remoteChangesetQueue','session.room-full','8460fIjMFL','_onLocalMutation','HEARTBEAT_TIMEOUT_KEY','IContextService','_online','_clearOtherTimers','objects','IURLService','_onCursorUpdate','_sessions','setParam','_timeoutTimer','IMessageService','reduce','div','_collaborationTimeoutTimer','collabStatus.fetchMiss','getSheetBySheetId','permission.content','runRefRangeMutations','gold400','IUniverInstanceService','black','INTERNAL_ERROR','updateOfflineData','_scheduleReconnection','transformSelections','getCurrentSelections','toggleOnline','AuthzIoHttpService','onRemoteAck','_acknowledgedAwaitingChangeset','submit\x20changeset\x20error!','currentColor','merge','\x20to\x20','takeUntil','socketService','b64DecodeUnicode','awaitingChangeset','210889TPjnCz','localeService','clearInterval','_docStateChangeManagerService','SNAPSHOT_URL_KEY','APPLY_PERMISSION_DENIED','HEADER_MENU','_drawRectRange','LIVESHARE_REQUEST_HOST','Starting','_applyRemoteChangeset','apply','params','getParam','3469671eKcdvi','key','_collaborationSessionService','LEAVE','_transformSelections','USERS_ENTER','_cachedData','session.will-retry','add','className','InsertRowCommandId','clear','SUCCUSS','parseProtocolChangeset','getCurrent','_getAPIPrefixPath','_clearHeartbeatTimer','@univerjs/ui','_drawAnchor','_lockTransition','IImageIoService','_configService','rgba(255,\x20255,\x20255,\x200.01)','urlChange$','UUID','_anchor','roomMembers$','file','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_fetchMissChangesets','permissionRejEvent','SYNCED','debug','_createHandler','_transformStack','action','INotificationService','_updateState','_send','_context','_docSkeletonManagerService','max','SetDocZoomRatioOperation','catch','CHANGESET_REVISION_CONFILICT','_getUploadFileURL','ThresholdInterceptorFactory','socket\x20open.','onPointerEnter$','findNodePositionByCharIndex','hide','isTransformMutationsWithChangesetSuccess','collab-text-anchor-','reverse','_httpService','getUnitType','/rev/','createSocket','row','IUndoRedoService','values','next','COLLAB_WEB_SOCKET_URL_KEY','onTransformSelections','_handleEvent','_updateURLWithCurrentState','_init','Module','_loadDoc','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','arc','/object','_onConnectionFailed','location','_injector','IUIPartsService','updateCursorEvent','_getSignURL','PSEUDO_FETCH_MISSING_RESULT','drawWith','getCurrentUser','PERMISSION_REJ','_onUserLeave','collabStatus.syncing','members','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','enableAuthServer','_cursorInfo$','defineProperty','1em','_range','textRanges','collabStatus.offline','getUnitOnRev','?url=','onRemoteChangeset','_queuedRemoteChangesets','_initStatusComponent','_colorIndex','_onUserJoin','_saveTaskMap','IRenderManagerService','width','_redoStacks','BehaviorSubject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ISnapshotServerService','event$','INGEST','MUTATION','dispose','handleDeleteRangeMoveUp','resize','disposeWithMe','[PendingState]:\x20received\x20rejection.','3004160FOuVSh','saveChangeset','override','_commentService','TEXT_RANGE_LAYER_INDEX','has','isInternalEditorID','[UniverCollaborationClientPlugin]','leaveEvent','_waitForHeartbeatResponse','then','JOIN','_transformRemoteChangesetByIMECache','not_collab','_singleActiveUnitService','status','_collabCursorState$','HTTPRequest','_collabCursorController','LOCAL_CACHE_INTERVAL','deserializeToCombResponse','interceptor','flatMap','fromEvent','Plugin','updateMember','_render','isEditing','UserManagerService','LICENSE_DISTRO_REJECTED','handleInsertRangeMoveRight','_memberService','UNIVER_SLIDE','endRow','_onCursorDelete','fillStyle','_textBubble','concatMap','currentTheme$','_clearRedo','LocalCacheService','_unitStatus','LIVESHARE_OPERATION','startRow','requestParams','LIVESHARE_NEW_HOST','Univer','_event$','_univerInstanceService','#fff','getColor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','history','popstate','set','changesets','_collaborationController','getWorkbookSelections','closeSession','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_id','addImageSourceCache','_type','univer-online-status-icon','UNAUTHENTICATED','getCollabEntity','batchAllowed','getMember','getSheetBlock','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleSaving','_rescheduleHeartbeatEvent','ONLINE','[CollaborationUndoRedoService]','disableLocalCache','_hover','[DataLoaderController]','url(#off-line-single_clip0_910_343)','labelPosition','toStringTag','Error','onRemoteRej','complete','_socketService','/role','collabStatus.conflict','csAckEvent','[FetchMissState]','_onCombEvent','POST','_substituteUndoStack','FromArray','deserializeRangeWithSheet','PERMISSION_DENIED','setInterval','IDLE','_initCommandExecutedListener','body','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','delete','_session','/-/object/-/batch_allowed','onSyncEditingCollabCursor','_change$','clearTimeout','544233WYqNEG','USERS_LEAVE','use','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','COLLAB_SUBMIT_CHANGESET_URL','throttleTime','_ensureSubject','getConfig','YUUMI_SUBSCRIPTION_NOT_FOUND','INVALID_ARGUMENT','filter','serializeRangeWithSheet','LOGIN_URL_KEY','workbook','onload','toRgbString','setAlpha','SetWorksheetActivateCommand','/resources','Disposable','BuiltInUIPart','OnLineSingle','collabStatus.synced','collabStatus.notCollab','addObject','rxjs/operators','AWAITING','ITransformService','FETCH_MISS','show','session.collaboration-timeout','addObjects','_handleJoinEvent','append','getUnhiddenWorksheets','_initModules','baseRev','_handleLeaveEvent','clipPath','collaMsg','ImageIoService','EffectRefRangId','Warning','_loadSheet','csRejEvent','ws://127.0.0.1:8000/universer-api/comb/connect','getItem','MessageType','collaboration.single-unit.warning','confirm','InsertRangeMoveRightCommandId','onCommentUpdate','_shapes','SNAPSHOT_INVALID_SNAPSHOT','min','pending','M0\x200H16V16H0z','_checkMissing','handleInsertCol','_updateLocalCursor','Unknown\x20user','type','_sendingTimer','[PendingState]:\x20received\x20acknowledgement.','startsWith','collab-rect-range-','_docSkeleton','displayName','name','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','DisposableCollection','getTime','distinctUntilChanged','DEFAULT_FILE_NAME','_ws','deepClone','src','focused$','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','replaceState','collab-text-range-','APPLY_REJECT','_backgroundColor','VIEW_MAIN','_createSocket','_toggleOffline','_updateStatus','objectActions','setCurrentUser','uni.network.url-service','cursorInfo$','unit-cache-','YUUMI_URL_COL_OUT_OF_RANGE','_sheetSkeletonManagerService','@univerjs/engine-render','font','evenodd','[CollaborationState]:\x20apply\x20error!','onStateChange','_socketReady','liveShareNewHost','Subject','/universer-api/snapshot/','storage','slice','commentUpdateEvent','attrs','collaboratorID','_refreshCollabCursors','_transformService','_updateSubUnitFromURLParams','SnapshotServerOverHTTPService','refreshPermission','_anchorDot','7051RgGdlw','_pendingMutations','_updateCollabCursors','ICollaborationSocketService','close','ERROR_IMAGE','socket\x20close','ILogService','_hovered','SetSelectionsOperation','transformChangesets','UniverCollaborationClientPlugin','_getSaveTimeout','_renderManagerService','shouldCloseConn','UNIVER_DOC','_compressMutationService','_decreaseWaiting','UnitSnapshot','useObservable','@univerjs/rpc','_entities','pipe','UniverInstanceType','roomMembers','_transformUndoredo','_entityInit$','_replayCachedMutations','getAncestorScale','pushState','snapshot','74929SUcquS','listRoles','UNKNOWN_CODE','HELLO','COMPLETION_FINISHED','toDisposable','univer-offline','generateRandomId','_onConflict','_getSendChangesetTimeout','bottom','reject','extend','_revisionService','loadDoc','onlineStatusIcon','forwardRef','stringify','method','_initCloseConn','open$','saveOfflineData','removeMember','indexOf','unit','enableSingleActiveInstanceLock','_scheduleHeartbeat','href','icon','putCollaborators','subscribe','switchMap','toString','_onRecvEvent','DesktopCollaborationStatusDisplayController','image/gif','_colorAssignService','CollaborationEvent','fetching\x20missing\x20changesets\x20from\x20','/allowed','removeParam','PENDING','range','engine','ColorKit','AUTHZ_URL_KEY','_getLoginPath','getCollabCursors$','image/jpeg','isPermissionRej','_initStatusListener','url(#on-line-single_clip0_910_349)','cmd','COLORS','6qRfFpl','...','updatePermissionPoint','debounceTime','getSheetObject','combineLatest','_sessionStatus$','liveShareOperation','resolve','_refRangeService','DocStateChangeManagerService','assignAColorForMemberID','_cursors','univer-pro.collaboration-client-socket-service','RegularPolygon','HEARTBEAT_INTERVAL_KEY','save','transformMutation','fetch_missing','doc.mutation.rich-text-editing','Inject','MergeInterceptorFactory','getCollabEntity$','@univerjs/sheets-ui','asObservable','_docSyncEditingCollabCursorService','JOINING','XHRHTTPImplementation','_setupBeforeClosingHandler','HEARTBEAT_INTERVAL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getUnitId','addEventListener','_document','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','TOO_MANY_REQUESTS','onCommandExecuted','code','executeCommand','_sendHeartbeat','mutations','Workbook','conflict.content','close$','getOwnPropertySymbols','CONNECTOR_DATA_TOO_LARGE','parse','column','unknown','_http','_docTransformSelectionsService','onMissingChangesets','image/bmp','_onConnectionOpen','LIVESHARE_FETCH_OPERATIONS','getOwnPropertyDescriptor','toggleOffline','tag','&source=','transformStack\x20failed!','unsubscribe','CommentService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_unlockTransition','COMMENT_UPDATE','data','Rect','UNIVER_SHEET','436yCIBxr','session.connection-failed','?size=','subscribeEvent','CommandType'];_0x1991=function(){return _0x20ed93;};return _0x1991();}let Z=class extends o[_0x3022d6(0x460)]{constructor(_0x232dc6,_0x297dae,_0x35012a){const _0x50d605=_0x3022d6;super(),u(this,_0x50d605(0x23d),new Map()),u(this,_0x50d605(0x242),new v[(_0x50d605(0x21b))]()),(this[_0x50d605(0x17c)]=_0x232dc6,this[_0x50d605(0x123)]=_0x297dae,this[_0x50d605(0x3e2)]=_0x35012a,this['_init']());}[_0x3022d6(0x147)](){const _0x3b15f2=_0x3022d6;super[_0x3b15f2(0x147)](),this['_entityInit$'][_0x3b15f2(0x19e)](),this[_0x3b15f2(0x23d)][_0x3b15f2(0x3d3)](_0x5cf84c=>_0x5cf84c[_0x3b15f2(0x147)]());}[_0x3022d6(0x276)](_0x4259a2){const _0x1b44a8=_0x3022d6;return this[_0x1b44a8(0x23d)][_0x1b44a8(0x151)](_0x4259a2)?this[_0x1b44a8(0x23d)][_0x1b44a8(0x84)](_0x4259a2)[_0x1b44a8(0x210)]:this[_0x1b44a8(0x242)][_0x1b44a8(0x23e)](v[_0x1b44a8(0x1c0)](_0x50c05e=>_0x50c05e['unitID']===_0x4259a2),v['switchMap'](_0x4f2328=>_0x4f2328[_0x1b44a8(0x210)]));}['_init'](){const _0x106562=_0x3022d6;this[_0x106562(0x17c)]['getTypeOfUnitAdded$'](o[_0x106562(0x23f)][_0x106562(0x2c0)])[_0x106562(0x23e)](v[_0x106562(0xc7)](this[_0x106562(0x374)]))[_0x106562(0x265)](async _0x945a9b=>{const _0x5a3170=_0x106562,_0x10867e=_0x945a9b[_0x5a3170(0x29c)](),_0x205886=await this[_0x5a3170(0x427)](_0x10867e);this[_0x5a3170(0x242)][_0x5a3170(0x116)](_0x205886),this['_entities'][_0x5a3170(0x182)](_0x10867e,_0x205886);}),this[_0x106562(0x17c)][_0x106562(0x2f6)](o[_0x106562(0x23f)][_0x106562(0x237)])['pipe'](v['takeUntil'](this[_0x106562(0x374)]))[_0x106562(0x23e)](v[_0x106562(0x1c0)](_0xa776d7=>!_0xa776d7[_0x106562(0x29c)]()['startsWith']('__')))[_0x106562(0x265)](async _0x44ccb0=>{const _0x38d6d1=_0x106562,_0x119099=_0x44ccb0[_0x38d6d1(0x29c)](),_0x1c515a=await this[_0x38d6d1(0x360)](_0x119099);this[_0x38d6d1(0x242)]['next'](_0x1c515a),this[_0x38d6d1(0x23d)]['set'](_0x119099,_0x1c515a);}),v[_0x106562(0xc5)](this[_0x106562(0x17c)][_0x106562(0x3ae)](o['UniverInstanceType'][_0x106562(0x237)]),this['_univerInstanceService'][_0x106562(0x3ae)](o[_0x106562(0x23f)][_0x106562(0x2c0)]))[_0x106562(0x23e)](v[_0x106562(0xc7)](this[_0x106562(0x374)]))[_0x106562(0x265)](_0x4b11ed=>{const _0x10a2a5=_0x106562,_0x45a268=_0x4b11ed['getUnitId'](),_0x3c3645=this[_0x10a2a5(0x23d)][_0x10a2a5(0x84)](_0x45a268);_0x3c3645&&(_0x3c3645[_0x10a2a5(0x147)](),this[_0x10a2a5(0x23d)][_0x10a2a5(0x1af)](_0x45a268));});}async[_0x3022d6(0x427)](_0x3b5f60){const _0xa312fd=_0x3022d6,_0x20a746=await this['_collabSessionService'][_0xa312fd(0x3b2)](_0x3b5f60),_0x4253b6=this['_injector'][_0xa312fd(0x89)](Le,_0x3b5f60,_0x20a746);return _0x4253b6[_0xa312fd(0x388)](),_0x4253b6;}async[_0x3022d6(0x360)](_0x3e8e4b){const _0x2ff481=_0x3022d6,_0x37346a=await this[_0x2ff481(0x3e2)][_0x2ff481(0x3b2)](_0x3e8e4b),_0x2818e2=this[_0x2ff481(0x123)][_0x2ff481(0x89)](Ae,_0x3e8e4b,_0x37346a);return _0x2818e2[_0x2ff481(0x388)](),_0x2818e2;}};Z=Fs([o[_0x3022d6(0x3ef)](o['LifecycleStages'][_0x3022d6(0xd4)],Z),Re(0x0,o[_0x3022d6(0xb8)]),Re(0x1,o[_0x3022d6(0x291)](o['Injector'])),Re(0x2,o[_0x3022d6(0x291)](exports[_0x3022d6(0x2ee)]))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x2edb5c,_0x34bb34){const _0x45f535=_0x3022d6;let {radius:_0x5823fe,width:_0x427d30,height:_0x284563}=_0x34bb34;_0x5823fe=_0x5823fe!=null?_0x5823fe:0x0,_0x427d30=_0x427d30!=null?_0x427d30:0x1e,_0x284563=_0x284563!=null?_0x284563:0x1e;let _0x20f0fb=0x0,_0x58dffc=0x0,_0x3a2284=0x0;_0x20f0fb=_0x58dffc=_0x3a2284=Math[_0x45f535(0x1ec)](_0x5823fe,_0x427d30/0x2,_0x284563/0x2),_0x2edb5c['beginPath'](),_0x2edb5c['moveTo'](_0x20f0fb,0x0),_0x2edb5c[_0x45f535(0x2f3)](_0x427d30-_0x58dffc,0x0),_0x2edb5c['arc'](_0x427d30-_0x58dffc,_0x58dffc,_0x58dffc,Math['PI']*0x3/0x2,0x0,!0x1),_0x2edb5c[_0x45f535(0x2f3)](_0x427d30,_0x284563-_0x3a2284),_0x2edb5c[_0x45f535(0x11f)](_0x427d30-_0x3a2284,_0x284563-_0x3a2284,_0x3a2284,0x0,Math['PI']/0x2,!0x1),_0x2edb5c['lineTo'](0x0,_0x284563),_0x2edb5c[_0x45f535(0x2f3)](0x0,_0x20f0fb),_0x2edb5c[_0x45f535(0x11f)](_0x20f0fb,_0x20f0fb,_0x20f0fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2edb5c[_0x45f535(0x32b)](),_0x34bb34[_0x45f535(0x43f)]&&(_0x2edb5c[_0x45f535(0x28d)](),_0x2edb5c[_0x45f535(0x16f)]=_0x34bb34[_0x45f535(0x43f)],_0x34bb34['fillRule']===_0x45f535(0x216)?_0x2edb5c['fill'](_0x45f535(0x216)):_0x2edb5c['fill'](),_0x2edb5c[_0x45f535(0x2ea)]());}class Ce extends b['Shape']{constructor(_0x3bea77,_0x5da96b){const _0x144c4f=_0x3022d6;super(_0x3bea77,_0x5da96b),u(this,_0x144c4f(0x3d4)),u(this,_0x144c4f(0x3cc)),(this['color']=_0x5da96b==null?void 0x0:_0x5da96b[_0x144c4f(0x3d4)],this[_0x144c4f(0x3cc)]=_0x5da96b==null?void 0x0:_0x5da96b[_0x144c4f(0x3cc)]);}static[_0x3022d6(0x128)](_0x4cba4b,_0x3fe372){const _0x21ae0f=_0x3022d6,{text:_0x19e3c2,color:_0xac1df8}=_0x3fe372;_0x4cba4b[_0x21ae0f(0x28d)](),_0x4cba4b[_0x21ae0f(0x215)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1c4164=_0x4cba4b[_0x21ae0f(0x42b)](_0x19e3c2)[_0x21ae0f(0x13f)],_0x30ab62=Math[_0x21ae0f(0x1ec)](_0x1c4164+0x2*Oe,it);Ys(_0x4cba4b,{'height':le,'radius':0x4,'width':_0x30ab62,'fill':_0xac1df8,'evented':!0x1}),_0x4cba4b['fillStyle']='#FFF';const _0x14132e=Oe,_0x3bb5bf=le-Gs,_0x415b25=it-0x2*Oe;if(_0x1c4164>_0x415b25){let _0x180057='',_0x24e553=0x0;for(const _0x412e9a of _0x19e3c2){const _0x3df609=_0x4cba4b[_0x21ae0f(0x42b)](_0x412e9a)['width'];if(_0x24e553+_0x3df609<=_0x415b25-_0x4cba4b[_0x21ae0f(0x42b)](_0x21ae0f(0x27e))[_0x21ae0f(0x13f)])_0x180057+=_0x412e9a,_0x24e553+=_0x3df609;else{_0x180057+=_0x21ae0f(0x27e);break;}}_0x4cba4b[_0x21ae0f(0x38c)](_0x180057,_0x14132e,_0x3bb5bf);}else _0x4cba4b[_0x21ae0f(0x38c)](_0x19e3c2,_0x14132e,_0x3bb5bf);_0x4cba4b[_0x21ae0f(0x2ea)]();}[_0x3022d6(0x3e0)](_0x37aefa){const _0x22084e=_0x3022d6;Ce[_0x22084e(0x128)](_0x37aefa,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x3022d6(0x331)]{constructor(_0x342ef7,_0x6b98c0){const _0x432242=_0x3022d6;super(_0x342ef7,_0x6b98c0),u(this,'_color'),u(this,_0x432242(0x230),!0x1),u(this,_0x432242(0x133)),u(this,_0x432242(0x332),''),u(this,_0x432242(0x378),_0x432242(0x2d3)),u(this,'_backgroundColor'),(_0x6b98c0&&this[_0x432242(0x30e)](_0x6b98c0),this[_0x432242(0x109)][_0x432242(0x2c4)](()=>this[_0x432242(0x30e)]({'hovered':!0x0})),this[_0x432242(0x35d)][_0x432242(0x2c4)](()=>this[_0x432242(0x30e)]({'hovered':!0x1})));}['setShapeProps'](_0x3bed4f){const _0x5b3d7e=_0x3022d6;var _0x258065,_0x4d14c0,_0x53ce16,_0xcbae31,_0x2b6f9a,_0xc70a0a;this[_0x5b3d7e(0x2d8)]=(_0x258065=_0x3bed4f[_0x5b3d7e(0x3d4)])!=null?_0x258065:this[_0x5b3d7e(0x2d8)],this[_0x5b3d7e(0x230)]=(_0x4d14c0=_0x3bed4f['hovered'])!=null?_0x4d14c0:this[_0x5b3d7e(0x230)],this[_0x5b3d7e(0x133)]=(_0x53ce16=_0x3bed4f['range'])!=null?_0x53ce16:this[_0x5b3d7e(0x133)],this[_0x5b3d7e(0x332)]=(_0xcbae31=_0x3bed4f['name'])!=null?_0xcbae31:this[_0x5b3d7e(0x332)],this[_0x5b3d7e(0x378)]=(_0x2b6f9a=_0x3bed4f[_0x5b3d7e(0x19a)])!=null?_0x2b6f9a:this[_0x5b3d7e(0x378)],this['_backgroundColor']=(_0xc70a0a=_0x3bed4f[_0x5b3d7e(0x82)])!=null?_0xc70a0a:this['_backgroundColor'],this[_0x5b3d7e(0x395)]({'width':_0x3bed4f[_0x5b3d7e(0x13f)],'height':_0x3bed4f['height']});}['onMouseMove'](_0x350b75){const _0x289a57=_0x3022d6,{row:_0xc391cf,column:_0x391383}=_0x350b75;if(_0xc391cf>=this[_0x289a57(0x133)][_0x289a57(0x177)]&&_0xc391cf<=this[_0x289a57(0x133)][_0x289a57(0x16d)]&&_0x391383>=this[_0x289a57(0x133)][_0x289a57(0x36d)]&&_0x391383<=this[_0x289a57(0x133)]['endColumn']){this[_0x289a57(0x30e)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1f4f29){return!0x1;}['_draw'](_0x59718e){const _0xb96a33=_0x3022d6;b[_0xb96a33(0x2bf)][_0xb96a33(0x128)](_0x59718e,{'width':this[_0xb96a33(0x13f)],'height':this['height'],'strokeWidth':Xs,'stroke':this[_0xb96a33(0x2d8)],'evented':!0x1,'fill':this[_0xb96a33(0x208)]}),this[_0xb96a33(0x230)]&&(_0x59718e[_0xb96a33(0x28d)](),_0x59718e[_0xb96a33(0x456)](0x1,0x0,0x0,0x1,this[_0xb96a33(0x13f)],this[_0xb96a33(0x378)]===_0xb96a33(0x251)?0x0:-le),Ce[_0xb96a33(0x128)](_0x59718e,{'text':this[_0xb96a33(0x332)],'color':this[_0xb96a33(0x2d8)]}),_0x59718e['restore']());}}var qs=Object['defineProperty'],zs=Object[_0x3022d6(0x2b4)],Js=(_0x3aa13d,_0x45407d,_0x233dab,_0x2918de)=>{const _0x5b9390=_0x3022d6;for(var _0x17d4d9=_0x2918de>0x1?void 0x0:_0x2918de?zs(_0x45407d,_0x233dab):_0x45407d,_0x561783=_0x3aa13d[_0x5b9390(0x2ce)]-0x1,_0xc7b38e;_0x561783>=0x0;_0x561783--)(_0xc7b38e=_0x3aa13d[_0x561783])&&(_0x17d4d9=(_0x2918de?_0xc7b38e(_0x45407d,_0x233dab,_0x17d4d9):_0xc7b38e(_0x17d4d9))||_0x17d4d9);return _0x2918de&&_0x17d4d9&&qs(_0x45407d,_0x233dab,_0x17d4d9),_0x17d4d9;},De=(_0xc3d184,_0x2a4a22)=>(_0x9f6b3f,_0x1c875c)=>_0x2a4a22(_0x9f6b3f,_0x1c875c,_0xc3d184);const Zs=0x1389;let je=class extends o[_0x3022d6(0x460)]{constructor(_0x4d393c,_0x5f3317,_0x23de27,_0x5292de){const _0x3d5dea=_0x3022d6;super(),u(this,'_cursors',new Set()),u(this,'_lastPointer',null),(this[_0x3d5dea(0x100)]=_0x4d393c,this[_0x3d5dea(0x213)]=_0x5f3317,this[_0x3d5dea(0x15e)]=_0x23de27,this[_0x3d5dea(0x2f0)]=_0x5292de,this[_0x3d5dea(0x11b)]());}['_init'](){const _0x243d82=_0x3022d6;this[_0x243d82(0x213)][_0x243d82(0x44b)][_0x243d82(0x23e)](E[_0x243d82(0xc7)](this[_0x243d82(0x374)]),E['switchMap'](_0x4c804c=>{const _0x2932e6=_0x243d82;if(_0x4c804c){const _0x5bbbf5=_0x4c804c[_0x2932e6(0x41b)];return v[_0x2932e6(0x282)](this['_collabCursorController'][_0x2932e6(0x276)](this[_0x2932e6(0x100)][_0x2932e6(0x347)]),this[_0x2932e6(0x2f0)]['currentTheme$'])[_0x2932e6(0x23e)](E[_0x2932e6(0x317)](([_0x2b169e,_0x3e8f44])=>{const _0x26d10a=new Map();return _0x2b169e['forEach']((_0x220325,_0x2b8d0d)=>{const _0xfbb881=_0xbc10;if(_0x220325[_0xfbb881(0x43c)]===_0x5bbbf5){const _0x51299e={..._0x220325};_0x51299e[_0xfbb881(0x3d4)]=_0x3e8f44[_0x220325[_0xfbb881(0x3d4)]],_0x26d10a['set'](_0x2b8d0d,_0x51299e);}}),{'skeleton':_0x4c804c,'cursors':_0x26d10a};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x243d82(0x265)](({skeleton:_0x8f0d24,cursors:_0x4963ef})=>{const _0x4816c2=_0x243d82;this[_0x4816c2(0x80)](),_0x8f0d24&&this['_updateCollabCursors'](_0x8f0d24,_0x4963ef);}),this[_0x243d82(0x213)]['currentSkeleton$'][_0x243d82(0x265)](_0x3b1b34=>{const _0x5d54e4=_0x243d82;if(_0x3b1b34==null)return;const {skeleton:_0x29399d}=_0x3b1b34,{scene:_0x5e2c8e}=this['_context'];_0x5e2c8e[_0x5d54e4(0x2d0)][_0x5d54e4(0x2c4)](xe(_0x399af6=>{const _0x110758=_0x5d54e4;var _0x15cc97,_0x4a5003;const {offsetX:_0xadeba4,offsetY:_0x10ee73}=_0x399af6,{x:_0x420f2a,y:_0x2d5269}=_0x5e2c8e['getRelativeToViewportCoord'](b[_0x110758(0x3fe)][_0x110758(0x1a7)]([_0xadeba4,_0x10ee73])),{scaleX:_0x586e02,scaleY:_0x3654f8}=_0x5e2c8e[_0x110758(0x244)](),_0xeaaa39=_0x5e2c8e['getViewport'](J[_0x110758(0x96)][_0x110758(0x209)]),_0x50eae8=_0x5e2c8e[_0x110758(0x35f)](b['Vector2']['FromArray']([_0x420f2a,_0x2d5269]),_0xeaaa39),_0x424466=_0x29399d['getCellPositionByOffset'](_0xadeba4,_0x10ee73,_0x586e02,_0x3654f8,_0x50eae8);((_0x15cc97=this[_0x110758(0x457)])==null?void 0x0:_0x15cc97['column'])===_0x424466[_0x110758(0x2ac)]&&((_0x4a5003=this[_0x110758(0x457)])==null?void 0x0:_0x4a5003[_0x110758(0x113)])===_0x424466[_0x110758(0x113)]||this[_0x110758(0x289)]['forEach'](_0xf813ff=>{const _0x4d6abb=_0x110758;_0xf813ff[_0x4d6abb(0x2f8)](_0x424466);});},0x64));});}['_updateCollabCursors'](_0x162432,_0x36b87b){const _0x271614=_0x3022d6;var _0x1c0a19;const _0x30aad7=(_0x1c0a19=this[_0x271614(0x213)][_0x271614(0xe7)]())==null?void 0x0:_0x1c0a19[_0x271614(0x98)];if(!_0x30aad7)return;const _0x3d4697=this[_0x271614(0x7f)]();if(!_0x3d4697)return;this[_0x271614(0x289)]['forEach'](_0x13bcf8=>{const _0x3f8f82=_0x271614;_0x13bcf8[_0x3f8f82(0x39b)]();});const {scene:_0x21e4f2}=_0x3d4697,_0x11d76f=Qs(Array[_0x271614(0x39f)](_0x36b87b[_0x271614(0x115)]()))[_0x271614(0x317)](_0x33908d=>{const _0x3f133e=_0x271614,{color:_0x4df8a8,range:_0x26408b,name:_0x1e0130,selection:_0x4fac3e,sheetID:_0x3a0b2f}=_0x33908d,{startColumn:_0x4f0145,startRow:_0x58a29f,endColumn:_0x3a0272,endRow:_0x22cf9e}=_0x26408b,_0x16d1e5=J['getCoordByCell'](_0x58a29f,_0x4f0145,_0x21e4f2,_0x30aad7),_0x14414f=J[_0x3f133e(0x416)](_0x22cf9e,_0x3a0272,_0x21e4f2,_0x30aad7),{columnHeaderHeightAndMarginTop:_0x34ac34}=_0x30aad7,{startX:_0x18058c,startY:_0x3faf28}=_0x16d1e5,{endX:_0x3d40df,endY:_0x358303}=_0x14414f,_0x54d9f5=_0x3d40df-_0x18058c,_0x23816e=_0x358303-_0x3faf28,_0x38e694={'labelPosition':_0x3faf28-_0x34ac34>=le?'top':_0x3f133e(0x251),'sheetID':_0x3a0b2f,'range':_0x26408b,'color':_0x4df8a8,'name':_0x1e0130,'selection':_0x4fac3e,'left':_0x18058c,'top':_0x3faf28,'width':_0x54d9f5,'height':_0x23816e,'evented':!0x1,'zIndex':Zs};return new Rt(_0x1e0130,_0x38e694);});_0x21e4f2[_0x271614(0x1d5)](_0x11d76f,Ks),this[_0x271614(0x289)]=new Set(_0x11d76f);}[_0x3022d6(0x80)](){const _0x451085=_0x3022d6;var _0x2f00ee;(_0x2f00ee=this['_cursors'])==null||_0x2f00ee[_0x451085(0x3d3)](_0x2f9d3c=>_0x2f9d3c[_0x451085(0x147)]());}[_0x3022d6(0x7f)](){const _0x329599=_0x3022d6;return J[_0x329599(0x281)](this[_0x329599(0x100)][_0x329599(0x25f)],this[_0x329599(0x100)]);}};je=Js([De(0x1,o[_0x3022d6(0x291)](J[_0x3022d6(0x399)])),De(0x2,o[_0x3022d6(0x291)](Z)),De(0x3,o[_0x3022d6(0x291)](o['ThemeService']))],je);function Qs(_0xb74c3d){const _0x138547=_0x3022d6,_0x3f69df=new Map();return _0xb74c3d[_0x138547(0x3d3)](_0x16f129=>{const _0x3327b4=_0x138547;if(_0x3f69df['has'](_0x16f129[_0x3327b4(0x3a7)])){const _0x286a2d=_0x3f69df[_0x3327b4(0x84)](_0x16f129['selection']);_0x286a2d[_0x3327b4(0x1fa)]+=',\x20'+_0x16f129['name'];}else _0x3f69df[_0x3327b4(0x182)](_0x16f129[_0x3327b4(0x3a7)],_0x16f129);}),Array[_0x138547(0x39f)](_0x3f69df[_0x138547(0x115)]());}var N=function(){const _0x2ac466=_0x3022d6;return N=Object[_0x2ac466(0x9c)]||function(_0x34108f){const _0x5f37a0=_0x2ac466;for(var _0x4ea710,_0x5c63b9=0x1,_0x1292cc=arguments[_0x5f37a0(0x2ce)];_0x5c63b9<_0x1292cc;_0x5c63b9++){_0x4ea710=arguments[_0x5c63b9];for(var _0x1eb999 in _0x4ea710)Object[_0x5f37a0(0x37c)][_0x5f37a0(0x353)]['call'](_0x4ea710,_0x1eb999)&&(_0x34108f[_0x1eb999]=_0x4ea710[_0x1eb999]);}return _0x34108f;},N[_0x2ac466(0xd6)](this,arguments);},ei=function(_0x39f4b8,_0x20d63e){const _0x3175e1=_0x3022d6;var _0x2908b5={};for(var _0x29e71f in _0x39f4b8)Object[_0x3175e1(0x37c)][_0x3175e1(0x353)][_0x3175e1(0x422)](_0x39f4b8,_0x29e71f)&&_0x20d63e[_0x3175e1(0x25e)](_0x29e71f)<0x0&&(_0x2908b5[_0x29e71f]=_0x39f4b8[_0x29e71f]);if(_0x39f4b8!=null&&typeof Object[_0x3175e1(0x2a9)]=='function'){for(var _0x4f6db4=0x0,_0x29e71f=Object[_0x3175e1(0x2a9)](_0x39f4b8);_0x4f6db4<_0x29e71f[_0x3175e1(0x2ce)];_0x4f6db4++)_0x20d63e['indexOf'](_0x29e71f[_0x4f6db4])<0x0&&Object[_0x3175e1(0x37c)][_0x3175e1(0x35c)][_0x3175e1(0x422)](_0x39f4b8,_0x29e71f[_0x4f6db4])&&(_0x2908b5[_0x29e71f[_0x4f6db4]]=_0x39f4b8[_0x29e71f[_0x4f6db4]]);}return _0x2908b5;},Ge=y['forwardRef'](function(_0xe8c99c,_0x5ec6b1){const _0x510bdf=_0x3022d6;var _0x14b232=_0xe8c99c[_0x510bdf(0x263)],_0x2aca30=_0xe8c99c['id'],_0x40d21b=_0xe8c99c[_0x510bdf(0xe2)],_0x2c69da=_0xe8c99c[_0x510bdf(0x253)],_0x4ccd10=ei(_0xe8c99c,[_0x510bdf(0x263),'id',_0x510bdf(0xe2),_0x510bdf(0x253)]),_0x2da550='univerjs-icon\x20univerjs-icon-'[_0x510bdf(0x419)](_0x2aca30,'\x20')['concat'](_0x40d21b||'')[_0x510bdf(0x2f7)](),_0x3ddee3=y[_0x510bdf(0x425)]('_'[_0x510bdf(0x419)](ii()));return Ot(_0x14b232,''[_0x510bdf(0x419)](_0x2aca30),{'defIds':_0x14b232[_0x510bdf(0x379)],'idSuffix':_0x3ddee3['current']},N({'ref':_0x5ec6b1,'className':_0x2da550},_0x4ccd10),_0x2c69da);});function Ot(_0x5b6e71,_0x467606,_0x1e566c,_0x3644dd,_0x14fa7b){const _0x5227cc=_0x3022d6;return y[_0x5227cc(0x7d)](_0x5b6e71['tag'],N(N({'key':_0x467606},ti(_0x5b6e71,_0x1e566c,_0x14fa7b)),_0x3644dd),(si(_0x5b6e71,_0x1e566c)['children']||[])[_0x5227cc(0x317)](function(_0x24fce0,_0xe7e765){const _0x44dcfe=_0x5227cc;return Ot(_0x24fce0,''[_0x44dcfe(0x419)](_0x467606,'-')['concat'](_0x5b6e71['tag'],'-')['concat'](_0xe7e765),_0x1e566c,void 0x0,_0x14fa7b);}));}function ti(_0x5053d1,_0x3f3cec,_0x347d70){const _0x1f2b68=_0x3022d6;var _0x166cea=N({},_0x5053d1[_0x1f2b68(0x220)]);_0x347d70!=null&&_0x347d70['colorChannel1']&&_0x166cea[_0x1f2b68(0x43f)]===_0x1f2b68(0x30f)&&(_0x166cea[_0x1f2b68(0x43f)]=_0x347d70[_0x1f2b68(0x30f)]);var _0x13295e=_0x3f3cec[_0x1f2b68(0x379)];return!_0x13295e||_0x13295e[_0x1f2b68(0x2ce)]===0x0||(_0x5053d1[_0x1f2b68(0x2b6)]===_0x1f2b68(0x1b7)&&_0x166cea['xlink:href']&&(_0x166cea[_0x1f2b68(0x2d2)]=_0x166cea['xlink:href']+_0x3f3cec[_0x1f2b68(0x361)]),Object[_0x1f2b68(0x8e)](_0x166cea)[_0x1f2b68(0x3d3)](function(_0x2f18e6){const _0x34e318=_0x1f2b68;var _0x4a62de=_0x2f18e6[0x0],_0x2a1e82=_0x2f18e6[0x1];typeof _0x2a1e82=='string'&&(_0x166cea[_0x4a62de]=_0x2a1e82['replace'](/url\(#(.*)\)/,_0x34e318(0x3ee)[_0x34e318(0x419)](_0x3f3cec[_0x34e318(0x361)],')')));})),_0x166cea;}function si(_0x2bf097,_0x4435bb){const _0x33e519=_0x3022d6;var _0x197652,_0xa9b418=_0x4435bb['defIds'];return!_0xa9b418||_0xa9b418['length']===0x0?_0x2bf097:_0x2bf097[_0x33e519(0x2b6)]==='defs'&&(!((_0x197652=_0x2bf097['children'])===null||_0x197652===void 0x0)&&_0x197652[_0x33e519(0x2ce)])?N(N({},_0x2bf097),{'children':_0x2bf097[_0x33e519(0x436)][_0x33e519(0x317)](function(_0xdb6428){const _0x26eadc=_0x33e519;return typeof _0xdb6428[_0x26eadc(0x220)]['id']==_0x26eadc(0x383)&&_0xa9b418&&_0xa9b418[_0x26eadc(0x25e)](_0xdb6428[_0x26eadc(0x220)]['id'])>-0x1?N(N({},_0xdb6428),{'attrs':N(N({},_0xdb6428['attrs']),{'id':_0xdb6428['attrs']['id']+_0x4435bb[_0x26eadc(0x361)]})}):_0xdb6428;})}):_0x2bf097;}function ii(){const _0x119000=_0x3022d6;return Math[_0x119000(0x3d8)]()['toString'](0x24)[_0x119000(0x2db)](0x2,0x8);}Ge['displayName']=_0x3022d6(0x403);var ni={'tag':_0x3022d6(0x2cc),'attrs':{'fill':_0x3022d6(0x45e),'viewBox':_0x3022d6(0x3c8),'width':_0x3022d6(0x132),'height':_0x3022d6(0x132)},'children':[{'tag':'g','attrs':{'clipPath':_0x3022d6(0x199)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3022d6(0x9d),'strokeLinecap':_0x3022d6(0x401),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3022d6(0x1dc),'attrs':{'id':_0x3022d6(0x3d7)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'fill':_0x3022d6(0x17d),'d':_0x3022d6(0x1ee)}}]}]}],'defIds':[_0x3022d6(0x3d7)]},Dt=y[_0x3022d6(0x257)](function(_0x26c89e,_0x5c026c){const _0x213ded=_0x3022d6;return y[_0x213ded(0x7d)](Ge,Object[_0x213ded(0x9c)]({},_0x26c89e,{'id':_0x213ded(0x40e),'ref':_0x5c026c,'icon':ni}));});Dt[_0x3022d6(0x1f9)]='OffLineSingle';var ri={'tag':_0x3022d6(0x2cc),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x3022d6(0x132)},'children':[{'tag':'g','attrs':{'clipPath':_0x3022d6(0x27a)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'stroke':_0x3022d6(0xc4),'d':_0x3022d6(0x302),'strokeLinecap':_0x3022d6(0x401),'strokeLinejoin':_0x3022d6(0x401),'strokeWidth':1.2}}]},{'tag':_0x3022d6(0x421),'attrs':{},'children':[{'tag':_0x3022d6(0x1dc),'attrs':{'id':_0x3022d6(0x43a)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'fill':_0x3022d6(0x17d),'d':_0x3022d6(0x1ee),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Pt=y['forwardRef'](function(_0x5780af,_0x57c8c9){const _0x339c2a=_0x3022d6;return y[_0x339c2a(0x7d)](Ge,Object[_0x339c2a(0x9c)]({},_0x5780af,{'id':_0x339c2a(0x411),'ref':_0x57c8c9,'icon':ri}));});Pt[_0x3022d6(0x1f9)]=_0x3022d6(0x1cb);const oi=_0x3022d6(0x18b),ai=_0x3022d6(0x324),ci='univer-online-status',li=_0x3022d6(0x33c),hi=_0x3022d6(0x24d),ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x119ebd){const _0x1a70c7=_0x3022d6;switch(_0x119ebd){case D[_0x1a70c7(0x316)]:return _0x1a70c7(0x135);case D['CONFLICT']:return _0x1a70c7(0x1a1);case D['FETCH_MISS']:return _0x1a70c7(0xb3);case D[_0x1a70c7(0x463)]:return _0x1a70c7(0x1cd);case D[_0x1a70c7(0x270)]:case D[_0x1a70c7(0x1d0)]:case D[_0x1a70c7(0x319)]:return _0x1a70c7(0x12c);case D[_0x1a70c7(0xf8)]:return _0x1a70c7(0x1cc);}}function Ut(_0x524d32){const _0x400e06=_0x3022d6,{status$:_0x2a8259}=_0x524d32,_0x3295ce=L[_0x400e06(0x23b)](_0x2a8259,D[_0x400e06(0x463)]),_0x45f144=o['useDependency'](o[_0x400e06(0x43e)]),_0x5ca871=_0x3295ce!==D[_0x400e06(0x316)],_0x2dcca8=_0x45f144['t'](_i(_0x3295ce)),_0x1d51bb=kt(ne['onlineStatus'],{[ne['online']]:_0x5ca871,[ne['offline']]:!_0x5ca871}),_0x38df82=_0x5ca871?y[_0x400e06(0x7d)](Pt,null):y['createElement'](Dt,null);return y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':_0x1d51bb},y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':ne[_0x400e06(0x256)]},_0x38df82),y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':ne[_0x400e06(0x39d)]},_0x2dcca8));}var ui=Object[_0x3022d6(0x131)],di=Object['getOwnPropertyDescriptor'],Si=(_0x41599d,_0x5300c3,_0x2085ed,_0xfb07db)=>{const _0x2f9fc4=_0x3022d6;for(var _0x201f73=_0xfb07db>0x1?void 0x0:_0xfb07db?di(_0x5300c3,_0x2085ed):_0x5300c3,_0x22e295=_0x41599d[_0x2f9fc4(0x2ce)]-0x1,_0x17b5d8;_0x22e295>=0x0;_0x22e295--)(_0x17b5d8=_0x41599d[_0x22e295])&&(_0x201f73=(_0xfb07db?_0x17b5d8(_0x5300c3,_0x2085ed,_0x201f73):_0x17b5d8(_0x201f73))||_0x201f73);return _0xfb07db&&_0x201f73&&ui(_0x5300c3,_0x2085ed,_0x201f73),_0x201f73;},he=(_0x15d59f,_0x118a34)=>(_0xa6152a,_0x2d004b)=>_0x118a34(_0xa6152a,_0x2d004b,_0x15d59f);exports[_0x3022d6(0x269)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x3a016d,_0xc7d70c,_0x2c4e79,_0x22ef6b){const _0x4073a1=_0x3022d6;super(),u(this,_0x4073a1(0x30d),new v[(_0x4073a1(0x141))](D[_0x4073a1(0x463)])),(this[_0x4073a1(0x17c)]=_0x3a016d,this['_uiPartsService']=_0xc7d70c,this[_0x4073a1(0x123)]=_0x2c4e79,this[_0x4073a1(0x184)]=_0x22ef6b,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3022d6(0x13a)](){const _0x261b2b=_0x3022d6;this[_0x261b2b(0x14a)](this[_0x261b2b(0x326)][_0x261b2b(0x9a)](L[_0x261b2b(0x1ca)][_0x261b2b(0xd1)],()=>o[_0x261b2b(0x45a)](vi({'status$':this['_status$'][_0x261b2b(0x295)]()}),this[_0x261b2b(0x123)])));}[_0x3022d6(0x279)](){const _0x53a634=_0x3022d6;this[_0x53a634(0x14a)](o[_0x53a634(0x24c)](this[_0x53a634(0x17c)][_0x53a634(0x203)][_0x53a634(0x23e)](v[_0x53a634(0x266)](()=>{const _0x385874=_0x53a634,_0x47889b=this[_0x385874(0x17c)][_0x385874(0x45c)]();return _0x47889b?this['_collaborationController'][_0x385874(0x293)](_0x47889b[_0x385874(0x29c)]()):v['of'](null);}),v[_0x53a634(0x266)](_0x20cdcb=>_0x20cdcb?_0x20cdcb['status$']:v['of'](D['NOT_COLLAB'])))[_0x53a634(0x265)](_0x213a81=>{const _0x1bd95f=_0x53a634;this[_0x1bd95f(0x30d)][_0x1bd95f(0x116)](_0x213a81);})));}},exports['DesktopCollaborationStatusDisplayController']=Si([o[_0x3022d6(0x3ef)](o[_0x3022d6(0x32a)]['Starting'],exports[_0x3022d6(0x269)]),he(0x0,o[_0x3022d6(0xb8)]),he(0x1,L[_0x3022d6(0x124)]),he(0x2,o['Inject'](o[_0x3022d6(0x448)])),he(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x431)]))],exports[_0x3022d6(0x269)]);function vi(_0x5d73a5){const {status$:_0x1cc3f6}=_0x5d73a5;return function(){const _0xaa8b48=_0xbc10;return y[_0xaa8b48(0x7d)](Ut,{'status$':_0x1cc3f6});};}const Ye=o[_0x3022d6(0x2f4)](_0x3022d6(0x20f));var mi=Object[_0x3022d6(0x131)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x447b3c,_0x10bd04,_0x220bc4,_0x462cee)=>{for(var _0x4c3fa5=_0x462cee>0x1?void 0x0:_0x462cee?gi(_0x10bd04,_0x220bc4):_0x10bd04,_0x2cb0ae=_0x447b3c['length']-0x1,_0x2dd1f8;_0x2cb0ae>=0x0;_0x2cb0ae--)(_0x2dd1f8=_0x447b3c[_0x2cb0ae])&&(_0x4c3fa5=(_0x462cee?_0x2dd1f8(_0x10bd04,_0x220bc4,_0x4c3fa5):_0x2dd1f8(_0x4c3fa5))||_0x4c3fa5);return _0x462cee&&_0x4c3fa5&&mi(_0x10bd04,_0x220bc4,_0x4c3fa5),_0x4c3fa5;},z=(_0x46a470,_0x3b6322)=>(_0x24c1ca,_0x26e90d)=>_0x3b6322(_0x24c1ca,_0x26e90d,_0x46a470);exports[_0x3022d6(0x336)]=class extends o[_0x3022d6(0x460)]{constructor(_0x10f1b6,_0x4a50cf,_0x200a58,_0x285826,_0x322326,_0x4dabf7){const _0xe46bbc=_0x3022d6;super(),this[_0xe46bbc(0x414)]=_0x10f1b6,this['_logService']=_0x4a50cf,this[_0xe46bbc(0x467)]=_0x200a58,this[_0xe46bbc(0x3ea)]=_0x285826,this[_0xe46bbc(0x2d9)]=_0x322326,_0x4dabf7?_0x4dabf7==null||_0x4dabf7[_0xe46bbc(0x35b)]()[_0xe46bbc(0x156)](()=>this[_0xe46bbc(0x11b)]()):(this[_0xe46bbc(0x38b)][_0xe46bbc(0xf9)](_0xe46bbc(0x198),_0xe46bbc(0x17f)),this['_init']());}async['_init'](){const _0x1eae74=_0x3022d6,_0x72392=this[_0x1eae74(0x414)][_0x1eae74(0xd8)](_0x1eae74(0x25f)),_0x463797=this['_urlService']['getParam'](_0x1eae74(0x1f3));if(!_0x72392||!_0x463797){this[_0x1eae74(0x38b)]['debug'](_0x1eae74(0x198),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x463797)){case j[_0x1eae74(0x2c0)]:{const _0x55eab1=await this[_0x1eae74(0x1e1)](_0x72392);this[_0x1eae74(0x391)](_0x55eab1);break;}case j['UNIVER_DOC']:{await this[_0x1eae74(0x11d)](_0x72392);break;}default:{this[_0x1eae74(0x38b)][_0x1eae74(0x404)]('[DataLoaderController]',_0x1eae74(0x2dd));break;}}}async[_0x3022d6(0x391)](_0x27dfc1){const _0x113115=_0x3022d6;await this[_0x113115(0x224)](_0x27dfc1),_0x27dfc1[_0x113115(0x409)][_0x113115(0x23e)](v['takeUntil'](this[_0x113115(0x374)]))[_0x113115(0x265)](_0x1a3879=>{const _0x5c0690=_0x113115;_0x1a3879&&this[_0x5c0690(0x11a)](_0x1a3879);}),this[_0x113115(0x414)][_0x113115(0xf0)][_0x113115(0x23e)](v[_0x113115(0xc7)](this[_0x113115(0x374)]))[_0x113115(0x265)](()=>this[_0x113115(0x224)](_0x27dfc1));}[_0x3022d6(0x11a)](_0x345ca6,_0x16e0d8=!0x1){const _0x1d08dd=_0x3022d6,_0x2ff214=this[_0x1d08dd(0x414)]['getParam'](_0x1d08dd(0x44d));_0x345ca6[_0x1d08dd(0x3a8)]()!==_0x2ff214&&this[_0x1d08dd(0x414)][_0x1d08dd(0xad)](_0x1d08dd(0x44d),_0x345ca6[_0x1d08dd(0x3a8)](),_0x16e0d8);}async[_0x3022d6(0x224)](_0x40133d){const _0x5584aa=_0x3022d6;var _0x37948b;const _0x5cb5a0=this[_0x5584aa(0x414)][_0x5584aa(0xd8)]('subunit');if(!_0x5cb5a0||!_0x40133d[_0x5584aa(0xb4)](_0x5cb5a0)){const _0x318f11=_0x40133d[_0x5584aa(0x1d8)]()[0x0],_0x4331f2=_0x40133d[_0x5584aa(0xb4)](_0x318f11);if(!_0x4331f2)return;this['_updateURLWithCurrentState'](_0x4331f2,!0x0),await this[_0x5584aa(0x467)][_0x5584aa(0x2a3)](p[_0x5584aa(0x1c7)]['id'],{'unitId':_0x40133d[_0x5584aa(0x29c)](),'subUnitId':_0x318f11});return;}((_0x37948b=_0x40133d[_0x5584aa(0x34b)]())==null?void 0x0:_0x37948b[_0x5584aa(0x3a8)]())!==_0x5cb5a0&&await this[_0x5584aa(0x467)][_0x5584aa(0x2a3)](p['SetWorksheetActivateCommand']['id'],{'unitId':_0x40133d[_0x5584aa(0x29c)](),'subUnitId':_0x5cb5a0});}async['_loadSheet'](_0x2dd0af){const _0x249a55=_0x3022d6;let _0x171d02=0x0;const _0xfb1343=await this['_localCacheService'][_0x249a55(0x3b8)](_0x2dd0af);return _0xfb1343&&(_0xfb1343[_0x249a55(0xca)]||_0xfb1343['mutations'][_0x249a55(0x2ce)]!==0x0)&&(_0x171d02=_0xfb1343[_0x249a55(0x342)]),_0x171d02===0x0&&this['_logService']['debug'](_0x249a55(0x198),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x249a55(0x3bc)](_0x2dd0af,_0x171d02);}async[_0x3022d6(0x11d)](_0x36aaef){const _0x16302f=_0x3022d6;let _0x47db5e=0x0;const _0xfea10f=await this['_localCacheService'][_0x16302f(0x3b8)](_0x36aaef);return _0xfea10f&&(_0xfea10f[_0x16302f(0xca)]||_0xfea10f['mutations'][_0x16302f(0x2ce)]!==0x0)&&(_0x47db5e=_0xfea10f['rev']),_0x47db5e===0x0&&this[_0x16302f(0x38b)][_0x16302f(0xf9)](_0x16302f(0x198),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x16302f(0x2d9)][_0x16302f(0x255)](_0x36aaef,_0x47db5e);}},exports['DataLoaderController']=fi([o['OnLifecycle'](o[_0x3022d6(0x32a)][_0x3022d6(0xd4)],exports[_0x3022d6(0x336)]),z(0x0,Ye),z(0x1,o[_0x3022d6(0x22f)]),z(0x2,o['ICommandService']),z(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),z(0x4,o[_0x3022d6(0x291)](_[_0x3022d6(0x393)])),z(0x5,o['Optional'](Bt[_0x3022d6(0x390)]))],exports[_0x3022d6(0x336)]);var Ii=Object[_0x3022d6(0x131)],pi=Object[_0x3022d6(0x2b4)],Ei=(_0x2ab917,_0x820c24,_0x3820c3,_0x284d94)=>{const _0x436596=_0x3022d6;for(var _0x24e433=_0x284d94>0x1?void 0x0:_0x284d94?pi(_0x820c24,_0x3820c3):_0x820c24,_0xea3f42=_0x2ab917[_0x436596(0x2ce)]-0x1,_0x3b7e49;_0xea3f42>=0x0;_0xea3f42--)(_0x3b7e49=_0x2ab917[_0xea3f42])&&(_0x24e433=(_0x284d94?_0x3b7e49(_0x820c24,_0x3820c3,_0x24e433):_0x3b7e49(_0x24e433))||_0x24e433);return _0x284d94&&_0x24e433&&Ii(_0x820c24,_0x3820c3,_0x24e433),_0x24e433;},nt=(_0xf9a780,_0xd54f6e)=>(_0xcba332,_0x46995e)=>_0xd54f6e(_0xcba332,_0x46995e,_0xf9a780);const Ci=_0x3022d6(0x1ff),bi=_0x3022d6(0x17a);let ue=class extends o['Disposable']{constructor(_0x418202,_0x4a82b0){const _0x37c89f=_0x3022d6;super(),this['_univerInstanceService']=_0x418202,this[_0x37c89f(0xee)]=_0x4a82b0,this[_0x37c89f(0x11b)]();}[_0x3022d6(0x11b)](){const _0x1d83f5=_0x3022d6;this[_0x1d83f5(0x14a)](o[_0x1d83f5(0x24c)](this[_0x1d83f5(0x17c)][_0x1d83f5(0x203)][_0x1d83f5(0x265)](()=>{const _0x1cf256=_0x1d83f5;var _0x42e6c7;const _0x5fa7e8=this[_0x1cf256(0x17c)]['getFocusedUnit']();let _0x186205=(_0x42e6c7=this[_0x1cf256(0xee)][_0x1cf256(0x1bd)](Ci))!=null?_0x42e6c7:bi;_0x5fa7e8 instanceof o[_0x1cf256(0x2a6)]&&(_0x186205=_0x5fa7e8[_0x1cf256(0x1fa)]),document[_0x1cf256(0x434)]=_0x186205;})));}};ue=Ei([o['OnLifecycle'](o['LifecycleStages'][_0x3022d6(0x32d)],ue),nt(0x0,o[_0x3022d6(0xb8)]),nt(0x1,o['IConfigService'])],ue);var Ti=Object['defineProperty'],Ri=Object[_0x3022d6(0x2b4)],Oi=(_0x373aa7,_0x34845b,_0x3c769c,_0x47cb0f)=>{for(var _0x1dfae2=_0x47cb0f>0x1?void 0x0:_0x47cb0f?Ri(_0x34845b,_0x3c769c):_0x34845b,_0x26dbf5=_0x373aa7['length']-0x1,_0x516862;_0x26dbf5>=0x0;_0x26dbf5--)(_0x516862=_0x373aa7[_0x26dbf5])&&(_0x1dfae2=(_0x47cb0f?_0x516862(_0x34845b,_0x3c769c,_0x1dfae2):_0x516862(_0x1dfae2))||_0x1dfae2);return _0x47cb0f&&_0x1dfae2&&Ti(_0x34845b,_0x3c769c,_0x1dfae2),_0x1dfae2;},rt=(_0x211d48,_0x233aea)=>(_0x4480e2,_0x4b4b91)=>_0x233aea(_0x4480e2,_0x4b4b91,_0x211d48);exports['SnapshotServerOverHTTPService']=class{constructor(_0x512580,_0x3da7f5){const _0x4fa6e8=_0x3022d6;this[_0x4fa6e8(0xee)]=_0x512580,this[_0x4fa6e8(0x10f)]=_0x3da7f5;}async[_0x3022d6(0x136)](_0x3a36a7,_0x5c15d3){const _0x40478e=_0x3022d6;var _0x2b8d79;const {unitID:_0x17db55,type:_0x23d5ea,revision:_0x5c5d8e=0x0}=_0x5c15d3,_0x178704=this['_getSnapshotAPIPrefix']()+'/'+_0x23d5ea+_0x40478e(0x3b5)+_0x17db55+_0x40478e(0x111)+_0x5c5d8e,_0x5292b7=(await this['_httpService'][_0x40478e(0x84)](_0x178704))[_0x40478e(0x1ad)],_0x44f102=(_0x2b8d79=_0x5292b7[_0x40478e(0x246)])==null?void 0x0:_0x2b8d79[_0x40478e(0x1c3)];if(_0x44f102){const _0x197afa=_0x44f102==null?void 0x0:_0x44f102[_0x40478e(0x2f2)],_0x3b9c5f=o['textEncoder']['encode'](o['b64DecodeUnicode'](_0x197afa));_0x44f102['originalMeta']=_0x3b9c5f,Object[_0x40478e(0x8e)](_0x44f102['sheets'])[_0x40478e(0x3d3)](([,_0x39a3e4])=>{const _0x2c8882=_0x40478e,_0x341d20=_0x39a3e4[_0x2c8882(0x2f2)],_0x4b3cd6=o['textEncoder'][_0x2c8882(0x385)](o[_0x2c8882(0xc9)](_0x341d20));_0x39a3e4['originalMeta']=_0x4b3cd6;});}return _0x5292b7;}async[_0x3022d6(0x190)](_0x44033a,_0x567241){const _0x361c52=_0x3022d6,{unitID:_0x4a5014,type:_0x25b0e0,blockID:_0x5d635d}=_0x567241,_0x359efe=this[_0x361c52(0x444)]()+'/'+_0x25b0e0+_0x361c52(0x3b5)+_0x4a5014+'/block/'+_0x5d635d;return(await this[_0x361c52(0x10f)]['get'](_0x359efe))['body'];}async[_0x3022d6(0x3fd)](_0x47e961,_0x411cb5){const _0x342ce3=_0x3022d6,{unitID:_0x50b5d5,type:_0x4fae31,from:_0x13b406,to:_0x3f39a8}=_0x411cb5,_0x29c2be=this['_getAPIPrefix']()+'/'+_0x4fae31+_0x342ce3(0x3b5)+_0x50b5d5+'/fetchmissing?from='+_0x13b406+_0x342ce3(0x348)+_0x3f39a8;return(await this[_0x342ce3(0x10f)]['get'](_0x29c2be))[_0x342ce3(0x1ad)];}[_0x3022d6(0x433)](){const _0x1fcee5=_0x3022d6;var _0x520190;return(_0x520190=this[_0x1fcee5(0xee)][_0x1fcee5(0x1bd)](lt))!=null?_0x520190:this[_0x1fcee5(0x444)]();}[_0x3022d6(0x444)](){const _0x148968=_0x3022d6;var _0x4c186a;return(_0x4c186a=this[_0x148968(0xee)][_0x148968(0x1bd)](ct))!=null?_0x4c186a:Vt;}async[_0x3022d6(0x9b)](_0x343b89,_0xffa787){const _0x20b68c=_0x3022d6,_0xb85e18=_0x20b68c(0x21c)+_0xffa787[_0x20b68c(0x1f3)]+_0x20b68c(0x3b5)+_0xffa787['unitID']+_0x20b68c(0x1c8);return(await this[_0x20b68c(0x10f)][_0x20b68c(0x84)](_0xb85e18,{'params':{'resourceId':JSON[_0x20b68c(0x258)](_0xffa787[_0x20b68c(0x3f3)])}}))[_0x20b68c(0x1ad)];}[_0x3022d6(0x3b9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x412f94=_0x3022d6;throw new Error(_0x412f94(0x2ec));}[_0x3022d6(0x14d)](){const _0x137ae7=_0x3022d6;throw new Error(_0x137ae7(0x2ec));}},exports[_0x3022d6(0x225)]=Oi([rt(0x0,o[_0x3022d6(0x3be)]),rt(0x1,o[_0x3022d6(0x291)](U['HTTPService']))],exports[_0x3022d6(0x225)]);var Di=Object[_0x3022d6(0x131)],Pi=Object[_0x3022d6(0x2b4)],Ui=(_0xde67b4,_0x1d58f8,_0x43763b,_0xe47a3d)=>{const _0x4f2308=_0x3022d6;for(var _0x441171=_0xe47a3d>0x1?void 0x0:_0xe47a3d?Pi(_0x1d58f8,_0x43763b):_0x1d58f8,_0x4985df=_0xde67b4[_0x4f2308(0x2ce)]-0x1,_0x1c2158;_0x4985df>=0x0;_0x4985df--)(_0x1c2158=_0xde67b4[_0x4985df])&&(_0x441171=(_0xe47a3d?_0x1c2158(_0x1d58f8,_0x43763b,_0x441171):_0x1c2158(_0x441171))||_0x441171);return _0xe47a3d&&_0x441171&&Di(_0x1d58f8,_0x43763b,_0x441171),_0x441171;},re=(_0x18cce9,_0x1fc7d0)=>(_0x116730,_0x3adb2a)=>_0x1fc7d0(_0x116730,_0x3adb2a,_0x18cce9);let $e=class extends o['LocalUndoRedoService']{constructor(_0x394a69,_0x438863,_0x816939,_0x260ea8,_0x27a0b1){const _0x370de0=_0x3022d6;super(_0x394a69,_0x438863,_0x816939),this[_0x370de0(0x223)]=_0x260ea8,this['_logService']=_0x27a0b1;}[_0x3022d6(0x392)](_0x16dac9,_0x10d2b5){const _0x43b448=_0x3022d6,_0x2ae7ef=this['_getUndoStack'](_0x16dac9);if(_0x2ae7ef)try{const _0x43cfec=this[_0x43b448(0xfb)](_0x2ae7ef,_0x10d2b5);this[_0x43b448(0x1a6)](_0x16dac9,_0x43cfec);}catch(_0x49a0c8){this[_0x43b448(0x38b)]['error']('[CollaborationUndoRedoService]',_0x49a0c8),this[_0x43b448(0x2c8)](_0x16dac9);}const _0x4c7ecf=this['_getRedoStack'](_0x16dac9);if(_0x4c7ecf)try{const _0x1d1c94=this[_0x43b448(0xfb)](_0x4c7ecf,_0x10d2b5);this['_substituteRedoStack'](_0x16dac9,_0x1d1c94);}catch(_0x1cb997){this['_logService'][_0x43b448(0x404)](_0x1cb997),this['_clearRedo'](_0x16dac9);}}[_0x3022d6(0x2c8)](_0x5d4f20){const _0x43fe2d=_0x3022d6,_0x5cc21c=this['_getUndoStack'](_0x5d4f20);_0x5cc21c&&(_0x5cc21c[_0x43fe2d(0x2ce)]=0x0,this['_updateStatus']());}[_0x3022d6(0x173)](_0x581fdd){const _0x2a0eed=_0x3022d6,_0x240a55=this[_0x2a0eed(0x3ff)](_0x581fdd);_0x240a55&&(_0x240a55['length']=0x0,this['_updateStatus']());}[_0x3022d6(0x1a6)](_0xe4d781,_0x524362){const _0x22691c=_0x3022d6;this[_0x22691c(0x2da)]['set'](_0xe4d781,_0x524362),this[_0x22691c(0x20c)]();}['_substituteRedoStack'](_0x497b44,_0x299ad6){const _0x538df0=_0x3022d6;this[_0x538df0(0x140)][_0x538df0(0x182)](_0x497b44,_0x299ad6),this[_0x538df0(0x20c)]();}['_transformStack'](_0x5a1361,_0x8aa5df){const _0x534bc2=_0x3022d6,_0x871fd9=[];let _0x276e67=_0x8aa5df,_0x485a99=_0x8aa5df;for(let _0x1fba1f=_0x5a1361[_0x534bc2(0x2ce)]-0x1;_0x1fba1f>=0x0;_0x1fba1f--){const {unitID:_0x594529,undoMutations:_0x1e13d3,redoMutations:_0x43a925}=_0x5a1361[_0x1fba1f],_0x40492a=this[_0x534bc2(0x223)][_0x534bc2(0x375)](_0x276e67,_0x1e13d3),_0x3498db=this[_0x534bc2(0x223)]['transformMutationsWithChangeset'](_0x485a99,_0x43a925);if(_[_0x534bc2(0x2d7)](_0x40492a)||_['isTransformMutationsWithChangesetFailure'](_0x3498db)){this['_logService'][_0x534bc2(0x404)](_0x534bc2(0x195),_0x534bc2(0x2b8),_0x40492a,_0x3498db);break;}_0x276e67=_0x40492a[_0x534bc2(0x3c6)],_0x485a99=_0x3498db[_0x534bc2(0x3c6)],_0x871fd9[_0x534bc2(0x42d)]({'unitID':_0x594529,'undoMutations':_0x40492a[_0x534bc2(0x469)],'redoMutations':_0x3498db[_0x534bc2(0x469)]});}return _0x871fd9[_0x534bc2(0x10e)]();}};$e=Ui([re(0x0,o[_0x3022d6(0xb8)]),re(0x1,o[_0x3022d6(0x3e6)]),re(0x2,o[_0x3022d6(0xa6)]),re(0x3,_[_0x3022d6(0x1d1)]),re(0x4,o['ILogService'])],$e);class wt extends o['RxDisposable']{constructor(){const _0x517469=_0x3022d6;super(),u(this,_0x517469(0xf0)),this['urlChange$']=v[_0x517469(0x163)](window,_0x517469(0x181))[_0x517469(0x23e)](v[_0x517469(0xc7)](this['dispose$']),v[_0x517469(0x3af)](0x1),v[_0x517469(0x2dc)](void 0x0));}[_0x3022d6(0xad)](_0x22d6ec,_0x5252ef,_0x1ec323=!0x1){const _0xd70a63=_0x3022d6,_0x318282=new URL(window[_0xd70a63(0x122)][_0xd70a63(0x262)]);_0x318282[_0xd70a63(0x3aa)][_0xd70a63(0x182)](_0x22d6ec,_0x5252ef),_0x1ec323?window[_0xd70a63(0x180)]['replaceState']('','',_0x318282[_0xd70a63(0x267)]()):window[_0xd70a63(0x180)][_0xd70a63(0x245)]('','',_0x318282['toString']());}[_0x3022d6(0x26f)](_0x33fe12,_0x106d68=!0x1){const _0x13f16a=_0x3022d6,_0x46c089=new URL(window['location'][_0x13f16a(0x262)]);_0x46c089[_0x13f16a(0x3aa)][_0x13f16a(0x1af)](_0x33fe12),_0x106d68?window[_0x13f16a(0x180)][_0x13f16a(0x205)]('','',_0x46c089[_0x13f16a(0x267)]()):window[_0x13f16a(0x180)][_0x13f16a(0x245)]('','',_0x46c089['toString']());}[_0x3022d6(0xd8)](_0x4e1a76){const _0xafca22=_0x3022d6;var _0x57ae93;return(_0x57ae93=new URL(window['location']['href'])['searchParams'][_0xafca22(0x84)](_0x4e1a76))!=null?_0x57ae93:void 0x0;}}const Pe=_0x3022d6(0x10d),wi=_0x3022d6(0x206),Mi=_0x3022d6(0x1f7),oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li=_0x3022d6(0xef);class ot{constructor(_0x468093,_0x21872e,_0x302255,_0xf955b9){const _0x111d6f=_0x3022d6;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0x111d6f(0x170),null),u(this,_0x111d6f(0x227),null),u(this,'_hideTimer',null),u(this,_0x111d6f(0x406),null),(this[_0x111d6f(0x33e)]=_0x468093,this['_scene']=_0x21872e,this[_0x111d6f(0x1f8)]=_0x302255,this[_0x111d6f(0x29e)]=_0xf955b9,this[_0x111d6f(0x166)]());}set[_0x3022d6(0x197)](_0x259fe6){const _0x565f06=_0x3022d6;_0x259fe6?(this[_0x565f06(0x227)]&&this['_anchorDot']['hide'](),this[_0x565f06(0x170)]&&this[_0x565f06(0x170)]['show']()):(this[_0x565f06(0x227)]&&this['_anchorDot'][_0x565f06(0x1d3)](),this[_0x565f06(0x170)]&&this[_0x565f06(0x170)][_0x565f06(0x10b)]());}[_0x3022d6(0x147)](){const _0x1396fe=_0x3022d6;for(const _0x4e11ca of this[_0x1396fe(0x1ea)])_0x4e11ca['dispose']();this[_0x1396fe(0x170)]&&this[_0x1396fe(0x170)]['dispose'](),this[_0x1396fe(0x227)]&&this[_0x1396fe(0x227)][_0x1396fe(0x147)](),this[_0x1396fe(0xf2)]&&this[_0x1396fe(0xf2)][_0x1396fe(0x147)](),this[_0x1396fe(0x406)]&&this['_eventUnsubscribe']();}[_0x3022d6(0x166)](){const _0x2d9d68=_0x3022d6;var _0x969afb;const {_docSkeleton:_0x596256,_document:_0x1d172e}=this,{color:_0x2187a3,name:_0x4ae51e,ranges:_0x4a7aa6}=this[_0x2d9d68(0x33e)],_0x4c07db=_0x1d172e['getOffsetConfig'](),{docsLeft:_0x24ec1a,docsTop:_0x2a7d48}=_0x4c07db,_0x254dbc=new b[(_0x2d9d68(0x304))](_0x4c07db,_0x596256);for(const {startOffset:_0x37ec79,endOffset:_0x28a5f7,collapsed:_0x36ef09,isActive:_0x1776b6}of _0x4a7aa6){const _0xf40bff=_0x596256[_0x2d9d68(0x10a)](_0x37ec79),_0x5972af=_0x596256[_0x2d9d68(0x10a)](_0x28a5f7);if(_0x1776b6){const {contentBoxPointGroup:_0x161b0e}=_0x254dbc['getRangePointData'](_0x5972af,_0x5972af);if(_0x161b0e[_0x2d9d68(0x2ce)]===0x0)continue;this[_0x2d9d68(0xeb)](_0x2187a3,_0x161b0e,_0x24ec1a,_0x2a7d48,_0x4ae51e),this[_0x2d9d68(0x406)]=this[_0x2d9d68(0x405)]();}if(!_0x36ef09&&_0xf40bff&&_0x5972af){if(b['isValidRectRange'](_0xf40bff,_0x5972af)){const _0x5f179a=new b['NodePositionConvertToRectRange'](_0x4c07db,_0x596256),{pointGroup:_0x4fa771}=(_0x969afb=_0x5f179a[_0x2d9d68(0x338)](_0xf40bff,_0x5972af))!=null?_0x969afb:{};if(_0x4fa771==null||_0x4fa771['length']===0x0)continue;this[_0x2d9d68(0xd2)](_0x2187a3,_0x4fa771,_0x24ec1a,_0x2a7d48);}else{const {contentBoxPointGroup:_0x24bfdf}=_0x254dbc['getRangePointData'](_0xf40bff,_0x5972af);if(_0x24bfdf[_0x2d9d68(0x2ce)]===0x0)continue;this['_drawTextRange'](_0x2187a3,_0x24bfdf,_0x24ec1a,_0x2a7d48);}}}}[_0x3022d6(0xeb)](_0x9c23f2,_0x58e46c,_0x3c67fb,_0x154e8e,_0x31ac49){const _0x2e0169=_0x3022d6,_0x4066be=this[_0x2e0169(0x354)](_0x58e46c),{left:_0x3ffbde,top:_0x2ff494,height:_0x49c2f4}=_0x4066be,_0x258069=this['_getScale'](),_0x200b19=Ni/_0x258069,_0x2b9f02=new b[(_0x2e0169(0x2bf))](Pe+o[_0x2e0169(0x418)]['generateRandomId'](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e,'height':_0x49c2f4,'width':yi,'fill':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'strokeWidth':_0x200b19,'stroke':Li,'evented':!0x0});this[_0x2e0169(0xf2)]=_0x2b9f02,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0x2b9f02,b[_0x2e0169(0x150)]);const _0xc65cf9=new b[(_0x2e0169(0x2bf))](Pe+o[_0x2e0169(0x418)][_0x2e0169(0x24e)](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'strokeWidth':0x0,'stroke':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'evented':!0x1});this[_0x2e0169(0x227)]=_0xc65cf9,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0xc65cf9,b[_0x2e0169(0x150)]);const _0x19a1fd=new Ce(Pe+o[_0x2e0169(0x418)][_0x2e0169(0x24e)](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e-le,'text':_0x31ac49,'color':_0x9c23f2});this[_0x2e0169(0x170)]=_0x19a1fd,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0x19a1fd,b[_0x2e0169(0x150)]),this['_hover']=!0x1;}[_0x3022d6(0x405)](){const _0x21dba7=_0x3022d6,_0x30e9c5=this[_0x21dba7(0xf2)][_0x21dba7(0x109)][_0x21dba7(0x2c4)](()=>{const _0x1fcaa7=_0x21dba7;this[_0x1fcaa7(0x197)]=!0x0;}),_0x19d66f=this['_anchor'][_0x21dba7(0x35d)][_0x21dba7(0x2c4)](()=>{const _0x557145=_0x21dba7;this[_0x557145(0x94)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x54bb4e=_0x557145;this[_0x54bb4e(0x197)]=!0x1;},0x7d0);});return()=>{const _0x42d948=_0x21dba7;_0x30e9c5[_0x42d948(0x2b9)](),_0x19d66f[_0x42d948(0x2b9)]();};}['_drawTextRange'](_0x5bfb2c,_0x5a9ac9,_0x26b3e7,_0x499b66){const _0x4a7012=_0x3022d6,_0x85f639=new o['ColorKit'](_0x5bfb2c)['setAlpha'](0.2)[_0x4a7012(0x1c5)](),_0x4db5e9=new b[(_0x4a7012(0x28b))](wi+o[_0x4a7012(0x418)]['generateRandomId'](oe),{'pointsGroup':_0x5a9ac9,'fill':_0x85f639||b['getColor'](o[_0x4a7012(0x27c)]['black'],0.2),'left':_0x26b3e7,'top':_0x499b66,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a7012(0x1ea)][_0x4a7012(0x42d)](_0x4db5e9),this[_0x4a7012(0x2f1)][_0x4a7012(0x1ce)](_0x4db5e9,b['TEXT_RANGE_LAYER_INDEX']);}[_0x3022d6(0xd2)](_0x5b85cb,_0x2ff2a2,_0x3a3448,_0x1a5dc6){const _0x41f36d=_0x3022d6,_0x5e721e=new o[(_0x41f36d(0x273))](_0x5b85cb)[_0x41f36d(0x1c6)](0.2)['toRgbString'](),_0x543b75=new b[(_0x41f36d(0x28b))](Mi+o[_0x41f36d(0x418)][_0x41f36d(0x24e)](oe),{'pointsGroup':_0x2ff2a2,'fill':_0x5e721e||b[_0x41f36d(0x17e)](o['COLORS'][_0x41f36d(0xb9)],0.2),'left':_0x3a3448,'top':_0x1a5dc6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x41f36d(0x1ea)][_0x41f36d(0x42d)](_0x543b75),this[_0x41f36d(0x2f1)]['addObject'](_0x543b75,b[_0x41f36d(0x150)]);}[_0x3022d6(0x354)](_0x2cbe0d){const _0x555ec8=_0x2cbe0d[0x0],_0x48d9b4=_0x555ec8[0x0],_0x533457=_0x555ec8[0x2],{x:_0x20eae4,y:_0x56a2b3}=_0x48d9b4,{x:_0x5d2890,y:_0x2c0063}=_0x533457;return{'left':_0x20eae4,'top':_0x56a2b3,'width':_0x5d2890-_0x20eae4,'height':_0x2c0063-_0x56a2b3};}['_getScale'](){const _0x52bb27=_0x3022d6,{scaleX:_0x3a7bed,scaleY:_0x45fc89}=this[_0x52bb27(0x2f1)][_0x52bb27(0x244)]();return Math[_0x52bb27(0x102)](_0x3a7bed,_0x45fc89);}}var Ai=Object[_0x3022d6(0x131)],ji=Object[_0x3022d6(0x2b4)],$i=(_0x239a36,_0x2e10a8,_0x41be8f,_0x4745fc)=>{const _0x50d16c=_0x3022d6;for(var _0x1c6d5f=_0x4745fc>0x1?void 0x0:_0x4745fc?ji(_0x2e10a8,_0x41be8f):_0x2e10a8,_0x12a94f=_0x239a36[_0x50d16c(0x2ce)]-0x1,_0x57e94d;_0x12a94f>=0x0;_0x12a94f--)(_0x57e94d=_0x239a36[_0x12a94f])&&(_0x1c6d5f=(_0x4745fc?_0x57e94d(_0x2e10a8,_0x41be8f,_0x1c6d5f):_0x57e94d(_0x1c6d5f))||_0x1c6d5f);return _0x4745fc&&_0x1c6d5f&&Ai(_0x2e10a8,_0x41be8f,_0x1c6d5f),_0x1c6d5f;},_e=(_0x5a27a1,_0x5bc0f8)=>(_0x5c6a83,_0x437fa3)=>_0x5bc0f8(_0x5c6a83,_0x437fa3,_0x5a27a1);let de=class extends o[_0x3022d6(0x460)]{constructor(_0xa7917c,_0x21eb0b,_0x488d3c,_0x33f0e1,_0x5797a4){const _0x15ee78=_0x3022d6;super(),u(this,'_cursorShapes',[]),u(this,'_cursors',[]),(this[_0x15ee78(0x100)]=_0xa7917c,this[_0x15ee78(0x101)]=_0x21eb0b,this['_collabCursorController']=_0x488d3c,this[_0x15ee78(0x467)]=_0x33f0e1,this[_0x15ee78(0x2f0)]=_0x5797a4,this[_0x15ee78(0x11b)]());}[_0x3022d6(0x11b)](){const _0x2e77c7=_0x3022d6,_0x1b291d=this[_0x2e77c7(0x100)][_0x2e77c7(0x347)],_0x3da3e5=this[_0x2e77c7(0x101)];this[_0x2e77c7(0x14a)](v[_0x2e77c7(0x282)]([this[_0x2e77c7(0x15e)][_0x2e77c7(0x276)](_0x1b291d),this[_0x2e77c7(0x2f0)][_0x2e77c7(0x172)]])['pipe'](E[_0x2e77c7(0x317)](([_0x4ad3c9,_0x2105fe])=>({'skeleton':_0x3da3e5[_0x2e77c7(0x2cd)](),'cursors':[..._0x4ad3c9['values']()][_0x2e77c7(0x162)](_0x6e8858=>({..._0x6e8858,'color':_0x2105fe[_0x6e8858[_0x2e77c7(0x3d4)]]}))})))[_0x2e77c7(0x265)](_0x1df16d=>{const _0xc30eb1=_0x2e77c7;if(this['_removeCollabCursors'](),_0x1df16d){const {skeleton:_0x27e889,cursors:_0xa4b09d}=_0x1df16d;this[_0xc30eb1(0x22a)](_0x27e889,_0xa4b09d);}})),this['_initResize'](),this[_0x2e77c7(0x1ac)]();}[_0x3022d6(0x22a)](_0x401196,_0x4a0af0){const _0x5a6af9=_0x3022d6,{scene:_0x300256,mainComponent:_0xad475b}=this[_0x5a6af9(0x100)],_0x538149=_0x4a0af0[_0x5a6af9(0x317)](_0x4806b5=>new ot(_0x4806b5,_0x300256,_0x401196,_0xad475b));this[_0x5a6af9(0x3fc)]=_0x538149,this[_0x5a6af9(0x289)]=_0x4a0af0;}[_0x3022d6(0x222)](){const _0x4edcc8=_0x3022d6;this['_removeCollabCursors']();const {scene:_0x3bf1d9,mainComponent:_0x3e9487}=this[_0x4edcc8(0x100)],_0x4e8ab5=this[_0x4edcc8(0x101)]['getSkeleton'](),_0x323c11=this['_cursors']['map'](_0x5055fa=>new ot(_0x5055fa,_0x3bf1d9,_0x4e8ab5,_0x3e9487));this[_0x4edcc8(0x3fc)]=_0x323c11;}[_0x3022d6(0x80)](){const _0x486140=_0x3022d6;this[_0x486140(0x3fc)][_0x486140(0x3d3)](_0x1cd38d=>_0x1cd38d[_0x486140(0x147)]()),this[_0x486140(0x3fc)]=[];}['_initCommandExecutedListener'](){const _0x5eb61b=_0x3022d6,_0xf963e=[P[_0x5eb61b(0x103)]['id']];this[_0x5eb61b(0x14a)](this[_0x5eb61b(0x467)][_0x5eb61b(0x2a1)](_0x666573=>{const _0x868318=_0x5eb61b;_0xf963e['includes'](_0x666573['id'])&&_0x666573[_0x868318(0xd7)][_0x868318(0x347)]===this['_context'][_0x868318(0x347)]&&this[_0x868318(0x222)]();}));}['_initResize'](){const _0x1c5c3c=_0x3022d6;this[_0x1c5c3c(0x14a)](o[_0x1c5c3c(0x3e5)](this[_0x1c5c3c(0x100)][_0x1c5c3c(0x272)]['onTransformChange$'])['pipe'](E[_0x1c5c3c(0x1c0)](_0x168538=>_0x168538['type']===b[_0x1c5c3c(0x142)][_0x1c5c3c(0x149)]),E[_0x1c5c3c(0x1bb)](0x10))[_0x1c5c3c(0x265)](()=>{const _0x15ad91=_0x1c5c3c;this[_0x15ad91(0x222)]();}));}};function _0xbc10(_0x529a74,_0x392873){const _0x199194=_0x1991();return _0xbc10=function(_0xbc1022,_0x3aed93){_0xbc1022=_0xbc1022-0x7c;let _0x450b11=_0x199194[_0xbc1022];return _0x450b11;},_0xbc10(_0x529a74,_0x392873);}de=$i([o[_0x3022d6(0x3ef)](o[_0x3022d6(0x32a)][_0x3022d6(0x368)],de),_e(0x1,o['Inject'](P[_0x3022d6(0x382)])),_e(0x2,o[_0x3022d6(0x291)](Z)),_e(0x3,o['ICommandService']),_e(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x314)]))],de);var xi=Object[_0x3022d6(0x131)],Hi=Object['getOwnPropertyDescriptor'],ki=(_0xe7d303,_0x5d3887,_0x3efdba,_0x120476)=>{const _0x451bda=_0x3022d6;for(var _0x2b7dee=_0x120476>0x1?void 0x0:_0x120476?Hi(_0x5d3887,_0x3efdba):_0x5d3887,_0x46e779=_0xe7d303[_0x451bda(0x2ce)]-0x1,_0x2b75fd;_0x46e779>=0x0;_0x46e779--)(_0x2b75fd=_0xe7d303[_0x46e779])&&(_0x2b7dee=(_0x120476?_0x2b75fd(_0x5d3887,_0x3efdba,_0x2b7dee):_0x2b75fd(_0x2b7dee))||_0x2b7dee);return _0x120476&&_0x2b7dee&&xi(_0x5d3887,_0x3efdba,_0x2b7dee),_0x2b7dee;},we=(_0x4dfd66,_0x3af1c7)=>(_0x267593,_0x326429)=>_0x3af1c7(_0x267593,_0x326429,_0x4dfd66);let Ie=class{constructor(_0x590c1f,_0x50793d,_0x540cac){const _0x5d5eda=_0x3022d6;this[_0x5d5eda(0xee)]=_0x590c1f,this[_0x5d5eda(0x10f)]=_0x50793d,this[_0x5d5eda(0xcc)]=_0x540cac,this[_0x5d5eda(0x388)]();}[_0x3022d6(0x388)](){const _0x379959=_0x3022d6;this[_0x379959(0x10f)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5ad23a,_0x8ff70)=>_0x8ff70(_0x5ad23a)[_0x379959(0x23e)](v[_0x379959(0x171)](async _0x101bda=>{const _0x24cf80=_0x379959,_0x2af789=_0x101bda;if(_0x2af789[_0x24cf80(0x15b)]===0x191&&window[_0x24cf80(0x1e7)](this[_0x24cf80(0xcc)]['t']('auth.needGotoLoginAlert'))){const _0x1c0956=window[_0x24cf80(0x3e1)](window[_0x24cf80(0x122)][_0x24cf80(0x262)]);window[_0x24cf80(0x122)][_0x24cf80(0x262)]=this[_0x24cf80(0x275)]()+_0x24cf80(0x137)+_0x1c0956;}return _0x2af789;}))});}[_0x3022d6(0x275)](){const _0x418f52=_0x3022d6;var _0x547adf;return(_0x547adf=this[_0x418f52(0xee)]['getConfig'](mt))!=null?_0x547adf:Zt;}};Ie=ki([we(0x0,o[_0x3022d6(0x3be)]),we(0x1,o[_0x3022d6(0x291)](U[_0x3022d6(0x37e)])),we(0x2,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)]))],Ie);var Bi=Object[_0x3022d6(0x131)],Vi=Object[_0x3022d6(0x2b4)],Wi=(_0x3768ff,_0x25bb55,_0x14cc9f,_0x5d7769)=>{const _0x2d6baa=_0x3022d6;for(var _0x4bd6cd=_0x5d7769>0x1?void 0x0:_0x5d7769?Vi(_0x25bb55,_0x14cc9f):_0x25bb55,_0x4af96b=_0x3768ff[_0x2d6baa(0x2ce)]-0x1,_0x38602d;_0x4af96b>=0x0;_0x4af96b--)(_0x38602d=_0x3768ff[_0x4af96b])&&(_0x4bd6cd=(_0x5d7769?_0x38602d(_0x25bb55,_0x14cc9f,_0x4bd6cd):_0x38602d(_0x4bd6cd))||_0x4bd6cd);return _0x5d7769&&_0x4bd6cd&&Bi(_0x25bb55,_0x14cc9f,_0x4bd6cd),_0x4bd6cd;},at=(_0x2aee3b,_0x275f2c)=>(_0x48af27,_0x1f8cb1)=>_0x275f2c(_0x48af27,_0x1f8cb1,_0x2aee3b);const Mt=_0x3022d6(0x274),Fi=_0x3022d6(0x34c);exports[_0x3022d6(0xc0)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x22d5bc,_0x2b32f0){const _0x47c182=_0x3022d6;super(),this[_0x47c182(0x396)]=_0x22d5bc,this[_0x47c182(0xee)]=_0x2b32f0,this[_0x47c182(0xa0)]();}[_0x3022d6(0xa0)](){const _0x2b3f49=_0x3022d6,_0xf97820=this;this[_0x2b3f49(0x14a)](this[_0x2b3f49(0x396)][_0x2b3f49(0x9e)]({'priority':0x3e7,'interceptor':U[_0x2b3f49(0x292)]({'isMatch'(_0x511737){const _0x455b06=_0x2b3f49;var _0x502ee2;if(_0x511737[_0x455b06(0x259)]===_0x455b06(0x1a5)&&((_0x502ee2=_0x511737[_0x455b06(0x178)])!=null&&_0x502ee2[_0x455b06(0x1ad)])){const {objectID:_0x59ea2f,objectType:_0x46e59e}=_0x511737[_0x455b06(0x178)][_0x455b06(0x1ad)]||{};if(!_0x59ea2f||_0x46e59e===void 0x0)return!0x1;const _0xe546ed=_0xf97820[_0x455b06(0xe8)]()+'/'+_0x46e59e+_0x455b06(0x373)+_0x59ea2f+_0x455b06(0x26e);if(_0x511737[_0x455b06(0x2c7)]===_0xe546ed)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd04952){const _0x315f27=_0x2b3f49;var _0x53dfaa;return(_0x53dfaa=_0xd04952[_0x315f27(0x178)])==null?void 0x0:_0x53dfaa[_0x315f27(0x1ad)];},'mergeParamsToRequest'(_0x485263,_0x2af748){const _0x67b013=_0x2b3f49,_0x3081c4=_0xf97820[_0x67b013(0xe8)]()+_0x67b013(0x1b1),_0x17efd7=_0x485263[_0x67b013(0xb0)]((_0x56d326,_0x1871a7)=>{const _0xd659e7=_0x67b013,{unitID:_0x361f5b,objectID:_0x69545,objectType:_0x5d24ee,actions:_0x2a4aea}=_0x1871a7;return _0x56d326[_0x361f5b]||(_0x56d326[_0x361f5b]={}),_0x56d326[_0x361f5b][_0x69545]||(_0x56d326[_0x361f5b][_0x69545]={'objectID':_0x69545,'objectType':_0x5d24ee,'actions':[]}),_0x56d326[_0x361f5b][_0x69545][_0xd659e7(0x2d6)][_0xd659e7(0x42d)](..._0x2a4aea),_0x56d326;},{}),_0x4dd689=[];for(const _0x4148a9 in _0x17efd7)for(const _0x413e45 in _0x17efd7[_0x4148a9]){const {actions:_0x38d1c4,objectType:_0x41000c}=_0x17efd7[_0x4148a9][_0x413e45],_0x368b9c=[...new Set(_0x38d1c4)];_0x4dd689[_0x67b013(0x42d)]({'unitID':_0x4148a9,'objectID':_0x413e45,'objectType':_0x41000c,'actions':_0x368b9c});}return new U[(_0x67b013(0x15d))](_0x67b013(0x1a5),_0x3081c4,{'headers':_0x2af748[_0x67b013(0x37f)],'withCredentials':_0x2af748['withCredentials'],'responseType':_0x2af748[_0x67b013(0x8c)],'body':{'requests':_0x4dd689}});}},{'distributeResult'(_0x1117d8,_0x3fa018){const {objectActions:_0x573cee}=_0x1117d8;return _0x3fa018['map'](_0x326ea9=>{const _0x10fce2=_0xbc10,{unitID:_0x469606,objectID:_0x44e292,actions:_0x126cd6}=_0x326ea9,_0x1c7bde=_0x573cee[_0x10fce2(0x99)](_0x12c56c=>_0x12c56c[_0x10fce2(0x367)]===_0x469606&&_0x12c56c[_0x10fce2(0x408)]===_0x44e292),_0x3c4616=_0x126cd6[_0x10fce2(0x317)](_0x52bb01=>_0x1c7bde==null?void 0x0:_0x1c7bde[_0x10fce2(0x2d6)][_0x10fce2(0x99)](_0x45eaeb=>_0x45eaeb[_0x10fce2(0xfc)]===_0x52bb01))['filter'](_0x535d0e=>!!_0x535d0e);return{'config':_0x326ea9,'result':{'actions':_0x3c4616,'error':_0x1117d8['error']}};});}})}));}[_0x3022d6(0xe8)](){const _0x2047ac=_0x3022d6;var _0x16b3ed;return(_0x16b3ed=this[_0x2047ac(0xee)]['getConfig'](Mt))!=null?_0x16b3ed:Fi;}async['create'](_0x37a02b){const _0x1cfac2=_0x3022d6,_0x59b1f2=this[_0x1cfac2(0xe8)]()+'/'+_0x37a02b[_0x1cfac2(0x3a3)]+_0x1cfac2(0x120);return(await this[_0x1cfac2(0x396)][_0x1cfac2(0x45d)](_0x59b1f2,{'body':_0x37a02b}))[_0x1cfac2(0x1ad)][_0x1cfac2(0x408)]||'';}async[_0x3022d6(0x33f)](_0x4009cb){const _0xca9716=_0x3022d6,_0x56ba18=this[_0xca9716(0xe8)]()+_0xca9716(0x2fb);return(await this[_0xca9716(0x396)]['post'](_0x56ba18,{'body':_0x4009cb}))[_0xca9716(0x1ad)][_0xca9716(0xa9)];}async[_0x3022d6(0x37b)](_0x41400e){const _0x15f475=_0x3022d6,_0x41e698=this[_0x15f475(0xe8)]()+'/'+_0x41400e['objectType']+'/object/'+_0x41400e[_0x15f475(0x408)];await this[_0x15f475(0x396)][_0x15f475(0x3d0)](_0x41e698,{'body':_0x41400e});}async[_0x3022d6(0x2d4)](_0x5e6d4d){const _0x235dd4=_0x3022d6,_0x3b4ca2=this[_0x235dd4(0xe8)]()+'/'+_0x5e6d4d[_0x235dd4(0x3a3)]+'/object/'+_0x5e6d4d['objectID']+'/allowed';return(await this[_0x235dd4(0x396)][_0x235dd4(0x45d)](_0x3b4ca2,{'body':_0x5e6d4d}))['body'][_0x235dd4(0x2d6)];}async[_0x3022d6(0x18e)](_0x3fa302){const _0x97bb19=_0x3022d6,_0x2cd8ec=this[_0x97bb19(0xe8)]()+_0x97bb19(0x1b1);return(await this[_0x97bb19(0x396)][_0x97bb19(0x45d)](_0x2cd8ec,{'body':{'requests':_0x3fa302}}))['body'][_0x97bb19(0x20d)];}async[_0x3022d6(0x248)](_0x1018a6){const _0x2e4780=_0x3022d6,_0x46af3e=this[_0x2e4780(0xe8)]()+'/'+_0x1018a6[_0x2e4780(0x3a3)]+_0x2e4780(0x1a0),_0x3452cb=await this[_0x2e4780(0x396)][_0x2e4780(0x45d)](_0x46af3e,{'body':_0x1018a6});return{'roles':_0x3452cb[_0x2e4780(0x1ad)][_0x2e4780(0x407)],'actions':_0x3452cb[_0x2e4780(0x1ad)][_0x2e4780(0x2d6)]};}async['deleteCollaborator'](_0x3bdd77){const _0x1701cf=_0x3022d6,_0x38a3f9=this[_0x1701cf(0xe8)]()+_0x1701cf(0x410);await this['_HTTPService'][_0x1701cf(0x1af)](_0x38a3f9,{'params':{'collaboratorID':_0x3bdd77[_0x1701cf(0x221)],'objectID':_0x3bdd77[_0x1701cf(0x408)],'unitID':_0x3bdd77[_0x1701cf(0x367)]}});}async['updateCollaborator'](_0xd0b606){const _0x21a3d3=_0x3022d6,_0x1fb859=this['_getAPIPrefixPath']()+_0x21a3d3(0x410);await this[_0x21a3d3(0x396)][_0x21a3d3(0x327)](_0x1fb859,{'body':_0xd0b606});}async['createCollaborator'](_0x4106b4){const _0x63bbec=_0x3022d6,_0x3d0943=this[_0x63bbec(0xe8)]()+_0x63bbec(0x410);await this[_0x63bbec(0x396)][_0x63bbec(0x45d)](_0x3d0943,{'body':_0x4106b4});}async['listCollaborators'](_0x140a45){const _0x5f206b=_0x3022d6,_0x503186=this[_0x5f206b(0xe8)]()+_0x5f206b(0x410);return(await this['_HTTPService']['get'](_0x503186,{'params':{'objectID':_0x140a45[_0x5f206b(0x408)],'unitID':_0x140a45[_0x5f206b(0x367)]}}))[_0x5f206b(0x1ad)][_0x5f206b(0x402)];}async[_0x3022d6(0x264)](_0x5beae4){const _0x5cf20b=_0x3022d6,_0x22b871=this['_getAPIPrefixPath']()+_0x5cf20b(0x410);await this[_0x5cf20b(0x396)]['put'](_0x22b871,{'body':_0x5beae4});}},exports[_0x3022d6(0xc0)]=Wi([at(0x0,o[_0x3022d6(0x291)](U[_0x3022d6(0x37e)])),at(0x1,o[_0x3022d6(0x291)](o[_0x3022d6(0x3be)]))],exports[_0x3022d6(0xc0)]);var Gi=Object[_0x3022d6(0x131)],Yi=Object[_0x3022d6(0x2b4)],Ki=(_0x55d51f,_0x229c0b,_0x435cbe,_0x919a58)=>{const _0xdae108=_0x3022d6;for(var _0x22499d=_0x919a58>0x1?void 0x0:_0x919a58?Yi(_0x229c0b,_0x435cbe):_0x229c0b,_0x30aa4a=_0x55d51f[_0xdae108(0x2ce)]-0x1,_0x24f5e0;_0x30aa4a>=0x0;_0x30aa4a--)(_0x24f5e0=_0x55d51f[_0x30aa4a])&&(_0x22499d=(_0x919a58?_0x24f5e0(_0x229c0b,_0x435cbe,_0x22499d):_0x24f5e0(_0x22499d))||_0x22499d);return _0x919a58&&_0x22499d&&Gi(_0x229c0b,_0x435cbe,_0x22499d),_0x22499d;},Me=(_0x1c2159,_0x4d2d9f)=>(_0x5389a7,_0x2cfc99)=>_0x4d2d9f(_0x5389a7,_0x2cfc99,_0x1c2159);const Xi=['image/png',_0x3022d6(0x277),'image/jpg',_0x3022d6(0x26a),_0x3022d6(0x2b1)],qi=0x5*0x400*0x400,zi=_0x3022d6(0x1ae),Ji='/universer-api/stream/file/upload',Zi=_0x3022d6(0x2bb),Qi=_0x3022d6(0x3a4);exports['ImageIoService']=class{constructor(_0x2d7910,_0x3552e1,_0x27958b){const _0x52ed2e=_0x3022d6;u(this,'_waitCount',0x0),u(this,_0x52ed2e(0x1b3),new v['Subject']()),u(this,'change$',this['_change$']),u(this,_0x52ed2e(0x8a),new Map()),(this[_0x52ed2e(0x10f)]=_0x2d7910,this[_0x52ed2e(0xee)]=_0x3552e1,this['_univerInstanceService']=_0x27958b);}['setWaitCount'](_0x53f017){const _0x2de70c=_0x3022d6;this[_0x2de70c(0x446)]=_0x53f017,this[_0x2de70c(0x1b3)][_0x2de70c(0x116)](_0x53f017);}['getImageSourceCache'](_0x4e0772,_0x4e5ace){const _0x5d052a=_0x3022d6;if(_0x4e5ace===A[_0x5d052a(0x3f4)][_0x5d052a(0x363)]){const _0x41c6f1=new Image();return _0x41c6f1[_0x5d052a(0x202)]=_0x4e0772,_0x41c6f1;}return this[_0x5d052a(0x8a)][_0x5d052a(0x84)](_0x4e0772);}[_0x3022d6(0x189)](_0xfa593,_0x2f288e,_0x874729){const _0x1d0802=_0x3022d6;_0x2f288e===A['ImageSourceType'][_0x1d0802(0x363)]||_0x874729==null||this['_imageSourceCache'][_0x1d0802(0x182)](_0xfa593,_0x874729);}async[_0x3022d6(0x3a5)](_0x577445){const _0x2712cb=_0x3022d6;try{const _0x33e798=this[_0x2712cb(0x36e)](this[_0x2712cb(0x126)](),''+_0x577445),_0x4bf161=(await this['_httpService'][_0x2712cb(0x84)](_0x33e798))['body'];return _0x4bf161['error']&&_0x4bf161[_0x2712cb(0x404)][_0x2712cb(0x2a2)]===gt['OK']?Promise[_0x2712cb(0x285)](_0x4bf161[_0x2712cb(0x2c7)]):Promise[_0x2712cb(0x252)](_0x4bf161[_0x2712cb(0x404)]);}catch(_0x2b59be){return Promise[_0x2712cb(0x252)](_0x2b59be);}}async['saveImage'](_0xfbd248){const _0x5e33af=_0x3022d6;let _0x4063b8='';if(!Xi[_0x5e33af(0x2fa)](_0xfbd248[_0x5e33af(0x1f3)]))return this['_decreaseWaiting'](),Promise[_0x5e33af(0x252)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0xfbd248[_0x5e33af(0x2ca)]>qi)return this[_0x5e33af(0x239)](),Promise[_0x5e33af(0x252)](new Error(A[_0x5e33af(0x34f)]['ERROR_EXCEED_SIZE']));try{const _0x1f3da0=new FormData();_0x1f3da0[_0x5e33af(0x1d7)](_0x5e33af(0xf4),_0xfbd248);const _0x532a11=this[_0x5e33af(0x17c)]['getFocusedUnit'](),_0x3f5c03=_0x532a11==null?void 0x0:_0x532a11[_0x5e33af(0x29c)]();if(!_0x3f5c03)throw new Error(_0x5e33af(0x441));const _0x270676=this[_0x5e33af(0x106)]()+_0x5e33af(0x2c3)+_0xfbd248[_0x5e33af(0x2ca)][_0x5e33af(0x267)]()+_0x5e33af(0x2b7)+ft[_0x5e33af(0x449)]+'&assign='+encodeURIComponent(_0x3f5c03),_0x525e8c=await(await fetch(_0x270676,{'method':_0x5e33af(0x1a5),'body':_0x1f3da0}))['json']();if(typeof _0x525e8c[_0x5e33af(0x42e)]!=_0x5e33af(0x383))return this[_0x5e33af(0x239)](),Promise['reject'](new Error(A[_0x5e33af(0x34f)][_0x5e33af(0x22d)]));_0x4063b8=_0x525e8c[_0x5e33af(0x42e)];}catch{return this[_0x5e33af(0x239)](),Promise[_0x5e33af(0x252)](new Error(A[_0x5e33af(0x34f)][_0x5e33af(0x22d)]));}return new Promise((_0x7d8ec0,_0x1d6ed2)=>{const _0x37a9fe=_0x5e33af,_0x355173=new FileReader();_0x355173['readAsDataURL'](_0xfbd248),_0x355173[_0x37a9fe(0x1c4)]=_0x4bcd50=>{const _0x4b5f33=_0x37a9fe;var _0x18076e;const _0x5b92bb=(_0x18076e=_0x4bcd50[_0x4b5f33(0x2f9)])==null?void 0x0:_0x18076e['result'];if(_0x5b92bb==null){this[_0x4b5f33(0x239)](),_0x1d6ed2(new Error(A[_0x4b5f33(0x34f)][_0x4b5f33(0x22d)]));return;}const _0xe0f8e9=o[_0x4b5f33(0x418)][_0x4b5f33(0x24e)](0x6);_0x7d8ec0({'imageId':_0xe0f8e9,'imageSourceType':A[_0x4b5f33(0x3f4)][_0x4b5f33(0xf1)],'source':_0x4063b8,'base64Cache':_0x5b92bb,'status':A[_0x4b5f33(0x34f)][_0x4b5f33(0xe5)]}),this[_0x4b5f33(0x239)]();};});}['_getUploadFileURL'](){const _0x46d001=_0x3022d6;var _0x7d1d46;return(_0x7d1d46=this['_configService'][_0x46d001(0x1bd)](zi))!=null?_0x7d1d46:Ji;}[_0x3022d6(0x126)](){const _0x2a4a57=_0x3022d6;var _0x5de54c;return(_0x5de54c=this[_0x2a4a57(0xee)][_0x2a4a57(0x1bd)](Zi))!=null?_0x5de54c:Qi;}['_replaceFileID'](_0x63808c,_0x5cf701){const _0x5c4d63=_0x3022d6;return _0x63808c[_0x5c4d63(0x3ab)]('{fileID}',_0x5cf701);}[_0x3022d6(0x239)](){const _0x1ba938=_0x3022d6;this['_waitCount']-=0x1,this['_change$'][_0x1ba938(0x116)](this[_0x1ba938(0x446)]);}},exports[_0x3022d6(0x1de)]=Ki([Me(0x0,o['Inject'](U['HTTPService'])),Me(0x1,o[_0x3022d6(0x3be)]),Me(0x2,o[_0x3022d6(0x291)](o[_0x3022d6(0xb8)]))],exports[_0x3022d6(0x1de)]);var en=Object[_0x3022d6(0x131)],tn=Object[_0x3022d6(0x2b4)],sn=(_0x2615b8,_0x5aba83,_0x487032,_0x2fa78c)=>{for(var _0x14bf79=_0x2fa78c>0x1?void 0x0:_0x2fa78c?tn(_0x5aba83,_0x487032):_0x5aba83,_0x4d04b5=_0x2615b8['length']-0x1,_0x25f268;_0x4d04b5>=0x0;_0x4d04b5--)(_0x25f268=_0x2615b8[_0x4d04b5])&&(_0x14bf79=(_0x2fa78c?_0x25f268(_0x5aba83,_0x487032,_0x14bf79):_0x25f268(_0x14bf79))||_0x14bf79);return _0x2fa78c&&_0x14bf79&&en(_0x5aba83,_0x487032,_0x14bf79),_0x14bf79;},ae=(_0x424331,_0x53f943)=>(_0x1b0475,_0x1c8dfd)=>_0x53f943(_0x1b0475,_0x1c8dfd,_0x424331);let Se=class extends o[_0x3022d6(0x460)]{constructor(_0x511d6d,_0xfaf903,_0x2e8a04,_0xdf82f6,_0x479a8b){const _0x2da27c=_0x3022d6;super(),this['_injector']=_0x511d6d,this[_0x2da27c(0x17c)]=_0xfaf903,this[_0x2da27c(0x3a2)]=_0x2e8a04,this[_0x2da27c(0xdb)]=_0xdf82f6,this[_0x2da27c(0x3b1)]=_0x479a8b,this['_initUnitPermissionChange'](),this[_0x2da27c(0x25a)]();}[_0x3022d6(0x25a)](){const _0x324886=_0x3022d6,_0x161a7d=async _0x480e29=>{const _0x4d04c3=_0xbc10;(await this[_0x4d04c3(0xdb)][_0x4d04c3(0x3b2)](_0x480e29))[_0x4d04c3(0x144)][_0x4d04c3(0x23e)](E[_0x4d04c3(0x1c0)](_0x39ce91=>_0x39ce91[_0x4d04c3(0x31c)]===_['CollaborationEvent'][_0x4d04c3(0x83)]),E[_0x4d04c3(0xc7)](this[_0x4d04c3(0x374)]))[_0x4d04c3(0x265)](_0x4fa8f3=>{const _0x2e395d=_0x4d04c3,_0x506907=_0x4fa8f3,{reason:_0x447084}=_0x506907[_0x2e395d(0x2be)];this[_0x2e395d(0x123)][_0x2e395d(0x84)](L[_0x2e395d(0xaf)])[_0x2e395d(0x1d3)]({'type':Q[_0x2e395d(0x1e5)]['Error'],'content':this[_0x2e395d(0x3b1)]['t'](_0x2e395d(0x468))+'('+_0x447084+')'}),this[_0x2e395d(0x3a2)][_0x2e395d(0x27f)](new p[(_0x2e395d(0x32f))](_0x480e29)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x480e29);});};v['merge'](this[_0x324886(0x17c)][_0x324886(0x2f6)](o[_0x324886(0x23f)][_0x324886(0x2c0)]),this[_0x324886(0x17c)][_0x324886(0x2f6)](o[_0x324886(0x23f)]['UNIVER_DOC']))[_0x324886(0x23e)](E[_0x324886(0x317)](_0x50edca=>_0x50edca['getUnitId']()),E[_0x324886(0x1c0)](_0x284a22=>!o[_0x324886(0x152)](_0x284a22)),E['takeUntil'](this[_0x324886(0x374)]))[_0x324886(0x265)](_0x2bac35=>{_0x161a7d(_0x2bac35);});}[_0x3022d6(0x337)](){const _0x5083ce=_0x3022d6,_0x2cd70e=async _0xc28033=>{const _0x2bca1f=_0xbc10;(await this[_0x2bca1f(0xdb)][_0x2bca1f(0x3b2)](_0xc28033))[_0x2bca1f(0x144)][_0x2bca1f(0x23e)](E[_0x2bca1f(0x1c0)](_0x2e3abf=>_0x2e3abf[_0x2bca1f(0x31c)]===_[_0x2bca1f(0x26c)][_0x2bca1f(0x330)]),E[_0x2bca1f(0xc7)](this[_0x2bca1f(0x374)]))[_0x2bca1f(0x265)](_0x11595b=>{const _0x410da8=_0x2bca1f,_0x34c4ff=_0x11595b,{objectId:_0x2b0083}=_0x34c4ff[_0x410da8(0x2be)],_0xcd28a=this['_injector'][_0x410da8(0x84)](J['SheetPermissionInitController']);_0x2b0083===_0xc28033?_0xcd28a[_0x410da8(0x325)](_0xc28033):_0xcd28a[_0x410da8(0x226)](_0xc28033,_0x2b0083);});};v[_0x5083ce(0xc5)](this['_univerInstanceService'][_0x5083ce(0x2f6)](o[_0x5083ce(0x23f)][_0x5083ce(0x2c0)]),this[_0x5083ce(0x17c)][_0x5083ce(0x2f6)](o[_0x5083ce(0x23f)]['UNIVER_DOC']))[_0x5083ce(0x23e)](E[_0x5083ce(0x317)](_0x2bcf95=>_0x2bcf95[_0x5083ce(0x29c)]()),E[_0x5083ce(0x1c0)](_0x397189=>!o['isInternalEditorID'](_0x397189)),E['takeUntil'](this[_0x5083ce(0x374)]))[_0x5083ce(0x265)](_0x5ccb10=>{_0x2cd70e(_0x5ccb10);});}};Se=sn([o[_0x3022d6(0x3ef)](o['LifecycleStages'][_0x3022d6(0xd4)],Se),ae(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),ae(0x1,o[_0x3022d6(0xb8)]),ae(0x2,o['IPermissionService']),ae(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x2ee)])),ae(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)]))],Se);var yt=Object[_0x3022d6(0x131)],nn=Object[_0x3022d6(0x2b4)],rn=(_0x159d3f,_0x23a720,_0xbe718e)=>_0x23a720 in _0x159d3f?yt(_0x159d3f,_0x23a720,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbe718e}):_0x159d3f[_0x23a720]=_0xbe718e,on=(_0x5b4c88,_0x54efc7,_0x2dee11,_0x5c976b)=>{for(var _0x53b28e=_0x5c976b>0x1?void 0x0:_0x5c976b?nn(_0x54efc7,_0x2dee11):_0x54efc7,_0x3a8005=_0x5b4c88['length']-0x1,_0x2a9cad;_0x3a8005>=0x0;_0x3a8005--)(_0x2a9cad=_0x5b4c88[_0x3a8005])&&(_0x53b28e=(_0x5c976b?_0x2a9cad(_0x54efc7,_0x2dee11,_0x53b28e):_0x2a9cad(_0x53b28e))||_0x53b28e);return _0x5c976b&&_0x53b28e&&yt(_0x54efc7,_0x2dee11,_0x53b28e),_0x53b28e;},ye=(_0x286e6a,_0x4fb3c3)=>(_0x37569d,_0x21c3c2)=>_0x4fb3c3(_0x37569d,_0x21c3c2,_0x286e6a),an=(_0x572745,_0x3e31e5,_0x3b8699)=>rn(_0x572745,_0x3e31e5+'',_0x3b8699);const cn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports['UniverCollaborationClientPlugin']=class extends o[_0x3022d6(0x164)]{constructor(_0x221631,_0x31ff37,_0x2a3527,_0x3af6fd){const _0x36e8a3=_0x3022d6;super(),this['_config']=_0x221631,this[_0x36e8a3(0x38b)]=_0x31ff37,this['_renderManagerService']=_0x2a3527,this[_0x36e8a3(0x123)]=_0x3af6fd;}[_0x3022d6(0x435)](){const _0x1b7820=_0x3022d6;this[_0x1b7820(0x3b4)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3022d6(0x3b4)](){const _0x410808=_0x3022d6;var _0x2871ff,_0x3be616,_0x3185e0,_0x2b1c55;this[_0x410808(0x123)][_0x410808(0x151)](o['IUndoRedoService'])&&this[_0x410808(0x38b)][_0x410808(0x404)](_0x410808(0x153),_0x410808(0x29b));let _0x5eb54c=[[o[_0x410808(0x114)],{'useClass':$e}],[exports['CollaborationSessionService']],[Fe],[U[_0x410808(0x37e)]],[Ye,{'useClass':wt}],[Y],[exports[_0x410808(0x174)]],[U[_0x410808(0x2e8)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x3be616=(_0x2871ff=this['_config'])==null?void 0x0:_0x2871ff[_0x410808(0xc8)])!=null?_0x3be616:exports[_0x410808(0x3b0)]}],[U[_0x410808(0x32c)],{'useClass':U[_0x410808(0x298)]}],[o[_0x410808(0x143)],{'useClass':exports[_0x410808(0x225)]}],[o[_0x410808(0x301)],{'useClass':exports[_0x410808(0xc0)]}],[A[_0x410808(0xed)],{'useClass':exports[_0x410808(0x1de)]}],[exports[_0x410808(0x431)]],[exports[_0x410808(0x336)]],[exports[_0x410808(0x269)]],[ue],[Z]];(_0x3185e0=this['_config'])!=null&&_0x3185e0[_0x410808(0x260)]&&_0x5eb54c[_0x410808(0x42d)]([pe,{'useClass':us}]),_0x5eb54c=o['mergeOverrideWithDependencies'](_0x5eb54c,(_0x2b1c55=this[_0x410808(0x87)])==null?void 0x0:_0x2b1c55[_0x410808(0x14e)]),_0x5eb54c[_0x410808(0x3d3)](_0x5597b0=>this[_0x410808(0x123)][_0x410808(0xe1)](_0x5597b0)),this[_0x410808(0x1d9)]();}['_registerRenderDependencies'](){const _0xbf1cd=_0x3022d6;this['disposeWithMe'](this['_renderManagerService'][_0xbf1cd(0x36b)](o['UniverInstanceType'][_0xbf1cd(0x237)],[de])),this['disposeWithMe'](this[_0xbf1cd(0x235)][_0xbf1cd(0x36b)](o[_0xbf1cd(0x23f)][_0xbf1cd(0x2c0)],[je]));}['_initModules'](){const _0x50840a=_0x3022d6;var _0x29fe07,_0x11ec11;this[_0x50840a(0x123)]['get'](U['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U[_0x50840a(0x107)]({'maxParallel':0x6})}),(_0x29fe07=this[_0x50840a(0x87)])!=null&&_0x29fe07['enableOfflineEditing']||this[_0x50840a(0x123)][_0x50840a(0x84)](exports[_0x50840a(0x174)])[_0x50840a(0x196)](),(_0x11ec11=this[_0x50840a(0x87)])!=null&&_0x11ec11[_0x50840a(0x12f)]&&this['_injector'][_0x50840a(0x84)](Ie);}},an(exports['UniverCollaborationClientPlugin'],'pluginName',cn),exports['UniverCollaborationClientPlugin']=on([o[_0x3022d6(0x38f)](_['UniverCollaborationPlugin']),ye(0x1,o[_0x3022d6(0x22f)]),ye(0x2,b[_0x3022d6(0x13e)]),ye(0x3,o[_0x3022d6(0x291)](o['Injector']))],exports[_0x3022d6(0x233)]),exports[_0x3022d6(0x274)]=Mt,exports[_0x3022d6(0x3c2)]=vt,exports[_0x3022d6(0x117)]=_t,exports['CollaborationStatus']=D,exports['CollaborationStatusDisplay']=Ut,exports[_0x3022d6(0x2ba)]=Ve,exports[_0x3022d6(0x28c)]=ut,exports[_0x3022d6(0xa5)]=He,exports[_0x3022d6(0x22b)]=Be,exports[_0x3022d6(0xaa)]=Ye,exports[_0x3022d6(0x2e0)]=St,exports[_0x3022d6(0x1c2)]=mt,exports['SEND_CHANGESET_TIMEOUT_KEY']=ht,exports[_0x3022d6(0x351)]=ct,exports[_0x3022d6(0xcf)]=lt,exports['SessionStatus']=G,exports['SheetCollabCursorShape']=Rt,exports['WebURLService']=wt,exports[_0x3022d6(0x160)]=It,exports['serializeCombRequest']=pt;
|