@univerjs-pro/collaboration-client 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x64ef4d=_0x5841;(function(_0x47c65f,_0x426037){const _0x2e1381=_0x5841,_0x202e81=_0x47c65f();while(!![]){try{const _0x2e3f8b=-parseInt(_0x2e1381(0x21b))/0x1+-parseInt(_0x2e1381(0x4b9))/0x2*(parseInt(_0x2e1381(0x516))/0x3)+parseInt(_0x2e1381(0x51a))/0x4*(-parseInt(_0x2e1381(0x27a))/0x5)+-parseInt(_0x2e1381(0x234))/0x6*(parseInt(_0x2e1381(0x2a2))/0x7)+-parseInt(_0x2e1381(0x3fb))/0x8*(-parseInt(_0x2e1381(0x4a3))/0x9)+parseInt(_0x2e1381(0x32d))/0xa*(parseInt(_0x2e1381(0x25e))/0xb)+-parseInt(_0x2e1381(0x433))/0xc*(-parseInt(_0x2e1381(0x323))/0xd);if(_0x2e3f8b===_0x426037)break;else _0x202e81['push'](_0x202e81['shift']());}catch(_0x15baff){_0x202e81['push'](_0x202e81['shift']());}}}(_0x3e00,0xe1349));import{HTTPEventType as _0x1d7c88,HTTPRequest as _0xac2747,HTTPResponseError as _0x4b2faf,HTTPService as _0x180f6d,ISocketService as _0x9d68fa,MergeInterceptorFactory as _0x4432eb,ThresholdInterceptorFactory as _0x25a6f8,UniverNetworkPlugin as _0xe167c7}from'@univerjs/network';import{BehaviorSubject as _0x205351,Subject as _0x18775b,Subscription as _0x485063,TimeoutError as _0x5ce617,concatMap as _0x2173a7,filter as _0x470f82,firstValueFrom as _0x5d9383,map as _0x1c5dcf,merge as _0x276ef3,of as _0x2129d3,shareReplay as _0x217e04,take as _0x4b430a,takeUntil as _0x2cfbbb,timeout as _0x2c1d29}from'rxjs';import{CollaborationEvent as _0xacdc36,CompressMutationService as _0x1457db,EmptyMutationInfo as _0x4d4133,ISnapshotServerService as _0x3dc74b,ITransformService as _0x2f82dd,RevertRevisionMutation as _0x591a72,RevisionService as _0x36042b,SnapshotService as _0x83dc7b,UniverCollaborationPlugin as _0x5af545,b64DecodeUnicode as _0x4e0c43,isTransformChangesetsSuccess as _0x331893,isTransformMutationsWithChangesetFailure as _0x3a5e41,isTransformMutationsWithChangesetSuccess as _0x1b0102,mapDocumentTypeToUniverInstanceType as _0x220c8d,parseChangesetToProtocol as _0x26d18b,parseProtocolChangeset as _0x44a77b,textEncoder as _0x3f147d,uuidv4 as _0x163043}from'@univerjs-pro/collaboration';import{CommandType as _0x503736,DependentOn as _0x1f3e0d,Disposable as _0x43913d,DisposableCollection as _0x5aa9c8,IAuthzIoService as _0x4c4852,ICommandService as _0x59a890,IConfigService as _0x1c2d46,IContextService as _0xa9f31f,IImageIoService as _0x589c2f,ILogService as _0x1a4744,IMentionIOService as _0x17dd91,IPermissionService as _0x4457eb,IUndoRedoService as _0x510392,IUniverInstanceService as _0xde2491,ImageSourceType as _0x2eb2a8,ImageUploadStatusType as _0x14f99f,Inject as _0x12abaf,Injector as _0x1f4ba8,JSON1 as _0x190a2a,JSONX as _0x3d2c27,LocalUndoRedoService as _0x2a80ff,LocaleService as _0x1b8087,MentionType as _0x3dea41,OBJECT_PERMISSION_CONFIG_KEY as _0x5d9173,ObjectPermissionService as _0x395c39,Optional as _0x4c5a46,Plugin as _0x5e9c61,Quantity as _0x2e8b9c,Rectangle as _0x250b4d,RxDisposable as _0x3f9f03,TextXActionType as _0x2f9665,Tools as _0x29d202,UniverInstanceType as _0x3ec4c0,UpdateDocsAttributeType as _0x59d783,UserManagerService as _0x23c853,Workbook as _0x4f49c4,createIdentifier as _0x4d466b,generateRandomId as _0x56ed1a,isInternalEditorID as _0x1ced0a,merge as _0x441f78,mergeOverrideWithDependencies as _0x318485,registerDependencies as _0x1e2a16,resolveWithBasePath as _0x53c41a,sequenceExecute as _0x1284f3,toDisposable as _0x27106b,touchDependencies as _0x43e699}from'@univerjs/core';import{DocStateChangeManagerService as _0x33d1e9,RichTextEditingMutation as _0x3a6e2f}from'@univerjs/docs';import{InsertSheetMutation as _0x542892,SetSelectionsOperation as _0x206cc2,SheetPermissionInitController as _0x3582b0,SheetsSelectionsService as _0x26224a,WorkbookEditablePermission as _0x2a7ff0}from'@univerjs/sheets';import{CmdRspCode as _0x46e02a,CombCmd as _0x399e6c,ErrorCode as _0x3523bb,FileSource as _0x71c5e3,UnitAction as _0x409e87,UnitObject as _0x456d2b}from'@univerjs/protocol';import{ITelemetryService as _0x34ba5d}from'@univerjs/telemetry';import{delay as _0x18553b,filter as _0x56e948,map as _0x4b6d47,take as _0x4befe2,takeUntil as _0x5106a4}from'rxjs/operators';import{AddSlidePageMutation as _0x3801bc,EnsureSlideMasterPageMutation as _0x1ac8a0,MoveSlidePageMutation as _0x478646,RemoveSlidePageMutation as _0x3fe210}from'@univerjs-pro/slides';import{UniverLicensePlugin as _0x40a033,getGlobalObject as _0x250f0c}from'@univerjs-pro/license';import{cbc as _0x10c69c}from'@noble/ciphers/aes.js';import{concatBytes as _0x530996,randomBytes as _0x306732,utf8ToBytes as _0x107766}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x43754c,getDrawingImageAllowSize as _0x242601}from'@univerjs/drawing';const R='collaboration-client.config',Tt={},Et='ws://127.0.0.1:8000/universer-api/comb/connect',Dt='/universer-api/user/session-ticket',Ot='HEARTBEAT_INTERVAL',kt=_0x64ef4d(0x417),At=_0x64ef4d(0x20d),jt=_0x64ef4d(0x505),Mt=0x3e8,Nt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',Pt=_0x64ef4d(0x29a);function Ft(_0x43e90c){'@babel/helpers - typeof';const _0x3a221a=_0x64ef4d;return Ft=typeof Symbol==_0x3a221a(0x40d)&&typeof Symbol[_0x3a221a(0x219)]==_0x3a221a(0x493)?function(_0x49bac1){return typeof _0x49bac1;}:function(_0x418149){const _0x11e95b=_0x3a221a;return _0x418149&&typeof Symbol==_0x11e95b(0x40d)&&_0x418149[_0x11e95b(0x368)]===Symbol&&_0x418149!==Symbol[_0x11e95b(0x37f)]?_0x11e95b(0x493):typeof _0x418149;},Ft(_0x43e90c);}function It(_0x31c85f,_0x40cef2){const _0x4b12ba=_0x64ef4d;if(Ft(_0x31c85f)!=_0x4b12ba(0x202)||!_0x31c85f)return _0x31c85f;var _0x4511c7=_0x31c85f[Symbol[_0x4b12ba(0x49e)]];if(_0x4511c7!==void 0x0){var _0x490d1c=_0x4511c7[_0x4b12ba(0x35c)](_0x31c85f,_0x40cef2||'default');if(Ft(_0x490d1c)!='object')return _0x490d1c;throw TypeError(_0x4b12ba(0x33a));}return(_0x40cef2==='string'?String:Number)(_0x31c85f);}function Lt(_0x3f97ee){const _0x3413bc=_0x64ef4d;var _0x14ef6c=It(_0x3f97ee,_0x3413bc(0x30e));return Ft(_0x14ef6c)==_0x3413bc(0x493)?_0x14ef6c:_0x14ef6c+'';}function z(_0x18f9c1,_0x15b7ac,_0x5bf7fa){const _0x488348=_0x64ef4d;return(_0x15b7ac=Lt(_0x15b7ac))in _0x18f9c1?Object[_0x488348(0x2ca)](_0x18f9c1,_0x15b7ac,{'value':_0x5bf7fa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18f9c1[_0x15b7ac]=_0x5bf7fa,_0x18f9c1;}function _0x5841(_0x57fecc,_0x4b4017){_0x57fecc=_0x57fecc-0x1ef;const _0x3e00fe=_0x3e00();let _0x58410c=_0x3e00fe[_0x57fecc];return _0x58410c;}const Rt=0x4e20,zt=0x1d4c0;var Bt=class{constructor(_0x5a6276,_0x250960,_0x1d48ce={}){const _0x394cd9=_0x64ef4d;this[_0x394cd9(0x4c7)]=_0x250960,this[_0x394cd9(0x3d3)]=_0x1d48ce,z(this,_0x394cd9(0x4af),0x0),z(this,_0x394cd9(0x486),void 0x0),z(this,_0x394cd9(0x3b5),void 0x0),z(this,'_maxAckTimeout',void 0x0),z(this,_0x394cd9(0x4a7),0x0),z(this,_0x394cd9(0x4e8),0x0),z(this,_0x394cd9(0x2b2),null),z(this,'_pendingReason',null),z(this,_0x394cd9(0x232),null),z(this,_0x394cd9(0x211),0x0),z(this,_0x394cd9(0x3ed),!0x1),z(this,_0x394cd9(0x4e9),void 0x0),z(this,'_reqId',void 0x0),this[_0x394cd9(0x457)]=_0x5a6276,this[_0x394cd9(0x3b5)]=_0x1d48ce[_0x394cd9(0x260)]??0x4e20,this[_0x394cd9(0x386)]=Math[_0x394cd9(0x3b0)](_0x1d48ce[_0x394cd9(0x23f)]??0x1d4c0,this[_0x394cd9(0x3b5)]),this[_0x394cd9(0x4e9)]=_0x1d48ce[_0x394cd9(0x4b7)]??(()=>Date['now']()),this[_0x394cd9(0x486)]=this['_now']();}get[_0x64ef4d(0x287)](){return this['_reqId'];}get[_0x64ef4d(0x3a0)](){const _0x29efc8=_0x64ef4d;return this[_0x29efc8(0x4af)];}get['nextDelayMs'](){return this['_nextDelay'];}get[_0x64ef4d(0x3ac)](){const _0x4effbf=_0x64ef4d;return this[_0x4effbf(0x4e9)]()-this['_firstSentAt'];}[_0x64ef4d(0x40c)](_0xf9cbd3){const _0x5f3af9=_0x64ef4d;if(this[_0x5f3af9(0x3ed)])return;this['_source']=_0xf9cbd3;let _0x10ba9f=this['_pendingReason'];_0x10ba9f&&(this['_pendingReason']=null,this[_0x5f3af9(0x2d1)](_0x10ba9f));}[_0x64ef4d(0x428)](){const _0x160728=_0x64ef4d;this[_0x160728(0x232)]=null;}[_0x64ef4d(0x4a0)](_0x8c12d9,_0xd1c7e5,_0x426444){const _0x3a6705=_0x64ef4d;this['_disposed']||(_0x426444&&this['_countResend'](_0x426444),this['armAckTimeout'](),this[_0x3a6705(0x515)](_0x8c12d9),this[_0x3a6705(0x457)]=_0x8c12d9['reqId']??this['_reqId'],_0x426444&&this[_0x3a6705(0x25a)](_0x426444,_0xd1c7e5));}['armAckTimeout'](){const _0x1c8954=_0x64ef4d;this['_schedule'](this[_0x1c8954(0x3b5)],_0x1c8954(0x52e));}[_0x64ef4d(0x49f)](_0x5bfda7=_0x64ef4d(0x2df)){this['_schedule'](this['_retryBackoff'],_0x5bfda7);}[_0x64ef4d(0x357)](){const _0x5e0d2d=_0x64ef4d;this[_0x5e0d2d(0x3ed)]=!0x0,this[_0x5e0d2d(0x37a)](),this['_source']=null,this[_0x5e0d2d(0x3b1)]=null;}[_0x64ef4d(0x515)](_0x3e70ac){const _0x5e4017=_0x64ef4d;let _0x400f73=++this['_sendToken'],_0x2eb6f6;try{_0x2eb6f6=this[_0x5e4017(0x4c7)](_0x3e70ac,{'timeout':this['_ackTimeout']});}catch(_0xb917d8){this[_0x5e4017(0x4b1)](_0x400f73,_0xb917d8);return;}_0x2eb6f6 instanceof Promise&&_0x2eb6f6[_0x5e4017(0x2e4)](_0x1fe351=>this[_0x5e4017(0x4b1)](_0x400f73,_0x1fe351));}[_0x64ef4d(0x4b1)](_0x581785,_0x3e0b32){const _0x5c1823=_0x64ef4d;if(this[_0x5c1823(0x3ed)]||_0x581785!==this[_0x5c1823(0x211)])return;let _0x463db9=Vt(_0x3e0b32,this[_0x5c1823(0x4a7)]);_0x463db9!==null&&this[_0x5c1823(0x3ce)](_0x463db9,_0x5c1823(0x461));}[_0x64ef4d(0x3ce)](_0x28012e,_0x5e424e){const _0x49fd9c=_0x64ef4d;this[_0x49fd9c(0x3ed)]||(this[_0x49fd9c(0x37a)](),this[_0x49fd9c(0x3b1)]=null,this[_0x49fd9c(0x4e8)]=_0x28012e,this[_0x49fd9c(0x2b2)]=setTimeout(()=>{const _0x8a56c6=_0x49fd9c;this[_0x8a56c6(0x2b2)]=null,this[_0x8a56c6(0x232)]?this[_0x8a56c6(0x2d1)](_0x5e424e):this[_0x8a56c6(0x3b1)]=_0x5e424e;},_0x28012e));}['_resend'](_0x2fedac){const _0x1dadfe=_0x64ef4d;let _0x24ad9f=this['_source'];if(!_0x24ad9f||this['_disposed'])return;let {changeset:_0x3929a3,unsyncedMutationCount:_0x19b32d}=_0x24ad9f();this[_0x1dadfe(0x388)](_0x2fedac),this[_0x1dadfe(0x369)](),this[_0x1dadfe(0x515)](_0x3929a3),this['_reqId']=_0x3929a3[_0x1dadfe(0x287)]??this[_0x1dadfe(0x457)],this[_0x1dadfe(0x25a)](_0x2fedac,_0x19b32d);}['_countResend'](_0x1dbcff){const _0x3a79d4=_0x64ef4d;this[_0x3a79d4(0x4af)]+=0x1,_0x1dbcff==='should_retry'||_0x1dbcff===_0x3a79d4(0x461)||_0x1dbcff===_0x3a79d4(0x32b)?this[_0x3a79d4(0x4a7)]=this[_0x3a79d4(0x4a7)]===0x0?0x3e8:Math[_0x3a79d4(0x387)](this[_0x3a79d4(0x4a7)]*0x2,0x4e20):_0x1dbcff==='ack_timeout'&&(this[_0x3a79d4(0x3b5)]=Math[_0x3a79d4(0x387)](this[_0x3a79d4(0x3b5)]*0x2,this[_0x3a79d4(0x386)]));}[_0x64ef4d(0x25a)](_0x3d5dda,_0x4d16a3){const _0x80e801=_0x64ef4d;var _0x3c7759,_0x2e3ce7;this[_0x80e801(0x3ed)]||(_0x3c7759=(_0x2e3ce7=this[_0x80e801(0x3d3)])['onResend'])==null||_0x3c7759[_0x80e801(0x35c)](_0x2e3ce7,{'reqId':this[_0x80e801(0x457)],'reason':_0x3d5dda,'attempt':this[_0x80e801(0x4af)],'elapsedMs':this[_0x80e801(0x3ac)],'unsyncedMutationCount':_0x4d16a3,'nextDelayMs':this[_0x80e801(0x3b5)]});}[_0x64ef4d(0x37a)](){const _0x5da074=_0x64ef4d;this[_0x5da074(0x2b2)]!=null&&(clearTimeout(this[_0x5da074(0x2b2)]),this['_timer']=null);}};function Vt(_0x2e0c5f,_0x4b6670){const _0x303e23=_0x64ef4d;if(_0x2e0c5f instanceof _0x5ce617)return null;if(_0x2e0c5f instanceof _0x4b2faf){let _0x47751e=_0x2e0c5f[_0x303e23(0x491)]??0x0;return _0x47751e===0x0||_0x47751e===0x198||_0x47751e===0x1ad||_0x47751e>=0x1f4?Math[_0x303e23(0x3b0)](_0x4b6670,Ht(_0x2e0c5f)):null;}return _0x4b6670;}function Ht(_0x56e770){const _0xc79fd4=_0x64ef4d;var _0x43761a;let _0x256765=(_0x43761a=_0x56e770[_0xc79fd4(0x449)])==null||(_0x43761a=_0x43761a['get'](_0xc79fd4(0x1f2)))==null?void 0x0:_0x43761a[0x0],_0x6dbab6=_0x256765===void 0x0?NaN:Number(_0x256765);return Number['isFinite'](_0x6dbab6)&&_0x6dbab6>0x0?_0x6dbab6*0x3e8:0x0;}function Ut(_0x32eb35){return JSON['stringify'](_0x32eb35)['length'];}let Wt=function(_0x17140e){const _0x2aa54f=_0x64ef4d;return _0x17140e[_0x2aa54f(0x31b)]=_0x2aa54f(0x31b),_0x17140e[_0x2aa54f(0x4a5)]=_0x2aa54f(0x4a5),_0x17140e[_0x2aa54f(0x420)]=_0x2aa54f(0x420),_0x17140e[_0x2aa54f(0x1fe)]='CONFLICT_CACHE_CLEAR_FAILED',_0x17140e[_0x2aa54f(0x26e)]=_0x2aa54f(0x26e),_0x17140e['CLOSE_ROOM']=_0x2aa54f(0x243),_0x17140e['JOIN_ROOM_FAILED']=_0x2aa54f(0x2e6),_0x17140e[_0x2aa54f(0x410)]=_0x2aa54f(0x410),_0x17140e['SOCKET_FAILED']='SOCKET_FAILED',_0x17140e['LICENSE_DOMAIN_REJECTED']=_0x2aa54f(0x47f),_0x17140e[_0x2aa54f(0x256)]='SUBMIT_CHANGESET_TIMEOUT',_0x17140e;}({});var B=class{constructor(){const _0x3c07c9=_0x64ef4d;z(this,_0x3c07c9(0x2dc),new _0x18775b()),z(this,_0x3c07c9(0x3d5),this['_event$']['asObservable']());}['emitEvent'](_0x2f2dc0){const _0x30db81=_0x64ef4d;this[_0x30db81(0x2dc)]['next'](_0x2f2dc0);}},Gt=class{constructor(){const _0x1c6148=_0x64ef4d;z(this,_0x1c6148(0x25f),new _0x18775b()),z(this,'commentUpdate$',this[_0x1c6148(0x25f)][_0x1c6148(0x41e)]());}[_0x64ef4d(0x51d)](_0x265e1e){const _0x1e559f=_0x64ef4d;this[_0x1e559f(0x25f)][_0x1e559f(0x429)](_0x265e1e);}};function V(_0x27eb0d,_0x2ee174){return function(_0x27b5ef,_0xa0b15e){_0x2ee174(_0x27b5ef,_0xa0b15e,_0x27eb0d);};}function H(_0xb0d4b2,_0x21534d,_0x2aa78b,_0x507b34){const _0x52ca80=_0x64ef4d;var _0x424a4d=arguments[_0x52ca80(0x251)],_0x3da5fa=_0x424a4d<0x3?_0x21534d:_0x507b34===null?_0x507b34=Object['getOwnPropertyDescriptor'](_0x21534d,_0x2aa78b):_0x507b34,_0x28ed83;if(typeof Reflect=='object'&&typeof Reflect[_0x52ca80(0x3de)]==_0x52ca80(0x40d))_0x3da5fa=Reflect[_0x52ca80(0x3de)](_0xb0d4b2,_0x21534d,_0x2aa78b,_0x507b34);else{for(var _0x36528c=_0xb0d4b2[_0x52ca80(0x251)]-0x1;_0x36528c>=0x0;_0x36528c--)(_0x28ed83=_0xb0d4b2[_0x36528c])&&(_0x3da5fa=(_0x424a4d<0x3?_0x28ed83(_0x3da5fa):_0x424a4d>0x3?_0x28ed83(_0x21534d,_0x2aa78b,_0x3da5fa):_0x28ed83(_0x21534d,_0x2aa78b))||_0x3da5fa);}return _0x424a4d>0x3&&_0x3da5fa&&Object[_0x52ca80(0x2ca)](_0x21534d,_0x2aa78b,_0x3da5fa),_0x3da5fa;}let Kt=class extends _0x43913d{constructor(_0x1f1a8b){const _0x42d2b1=_0x64ef4d;super(),this[_0x42d2b1(0x3e4)]=_0x1f1a8b,z(this,_0x42d2b1(0x488),new Map()),z(this,_0x42d2b1(0x517),new _0x18775b()),this[_0x42d2b1(0x38a)](_0x276ef3(this['_univerInstanceService'][_0x42d2b1(0x434)](_0x3ec4c0['UNIVER_SHEET'])[_0x42d2b1(0x4f0)](_0x4b6d47(_0x4f30d9=>_0x4f30d9['getUnitId']())),this[_0x42d2b1(0x3e4)][_0x42d2b1(0x434)](_0x3ec4c0[_0x42d2b1(0x25d)])['pipe'](_0x4b6d47(_0x272c56=>_0x272c56[_0x42d2b1(0x44c)]())),this[_0x42d2b1(0x3e4)][_0x42d2b1(0x434)](_0x3ec4c0[_0x42d2b1(0x494)])[_0x42d2b1(0x4f0)](_0x4b6d47(_0x3e4323=>_0x3e4323[_0x42d2b1(0x44c)]())),this[_0x42d2b1(0x3e4)][_0x42d2b1(0x434)](_0x3ec4c0['UNIVER_BASE'])['pipe'](_0x4b6d47(_0x506882=>_0x506882[_0x42d2b1(0x44c)]())))[_0x42d2b1(0x4bd)](_0x267b10=>this[_0x42d2b1(0x255)](_0x267b10)));}[_0x64ef4d(0x3f4)](_0x7620d1){const _0x1a3ebe=_0x64ef4d;return this[_0x1a3ebe(0x488)][_0x1a3ebe(0x41b)](_0x7620d1)?_0x2129d3(this[_0x1a3ebe(0x488)][_0x1a3ebe(0x22d)](_0x7620d1)):this[_0x1a3ebe(0x517)][_0x1a3ebe(0x4f0)](_0x4b6d47(_0x4a8755=>{const _0x127c4=_0x1a3ebe;if(_0x4a8755===_0x7620d1)return this[_0x127c4(0x488)][_0x127c4(0x22d)](_0x4a8755);}));}[_0x64ef4d(0x42b)](_0x2c7ccf,_0x128fe4){const _0x183808=_0x64ef4d;let _0xfd74eb=this[_0x183808(0x488)]['get'](_0x2c7ccf);_0xfd74eb||(_0xfd74eb=new qt(),this[_0x183808(0x488)][_0x183808(0x2f7)](_0x2c7ccf,_0xfd74eb),this[_0x183808(0x517)]['next'](_0x2c7ccf)),_0xfd74eb['updateMember'](_0x128fe4);}[_0x64ef4d(0x35d)](_0x324f8f,_0x512339){const _0x22ff3c=_0x64ef4d;let _0x17ca1f=this[_0x22ff3c(0x488)][_0x22ff3c(0x22d)](_0x324f8f);_0x17ca1f&&_0x17ca1f[_0x22ff3c(0x35d)](_0x512339);}['getRoom'](_0x51ee96){const _0x53f085=_0x64ef4d;return this[_0x53f085(0x488)][_0x53f085(0x22d)](_0x51ee96);}[_0x64ef4d(0x372)](_0x509a8e,_0x42aca1){const _0x5b5345=_0x64ef4d;let _0x48b1c9=this[_0x5b5345(0x488)][_0x5b5345(0x22d)](_0x509a8e);if(_0x48b1c9)return _0x48b1c9['getMember'](_0x42aca1);}[_0x64ef4d(0x255)](_0x3177b4){const _0x450713=_0x64ef4d;let _0x35cf49=this[_0x450713(0x488)]['get'](_0x3177b4);_0x35cf49&&(_0x35cf49[_0x450713(0x357)](),this[_0x450713(0x488)][_0x450713(0x209)](_0x3177b4));}[_0x64ef4d(0x357)](){const _0xe69a4b=_0x64ef4d;this[_0xe69a4b(0x488)][_0xe69a4b(0x3c3)](_0x3a5c33=>_0x3a5c33[_0xe69a4b(0x357)]()),this['_roomMembers']['clear'](),this['_roomCreated$'][_0xe69a4b(0x46f)]();}};Kt=H([V(0x0,_0xde2491)],Kt);var qt=class extends _0x43913d{constructor(..._0x46b858){const _0x404762=_0x64ef4d;super(..._0x46b858),z(this,_0x404762(0x399),new Map()),z(this,_0x404762(0x310),new _0x205351(this[_0x404762(0x399)])),z(this,_0x404762(0x274),this[_0x404762(0x310)][_0x404762(0x41e)]());}['dispose'](){const _0x5d6d59=_0x64ef4d;this['_members'][_0x5d6d59(0x4e0)](),this[_0x5d6d59(0x310)][_0x5d6d59(0x46f)]();}[_0x64ef4d(0x42b)](_0xc1d8e2){const _0x438a21=_0x64ef4d;this['_members'][_0x438a21(0x2f7)](_0xc1d8e2[_0x438a21(0x2de)],_0xc1d8e2),this[_0x438a21(0x521)]();}[_0x64ef4d(0x35d)](_0xb2fa77){const _0x30e255=_0x64ef4d;this[_0x30e255(0x399)][_0x30e255(0x209)](_0xb2fa77),this['_emitMembers']();}['getMember'](_0xb77575){const _0x2b2388=_0x64ef4d;return this['_members'][_0x2b2388(0x22d)](_0xb77575);}[_0x64ef4d(0x281)](){const _0x3eb08f=_0x64ef4d;return Array[_0x3eb08f(0x3b9)](this[_0x3eb08f(0x399)][_0x3eb08f(0x393)]());}[_0x64ef4d(0x521)](){const _0x424157=_0x64ef4d;this[_0x424157(0x310)][_0x424157(0x429)](this[_0x424157(0x399)]);}};function Jt(_0x49a328,_0x29408e){const _0x566cbd=_0x64ef4d;if(Xt(_0x49a328))return _0x29408e;if(_0x29408e['eventID']===_0xacdc36[_0x566cbd(0x265)]){let _0x492f9a=tn(_0x49a328),_0x3d13da=_0x29408e;return{..._0x3d13da,'data':{..._0x3d13da[_0x566cbd(0x4e5)],'unitID':_0x49a328[_0x566cbd(0x216)][_0x566cbd(0x339)],'unitType':_0x49a328[_0x566cbd(0x216)][_0x566cbd(0x332)]??_0x3d13da[_0x566cbd(0x4e5)]['unitType'],'changeset':_0x492f9a[_0x566cbd(0x4e7)](_0x3d13da[_0x566cbd(0x4e5)]['changeset'],nn(_0x49a328))}};}if(_0x29408e[_0x566cbd(0x500)]===_0xacdc36[_0x566cbd(0x4c5)]){let _0x3ba296=_0x29408e;return{..._0x3ba296,'data':{..._0x3ba296[_0x566cbd(0x4e5)],'unitID':_0x49a328[_0x566cbd(0x216)][_0x566cbd(0x339)],'unitType':_0x49a328[_0x566cbd(0x216)]['unitType']??_0x3ba296[_0x566cbd(0x4e5)][_0x566cbd(0x332)]}};}return _0x29408e;}function Yt(_0x19522f,_0x443dba){const _0x54a7f5=_0x64ef4d;if(Xt(_0x19522f))return[_0x443dba];switch(_0x443dba[_0x54a7f5(0x500)]){case _0xacdc36[_0x54a7f5(0x23d)]:return[Zt(_0x19522f,_0x443dba)];case _0xacdc36[_0x54a7f5(0x3b8)]:return[$t(_0x19522f,_0x443dba)];case _0xacdc36[_0x54a7f5(0x391)]:return[Qt(_0x19522f,_0x443dba)];default:return[_0x443dba];}}function Xt(_0x16bd43){const _0x377005=_0x64ef4d;return _0x16bd43[_0x377005(0x216)][_0x377005(0x51e)]==null&&_0x16bd43['target'][_0x377005(0x339)]===_0x16bd43['localUnitId']&&!_0x16bd43[_0x377005(0x4ea)];}function Zt(_0x1580c9,_0x5312bb){const _0xa850bb=_0x64ef4d;return{..._0x5312bb,'data':_0x26d18b(en(_0x1580c9,_0x44a77b(_0x5312bb[_0xa850bb(0x4e5)])))};}function Qt(_0x3f9c74,_0x7b4f9b){const _0x187ea1=_0x64ef4d;return{..._0x7b4f9b,'data':en(_0x3f9c74,_0x7b4f9b[_0x187ea1(0x4e5)])};}function $t(_0x466e78,_0x523af4){const _0x2558fe=_0x64ef4d;let _0x39ba0c=_0x523af4[_0x2558fe(0x4e5)];return{..._0x523af4,'data':{..._0x39ba0c,'changesets':_0x39ba0c[_0x2558fe(0x364)][_0x2558fe(0x48a)](_0x1736e9=>_0x26d18b(en(_0x466e78,_0x44a77b(_0x1736e9))))}};}function en(_0x3ccf37,_0x3666f3){const _0x494d2f=_0x64ef4d;return tn(_0x3ccf37)[_0x494d2f(0x1fa)](_0x3666f3,nn(_0x3ccf37));}function tn(_0x288c88){const _0x15c2ae=_0x64ef4d;if(!_0x288c88['changeset'])throw Error(_0x15c2ae(0x48c));return _0x288c88[_0x15c2ae(0x4ea)];}function nn(_0x211685){const _0xa8be4e=_0x64ef4d;return{'localUnitId':_0x211685[_0xa8be4e(0x3ad)],'unitType':_0x211685[_0xa8be4e(0x332)],'target':_0x211685[_0xa8be4e(0x216)]};}let rn=function(_0x4f0216){const _0x511ab9=_0x64ef4d;return _0x4f0216[_0x4f0216[_0x511ab9(0x3ef)]=0x0]=_0x511ab9(0x3ef),_0x4f0216[_0x4f0216[_0x511ab9(0x3d9)]=0x1]=_0x511ab9(0x3d9),_0x4f0216[_0x4f0216[_0x511ab9(0x416)]=0x2]='OFFLINE',_0x4f0216[_0x4f0216['ONLINE']=0x3]='ONLINE',_0x4f0216;}({});const an={[_0x46e02a[_0x64ef4d(0x375)]]:'session.join-failed',[_0x46e02a[_0x64ef4d(0x497)]]:_0x64ef4d(0x463),[_0x46e02a[_0x64ef4d(0x3bd)]]:_0x64ef4d(0x1fb),[_0x46e02a[_0x64ef4d(0x1f0)]]:'session.room-permission-denied',[_0x46e02a[_0x64ef4d(0x2fb)]]:_0x64ef4d(0x331)};let on=class extends _0x3f9f03{get[_0x64ef4d(0x2c7)](){const _0x5c999b=_0x64ef4d;return this[_0x5c999b(0x4e6)][_0x5c999b(0x27e)]();}constructor(_0xeedf34,_0x18a48c,_0x1f4ee9,_0x582bca,_0x2ac47f,_0x2ad3c0,_0x371a57){const _0x4c0792=_0x64ef4d;super(),this['_identity']=_0xeedf34,this['_logService']=_0x1f4ee9,this[_0x4c0792(0x3f8)]=_0x582bca,this['_commentService']=_0x2ac47f,this[_0x4c0792(0x3a2)]=_0x2ad3c0,this[_0x4c0792(0x247)]=_0x371a57,z(this,_0x4c0792(0x4e6),new _0x205351(0x0)),z(this,'sessionStatus$',this[_0x4c0792(0x4e6)]['asObservable']()),z(this,'_event$',new _0x18775b()),z(this,'event$',this[_0x4c0792(0x2dc)]['asObservable']()),z(this,_0x4c0792(0x3ba),void 0x0),z(this,_0x4c0792(0x4b0),void 0x0),z(this,_0x4c0792(0x334),!0x1),z(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x18a48c[_0x4c0792(0x4f0)](_0x2cfbbb(this[_0x4c0792(0x4b4)]))[_0x4c0792(0x4bd)](_0x2ff472=>{const _0x9dcb8e=_0x4c0792;if(_0x2ff472!==void 0x0){if(this[_0x9dcb8e(0x3ba)]=_0x2ff472,_0x2ff472)this[_0x9dcb8e(0x4f1)](_0x2ff472),this[_0x9dcb8e(0x4b0)]=_0x2ff472['message$'][_0x9dcb8e(0x4bd)](_0x5ab7cd=>{const _0x5f348f=_0x9dcb8e;_0x5ab7cd['routeKey']===this['_identity']['target'][_0x5f348f(0x339)]&&this[_0x5f348f(0x437)](_0x5ab7cd);});else{var _0x57aa58;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x9dcb8e(0x4e6)][_0x9dcb8e(0x429)](0x2),(_0x57aa58=this[_0x9dcb8e(0x4b0)])==null||_0x57aa58['unsubscribe'](),this[_0x9dcb8e(0x4b0)]=null;}}});}[_0x64ef4d(0x290)](){const _0x3b248e=_0x64ef4d;var _0x52636c;return((_0x52636c=this['_socket'])==null?void 0x0:_0x52636c[_0x3b248e(0x2de)])??null;}[_0x64ef4d(0x357)](){const _0x48361f=_0x64ef4d;super['dispose'](),this[_0x48361f(0x45b)](),this[_0x48361f(0x4b4)]['next'](),this[_0x48361f(0x4b4)]['complete']();}[_0x64ef4d(0x45b)](){const _0x695733=_0x64ef4d;var _0x5e4aaa;this[_0x695733(0x41d)](),(_0x5e4aaa=this['_socket'])==null||_0x5e4aaa[_0x695733(0x441)]({'cmd':_0x399e6c[_0x695733(0x432)],'data':{'roomID':this['_identity']['target']['unitId']}}),this[_0x695733(0x2dc)]['complete'](),this[_0x695733(0x4e6)][_0x695733(0x46f)]();}[_0x64ef4d(0x437)](_0x3f1ffc){const _0x3b726e=_0x64ef4d;_0x3f1ffc[_0x3b726e(0x228)]===_0x399e6c[_0x3b726e(0x484)]?this[_0x3b726e(0x37e)](_0x3f1ffc):_0x3f1ffc[_0x3b726e(0x228)]===_0x399e6c[_0x3b726e(0x1f7)]&&this[_0x3b726e(0x4c6)](_0x3f1ffc);}[_0x64ef4d(0x4f1)](_0xfe5ce3){const _0x20ad5e=_0x64ef4d;this[_0x20ad5e(0x4e6)]['next'](0x1),_0xfe5ce3[_0x20ad5e(0x441)]({'cmd':_0x399e6c[_0x20ad5e(0x484)],'routeKey':this[_0x20ad5e(0x252)][_0x20ad5e(0x216)][_0x20ad5e(0x339)],'routeType':'','data':{'rooms':[{'roomID':this[_0x20ad5e(0x252)][_0x20ad5e(0x216)][_0x20ad5e(0x339)]}]}});}['_onJoinRoomEvent'](_0x4a92e5){const _0x5e90de=_0x64ef4d;var _0x163eda;if(_0x4a92e5[_0x5e90de(0x3d0)]in an){this['_collaborationUIEventService'][_0x5e90de(0x2c0)]({'id':_0x5e90de(0x2e6),'data':an[_0x4a92e5[_0x5e90de(0x3d0)]]}),this[_0x5e90de(0x4e6)]['next'](0x2);return;}this[_0x5e90de(0x4e6)][_0x5e90de(0x429)](0x3);let _0x36a1e4=(_0x163eda=_0x4a92e5[_0x5e90de(0x4e5)][_0x5e90de(0x3d4)][this[_0x5e90de(0x252)]['target'][_0x5e90de(0x339)]])==null?void 0x0:_0x163eda['members'];_0x36a1e4&&_0x36a1e4[_0x5e90de(0x3c3)](_0x308946=>this[_0x5e90de(0x3f8)]['updateMember'](this[_0x5e90de(0x252)]['localUnitId'],_0x308946));}[_0x64ef4d(0x4c6)](_0x97a11b){const _0x14dc81=_0x64ef4d;try{let _0x3913ed=Yt(this['_identity'],_0x97a11b['data']);for(let _0x176768 of _0x3913ed)switch(_0x176768['eventID']){case _0xacdc36[_0x14dc81(0x4c1)]:this[_0x14dc81(0x2f9)](_0x176768),this['_event$'][_0x14dc81(0x429)](_0x176768);break;case _0xacdc36['USERS_LEAVE']:this[_0x14dc81(0x2ee)](_0x176768),this[_0x14dc81(0x2dc)][_0x14dc81(0x429)](_0x176768);break;case _0xacdc36[_0x14dc81(0x28b)]:case _0xacdc36[_0x14dc81(0x391)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x14dc81(0x2dc)]['next'](_0x176768);break;case _0xacdc36['MSG_FOR_ERROR']:this[_0x14dc81(0x4d6)][_0x14dc81(0x2d5)](_0x14dc81(0x2bd)+JSON[_0x14dc81(0x398)](_0x176768)),this['_event$'][_0x14dc81(0x429)](_0x176768);break;case _0xacdc36['COMMENT_UPDATE']:this[_0x14dc81(0x35b)][_0x14dc81(0x51d)](_0x176768[_0x14dc81(0x4e5)]),this[_0x14dc81(0x2dc)][_0x14dc81(0x429)](_0x176768);break;default:this[_0x14dc81(0x2dc)][_0x14dc81(0x429)](_0x176768);}}catch(_0x31f52d){this[_0x14dc81(0x4d6)]['error'](_0x31f52d,_0x97a11b);}}[_0x64ef4d(0x2f9)](_0x9d81b7){const _0x52457c=_0x64ef4d;this['_memberService'][_0x52457c(0x42b)](this[_0x52457c(0x252)][_0x52457c(0x3ad)],_0x9d81b7[_0x52457c(0x4e5)]);}['_onUserLeave'](_0x7474a4){const _0x4f5ebf=_0x64ef4d;this[_0x4f5ebf(0x3f8)][_0x4f5ebf(0x35d)](this[_0x4f5ebf(0x252)][_0x4f5ebf(0x3ad)],_0x7474a4[_0x4f5ebf(0x4e5)][_0x4f5ebf(0x2de)]);}async[_0x64ef4d(0x441)](_0x1084ff,_0x1b0483,_0xf267c9){const _0x5be71d=_0x64ef4d;if(this[_0x5be71d(0x2c7)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x3d2a74=Jt(this[_0x5be71d(0x252)],_0x1084ff);_0x3d2a74[_0x5be71d(0x500)]===_0xacdc36['SUBMIT_CHANGESET']&&this['_startTelemetryCollaborationNewChangeset'](_0x3d2a74);let _0xd26a12={'cmd':_0x399e6c[_0x5be71d(0x476)],'routeKey':this[_0x5be71d(0x252)][_0x5be71d(0x216)][_0x5be71d(0x339)],'routeType':'','data':_0x3d2a74};return _0xf267c9===void 0x0?this[_0x5be71d(0x3ba)][_0x5be71d(0x441)](_0xd26a12):this[_0x5be71d(0x3ba)][_0x5be71d(0x441)](_0xd26a12,_0xf267c9);}catch(_0x3d7a26){this[_0x5be71d(0x4d6)]['error'](_0x3d7a26);}}[_0x64ef4d(0x2b6)](_0x12609c){const _0xdec70=_0x64ef4d;if(!this[_0xdec70(0x334)])return;let {data:_0x2df9b0}=_0x12609c,{unitID:_0x2f4fa7,changeset:_0x598d69}=_0x2df9b0,{mutations:_0x43e09b,type:_0x46557a}=_0x598d69;this[_0xdec70(0x2aa)]={'unitId':_0x2f4fa7,'type':_0x46557a,'startTime':performance[_0xdec70(0x4b7)](),'stopTime':0x0,'duration':0x0,'size':Ut(_0x43e09b)};}[_0x64ef4d(0x52a)](){const _0x2abbda=_0x64ef4d;this[_0x2abbda(0x334)]&&(this['_telemetryInfo']?(this[_0x2abbda(0x2aa)]['stopTime']=performance[_0x2abbda(0x4b7)](),this['_telemetryInfo'][_0x2abbda(0x46b)]=this[_0x2abbda(0x2aa)][_0x2abbda(0x44d)]-this[_0x2abbda(0x2aa)]['startTime'],this[_0x2abbda(0x247)][_0x2abbda(0x39c)]('collaboration_new_changeset',this[_0x2abbda(0x2aa)]),this[_0x2abbda(0x2aa)]=null):this[_0x2abbda(0x4d6)][_0x2abbda(0x2d5)](_0x2abbda(0x444),_0x2abbda(0x4d0)));}[_0x64ef4d(0x41d)](){const _0x4ac26a=_0x64ef4d;this[_0x4ac26a(0x2aa)]=null;}};on=H([V(0x2,_0x1a4744),V(0x3,_0x12abaf(Kt)),V(0x4,_0x12abaf(Gt)),V(0x5,_0x12abaf(B)),V(0x6,_0x4c5a46(_0x34ba5d))],on);const U=_0x4d466b(_0x64ef4d(0x30b));function sn(_0x3dd3c3,_0x1c101f){const _0x3795ef=_0x64ef4d;return _0x1c101f===''||_0x1c101f==null?_0x3795ef(0x474)+_0x3dd3c3:_0x3795ef(0x474)+_0x3dd3c3+'-'+encodeURIComponent(_0x1c101f);}function cn(_0x368cc4){const _0x380aee=_0x64ef4d;let {unitID:_0x201cf8,mutations:_0xbffc1f}=_0x368cc4;return{'unitId':_0x201cf8,'subUnitId':_0xbffc1f[_0x380aee(0x251)]>0x0?_0xbffc1f[0x0][_0x380aee(0x4f6)][_0x380aee(0x3ca)]:null};}let ln=class{constructor(_0x403cc6,_0x51b1eb,_0x426d8e){const _0x3e6d6c=_0x64ef4d;this[_0x3e6d6c(0x32a)]=_0x403cc6,this[_0x3e6d6c(0x48f)]=_0x51b1eb,this[_0x3e6d6c(0x4a9)]=_0x426d8e;}[_0x64ef4d(0x4d4)](_0xa2eb14){const _0x1d1661=_0x64ef4d;var _0x11ece9,_0xc6b26b;let _0x53f4dc=this[_0x1d1661(0x32a)][_0x1d1661(0x22d)](_0x26224a),{unitId:_0xd3ccc0,subUnitId:_0x5d0ffe}=cn(_0xa2eb14),_0xd704d6=_0x53f4dc==null?void 0x0:_0x53f4dc[_0x1d1661(0x459)](_0xd3ccc0)[_0x1d1661(0x2cd)](),_0x3c63e6=(_0x11ece9=this['_instanceService']['getUnit'](_0xd3ccc0))==null||(_0x11ece9=_0x11ece9[_0x1d1661(0x451)]())==null?void 0x0:_0x11ece9[_0x1d1661(0x2ad)]();if(_0xd704d6[_0x1d1661(0x251)]===0x0||!_0xd3ccc0||!_0x5d0ffe)return;let _0x233005=[{'id':_0x206cc2['id'],'params':{'unitId':_0xd3ccc0,'subUnitId':_0x3c63e6,'selections':_0x29d202['deepClone'](_0xd704d6)}}],_0x10cc8d=this[_0x1d1661(0x48f)][_0x1d1661(0x30f)](_0xa2eb14,_0x233005);if(!_0x1b0102(_0x10cc8d))throw _0x10cc8d[_0x1d1661(0x2d5)];let _0x934aa2=(_0xc6b26b=_0x10cc8d[_0x1d1661(0x2e0)][0x0])==null||(_0xc6b26b=_0xc6b26b[_0x1d1661(0x4f6)])==null?void 0x0:_0xc6b26b['selections'];if(Array[_0x1d1661(0x246)](_0x934aa2)&&_0x934aa2[_0x1d1661(0x251)]){if(_0x934aa2[_0x1d1661(0x251)]===_0x233005[0x0]['params'][_0x1d1661(0x277)][_0x1d1661(0x251)]&&_0x934aa2[_0x1d1661(0x2f2)]((_0x246f8f,_0xf84660)=>_0x250b4d[_0x1d1661(0x4db)](_0x246f8f[_0x1d1661(0x4b6)],_0x233005[0x0][_0x1d1661(0x4f6)][_0x1d1661(0x277)][_0xf84660][_0x1d1661(0x4b6)])))return;this[_0x1d1661(0x32a)]['get'](_0x59a890)[_0x1d1661(0x4bf)](_0x206cc2['id'],{'unitId':_0xd3ccc0,'subUnitId':_0x3c63e6,'selections':_0x934aa2});}}};ln=H([V(0x0,_0x12abaf(_0x1f4ba8)),V(0x1,_0x2f82dd),V(0x2,_0xde2491)],ln);function _0x3e00(){const _0x119c93=['_waitForHeartbeatResponse','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','csRejEvent','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','send','editing\x20status\x20changed\x20to','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','[CollaborationSession]','_submitChangeset','NO_OTHER_CLIENTS_EDITING','UnitEmbedded','\x20to\x20','headers','subType','onRemoteChangeset','getUnitId','stopTime','_clearScheduledTask','csShouldRetryEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getActiveSheet','_changesetResend$','fetchMissingChangesets','[DataLoaderService]','getAttachmentUrl','offline','_reqId','writeCursor','getWorkbookSelections','[AwaitingWithPendingState]','close','[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.','collaboration-client.auth.needGotoLoginAlert','isNoop','initWorkbookPermissionChange','_onRemoteRetry','request_failed','_loadUnit','session.room-full','getCurrentUser','onRemoteAck','_acknowledgedAwaitingRevision','/role','_transitionLocked','CHANGESET_REJ','transformUndoRedo','duration','parse','fetching\x20missing\x20changesets\x20from\x20','createCollaborator','complete','unit','slice','session','_transit','unit-cache-','size','INGEST','RETAIN','joinRsp','[PendingState]:\x20received\x20rejection.','objectType','getImageSourceCache','location','getPath','entries','LICENSE_DOMAIN_REJECTED','signUrlServerUrl','_createHandler','SHOULD_CLOSE_CONN','accept','JOIN','liveShareNewHost','_firstSentAt','resent\x20changeset\x20','_roomMembers','Slide','map','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','onRemoteRej','collaboratorID','_transformService','saveImage','status','People','symbol','UNIVER_BOARD','_initCloseConn','_scheduleCompleteTimestamp','JOIN_ROOM_FULL','rev','getLatestCsReqIdBySid','disableLocalCache','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','enableOfflineEditing','src','toPrimitive','requestRetry','submit','roles','close$','22941BcrssQ','_initMergeInterceptor','PERMISSION_DENIED','keys','_retryBackoff','_getCurrentRevision','_instanceService','_initRequestHeader','_executeRemoteChangeset','_entityInit$','_rebaseUnchangedAttributes','Univer','_attempt','_socketMessageSubscription','_onRequestFailed','refreshUnit','getUploadOptions','dispose$','_submitter','range','now','reverse','14TWpaqD','_disableEditing','_redoStacks','_dropAcknowledgedAwaiting','subscribe','resourceIDs','executeCommand','downloadEndpointUrl','USERS_ENTER','onload','charCodeAt','_updateStatus','FETCH_MISSING','_onRecvEvent','_send','loadSheet','getCollabEntities','_status$','incrementRevOfUnit','/object/','Document','loadDoc','RemoteChangesetApplyError','telemetry\x20info\x20is\x20not\x20initialized','userID','onTransformIME','routeKey','transformSelections','_remoteChangesetQueue','_logService','OPTIONAL','trim','_createInitialState','entityInit$','equals','UPDATE_CURSOR','?size=','traverse','conflict','clear','_transformRemoteChangesetByIMECache','_getSendChangesetTimeout','copyFileMeta','_onLocalMutation','data','_sessionStatus$','toRemote','_nextDelay','_now','changeset','interceptor','resolveUnit','getCollabEntity','onPrepareTransformSelections','authzUrl','pipe','_joinRoom','resend','reduce','_onConnectionFailed','timeoutTimer','params','changesetResend$','origin','_socketChannels','text-x','file','candidateSocket','_changesetSessionId','_handler','requireSession','eventID','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_networkConditionService','_httpService','_requestMissingChangesets','LOCAL_CACHE_INTERVAL','UNIVER_BASE','url','AWAITING','columnGroups','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','loadPdf','SOCKET_FAILED','_unsyncedMutationCount','backupOfflineData','_syncEditingCollabCursor','[CollaborationSessionService]:\x20socket\x20error','transformChangesets','LIVESHARE_REQUEST_HOST','ignored\x20remote\x20changeset\x20of\x20revision\x20','collaborators','_deliver','179013XJFAgD','_roomCreated$','revision','Failed\x20to\x20update\x20permission\x20point','4BwuJEi','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_conflictInfoFromError','onCommentUpdate','endpoint','Workbook','DEFAULT_FILE_NAME','_emitMembers','_transformAndApply','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','commentUpdateEvent','encode','c2Prime','ignored\x20rejection.','_collaborationPaused','_closedUnits','_stopTelemetryCollaborationNewChangeset','_getUndoStack','paragraph','UUID','ack_timeout','clearUnit','_replayCachedMutations','setCfgEnableObjInherit','updateCursorEvent','cfgEnableObjInherit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','pluginName','saveAttachment','_docStateChangeManagerService','JOIN_ROOM_PERMISSION_DENIED','_sendingTimer','retry-after','_prepareTransformSelections','getConfig','hasOwnProperty','permission_rejected','RECV','onRemoteRetry','action','toLocal','session.room-not-exists','_exhaustRemoteChangesetQueue','LIVESHARE_OPERATION','CONFLICT_CACHE_CLEAR_FAILED','createSocket','_compressMutationService','_undoStacks','object','[CollaborationState]:\x20apply\x20error!','saveSnapshot','changeset_rejected','updatePermissionPoint','[CollaborationEntity]','apply_failed','delete','_updateUnitPermissionPoint','_getSocketChannel','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','RETRY_CONNECTING_MAX_COUNT','_transformStack','_pendingMutations','_getUploadFileURL','_sendToken','Board','includes','_snapshotService','registerHTTPInterceptor','target','patch','onTransformSelections','iterator','__Key__','85918xAYEeB','_entities','connectionAttempt','ERROR_IMAGE_TYPE','push','\x20in\x20_schedule.','title','_createSocket','conflict$','_clearHeartbeatTimer','getSnapshotAPIPath','_localCacheService','oldBody','cmd','writeAtPath','FETCH_MISS','UNIVER_PDF','_commandService','get','maxSize','number','_type','findIndex','_source','/universer-api/authz','6776934sOaOcP','attachment','allowed','onTransformRemoteChangesetByIMECache','avatar','_detachSubmitter','loginUrlKey','_prepareConflictRecovery','_collaborationSessionService','NEW_CHANGESETS','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','maxAckTimeout','_clearRedo','_pendingSessions','_imageSourceCache','CLOSE_ROOM','append','getUnitOnRev','isArray','_telemetryService','_onRemoteChangeset','_showConflictProcessingNotification','_permissionService','_transformStateCache','submitting\x20changeset\x20','reconnect','applied','fromCharCode','put','length','_identity','_resolveSessionIdentity','fetchMiss','_removeRoom','SUBMIT_CHANGESET_TIMEOUT','sort','responseType','license_unit_type_rejected','_notifyResend','HELLO','_isAckOfAwaitingChangeset','UNIVER_DOC','110imjoFX','_commentUpdate$','ackTimeout','encrypt','_transformRemoteChangesetByStateCache','_unitLoaded$','_incrementRevisionNumber','SUBMIT_CHANGESET','Response','collaMsg','failed\x20to\x20apply\x20missed\x20changesets!','SYNCED','_init','onConflict','_sessionChannels','putCollaborators','CONFLICT','_snapshotServerService','onLocalMutation','appendMutation','getCurrentRevOfUnit','{fileID}','members$','PENDING','_getAPIPrefix','selections','REPLACE','transform_failed','5316755kSwzvA','saveChangeset','result','socketSubscription','getValue','name','_toPending','getAllMembers','[UniverCollaborationClientPlugin]','_tryReconnect','getDeserializedSheetBlock','/universer-api/oidc/authpage','handshakeTimer','reqId','awaiting','localChanges','onMissing','CHANGESET_ACK','objectID','COMPRESS_MUTATION_APPLY','_sheetTransformSelectionsService','state','getMemberID','_createSession','UNIVER_SLIDE','missing','onRemoteRevert','getUnit','&source=','_filterTableActions','then','?url=','/universer-api/uniscript','_eventService','_classifyRemoteChangeset','onTransformRemoteChangesetByStateCache','onChangesetResend','_rejectionInfo','_classifyAck','echo','7ZhxfsU','fetchThroughInterceptors','readAsDataURL','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','open$','readyForCollab','RemoteRevertError','isCompositionEnd','_telemetryInfo','[FetchMissState]','some','getSheetId','MUTATION','unitID','objectPermissionTypes','coverType','_timer','connection\x20error','/fetchmissing?from=','_cfgEnableObjInherit','_startTelemetryCollaborationNewChangeset','_getUnitPermissionPoints','toString','_transformIMECache','/-/object/-/batch_allowed','LIVESHARE_TERMINATE','startsWith','save\x20fail\x20reason\x20is\x20','COMPRESS_MUTATION_SEND','enableAuthServer','emitEvent','_localeService','confirm','shouldCloseConn','_clearRetryConnectingTimer','override','upload','sessionStatus','PERSON','_transformHistoryMutations','defineProperty','isPermissionRej','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','getCurrentSelections','_socketService','permissionRejEvent','csAckEvent','_resend','maxChangesetAckTimeout','applyError','\x20at\x20revision\x20','error','onTransformState','unitDisposed$','onMutationExecutedForCollab','add','INSERT','_createInitialStateImpl','_event$','_userManagerService','memberID','should_retry','m2Prime','status$','localCacheService','info','catch','endpointKey','JOIN_ROOM_FAILED','_fetchMissChangesets','retryCount','UPDATE_PERMISSION_OBJ','_queuedRemoteChangesets','_handleRemoteChangesets','collabWebSocketUrl','/universer-api/comb','_onUserLeave','isObject','_getConfig','_change$','every','body','univer-pro.collaboration-client-adapter-service','onMissingChangesets','liveShareOperation','set','Error\x20on\x20receiving\x20event','_onUserJoin','_initUnitPermissionChange','GLOBAL_ROOMS_CNT_EXCEEDS','setConfig','loadUnit','stream','workbook','_registerDependencies','_doCreateSocket','_revisionService','batchAllowed','LICENSE_UNIT_TYPE_REJECTED','message','_getAPIPrefixPath','/universer-api/snapshot/','_unlockTransition','rollback','UNISCRIPT_RUN','collaboration-client.local-cache-service','online$','replace','string','transformMutationsWithChangeset','_members$','revert','[CollaborationSocketService]','/rev/','updatePermissionObjEvent','collaboration-client.config','update','readCursor','_isEchoedAwaitingChangeset','_loadSnapshot','1.3.0','OTHER_CLIENT_EDITING','[OfflineState]','base-ui.attachment-io.service','_state$','__splitChunk__','hasWritePending','closed','_updateState','13tAhwZn','_dispatchRemoteChangeset','setShowComponents','ignored\x20acknowledgement\x20of\x20revision\x20','actions','_hasSessionsForEndpoint','/object','_injector','license_editing_connections_exceeded','baseRev','1314780JwLQdX','pending','_listenToNetworkCondition','/resources','session.room-cnt-exceeds','unitType','createInstance','_shouldReportTelemetry','_onLicenseRejected','loadBoard','remote_revert','_awaitingChangeset','unitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onRemoteACK','socketReady','LIVESHARE_FETCH_OPERATIONS','fetch_missing','getFocusedUnit','init','_clearUndo',',\x20attempt\x20','listCollaborators','getImage','_rebaseParagraphHistory','USERS_LEAVE','[SyncedState]:\x20received\x20rejection.','_refreshUnitPermission','unsubscribe','pauseCollaboration','Base','deepClone','startIndex','_changesetReqId','getResourcesRequest','unitInfo$','_configService','_createChangesetSubmitter','_getDownloadEndpointURL','_rescheduleHeartbeat','reason','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose','withCredentials','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_applyRemoteChangeset','_commentService','call','removeMember','loadOfflineData','filter','snapshotServerUrl','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_handlerCallback','UNIVER_SHEET','changesets','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','version','ERROR_EXCEED_SIZE','constructor','armAckTimeout','_acknowledgeAwaitingIfReady','paragraphId','fromCollab','/unit/','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','create','_startCollaboration','textRanges','getMember','getSheetBlock','_toggleOnline','FAIL','getTime','_undoRedoService','&assign=','sessionStatus$','_clearTimer','online','commit','joinEvent','_onJoinRoomEvent','prototype','encodeURIComponent','onMissedChangesetFetched','synced','socketService','refreshPermission','_onMessage','_maxAckTimeout','min','_countResend','getCollabEntity$','disposeWithMe','_singleActiveUnitService','/universer-api/snapshot','_unitInfo$','supports','type','onSyncEditingCollabCursor','CHANGESET_SHOULD_RETRY','saveSheetBlock','values','/collaborator','focused$','LICENSE_EDITING_CONNECTIONS_EXCEEDED','docStateChange$','stringify','_members','_getLoginPath','_clearTimeoutTimer','capture','changesetAckTimeout','/allowed','updateSnapshot','attempt','len','_collaborationUIEventService','timeout','COLLABORATION_ENDPOINT_INVALID','socket$','uploadFileServerUrl','c1Prime','_getSignURL','_transformSelections','sendHeartbeatTimer','endsWith','elapsedMs','localUnitId','packageName','debug','max','_pendingReason','originalMeta','addImageSourceCache','/universer-api/file/{fileID}/sign-url','_ackTimeout','loadBase','/universer-api/stream/file/upload','PSEUDO_FETCH_MISSING_RESULT','from','_socket','splice','editingUnit','JOIN_ROOM_NOT_EXISTS','tableSource','toggleOnline','POST','updateOfflineData','objectId','forEach','retryConnectingTimer','x-univer-host','_conflict$','_substituteUndoStack','objects','[PendingState]:\x20unhandled\x20univer\x20type:\x20','subUnitId','localeService','paragraphs','_state','_schedule','getInterceptPoints','code','_adapter','getTypeOfUnitAdded$','_options','roomInfos','event$','deleteProperty','_tryEnsureSocket','_onConnectionOpen','JOINING','mutations','PERMISSION_REJ','_transformAndApplyRemoteChangeset','post','decorate','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getAllPermissionPoint','_waitCount','floor','error$','_univerInstanceService','LIVESHARE_NEW_HOST','newCsEvent','setWaitCount','HTTP\x20','onlyLocal','apply','_lockTransition','toggleOffline','_disposed','unitId\x20is\x20not\x20found','IDLE','addHandlerCallback','_decreaseWaiting','[CollaborationSessionService]','@univerjs-pro/collaboration-client','waitForRoom$','FileId','_HTTPService','_clearHandshakeTimer','_memberService','_onOffline','hostname','4648mPSHui','ERROR_IMAGE','onSendChangeset','requestParams','UNIVER_COLLABORATION_CLIENT_PLUGIN','awaitingChangeset','clearOfflineData','_sessions','_retryReason','_acknowledgeAwaiting','[CollaborationUndoRedoService]','_toSynced','stale','reject','_getCtorByUniverInstanceType','ack_of_awaiting','find','bind','function','sid','missingChangesets','SOCKET_FAILED_RETRY','_initDependencies','[PendingState]:\x20received\x20acknowledgement.','_disposeSubmitter','getUnitType','onApply','OFFLINE','HEARTBEAT_TIMEOUT','ignored\x20stale\x20ack\x20of\x20revision\x20','_updateLocalCache','MSG_FOR_ERROR','has','state$','_throwTelemetryCollaborationNewChangeset','asObservable','subject','CONFLICT_PROCESSING','_onConflict','_authzIoService','unknown','_remoteRevertInfo','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','compose','/block/','unbind','next','awaiting_with_pending','updateMember','_config','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','&to=','socket\x20open.','HEARTBEAT','transformStack\x20failed!','LEAVE','9877764qYpWqW','getTypeOfUnitDisposed$','list','onStarting','_onCombEvent','_onFetchMissResult','blockRanges','SUCCUSS','AWAITING_WITH_PENDING','OTHER_CLIENTS_EDITING'];_0x3e00=function(){return _0x119c93;};return _0x3e00();}const W=_0x4d466b('univer-pro.collaboration-client.single-active-unit-service');let un=function(_0xafa3a5){const _0x23b32d=_0x64ef4d;return _0xafa3a5[_0xafa3a5[_0x23b32d(0x446)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0xafa3a5[_0xafa3a5[_0x23b32d(0x43c)]=0x1]=_0x23b32d(0x43c),_0xafa3a5;}({});function dn(_0x28bfc8){const _0x57d370=_0x64ef4d;var _0x5ce445;return!!((_0x5ce445=_0x28bfc8[_0x57d370(0x4f6)])!=null&&_0x5ce445[_0x57d370(0x31f)]);}const fn=new Set([_0x542892['id']]),pn=new Set([_0x3801bc['id'],_0x1ac8a0['id'],_0x478646['id'],_0x3fe210['id']]);function mn(_0x2939b0,_0x7e2113=fn){const _0x8da6fb=_0x64ef4d;let _0x170f15=[];for(let _0x42a498 of _0x2939b0){if(_0x7e2113[_0x8da6fb(0x41b)](_0x42a498['id'])||dn(_0x42a498)){if(_0x170f15[_0x8da6fb(0x251)]>0x0)break;_0x170f15[_0x8da6fb(0x21f)](_0x42a498);break;}_0x170f15[_0x8da6fb(0x21f)](_0x42a498);}return _0x170f15;}function hn(_0x4740ca,_0x40ea8b,_0x448b77,_0x176895,_0x298f92){const _0x49ef9a=_0x64ef4d;let _0x59ad39=mn(_0x4740ca),_0x4f6152=_0x298f92[_0x49ef9a(0x464)](),_0x4fb004=(_0x4f6152==null?void 0x0:_0x4f6152['userID'])??_0x49ef9a(0x423),_0x182a74=(_0x4f6152==null?void 0x0:_0x4f6152['memberID'])??_0x49ef9a(0x423);return{'changeset':{'unitID':_0x40ea8b,'type':_0x220c8d(_0x448b77['getUnitType'](_0x40ea8b)),'baseRev':_0x176895[_0x49ef9a(0x272)](_0x40ea8b),'revision':0x0,'userID':_0x4fb004,'memberID':_0x182a74,'mutations':_0x59ad39},'pendingMutations':_0x4740ca[_0x49ef9a(0x471)](_0x59ad39[_0x49ef9a(0x251)])};}const gn=hn;function _n(_0xe92c61,_0x16ce4c,_0x13e306,_0x3a3f4e,_0x3e3ddd){const _0x5b544f=_0x64ef4d;let _0x476b27=mn(_0xe92c61,pn),_0x3d298b=_0x3e3ddd['getCurrentUser'](),_0x168db7=(_0x3d298b==null?void 0x0:_0x3d298b[_0x5b544f(0x4d1)])??_0x5b544f(0x423),_0x32975e=(_0x3d298b==null?void 0x0:_0x3d298b['memberID'])??_0x5b544f(0x423);return{'changeset':{'unitID':_0x16ce4c,'type':_0x220c8d(_0x13e306[_0x5b544f(0x414)](_0x16ce4c)),'baseRev':_0x3a3f4e[_0x5b544f(0x272)](_0x16ce4c),'revision':0x0,'userID':_0x168db7,'memberID':_0x32975e,'mutations':_0x476b27},'pendingMutations':_0xe92c61['slice'](_0x476b27[_0x5b544f(0x251)])};}function vn(_0x118db2,_0x2e93ab,_0x48d873,_0x2c937a,_0x2cc3a4){const _0x2320f8=_0x64ef4d;let _0x3fa39e=_0x118db2[_0x2320f8(0x4f3)]((_0x543a25,_0x25a60)=>{const _0x580077=_0x2320f8;let _0x4eea54=_0x543a25[_0x543a25['length']-0x1],{id:_0x5323c8}=_0x4eea54??{},{id:_0x2dcd05,type:_0x4a676c}=_0x25a60,_0x25ae5a=_0x25a60['params'];if(_0x5323c8&&_0x5323c8!==_0x2dcd05)throw Error(_0x580077(0x36e)+_0x5323c8+'\x20-\x20'+_0x2dcd05+'.');if(!_0x4eea54)return[{'id':_0x2dcd05,'type':_0x4a676c,'params':{'unitId':_0x25ae5a['unitId'],'textRanges':_0x25ae5a[_0x580077(0x371)],'actions':_0x25ae5a[_0x580077(0x327)]}}];let _0x3c3e67=_0x4eea54[_0x580077(0x4f6)];return yn(_0x3c3e67,_0x25ae5a)?[..._0x543a25[_0x580077(0x471)](0x0,-0x1),{..._0x4eea54,'id':_0x2dcd05,'type':_0x4a676c,'params':{'unitId':_0x25ae5a['unitId'],'textRanges':_0x25ae5a[_0x580077(0x371)],'actions':_0x3d2c27[_0x580077(0x426)](_0x3c3e67[_0x580077(0x327)],_0x25ae5a[_0x580077(0x327)])}}]:[..._0x543a25,{'id':_0x2dcd05,'type':_0x4a676c,'params':{'unitId':_0x25ae5a['unitId'],'textRanges':_0x25ae5a[_0x580077(0x371)],'actions':_0x25ae5a['actions']}}];},[]),_0x5790ab=_0x2cc3a4[_0x2320f8(0x464)](),_0xc77816=(_0x5790ab==null?void 0x0:_0x5790ab[_0x2320f8(0x4d1)])??_0x2320f8(0x423),_0x2c6d10=(_0x5790ab==null?void 0x0:_0x5790ab['memberID'])??'unknown';return{'changeset':{'unitID':_0x2e93ab,'type':_0x220c8d(_0x48d873['getUnitType'](_0x2e93ab)),'baseRev':_0x2c937a[_0x2320f8(0x272)](_0x2e93ab),'revision':0x0,'userID':_0xc77816,'memberID':_0x2c6d10,'mutations':_0x3fa39e},'pendingMutations':_0x118db2[_0x2320f8(0x471)](_0x118db2[_0x2320f8(0x251)])};}function yn(_0x35bd0d,_0x1b33e1){const _0x42b12=_0x64ef4d;return!bn(_0x35bd0d)&&!bn(_0x1b33e1)&&xn(_0x35bd0d[_0x42b12(0x327)],_0x1b33e1['actions']);}function bn(_0x3fea9f){const _0x2a425f=_0x64ef4d;return _0x3fea9f[_0x2a425f(0x2a9)]!==void 0x0;}function xn(_0x40fe38,_0x63f12e){return Sn(_0x40fe38)&&Sn(_0x63f12e)&&!wn(_0x40fe38)&&!wn(_0x63f12e)&&!Cn(_0x40fe38)&&!Cn(_0x63f12e);}function Sn(_0x1bd8e6){const _0x3604bb=_0x64ef4d;return Tn(_0x1bd8e6)['some'](_0x4a24b5=>En(_0x4a24b5)&&_0x4a24b5['et']===_0x3604bb(0x4fa));}function Cn(_0x2832b4){const _0x1dd243=_0x64ef4d;return Tn(_0x2832b4)[_0x1dd243(0x2ac)](_0x50084c=>Array[_0x1dd243(0x246)](_0x50084c)||typeof _0x50084c==_0x1dd243(0x30e)||typeof _0x50084c==_0x1dd243(0x22f));}function wn(_0x55e2a7){const _0x1b80eb=_0x64ef4d;return Tn(_0x55e2a7)[_0x1b80eb(0x2ac)](_0x44a360=>!En(_0x44a360)||_0x44a360['et']!=='text-x'||!Array[_0x1b80eb(0x246)](_0x44a360['e'])?!0x1:_0x44a360['e']['some'](_0x565c0d=>!En(_0x565c0d)||!En(_0x565c0d['body'])?!0x1:Object[_0x1b80eb(0x37f)][_0x1b80eb(0x1f5)][_0x1b80eb(0x35c)](_0x565c0d[_0x1b80eb(0x2f3)],'tables')||Object[_0x1b80eb(0x37f)][_0x1b80eb(0x1f5)][_0x1b80eb(0x35c)](_0x565c0d['body'],_0x1b80eb(0x509))||Object[_0x1b80eb(0x37f)][_0x1b80eb(0x1f5)]['call'](_0x565c0d[_0x1b80eb(0x2f3)],_0x1b80eb(0x439))));}function Tn(_0x2b6260){const _0x49035b=_0x64ef4d;if(!Array[_0x49035b(0x246)](_0x2b6260))return[];let _0x5917ac=_0x2b6260[_0x49035b(0x213)](_0x49035b(0x2f3))?_0x2b6260:_0x2b6260[_0x49035b(0x40b)](_0x5b1374=>Array[_0x49035b(0x246)](_0x5b1374)&&_0x5b1374['includes'](_0x49035b(0x2f3)));if(!Array['isArray'](_0x5917ac))return[];let _0x8c1b68=_0x5917ac['indexOf']('body');return _0x8c1b68===-0x1?[]:_0x5917ac[_0x49035b(0x471)](_0x8c1b68+0x1);}function En(_0x2251c8){const _0x46a657=_0x64ef4d;return typeof _0x2251c8==_0x46a657(0x202)&&!!_0x2251c8&&!Array[_0x46a657(0x246)](_0x2251c8);}function Dn(_0x3ef77e,_0x266884){const _0x50b411=_0x64ef4d;for(let _0x5206c9 of _0x3ef77e[_0x50b411(0x3da)]){if(_0x5206c9['id']!==_0x591a72['id'])continue;let _0x1b5dc6=_0x5206c9[_0x50b411(0x4f6)];if((_0x1b5dc6==null?void 0x0:_0x1b5dc6[_0x50b411(0x339)])===_0x266884&&typeof _0x1b5dc6[_0x50b411(0x518)]=='number')return{'unitId':_0x1b5dc6['unitId'],'revision':_0x1b5dc6[_0x50b411(0x518)]};}return null;}var On,kn,An,jn=class extends Error{constructor(_0x461ac8){const _0x436504=_0x64ef4d;super(_0x461ac8 instanceof Error?_0x461ac8[_0x436504(0x305)]:typeof _0x461ac8==_0x436504(0x30e)?_0x461ac8:_0x436504(0x203)),this[_0x436504(0x2d3)]=_0x461ac8,this['name']=_0x436504(0x4cf);}},Mn=class extends Error{constructor(_0x4168a1){const _0x15beeb=_0x64ef4d;var _0x3ce83c;super(_0x15beeb(0x425)+((_0x3ce83c=_0x4168a1[_0x15beeb(0x311)])==null?void 0x0:_0x3ce83c[_0x15beeb(0x518)])+'.'),this[_0x15beeb(0x2e3)]=_0x4168a1,this[_0x15beeb(0x27f)]=_0x15beeb(0x2a8);}};let Nn=function(_0x36c100){const _0xdc8243=_0x64ef4d;return _0x36c100['NOT_COLLAB']='not_collab',_0x36c100[_0xdc8243(0x269)]='synced',_0x36c100[_0xdc8243(0x275)]=_0xdc8243(0x32e),_0x36c100[_0xdc8243(0x508)]=_0xdc8243(0x288),_0x36c100[_0xdc8243(0x43b)]=_0xdc8243(0x42a),_0x36c100[_0xdc8243(0x22a)]=_0xdc8243(0x33e),_0x36c100[_0xdc8243(0x26e)]=_0xdc8243(0x4df),_0x36c100[_0xdc8243(0x416)]='offline',_0x36c100;}({});var G=class{constructor(_0x52eadd,_0x54d09e,_0x3e9134,_0x1e3053,_0x5e46d2,_0x48283e,_0x5c42be,_0x53e02a,_0x183bb8){const _0x45bd0c=_0x64ef4d;this[_0x45bd0c(0x2af)]=_0x52eadd,this[_0x45bd0c(0x38f)]=_0x54d09e,this['_handler']=_0x5e46d2,this[_0x45bd0c(0x22c)]=_0x48283e,this[_0x45bd0c(0x377)]=_0x5c42be,this[_0x45bd0c(0x302)]=_0x53e02a,this[_0x45bd0c(0x226)]=_0x183bb8,z(this,_0x45bd0c(0x338),null),z(this,_0x45bd0c(0x20f),[]),this['_awaitingChangeset']=_0x3e9134,this['_pendingMutations']=_0x1e3053;}['hasLocalChanges'](){const _0x18f800=_0x64ef4d;return!!this[_0x18f800(0x338)]||this['_pendingMutations'][_0x18f800(0x251)]>0x0;}[_0x64ef4d(0x357)](){}['_unsyncedMutationCount'](){const _0x20db08=_0x64ef4d;var _0x40e09e;return(((_0x40e09e=this['_awaitingChangeset'])==null?void 0x0:_0x40e09e['mutations'][_0x20db08(0x251)])??0x0)+this['_pendingMutations']['length'];}[_0x64ef4d(0x352)](_0xb79bef){const _0x1924a6=_0x64ef4d;return new Bt(_0xb79bef['reqId']??0x0,(_0x2a50b4,_0x33a69e)=>this[_0x1924a6(0x4fe)][_0x1924a6(0x3fd)](_0x2a50b4,_0x33a69e),{...this[_0x1924a6(0x4fe)]['resendTimeouts'],'onResend':_0x5abb10=>{const _0x2ca01c=_0x1924a6;var _0x96968f,_0x5b4597;return(_0x96968f=(_0x5b4597=this[_0x2ca01c(0x4fe)])[_0x2ca01c(0x29e)])==null?void 0x0:_0x96968f[_0x2ca01c(0x35c)](_0x5b4597,_0x5abb10);}});}['_classifyRemoteChangeset'](_0x43063a){const _0x439d1d=_0x64ef4d;if(this['_isEchoedAwaitingChangeset'](_0x43063a))return _0x439d1d(0x2a1);if(Dn(_0x43063a,this[_0x439d1d(0x2af)]))return'remote_revert';let _0x6cdf55=this[_0x439d1d(0x4a8)]();return _0x43063a[_0x439d1d(0x518)]<=_0x6cdf55?_0x439d1d(0x24e):_0x43063a[_0x439d1d(0x518)]>_0x6cdf55+0x1?_0x439d1d(0x293):'apply';}['_classifyAck'](_0x49c2f3){const _0x2858b3=_0x64ef4d;let _0x3cb56d=this[_0x2858b3(0x4a8)]();return _0x49c2f3['revision']<=_0x3cb56d?this[_0x2858b3(0x25c)](_0x49c2f3)?'ack_of_awaiting':_0x2858b3(0x407):_0x49c2f3[_0x2858b3(0x518)]>_0x3cb56d+0x1?_0x2858b3(0x293):'next';}[_0x64ef4d(0x324)](_0x58a0ee,_0x403953){const _0x7f6247=_0x64ef4d;switch(this[_0x7f6247(0x29c)](_0x58a0ee)){case'echo':return this[_0x7f6247(0x465)](_0x58a0ee);case _0x7f6247(0x337):return _0x403953[_0x7f6247(0x294)](_0x58a0ee);case _0x7f6247(0x24e):return this;case _0x7f6247(0x293):return this[_0x7f6247(0x504)](_0x58a0ee[_0x7f6247(0x518)]),_0x403953[_0x7f6247(0x28a)](_0x58a0ee);case _0x7f6247(0x3ea):return _0x403953[_0x7f6247(0x415)](_0x58a0ee);}}[_0x64ef4d(0x424)](_0x3546a1){const _0xe1a53f=_0x64ef4d;return{'reason':'remote_revert','revert':{'revision':Dn(_0x3546a1,this[_0xe1a53f(0x2af)])[_0xe1a53f(0x518)],'memberId':_0x3546a1[_0xe1a53f(0x2de)],'userId':_0x3546a1[_0xe1a53f(0x4d1)]}};}[_0x64ef4d(0x51c)](_0x8b9d5c){const _0x1373c4=_0x64ef4d;return{'reason':_0x8b9d5c instanceof jn?_0x1373c4(0x208):_0x1373c4(0x279),'message':_0x8b9d5c instanceof Error?_0x8b9d5c['message']:typeof _0x8b9d5c==_0x1373c4(0x30e)?_0x8b9d5c:void 0x0};}[_0x64ef4d(0x29f)](_0x16e245){const _0x2e10=_0x64ef4d;return{'reason':_0x16e245!=null&&_0x16e245[_0x2e10(0x2cb)]?_0x2e10(0x1f6):(_0x16e245==null?void 0x0:_0x16e245[_0x2e10(0x3d0)])===_0x3523bb[_0x2e10(0x304)]?_0x2e10(0x259):_0x2e10(0x205),'message':_0x16e245==null?void 0x0:_0x16e245['reason']};}['_retryReason'](_0x1dcee0){const _0x197d72=_0x64ef4d;return _0x1dcee0===_0x3523bb[_0x197d72(0x396)]?_0x197d72(0x32b):'should_retry';}['_requestMissingChangesets'](_0x5ef880){const _0x15bf02=_0x64ef4d;this['_handler'][_0x15bf02(0x2f5)]({'from':this[_0x15bf02(0x4a8)](),'to':_0x5ef880-0x1});}['_transformUndoredo'](_0x24f623){const _0x640e26=_0x64ef4d;this[_0x640e26(0x377)][_0x640e26(0x46a)](this['unitID'],_0x24f623);}[_0x64ef4d(0x3a9)](_0x3fa78b){const _0x4db45e=_0x64ef4d;var _0x5a30c8,_0x409aa6;(_0x5a30c8=(_0x409aa6=this[_0x4db45e(0x4fe)])[_0x4db45e(0x218)])==null||_0x5a30c8[_0x4db45e(0x35c)](_0x409aa6,_0x3fa78b);}[_0x64ef4d(0x1f3)](_0x2712cc){const _0x5653b2=_0x64ef4d;var _0x16cdb9,_0x18c0f1;return((_0x16cdb9=(_0x18c0f1=this[_0x5653b2(0x4fe)])[_0x5653b2(0x4ee)])==null?void 0x0:_0x16cdb9[_0x5653b2(0x35c)](_0x18c0f1,_0x2712cc))??null;}[_0x64ef4d(0x2b9)](_0x252c09){const _0x300d42=_0x64ef4d;var _0x45f498,_0x431439;return(_0x45f498=(_0x431439=this['_handler'])[_0x300d42(0x4d2)])==null?void 0x0:_0x45f498[_0x300d42(0x35c)](_0x431439,_0x252c09);}[_0x64ef4d(0x24b)](_0x3eab14){const _0xce4d24=_0x64ef4d;var _0x5c6dd3,_0x41d667;return(_0x5c6dd3=(_0x41d667=this['_handler'])[_0xce4d24(0x2d6)])==null?void 0x0:_0x5c6dd3[_0xce4d24(0x35c)](_0x41d667,_0x3eab14);}[_0x64ef4d(0x4e1)](_0x141f55){const _0x522401=_0x64ef4d;var _0x2d34f2,_0x54c596;return((_0x2d34f2=(_0x54c596=this['_handler'])[_0x522401(0x237)])==null?void 0x0:_0x2d34f2[_0x522401(0x35c)](_0x54c596,_0x141f55))??_0x141f55;}[_0x64ef4d(0x262)](_0x25f26){const _0x253cc4=_0x64ef4d;var _0x6cc9e6,_0x189143;return((_0x6cc9e6=(_0x189143=this[_0x253cc4(0x4fe)])[_0x253cc4(0x29d)])==null?void 0x0:_0x6cc9e6['call'](_0x189143,_0x25f26))??_0x25f26;}[_0x64ef4d(0x50f)](_0x1cfb99){const _0x3e25b0=_0x64ef4d;if(this[_0x3e25b0(0x38f)]===_0x3ec4c0[_0x3e25b0(0x25d)]){let {unitID:_0x1ff665,mutations:_0x30d194,memberID:_0x549157}=_0x1cfb99,_0x136595=_0x30d194[_0x3e25b0(0x251)]>0x0?_0x30d194[0x0][_0x3e25b0(0x4f6)][_0x3e25b0(0x371)]:[];if(Array[_0x3e25b0(0x246)](_0x136595)&&_0x136595[_0x3e25b0(0x251)]>0x0){var _0x14e419,_0x18d6e6;(_0x14e419=(_0x18d6e6=this[_0x3e25b0(0x4fe)])[_0x3e25b0(0x390)])==null||_0x14e419[_0x3e25b0(0x35c)](_0x18d6e6,{'unitID':_0x1ff665,'memberID':_0x549157,'textRanges':_0x136595});}}}[_0x64ef4d(0x419)](){const _0xaf1bf8=_0x64ef4d;var _0x373c0a;(_0x373c0a=this['_localCacheService'])==null||_0x373c0a[_0xaf1bf8(0x3c1)](this[_0xaf1bf8(0x2af)],this['type'],this[_0xaf1bf8(0x338)],this[_0xaf1bf8(0x20f)]);}[_0x64ef4d(0x4a8)](){const _0x2a255c=_0x64ef4d;return this[_0x2a255c(0x302)][_0x2a255c(0x272)](this[_0x2a255c(0x2af)]);}[_0x64ef4d(0x318)](_0x2e390d){const _0x50f5ba=_0x64ef4d;let _0x278b10=this['_awaitingChangeset'];return!_0x278b10||!_0x278b10[_0x50f5ba(0x40e)]||_0x278b10[_0x50f5ba(0x287)]===null||_0x278b10[_0x50f5ba(0x287)]===void 0x0?!0x1:_0x2e390d[_0x50f5ba(0x2af)]===_0x278b10[_0x50f5ba(0x2af)]&&_0x2e390d[_0x50f5ba(0x40e)]===_0x278b10[_0x50f5ba(0x40e)]&&_0x2e390d[_0x50f5ba(0x287)]===_0x278b10['reqId'];}[_0x64ef4d(0x25c)](_0x524cc3){const _0xd1265=_0x64ef4d;let _0x5edfd8=this['_awaitingChangeset'];return!(_0x5edfd8!=null&&_0x5edfd8[_0xd1265(0x40e)])||_0x5edfd8['reqId']==null||!_0x524cc3[_0xd1265(0x40e)]||_0x524cc3[_0xd1265(0x287)]==null?!0x1:_0x524cc3[_0xd1265(0x40e)]===_0x5edfd8[_0xd1265(0x40e)]&&_0x524cc3['reqId']===_0x5edfd8[_0xd1265(0x287)];}[_0x64ef4d(0x264)](){const _0x235b32=_0x64ef4d;this[_0x235b32(0x302)][_0x235b32(0x4cb)](this[_0x235b32(0x2af)]);}[_0x64ef4d(0x4ab)](_0xb44de7){const _0x2bfc0d=_0x64ef4d;let _0x49ddf8=this['_transformRemoteChangesetByIMECache'](_0xb44de7);_0x49ddf8=this[_0x2bfc0d(0x262)](_0x49ddf8);let _0x237910=this[_0x2bfc0d(0x1f3)](_0x49ddf8),_0x25c87e=_0x1284f3(_0x49ddf8[_0x2bfc0d(0x3da)],this['_commandService'],{'fromCollab':!0x0});if(!_0x25c87e[_0x2bfc0d(0x27c)])throw _0x237910==null||_0x237910[_0x2bfc0d(0x309)](),new jn(_0x25c87e['error']);_0x237910==null||_0x237910[_0x2bfc0d(0x37c)](),this[_0x2bfc0d(0x2b9)](_0x49ddf8),this[_0x2bfc0d(0x24b)](_0x49ddf8),this['_transformUndoredo'](_0xb44de7),this[_0x2bfc0d(0x3a9)](_0x49ddf8),this[_0x2bfc0d(0x50f)](_0x49ddf8),this[_0x2bfc0d(0x264)]();}};let K=class extends G{constructor(_0x53dfc9,_0x566dd8,_0x527aca,_0x320d5d,_0x18c6fa,_0x29af85,_0x358bef,_0x598481,_0x354f9d,_0x4f5b65){const _0x35b7dd=_0x64ef4d;super(_0x53dfc9,_0x566dd8,null,[],_0x527aca,_0x358bef,_0x29af85,_0x320d5d,_0x4f5b65),this[_0x35b7dd(0x32a)]=_0x18c6fa,this[_0x35b7dd(0x4d6)]=_0x598481,this[_0x35b7dd(0x48f)]=_0x354f9d,this['localCacheService']=_0x4f5b65,z(this,_0x35b7dd(0x491),_0x35b7dd(0x382));}['appendMutation'](_0x25963c){const _0xcccf09=_0x64ef4d;let _0x5eb269=this[_0xcccf09(0x32a)][_0xcccf09(0x333)](q,this[_0xcccf09(0x2af)],this[_0xcccf09(0x38f)],[_0x25963c],this[_0xcccf09(0x4fe)]);return _0x5eb269['_schedule'](),_0x5eb269[_0xcccf09(0x419)](),_0x5eb269;}[_0x64ef4d(0x44b)](_0x5f59e0){const _0x387009=_0x64ef4d;return this[_0x387009(0x324)](_0x5f59e0,{'onMissing':()=>this[_0x387009(0x32a)][_0x387009(0x333)](Q,this[_0x387009(0x2af)],this[_0x387009(0x38f)],null,[],null,[_0x5f59e0],this[_0x387009(0x4fe)],void 0x0),'onApply':()=>this[_0x387009(0x522)](_0x5f59e0),'onRemoteRevert':()=>this['_onConflict'](this[_0x387009(0x424)](_0x5f59e0))});}[_0x64ef4d(0x522)](_0x1a8333){const _0x39e8cf=_0x64ef4d;try{let _0x4445b6=this[_0x39e8cf(0x48f)][_0x39e8cf(0x30f)](_0x1a8333,[_0x4d4133]);if(_0x1b0102(_0x4445b6)){let {c1Prime:_0x53629a}=_0x4445b6;return this[_0x39e8cf(0x4ab)](_0x53629a),this;}throw _0x4445b6[_0x39e8cf(0x2d5)];}catch(_0x3103f2){return this[_0x39e8cf(0x4d6)][_0x39e8cf(0x2d5)](_0x3103f2),this[_0x39e8cf(0x421)](this[_0x39e8cf(0x51c)](_0x3103f2));}}[_0x64ef4d(0x421)](_0x4b8ad9){const _0x4d2846=_0x64ef4d;return this['_injector'][_0x4d2846(0x333)](X,this[_0x4d2846(0x2af)],this[_0x4d2846(0x38f)],null,[],this[_0x4d2846(0x4fe)],_0x4b8ad9);}[_0x64ef4d(0x465)](_0x4e5ad7){const _0x5e850d=_0x64ef4d;if(this[_0x5e850d(0x2a0)](_0x4e5ad7)===_0x5e850d(0x407))return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x64ef4d(0x48d)](){const _0x52cb63=_0x64ef4d;throw Error(_0x52cb63(0x347));}[_0x64ef4d(0x1f8)](){return this;}['toggleOffline'](){const _0x2d65bd=_0x64ef4d;return this[_0x2d65bd(0x32a)]['createInstance'](Z,this[_0x2d65bd(0x2af)],this['type'],null,[],this[_0x2d65bd(0x4fe)]);}[_0x64ef4d(0x3bf)](){return this;}[_0x64ef4d(0x4f2)](){const _0x299866=_0x64ef4d;throw Error(_0x299866(0x23e));}[_0x64ef4d(0x254)](){const _0x3e6c78=_0x64ef4d;let _0x520947=this[_0x3e6c78(0x302)]['getCurrentRevOfUnit'](this[_0x3e6c78(0x2af)]);return this[_0x3e6c78(0x4fe)]['onMissingChangesets']({'from':_0x520947,'to':0x0}),this['_injector'][_0x3e6c78(0x333)](Q,this[_0x3e6c78(0x2af)],this[_0x3e6c78(0x38f)],null,[],null,[],this[_0x3e6c78(0x4fe)],void 0x0);}};K=H([V(0x3,_0x12abaf(_0x36042b)),V(0x4,_0x12abaf(_0x1f4ba8)),V(0x5,_0x510392),V(0x6,_0x59a890),V(0x7,_0x1a4744),V(0x8,_0x2f82dd),V(0x9,_0x4c5a46(U))],K);let q=On=class extends G{constructor(_0x5a48a0,_0x3aeb54,_0x3d8fb3,_0x3197a4,_0x4c4053,_0x14c893,_0x2d208f,_0x3f3dba,_0x5f1705,_0x3a18fd,_0x56aa8d,_0x1062b2,_0x4f4f24,_0xd4ccad){const _0x564fba=_0x64ef4d;super(_0x5a48a0,_0x3aeb54,null,_0x3d8fb3,_0x3197a4,_0x5f1705,_0x4f4f24,_0x14c893,_0xd4ccad),this[_0x564fba(0x32a)]=_0x4c4053,this['_userManagerService']=_0x2d208f,this[_0x564fba(0x4d6)]=_0x3f3dba,this[_0x564fba(0x351)]=_0x3a18fd,this[_0x564fba(0x48f)]=_0x56aa8d,this[_0x564fba(0x3e4)]=_0x1062b2,z(this,_0x564fba(0x491),'pending'),z(this,'_scheduleCompleteTimestamp',null),z(this,_0x564fba(0x1f1),null);}[_0x64ef4d(0x271)](_0x1668c0){const _0x545b7f=_0x64ef4d;return this[_0x545b7f(0x20f)][_0x545b7f(0x21f)](_0x1668c0),this[_0x545b7f(0x419)](),this;}[_0x64ef4d(0x44b)](_0x441f4e){const _0x4d2fca=_0x64ef4d;return this[_0x4d2fca(0x324)](_0x441f4e,{'onMissing':()=>(this[_0x4d2fca(0x44e)](),this[_0x4d2fca(0x32a)]['createInstance'](Q,this[_0x4d2fca(0x2af)],this['type'],null,this['_pendingMutations'],null,[_0x441f4e],this[_0x4d2fca(0x4fe)],void 0x0)),'onApply':()=>this[_0x4d2fca(0x522)](_0x441f4e),'onRemoteRevert':()=>this['_onConflict'](this[_0x4d2fca(0x424)](_0x441f4e))});}['_transformAndApply'](_0x26a673){const _0x13db9a=_0x64ef4d;try{let _0x37d064=this[_0x13db9a(0x48f)][_0x13db9a(0x30f)](_0x26a673,this['_pendingMutations']);if(_0x1b0102(_0x37d064)){let {c1Prime:_0x31719f,m2Prime:_0x21833a}=_0x37d064;this[_0x13db9a(0x4ab)](_0x31719f);let _0x2e5c2a=this['_injector'][_0x13db9a(0x333)](On,this[_0x13db9a(0x2af)],this[_0x13db9a(0x38f)],_0x21833a,this[_0x13db9a(0x4fe)]);_0x2e5c2a[_0x13db9a(0x419)](),this[_0x13db9a(0x44e)]();let _0x1e9268=new Date()[_0x13db9a(0x376)](),_0x7218e6=this['_scheduleCompleteTimestamp']?Math[_0x13db9a(0x3b0)](this[_0x13db9a(0x496)]-_0x1e9268,0x0):this[_0x13db9a(0x4e2)]();return _0x2e5c2a[_0x13db9a(0x3ce)](_0x7218e6),_0x2e5c2a;}throw _0x37d064[_0x13db9a(0x2d5)];}catch(_0x4c6ec6){return this[_0x13db9a(0x4d6)]['error'](_0x4c6ec6),this[_0x13db9a(0x421)](this[_0x13db9a(0x51c)](_0x4c6ec6));}}[_0x64ef4d(0x465)](_0x57b8c6){const _0x3bd05a=_0x64ef4d;if(this['_classifyAck'](_0x57b8c6)==='stale')return this;throw Error(_0x3bd05a(0x412));}[_0x64ef4d(0x48d)](){const _0x2dafe8=_0x64ef4d;throw Error(_0x2dafe8(0x479));}[_0x64ef4d(0x1f8)](){return this;}[_0x64ef4d(0x3ec)](){const _0x431d9d=_0x64ef4d;return this[_0x431d9d(0x44e)](),this[_0x431d9d(0x32a)][_0x431d9d(0x333)](Z,this[_0x431d9d(0x2af)],this[_0x431d9d(0x38f)],null,this[_0x431d9d(0x20f)],this[_0x431d9d(0x4fe)]);}['toggleOnline'](){return this;}['_schedule'](_0x29f63a){const _0x15e353=_0x64ef4d;let _0x107135=_0x29f63a??this[_0x15e353(0x4e2)]();this[_0x15e353(0x496)]=new Date()['getTime']()+_0x107135,this[_0x15e353(0x1f1)]=setTimeout(()=>{const _0x36aab5=_0x15e353;this['_clearScheduledTask']();let _0x5f4959=null;switch(this[_0x36aab5(0x38f)]){case _0x3ec4c0['UNIVER_SHEET']:_0x5f4959=hn(this['_pendingMutations'],this[_0x36aab5(0x2af)],this[_0x36aab5(0x3e4)],this[_0x36aab5(0x302)],this['_userManagerService']);break;case _0x3ec4c0['UNIVER_DOC']:_0x5f4959=this['_pendingMutations'][_0x36aab5(0x2f2)](_0x39bf85=>_0x39bf85['id']===_0x3a6e2f['id'])?vn(this[_0x36aab5(0x20f)],this[_0x36aab5(0x2af)],this[_0x36aab5(0x3e4)],this[_0x36aab5(0x302)],this['_userManagerService']):hn(this['_pendingMutations'],this[_0x36aab5(0x2af)],this[_0x36aab5(0x3e4)],this[_0x36aab5(0x302)],this['_userManagerService']);break;case _0x3ec4c0[_0x36aab5(0x292)]:_0x5f4959=_n(this[_0x36aab5(0x20f)],this[_0x36aab5(0x2af)],this[_0x36aab5(0x3e4)],this[_0x36aab5(0x302)],this['_userManagerService']);break;case _0x3ec4c0[_0x36aab5(0x22b)]:_0x5f4959=gn(this[_0x36aab5(0x20f)],this[_0x36aab5(0x2af)],this[_0x36aab5(0x3e4)],this[_0x36aab5(0x302)],this[_0x36aab5(0x2dd)]);break;case _0x3ec4c0[_0x36aab5(0x494)]:_0x5f4959=hn(this[_0x36aab5(0x20f)],this[_0x36aab5(0x2af)],this[_0x36aab5(0x3e4)],this[_0x36aab5(0x302)],this[_0x36aab5(0x2dd)]);break;case _0x3ec4c0[_0x36aab5(0x506)]:_0x5f4959=hn(this['_pendingMutations'],this[_0x36aab5(0x2af)],this[_0x36aab5(0x3e4)],this[_0x36aab5(0x302)],this['_userManagerService']);break;default:throw Error(_0x36aab5(0x3c9)+this[_0x36aab5(0x38f)]+_0x36aab5(0x220));}let {changeset:_0x504daa,pendingMutations:_0x221416}=_0x5f4959,_0x38058c=this[_0x36aab5(0x352)](_0x504daa);_0x38058c[_0x36aab5(0x4a0)](_0x504daa,_0x504daa[_0x36aab5(0x3da)]['length']+_0x221416['length']);let _0x14c750=_0x221416[_0x36aab5(0x251)]?this[_0x36aab5(0x32a)][_0x36aab5(0x333)](Y,this[_0x36aab5(0x2af)],this[_0x36aab5(0x38f)],_0x504daa,_0x221416,this[_0x36aab5(0x4fe)],_0x38058c):this[_0x36aab5(0x32a)][_0x36aab5(0x333)](J,this[_0x36aab5(0x2af)],this[_0x36aab5(0x38f)],_0x504daa,this[_0x36aab5(0x4fe)],_0x38058c);_0x14c750[_0x36aab5(0x419)](),this[_0x36aab5(0x4fe)]['onStateChange'](this,_0x14c750);},_0x107135);}[_0x64ef4d(0x4e2)](){const _0x214cb9=_0x64ef4d;let _0x122a52=this[_0x214cb9(0x351)][_0x214cb9(0x1f4)](R);return(_0x122a52==null?void 0x0:_0x122a52['sendChangesetTimeout'])??0x7d0;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x142259=_0x64ef4d;this[_0x142259(0x1f1)]!=null&&(clearTimeout(this[_0x142259(0x1f1)]),this['_sendingTimer']=null);}[_0x64ef4d(0x357)](){this['_clearScheduledTask']();}[_0x64ef4d(0x421)](_0x41d9de){const _0x48d91e=_0x64ef4d;return this[_0x48d91e(0x44e)](),this['_injector'][_0x48d91e(0x333)](X,this[_0x48d91e(0x2af)],this[_0x48d91e(0x38f)],null,this['_pendingMutations'],this[_0x48d91e(0x4fe)],_0x41d9de);}};q=On=H([V(0x4,_0x12abaf(_0x1f4ba8)),V(0x5,_0x12abaf(_0x36042b)),V(0x6,_0x12abaf(_0x23c853)),V(0x7,_0x1a4744),V(0x8,_0x59a890),V(0x9,_0x1c2d46),V(0xa,_0x2f82dd),V(0xb,_0xde2491),V(0xc,_0x510392),V(0xd,_0x4c5a46(U))],q);let J=kn=class extends G{constructor(_0x55e5de,_0x287134,_0x272dbe,_0x21ed43,_0x483402,_0xe85b7f,_0x82eef2,_0x81d6e3,_0x25e0f6,_0x3d070a,_0x164906,_0x302c52){const _0xbc9c94=_0x64ef4d;super(_0x55e5de,_0x287134,_0x272dbe,[],_0x21ed43,_0x81d6e3,_0x164906,_0x82eef2,_0x302c52),this[_0xbc9c94(0x32a)]=_0xe85b7f,this['_logService']=_0x25e0f6,this['_transformService']=_0x3d070a,z(this,'status',_0xbc9c94(0x288)),z(this,_0xbc9c94(0x4b5),void 0x0),this[_0xbc9c94(0x4b5)]=_0x483402??this[_0xbc9c94(0x352)](_0x272dbe),this['_submitter'][_0xbc9c94(0x40c)](()=>({'changeset':this[_0xbc9c94(0x338)],'unsyncedMutationCount':this[_0xbc9c94(0x50d)]()})),_0x483402||this[_0xbc9c94(0x4b5)]['armAckTimeout']();}['appendMutation'](_0x380f97){const _0x34fdc2=_0x64ef4d;this[_0x34fdc2(0x239)]();let _0x575695=this[_0x34fdc2(0x32a)]['createInstance'](Y,this[_0x34fdc2(0x2af)],this[_0x34fdc2(0x38f)],this[_0x34fdc2(0x338)],[_0x380f97],this[_0x34fdc2(0x4fe)],this[_0x34fdc2(0x4b5)]);return _0x575695[_0x34fdc2(0x419)](),_0x575695;}['onRemoteChangeset'](_0x1b7da7){const _0x33c3ae=_0x64ef4d;return this[_0x33c3ae(0x324)](_0x1b7da7,{'onMissing':()=>(this[_0x33c3ae(0x239)](),this[_0x33c3ae(0x32a)][_0x33c3ae(0x333)](Q,this[_0x33c3ae(0x2af)],this[_0x33c3ae(0x38f)],this[_0x33c3ae(0x338)],[],null,[_0x1b7da7],this[_0x33c3ae(0x4fe)],this[_0x33c3ae(0x4b5)])),'onApply':()=>this[_0x33c3ae(0x522)](_0x1b7da7),'onRemoteRevert':()=>this['_onConflict'](this['_remoteRevertInfo'](_0x1b7da7))});}[_0x64ef4d(0x522)](_0x5f1c3f){const _0x18cb85=_0x64ef4d;try{let _0x25cf04=this['_transformService'][_0x18cb85(0x511)]([_0x5f1c3f],[this[_0x18cb85(0x338)]],!0x1);if(_0x331893(_0x25cf04)){let {c1Prime:_0x1c3122,c2Prime:_0x1566ad}=_0x25cf04;this[_0x18cb85(0x4ab)](_0x1c3122[0x0]),_0x1566ad[0x0][_0x18cb85(0x32c)]=this['_getCurrentRevision'](),this[_0x18cb85(0x239)]();let _0x256d52=this[_0x18cb85(0x32a)][_0x18cb85(0x333)](kn,this[_0x18cb85(0x2af)],this[_0x18cb85(0x38f)],_0x1566ad[0x0],this[_0x18cb85(0x4fe)],this[_0x18cb85(0x4b5)]);return _0x256d52[_0x18cb85(0x419)](),_0x256d52;}throw _0x25cf04['error'];}catch(_0x564fdc){return this[_0x18cb85(0x4d6)]['error'](_0x564fdc),this[_0x18cb85(0x421)](this['_conflictInfoFromError'](_0x564fdc));}}[_0x64ef4d(0x465)](_0x3bb0d7){const _0x1a6f38=_0x64ef4d;switch(this[_0x1a6f38(0x2a0)](_0x3bb0d7)){case _0x1a6f38(0x407):return this['_logService'][_0x1a6f38(0x3af)]('[AwaitingState]','ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x3bb0d7['revision']+'\x20at\x20revision\x20'+this[_0x1a6f38(0x4a8)]()+'.'),this;case _0x1a6f38(0x40a):return this[_0x1a6f38(0x4b5)][_0x1a6f38(0x357)](),this['_toSynced']();case _0x1a6f38(0x293):return this['_submitter'][_0x1a6f38(0x357)](),this[_0x1a6f38(0x504)](_0x3bb0d7['revision']),this['_injector']['createInstance'](Q,this[_0x1a6f38(0x2af)],this[_0x1a6f38(0x38f)],this[_0x1a6f38(0x338)],[],_0x3bb0d7['revision'],[],this['_handler'],void 0x0);case _0x1a6f38(0x429):return this[_0x1a6f38(0x4b5)][_0x1a6f38(0x357)](),this[_0x1a6f38(0x264)](),this[_0x1a6f38(0x406)]();}}[_0x64ef4d(0x406)](){const _0x4a485d=_0x64ef4d;let _0x2e6b29=this[_0x4a485d(0x32a)][_0x4a485d(0x333)](K,this[_0x4a485d(0x2af)],this['type'],this[_0x4a485d(0x4fe)]);return _0x2e6b29[_0x4a485d(0x419)](),_0x2e6b29;}[_0x64ef4d(0x48d)](_0x4ed14a){const _0x3858a7=_0x64ef4d;return this[_0x3858a7(0x421)](this[_0x3858a7(0x29f)](_0x4ed14a));}['onRemoteRetry'](_0x4e4124,_0x511a5a){const _0x192ebf=_0x64ef4d;var _0x39fb29;return _0x4e4124[_0x192ebf(0x287)]===((_0x39fb29=this[_0x192ebf(0x338)])==null?void 0x0:_0x39fb29['reqId'])&&this[_0x192ebf(0x4b5)][_0x192ebf(0x49f)](this[_0x192ebf(0x403)](_0x511a5a)),this;}[_0x64ef4d(0x3ec)](){const _0x4c8033=_0x64ef4d;return this['_submitter'][_0x4c8033(0x357)](),this[_0x4c8033(0x32a)][_0x4c8033(0x333)](Z,this['unitID'],this[_0x4c8033(0x38f)],this['_awaitingChangeset'],[],this[_0x4c8033(0x4fe)]);}[_0x64ef4d(0x3bf)](){return this;}[_0x64ef4d(0x4f2)](_0x24474b=_0x64ef4d(0x24d)){const _0x4268f0=_0x64ef4d;this[_0x4268f0(0x4b5)][_0x4268f0(0x4a0)](this['_awaitingChangeset'],this[_0x4268f0(0x50d)](),_0x24474b);}[_0x64ef4d(0x421)](_0x337b2c){const _0x2bb2fc=_0x64ef4d;return this[_0x2bb2fc(0x4b5)][_0x2bb2fc(0x357)](),this[_0x2bb2fc(0x32a)][_0x2bb2fc(0x333)](X,this['unitID'],this[_0x2bb2fc(0x38f)],this[_0x2bb2fc(0x338)],[],this['_handler'],_0x337b2c);}[_0x64ef4d(0x357)](){const _0x5520fa=_0x64ef4d;this[_0x5520fa(0x4b5)][_0x5520fa(0x357)]();}[_0x64ef4d(0x239)](){this['_submitter']['unbind']();}};J=kn=H([V(0x5,_0x12abaf(_0x1f4ba8)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x59a890),V(0x8,_0x1a4744),V(0x9,_0x2f82dd),V(0xa,_0x510392),V(0xb,_0x4c5a46(U))],J);let Y=An=class extends G{constructor(_0x28fa6a,_0x36b401,_0xec6e7f,_0x5db3b2,_0x154a9e,_0x5515c4,_0x10e4c0,_0x54257e,_0x2ab40a,_0x5f057c,_0x2a3b22,_0x7bb58c,_0x1d9f80){const _0x1f645d=_0x64ef4d;super(_0x28fa6a,_0x36b401,_0xec6e7f,_0x5db3b2,_0x154a9e,_0x2ab40a,_0x7bb58c,_0x54257e,_0x1d9f80),this[_0x1f645d(0x32a)]=_0x10e4c0,this['_logService']=_0x5f057c,this[_0x1f645d(0x48f)]=_0x2a3b22,this['localCacheService']=_0x1d9f80,z(this,'status','awaiting_with_pending'),z(this,_0x1f645d(0x4b5),void 0x0),this[_0x1f645d(0x4b5)]=_0x5515c4??this[_0x1f645d(0x352)](_0xec6e7f),this[_0x1f645d(0x4b5)][_0x1f645d(0x40c)](()=>({'changeset':this[_0x1f645d(0x338)],'unsyncedMutationCount':this[_0x1f645d(0x50d)]()})),_0x5515c4||this[_0x1f645d(0x4b5)]['armAckTimeout']();}[_0x64ef4d(0x271)](_0x32ab1a){const _0x569211=_0x64ef4d;return this[_0x569211(0x20f)][_0x569211(0x21f)](_0x32ab1a),this[_0x569211(0x419)](),this;}['onRemoteChangeset'](_0xd8debe){const _0x3708c3=_0x64ef4d;return this['_dispatchRemoteChangeset'](_0xd8debe,{'onMissing':()=>(this[_0x3708c3(0x239)](),this[_0x3708c3(0x32a)][_0x3708c3(0x333)](Q,this[_0x3708c3(0x2af)],this['type'],this['_awaitingChangeset'],this[_0x3708c3(0x20f)],null,[_0xd8debe],this['_handler'],this[_0x3708c3(0x4b5)])),'onApply':()=>this[_0x3708c3(0x522)](_0xd8debe),'onRemoteRevert':()=>this[_0x3708c3(0x421)](this[_0x3708c3(0x424)](_0xd8debe))});}[_0x64ef4d(0x522)](_0x5a1f8b){const _0x997f2a=_0x64ef4d;try{let _0x30daee=this[_0x997f2a(0x48f)][_0x997f2a(0x511)]([_0x5a1f8b],[this[_0x997f2a(0x338)]],!0x1);if(_0x331893(_0x30daee)){let {c1Prime:_0x5cf352,c2Prime:_0xe17dfa}=_0x30daee,_0x272d28=this[_0x997f2a(0x48f)][_0x997f2a(0x30f)](_0x5cf352[0x0],this[_0x997f2a(0x20f)]);if(_0x1b0102(_0x272d28)){let {c1Prime:_0x43d477,m2Prime:_0x40fa44}=_0x272d28;this[_0x997f2a(0x4ab)](_0x43d477),_0xe17dfa[0x0][_0x997f2a(0x32c)]=this[_0x997f2a(0x4a8)](),this['_detachSubmitter']();let _0x522a17=this[_0x997f2a(0x32a)][_0x997f2a(0x333)](An,this[_0x997f2a(0x2af)],this['type'],_0xe17dfa[0x0],_0x40fa44,this[_0x997f2a(0x4fe)],this['_submitter']);return _0x522a17['_updateLocalCache'](),_0x522a17;}throw _0x272d28['error'];}throw _0x30daee['error'];}catch(_0x47daea){return this[_0x997f2a(0x4d6)][_0x997f2a(0x2d5)](_0x47daea),this[_0x997f2a(0x421)](this['_conflictInfoFromError'](_0x47daea));}}[_0x64ef4d(0x465)](_0x316987){const _0x25d237=_0x64ef4d;switch(this['_classifyAck'](_0x316987)){case _0x25d237(0x407):return this[_0x25d237(0x4d6)][_0x25d237(0x3af)](_0x25d237(0x45a),_0x25d237(0x418)+_0x316987[_0x25d237(0x518)]+_0x25d237(0x2d4)+this['_getCurrentRevision']()+'.'),this;case _0x25d237(0x40a):return this['_submitter'][_0x25d237(0x357)](),this[_0x25d237(0x280)]();case _0x25d237(0x293):return this[_0x25d237(0x4b5)][_0x25d237(0x357)](),this[_0x25d237(0x504)](_0x316987[_0x25d237(0x518)]),this[_0x25d237(0x32a)][_0x25d237(0x333)](Q,this[_0x25d237(0x2af)],this[_0x25d237(0x38f)],this['_awaitingChangeset'],this[_0x25d237(0x20f)],_0x316987['revision'],[],this['_handler'],void 0x0);case _0x25d237(0x429):return this['_submitter'][_0x25d237(0x357)](),this[_0x25d237(0x264)](),this[_0x25d237(0x280)]();}}['_toPending'](){const _0x4b3ac4=_0x64ef4d;let _0x465f69=this[_0x4b3ac4(0x32a)][_0x4b3ac4(0x333)](q,this[_0x4b3ac4(0x2af)],this[_0x4b3ac4(0x38f)],this[_0x4b3ac4(0x20f)],this[_0x4b3ac4(0x4fe)]);return _0x465f69[_0x4b3ac4(0x3ce)](),_0x465f69[_0x4b3ac4(0x419)](),_0x465f69;}[_0x64ef4d(0x48d)](_0x49c72e){const _0x51cb34=_0x64ef4d;return this['_onConflict'](this[_0x51cb34(0x29f)](_0x49c72e));}[_0x64ef4d(0x1f8)](_0x4e62c6,_0x5d9b20){const _0x22446b=_0x64ef4d;var _0xbdeed2;return _0x4e62c6['reqId']===((_0xbdeed2=this[_0x22446b(0x338)])==null?void 0x0:_0xbdeed2[_0x22446b(0x287)])&&this[_0x22446b(0x4b5)][_0x22446b(0x49f)](this[_0x22446b(0x403)](_0x5d9b20)),this;}['toggleOffline'](){const _0x343c94=_0x64ef4d;return this[_0x343c94(0x4b5)]['dispose'](),this['_injector'][_0x343c94(0x333)](Z,this['unitID'],this[_0x343c94(0x38f)],this[_0x343c94(0x338)],this[_0x343c94(0x20f)],this[_0x343c94(0x4fe)]);}[_0x64ef4d(0x3bf)](){return this;}[_0x64ef4d(0x4f2)](_0x14367b=_0x64ef4d(0x24d)){const _0x4df760=_0x64ef4d;this[_0x4df760(0x4b5)][_0x4df760(0x4a0)](this[_0x4df760(0x338)],this[_0x4df760(0x50d)](),_0x14367b);}['_onConflict'](_0x8bf7c0){const _0x9e165a=_0x64ef4d;return this[_0x9e165a(0x4b5)][_0x9e165a(0x357)](),this[_0x9e165a(0x32a)][_0x9e165a(0x333)](X,this['unitID'],this['type'],this[_0x9e165a(0x338)],this[_0x9e165a(0x20f)],this[_0x9e165a(0x4fe)],_0x8bf7c0);}[_0x64ef4d(0x357)](){const _0x441fa8=_0x64ef4d;this[_0x441fa8(0x4b5)][_0x441fa8(0x357)]();}[_0x64ef4d(0x239)](){const _0x552db6=_0x64ef4d;this[_0x552db6(0x4b5)][_0x552db6(0x428)]();}};Y=An=H([V(0x6,_0x12abaf(_0x1f4ba8)),V(0x7,_0x12abaf(_0x36042b)),V(0x8,_0x59a890),V(0x9,_0x1a4744),V(0xa,_0x2f82dd),V(0xb,_0x510392),V(0xc,_0x4c5a46(U))],Y);let X=class extends G{constructor(_0x387604,_0x253fb9,_0x2866e7,_0x1e9303,_0x20506b,_0x550a75,_0x3b4046,_0x3737a4,_0x592134,_0xb7fae5,_0x1d0712,_0x3ae198,_0x3fb27a,_0x1dc8b7){const _0x29575e=_0x64ef4d;var _0x43f875;super(_0x387604,_0x253fb9,_0x2866e7,_0x1e9303,_0x20506b,_0x3737a4,_0x592134,_0xb7fae5,_0x1dc8b7),this[_0x29575e(0x2e3)]=_0x550a75,this[_0x29575e(0x24a)]=_0x3b4046,this[_0x29575e(0x2dd)]=_0x1d0712,this[_0x29575e(0x4d6)]=_0x3ae198,this[_0x29575e(0x3a2)]=_0x3fb27a,this[_0x29575e(0x2e2)]=_0x1dc8b7,z(this,_0x29575e(0x491),_0x29575e(0x4df)),z(this,'localChanges',void 0x0);let _0x723846=((_0x43f875=this[_0x29575e(0x2dd)][_0x29575e(0x464)]())==null?void 0x0:_0x43f875[_0x29575e(0x4d1)])??'';this[_0x29575e(0x289)]=_0x2866e7||_0x1e9303['length']?{'unitID':_0x387604,'userId':_0x723846||void 0x0,'type':_0x253fb9,'rev':this[_0x29575e(0x4a8)](),'awaitingChangeset':_0x2866e7,'mutations':_0x1e9303}:null,this['_disableEditing'](),this['_showConflictProcessingNotification'](),this[_0x29575e(0x23b)](_0x723846)[_0x29575e(0x2e4)](_0x4c4706=>this[_0x29575e(0x4d6)][_0x29575e(0x2d5)](_0x4c4706));}async[_0x64ef4d(0x23b)](_0x126bf8){const _0x256b2e=_0x64ef4d;var _0x4cea3e,_0x4fe004,_0x2a6eb9,_0x12d510;await((_0x4cea3e=this[_0x256b2e(0x226)])==null||(_0x4fe004=_0x4cea3e[_0x256b2e(0x50e)])==null?void 0x0:_0x4fe004[_0x256b2e(0x35c)](_0x4cea3e,this[_0x256b2e(0x2af)],this[_0x256b2e(0x2e3)][_0x256b2e(0x355)],_0x126bf8)[_0x256b2e(0x2e4)](()=>void 0x0));let _0x35b77f=!0x0;try{var _0x72be8a;await((_0x72be8a=this[_0x256b2e(0x226)])==null?void 0x0:_0x72be8a[_0x256b2e(0x401)](this[_0x256b2e(0x2af)],_0x126bf8));}catch{_0x35b77f=!0x1,this[_0x256b2e(0x3a2)][_0x256b2e(0x2c0)]({'id':_0x256b2e(0x1fe),'unitID':this[_0x256b2e(0x2af)],'userId':_0x126bf8});}(_0x2a6eb9=(_0x12d510=this[_0x256b2e(0x4fe)])[_0x256b2e(0x26b)])==null||_0x2a6eb9[_0x256b2e(0x35c)](_0x12d510,this['info'],this['localChanges'],_0x35b77f);}[_0x64ef4d(0x271)](){return this;}[_0x64ef4d(0x44b)](){return this;}[_0x64ef4d(0x465)](){return this;}[_0x64ef4d(0x48d)](){return this;}[_0x64ef4d(0x1f8)](){return this;}[_0x64ef4d(0x3ec)](){return this;}[_0x64ef4d(0x3bf)](){return this;}[_0x64ef4d(0x4f2)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x64ef4d(0x249)](){const _0x2a2487=_0x64ef4d;this[_0x2a2487(0x3a2)]['emitEvent']({'id':_0x2a2487(0x420),'unitID':this[_0x2a2487(0x2af)]});}[_0x64ef4d(0x4ba)](){const _0x3d7894=_0x64ef4d;this[_0x3d7894(0x24a)]['updatePermissionPoint'](new _0x2a7ff0(this['unitID'])['id'],!0x1);}};X=H([V(0x6,_0x12abaf(_0x4457eb)),V(0x7,_0x59a890),V(0x8,_0x510392),V(0x9,_0x12abaf(_0x36042b)),V(0xa,_0x12abaf(_0x23c853)),V(0xb,_0x1a4744),V(0xc,_0x12abaf(B)),V(0xd,_0x4c5a46(U))],X);let Z=class extends G{constructor(_0x3191e5,_0x4b3d8d,_0x4ff65b,_0x587b35,_0x190604,_0x154bf2,_0x2956d3,_0x15bfc6,_0x486fe4,_0x386a4c,_0x4026db){const _0x27dfdb=_0x64ef4d;super(_0x3191e5,_0x4b3d8d,_0x4ff65b,_0x587b35,_0x190604,_0x15bfc6,_0x486fe4,_0x2956d3,_0x4026db),this[_0x27dfdb(0x32a)]=_0x154bf2,this[_0x27dfdb(0x4d6)]=_0x386a4c,z(this,_0x27dfdb(0x491),_0x27dfdb(0x456));}[_0x64ef4d(0x271)](_0x6034ae){const _0x1ef806=_0x64ef4d;return this[_0x1ef806(0x20f)][_0x1ef806(0x21f)](_0x6034ae),this[_0x1ef806(0x419)](),this;}[_0x64ef4d(0x44b)](_0x2ea954){const _0x5610d1=_0x64ef4d;return this[_0x5610d1(0x4d6)]['debug'](_0x5610d1(0x31c),_0x5610d1(0x513)+_0x2ea954[_0x5610d1(0x518)]+'.'),this;}[_0x64ef4d(0x465)](_0x1aade0){const _0x1233fe=_0x64ef4d;return this[_0x1233fe(0x4d6)][_0x1233fe(0x3af)](_0x1233fe(0x31c),_0x1233fe(0x326)+_0x1aade0['revision']+'.'),this;}[_0x64ef4d(0x48d)](){const _0x32bd23=_0x64ef4d;return this[_0x32bd23(0x4d6)][_0x32bd23(0x3af)](_0x32bd23(0x31c),_0x32bd23(0x527)),this;}[_0x64ef4d(0x1f8)](){return this;}['toggleOffline'](){return this;}[_0x64ef4d(0x3bf)](){const _0x28eb58=_0x64ef4d;let {_injector:_0x38113c,_pendingMutations:_0x1386e4,_awaitingChangeset:_0x560c78,unitID:_0x207fa0,_handler:_0x32ff77,type:_0x462a4e}=this,_0x71867d=Pn(_0x38113c,_0x207fa0,_0x462a4e,_0x560c78,_0x1386e4,_0x32ff77);return _0x71867d instanceof q?_0x71867d[_0x28eb58(0x3ce)]():(_0x71867d instanceof Y||_0x71867d instanceof J)&&_0x71867d[_0x28eb58(0x4f2)](),_0x71867d;}[_0x64ef4d(0x4f2)](){const _0x376989=_0x64ef4d;throw Error(_0x376989(0x356));}};Z=H([V(0x5,_0x12abaf(_0x1f4ba8)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x59a890),V(0x8,_0x510392),V(0x9,_0x1a4744),V(0xa,_0x4c5a46(U))],Z);let Q=class extends G{constructor(_0x343f02,_0x304758,_0x41f481,_0xdf5c0e,_0x21b062,_0x59ed70,_0xbbe5d8,_0x19ee93,_0x3c8fdd,_0x1e4354,_0x19e63c,_0x57ce0f,_0x13063b,_0x76626d,_0x4f2f77){const _0x31d97a=_0x64ef4d;super(_0x343f02,_0x304758,_0x41f481,_0xdf5c0e,_0xbbe5d8,_0x57ce0f,_0x13063b,_0x1e4354,_0x4f2f77),this[_0x31d97a(0x466)]=_0x21b062,this[_0x31d97a(0x2ea)]=_0x59ed70,this[_0x31d97a(0x4b5)]=_0x19ee93,this[_0x31d97a(0x32a)]=_0x3c8fdd,this['_logService']=_0x19e63c,this[_0x31d97a(0x48f)]=_0x76626d,this[_0x31d97a(0x2e2)]=_0x4f2f77,z(this,'status',_0x31d97a(0x33e));}['onMissedChangesetFetched'](_0x45bb3b){const _0x5476a7=_0x64ef4d;try{if(this[_0x5476a7(0x2eb)](_0x45bb3b)[_0x5476a7(0x40f)])throw Error(_0x5476a7(0x50a));if(this[_0x5476a7(0x2eb)]([...this[_0x5476a7(0x2ea)]][_0x5476a7(0x257)]((_0x1fcb1b,_0x4c7715)=>_0x1fcb1b[_0x5476a7(0x518)]-_0x4c7715[_0x5476a7(0x518)]))[_0x5476a7(0x40f)])return this[_0x5476a7(0x2ea)]=[],this[_0x5476a7(0x419)](),this[_0x5476a7(0x4fe)][_0x5476a7(0x2f5)]({'from':this[_0x5476a7(0x4a8)](),'to':0x0}),this;let _0x55d54d=this[_0x5476a7(0x338)],_0x59ec4f=this[_0x5476a7(0x20f)],_0x21f128;if(_0x55d54d&&_0x59ec4f[_0x5476a7(0x251)]!==0x0)_0x21f128=this['_injector']['createInstance'](Y,this[_0x5476a7(0x2af)],this['type'],_0x55d54d,_0x59ec4f,this[_0x5476a7(0x4fe)],this['_submitter']);else{if(_0x55d54d&&_0x59ec4f[_0x5476a7(0x251)]===0x0)_0x55d54d['baseRev']=this['_getCurrentRevision'](),_0x21f128=this[_0x5476a7(0x32a)][_0x5476a7(0x333)](J,this[_0x5476a7(0x2af)],this[_0x5476a7(0x38f)],_0x55d54d,this[_0x5476a7(0x4fe)],this[_0x5476a7(0x4b5)]);else{if(_0x59ec4f['length']!==0x0){let _0x4b1d75=this['_injector'][_0x5476a7(0x333)](q,this[_0x5476a7(0x2af)],this[_0x5476a7(0x38f)],_0x59ec4f,this[_0x5476a7(0x4fe)]);_0x4b1d75[_0x5476a7(0x3ce)](),_0x21f128=_0x4b1d75;}else _0x21f128=this[_0x5476a7(0x32a)][_0x5476a7(0x333)](K,this[_0x5476a7(0x2af)],this['type'],this[_0x5476a7(0x4fe)]);}}return _0x21f128['_updateLocalCache'](),_0x21f128;}catch(_0x2652c4){return _0x2652c4 instanceof Mn?(this[_0x5476a7(0x4d6)][_0x5476a7(0x3af)](_0x5476a7(0x2ab),_0x2652c4[_0x5476a7(0x305)]),this[_0x5476a7(0x421)](_0x2652c4[_0x5476a7(0x2e3)])):(this[_0x5476a7(0x4d6)][_0x5476a7(0x2d5)](_0x5476a7(0x2ab),_0x5476a7(0x268),_0x2652c4),this[_0x5476a7(0x421)](this['_conflictInfoFromError'](_0x2652c4)));}}[_0x64ef4d(0x2eb)](_0x5ed905){const _0x2a8332=_0x64ef4d;this[_0x2a8332(0x36a)]();for(let _0x56d03c=0x0;_0x56d03c<_0x5ed905[_0x2a8332(0x251)];_0x56d03c++){let _0x53cf62=_0x5ed905[_0x56d03c];switch(this[_0x2a8332(0x29c)](_0x53cf62)){case _0x2a8332(0x2a1):{let _0x45ab1c=this[_0x2a8332(0x4a8)]();if(_0x53cf62[_0x2a8332(0x518)]>_0x45ab1c+0x1)return{'missingChangesets':!0x0};_0x53cf62[_0x2a8332(0x518)]<=_0x45ab1c?this['_dropAcknowledgedAwaiting']():this['_acknowledgeAwaiting']();break;}case'remote_revert':throw new Mn(this['_remoteRevertInfo'](_0x53cf62));case _0x2a8332(0x24e):break;case _0x2a8332(0x293):return{'missingChangesets':!0x0};case'apply':this[_0x2a8332(0x3dc)](_0x53cf62),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x18c1ec){const _0x14b6e1=_0x64ef4d;let _0x3bfe82=_0x18c1ec,_0xd9582=this['_awaitingChangeset'];if(_0xd9582){let _0x292df4=this[_0x14b6e1(0x48f)][_0x14b6e1(0x511)]([_0x18c1ec],[_0xd9582],!0x1);if(!_0x331893(_0x292df4))throw _0x292df4[_0x14b6e1(0x2d5)];_0x3bfe82=_0x292df4[_0x14b6e1(0x3a7)][0x0],_0xd9582=_0x292df4[_0x14b6e1(0x526)][0x0];}let _0x295503=this[_0x14b6e1(0x20f)];if(_0x295503[_0x14b6e1(0x251)]){let _0x5b1031=this['_transformService'][_0x14b6e1(0x30f)](_0x3bfe82,_0x295503);if(!_0x1b0102(_0x5b1031))throw _0x5b1031[_0x14b6e1(0x2d5)];_0x3bfe82=_0x5b1031[_0x14b6e1(0x3a7)],_0x295503=_0x5b1031[_0x14b6e1(0x2e0)];}this['_executeRemoteChangeset'](_0x3bfe82),_0xd9582&&(_0xd9582[_0x14b6e1(0x32c)]=this[_0x14b6e1(0x4a8)]()),this[_0x14b6e1(0x338)]=_0xd9582,this[_0x14b6e1(0x20f)]=_0x295503;}['_acknowledgeAwaitingIfReady'](){const _0x20c73f=_0x64ef4d;if(!this[_0x20c73f(0x338)]||this[_0x20c73f(0x466)]==null)return;let _0x1f5e05=this[_0x20c73f(0x4a8)]();if(this[_0x20c73f(0x466)]<=_0x1f5e05)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x20c73f(0x466)]+'.');this['_acknowledgedAwaitingRevision']===_0x1f5e05+0x1&&this[_0x20c73f(0x404)]();}[_0x64ef4d(0x404)](){const _0x1eb762=_0x64ef4d;this[_0x1eb762(0x264)](),this[_0x1eb762(0x4bc)]();}[_0x64ef4d(0x4bc)](){const _0x22da6d=_0x64ef4d;this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null,this[_0x22da6d(0x413)]();}[_0x64ef4d(0x413)](){const _0x51840b=_0x64ef4d;var _0x39b34d;(_0x39b34d=this[_0x51840b(0x4b5)])==null||_0x39b34d[_0x51840b(0x357)](),this[_0x51840b(0x4b5)]=void 0x0;}['dispose'](){const _0x7ddd78=_0x64ef4d;this[_0x7ddd78(0x413)]();}[_0x64ef4d(0x4f2)](){const _0x3f826b=_0x64ef4d;throw Error(_0x3f826b(0x51b));}[_0x64ef4d(0x271)](_0x2ba828){const _0xa14a31=_0x64ef4d;return this['_pendingMutations'][_0xa14a31(0x21f)](_0x2ba828),this[_0xa14a31(0x419)](),this;}[_0x64ef4d(0x44b)](_0x2055be){const _0x1020a6=_0x64ef4d;return this[_0x1020a6(0x2ea)]['push'](_0x2055be),this;}['onRemoteAck'](_0x1ec0f4){const _0x325366=_0x64ef4d;let _0x4f83c4=this[_0x325366(0x2a0)](_0x1ec0f4);if(this[_0x325366(0x338)]){switch(_0x4f83c4){case _0x325366(0x40a):this[_0x325366(0x4bc)]();break;case _0x325366(0x407):break;case'next':this[_0x325366(0x404)]();break;case _0x325366(0x293):this['_acknowledgedAwaitingRevision']=_0x1ec0f4[_0x325366(0x518)],this[_0x325366(0x413)]();}return this;}if(_0x4f83c4===_0x325366(0x407))return this;throw Error(_0x325366(0x3df));}[_0x64ef4d(0x48d)](_0x21aacb){const _0xcc3991=_0x64ef4d;return this[_0xcc3991(0x421)](this[_0xcc3991(0x29f)](_0x21aacb));}[_0x64ef4d(0x1f8)](_0x1d5918,_0x503f2b){const _0x3b2281=_0x64ef4d;var _0x162779;return this['_acknowledgedAwaitingRevision']!=null||_0x1d5918[_0x3b2281(0x287)]!==((_0x162779=this['_awaitingChangeset'])==null?void 0x0:_0x162779['reqId'])||(this[_0x3b2281(0x4b5)]??=this[_0x3b2281(0x352)](this[_0x3b2281(0x338)]),this['_submitter']['requestRetry'](this[_0x3b2281(0x403)](_0x503f2b))),this;}[_0x64ef4d(0x3ec)](){const _0x7b1196=_0x64ef4d;return this[_0x7b1196(0x413)](),this[_0x7b1196(0x32a)][_0x7b1196(0x333)](Z,this[_0x7b1196(0x2af)],this[_0x7b1196(0x38f)],this[_0x7b1196(0x338)],this['_pendingMutations'],this['_handler']);}[_0x64ef4d(0x3bf)](){return this;}[_0x64ef4d(0x421)](_0x53022c){const _0x20961d=_0x64ef4d;return this[_0x20961d(0x413)](),this['_injector'][_0x20961d(0x333)](X,this[_0x20961d(0x2af)],this[_0x20961d(0x38f)],this[_0x20961d(0x338)],this[_0x20961d(0x20f)],this['_handler'],_0x53022c);}};Q=H([V(0x8,_0x12abaf(_0x1f4ba8)),V(0x9,_0x12abaf(_0x36042b)),V(0xa,_0x1a4744),V(0xb,_0x59a890),V(0xc,_0x510392),V(0xd,_0x2f82dd),V(0xe,_0x4c5a46(U))],Q);function Pn(_0x2a3097,_0x548428,_0x37e88e,_0x232f41,_0x18ddef,_0x4aae05){const _0x430376=_0x64ef4d;return _0x232f41&&_0x18ddef[_0x430376(0x251)]?_0x2a3097[_0x430376(0x333)](Y,_0x548428,_0x37e88e,_0x232f41,_0x18ddef,_0x4aae05,void 0x0):_0x232f41?_0x2a3097[_0x430376(0x333)](J,_0x548428,_0x37e88e,_0x232f41,_0x4aae05,void 0x0):_0x18ddef[_0x430376(0x251)]?_0x2a3097[_0x430376(0x333)](q,_0x548428,_0x37e88e,_0x18ddef,_0x4aae05):_0x2a3097[_0x430376(0x333)](K,_0x548428,_0x37e88e,_0x4aae05);}let $=class extends _0x3f9f03{get['state'](){return this['_state'];}constructor(_0x555a26,_0x5a04fb,_0x107e0f,_0x5bce4b,_0x332091,_0xb997af,_0x37da8c,_0x2af408,_0x2e5db4,_0x4f83fd,_0x2ad3d5,_0x394070,_0x103c91,_0x1570b1){const _0x4b8b20=_0x64ef4d;super(),this['unitID']=_0x555a26,this[_0x4b8b20(0x472)]=_0x5a04fb,this[_0x4b8b20(0x230)]=_0x107e0f,this[_0x4b8b20(0x32a)]=_0x5bce4b,this['_compressMutationService']=_0x332091,this[_0x4b8b20(0x2c1)]=_0xb997af,this[_0x4b8b20(0x302)]=_0x37da8c,this[_0x4b8b20(0x29b)]=_0x2af408,this['_univerInstanceService']=_0x2e5db4,this['_logService']=_0x4f83fd,this[_0x4b8b20(0x22c)]=_0x2ad3d5,this[_0x4b8b20(0x24a)]=_0x394070,this[_0x4b8b20(0x38b)]=_0x103c91,this[_0x4b8b20(0x226)]=_0x1570b1,z(this,_0x4b8b20(0x31e),new _0x205351(null)),z(this,_0x4b8b20(0x41c),this[_0x4b8b20(0x31e)][_0x4b8b20(0x41e)]()),z(this,_0x4b8b20(0x3cd),void 0x0),z(this,_0x4b8b20(0x528),!0x1),z(this,_0x4b8b20(0x4fd),''),z(this,_0x4b8b20(0x34e),0x0),z(this,_0x4b8b20(0x2e1),this[_0x4b8b20(0x41c)]['pipe'](_0x1c5dcf(_0x46ec5c=>_0x46ec5c?_0x46ec5c['status']:_0x4b8b20(0x456)),_0x217e04({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x4b8b20(0x452),new _0x18775b()),z(this,_0x4b8b20(0x4f7),this[_0x4b8b20(0x452)][_0x4b8b20(0x41e)]()),z(this,_0x4b8b20(0x3c6),new _0x18775b()),z(this,_0x4b8b20(0x223),this['_conflict$'][_0x4b8b20(0x41e)]()),z(this,_0x4b8b20(0x468),!0x1),z(this,_0x4b8b20(0x4d5),[]);}async['init'](){const _0x9c8134=_0x64ef4d;if(this[_0x9c8134(0x28f)])throw Error(_0x9c8134(0x501));await this[_0x9c8134(0x26a)]();}[_0x64ef4d(0x34a)](){const _0x154bb=_0x64ef4d;return this[_0x154bb(0x528)]=!0x0,_0x27106b(()=>{const _0x2bfef9=_0x154bb;this[_0x2bfef9(0x528)]=!0x1,this[_0x2bfef9(0x1fc)]();});}[_0x64ef4d(0x270)](_0x3b4977){this['_onLocalMutation'](_0x3b4977);}[_0x64ef4d(0x320)](){const _0x4324a5=_0x64ef4d;var _0x90e67f;return((_0x90e67f=this[_0x4324a5(0x3cd)])==null?void 0x0:_0x90e67f['hasLocalChanges']())??!0x1;}[_0x64ef4d(0x357)](){const _0x517a0a=_0x64ef4d;var _0x18176a;super[_0x517a0a(0x357)](),(_0x18176a=this[_0x517a0a(0x3cd)])==null||_0x18176a[_0x517a0a(0x357)](),this[_0x517a0a(0x452)][_0x517a0a(0x46f)](),this['_conflict$'][_0x517a0a(0x46f)]();}['_updateState'](_0xf5f3f8){const _0x30e53d=_0x64ef4d;this[_0x30e53d(0x3cd)]=_0xf5f3f8,this[_0x30e53d(0x31e)][_0x30e53d(0x429)](_0xf5f3f8);}async['_init'](){const _0x2f3cf4=_0x64ef4d;if(this[_0x2f3cf4(0x322)](await this[_0x2f3cf4(0x4d9)]()),this[_0x2f3cf4(0x38b)]){var _0x250ced;(_0x250ced=this['_singleActiveUnitService'])==null||_0x250ced[_0x2f3cf4(0x3bc)](this[_0x2f3cf4(0x2af)]),this[_0x2f3cf4(0x38a)](this[_0x2f3cf4(0x38b)]['getUnitStatus$'](this[_0x2f3cf4(0x2af)])['subscribe'](_0x434d73=>{const _0x1a848c=_0x2f3cf4;this[_0x1a848c(0x4d6)][_0x1a848c(0x3af)](_0x1a848c(0x207),_0x1a848c(0x442),_0x434d73),_0x434d73===0x1?(this[_0x1a848c(0x29b)][_0x1a848c(0x2c0)]({'id':_0x1a848c(0x31b)}),this[_0x1a848c(0x24a)]['updatePermissionPoint'](new _0x2a7ff0(this[_0x1a848c(0x2af)])['id'],!0x1),this[_0x1a848c(0x24a)]['setShowComponents'](!0x1)):(this[_0x1a848c(0x24a)]['updatePermissionPoint'](new _0x2a7ff0(this[_0x1a848c(0x2af)])['id'],!0x0),this['_permissionService'][_0x1a848c(0x325)](!0x0));}));}let _0x30188b=!0x1;return this[_0x2f3cf4(0x38a)](this[_0x2f3cf4(0x472)]['sessionStatus$'][_0x2f3cf4(0x4bd)](_0x1f3b9e=>{const _0x5170c3=_0x2f3cf4;_0x1f3b9e===0x3?this[_0x5170c3(0x374)](_0x30188b):_0x1f3b9e===0x2&&(_0x30188b=!0x0,this['_toggleOffline']());})),this[_0x2f3cf4(0x38a)](this[_0x2f3cf4(0x472)]['event$']['subscribe'](_0x1236a2=>{const _0x2ac449=_0x2f3cf4;try{switch(_0x1236a2[_0x2ac449(0x500)]){case _0xacdc36[_0x2ac449(0x23d)]:this[_0x2ac449(0x248)](_0x44a77b(_0x1236a2['data']));break;case _0xacdc36[_0x2ac449(0x28b)]:this['_onRemoteACK'](_0x1236a2[_0x2ac449(0x4e5)]);break;case _0xacdc36[_0x2ac449(0x469)]:this['_onRemoteRejected']({'isPermissionRej':!0x1,'reason':_0x1236a2[_0x2ac449(0x355)],'code':_0x1236a2['code']});break;case _0xacdc36['CHANGESET_SHOULD_RETRY']:{let _0x47a5ef=_0x1236a2;this[_0x2ac449(0x460)](_0x47a5ef[_0x2ac449(0x4e5)],_0x47a5ef[_0x2ac449(0x3d0)]);break;}case _0xacdc36[_0x2ac449(0x3b8)]:this[_0x2ac449(0x438)](_0x1236a2['data']['changesets'][_0x2ac449(0x48a)](_0x34c1f7=>_0x44a77b(_0x34c1f7)));break;case _0xacdc36[_0x2ac449(0x3db)]:this['_onRemoteRejected']({'isPermissionRej':!0x0,'reason':_0x1236a2['reason'],'code':_0x1236a2[_0x2ac449(0x3d0)]});break;case _0xacdc36[_0x2ac449(0x30a)]:}}catch(_0x3fe29f){throw console[_0x2ac449(0x2d5)](_0x2ac449(0x2f8),_0x3fe29f),_0x3fe29f;}})),this[_0x2f3cf4(0x3cd)];}[_0x64ef4d(0x308)](){const _0xf260de=_0x64ef4d;this[_0xf260de(0x468)]=!0x1;}[_0x64ef4d(0x3eb)](){const _0x2983d5=_0x64ef4d;if(this[_0x2983d5(0x468)])throw Error(_0x2983d5(0x45c));this[_0x2983d5(0x468)]=!0x0;}[_0x64ef4d(0x473)](_0x2c123f){const _0x502924=_0x64ef4d;this[_0x502924(0x3eb)]();try{this[_0x502924(0x322)](_0x2c123f());}finally{this[_0x502924(0x308)]();}}[_0x64ef4d(0x4e4)](_0x15f8a6){const _0x4d140a=_0x64ef4d;this[_0x4d140a(0x473)](()=>this[_0x4d140a(0x3cd)][_0x4d140a(0x271)](_0x15f8a6));}[_0x64ef4d(0x248)](_0x59da0){const _0x1a7202=_0x64ef4d;this['_collaborationPaused']?this[_0x1a7202(0x4d5)]['push'](_0x59da0):this[_0x1a7202(0x35a)](_0x59da0);}[_0x64ef4d(0x1fc)](){const _0x5f1a04=_0x64ef4d;this['_remoteChangesetQueue']['forEach'](_0x2d2060=>this[_0x5f1a04(0x35a)](_0x2d2060)),this[_0x5f1a04(0x4d5)]=[];}[_0x64ef4d(0x35a)](_0x1c1fcd){const _0x178d4c=_0x64ef4d;let _0x1b7744=this[_0x178d4c(0x200)][_0x178d4c(0x4eb)][_0x178d4c(0x2a3)](this[_0x178d4c(0x200)][_0x178d4c(0x4eb)][_0x178d4c(0x3cf)]()['COMPRESS_MUTATION_APPLY'])(_0x1c1fcd[_0x178d4c(0x3da)],null)||_0x1c1fcd[_0x178d4c(0x3da)],_0x393026={..._0x1c1fcd,'mutations':_0x1b7744};this['_transit'](()=>this[_0x178d4c(0x3cd)]['onRemoteChangeset'](_0x393026));}[_0x64ef4d(0x33b)](_0x2aa173){const _0x2fd13a=_0x64ef4d;this[_0x2fd13a(0x473)](()=>this[_0x2fd13a(0x3cd)][_0x2fd13a(0x465)](_0x2aa173));}['_onRemoteRejected'](_0x5ec78c){const _0x39409e=_0x64ef4d;this[_0x39409e(0x473)](()=>this[_0x39409e(0x3cd)]['onRemoteRej'](_0x5ec78c));}['_onRemoteRetry'](_0x3f5b56,_0x45e93f){const _0x5844a2=_0x64ef4d;this[_0x5844a2(0x473)](()=>this[_0x5844a2(0x3cd)][_0x5844a2(0x1f8)](_0x3f5b56,_0x45e93f));}[_0x64ef4d(0x438)](_0x4975a0){const _0xab2ec1=_0x64ef4d;let _0x1520c5=this[_0xab2ec1(0x3cd)];if(!(_0x1520c5 instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x4f58a8=_0x4975a0[_0xab2ec1(0x48a)](_0x44d388=>{const _0xe5d709=_0xab2ec1;let _0x264764=this[_0xe5d709(0x200)][_0xe5d709(0x4eb)][_0xe5d709(0x2a3)](this['_compressMutationService']['interceptor'][_0xe5d709(0x3cf)]()[_0xe5d709(0x28d)])(_0x44d388[_0xe5d709(0x3da)],null)||_0x44d388[_0xe5d709(0x3da)];return{..._0x44d388,'mutations':_0x264764};});this['_transit'](()=>_0x1520c5[_0xab2ec1(0x381)](_0x4f58a8));}['_toggleOffline'](){const _0x475cd5=_0x64ef4d;this['_transit'](()=>this[_0x475cd5(0x3cd)][_0x475cd5(0x3ec)]());}['_toggleOnline'](_0x578b00=!0x1){const _0x21d921=_0x64ef4d;this[_0x21d921(0x473)](()=>this[_0x21d921(0x3cd)][_0x21d921(0x3bf)]());let _0x56509b=this[_0x21d921(0x3cd)];_0x578b00&&_0x56509b instanceof K&&this['_transit'](()=>_0x56509b[_0x21d921(0x254)]());}async[_0x64ef4d(0x4d9)](){return new Promise(_0x430bdc=>{const _0x3d9ae0=_0x5841;this[_0x3d9ae0(0x472)][_0x3d9ae0(0x379)][_0x3d9ae0(0x4f0)](_0x4b430a(0x1))['subscribe'](async _0x179360=>{const _0x1cde33=_0x3d9ae0;_0x430bdc(await this[_0x1cde33(0x2db)](_0x179360===0x3));});});}[_0x64ef4d(0x481)](){const _0x3c40a4=_0x64ef4d;let _0x169c01=this['unitID'],_0x5c27e8=this[_0x3c40a4(0x32a)][_0x3c40a4(0x22d)](_0x1c2d46)[_0x3c40a4(0x1f4)](R);return{'resendTimeouts':{'ackTimeout':_0x5c27e8==null?void 0x0:_0x5c27e8[_0x3c40a4(0x39d)],'maxAckTimeout':_0x5c27e8==null?void 0x0:_0x5c27e8[_0x3c40a4(0x2d2)]},'onStateChange':(_0x531b39,_0x4ca175)=>{const _0x1590aa=_0x3c40a4;if(_0x531b39!==this[_0x1590aa(0x3cd)])throw Error(_0x1590aa(0x2a5)+_0x531b39[_0x1590aa(0x491)]+'\x0aAfter:\x20'+_0x4ca175['status']+'\x0aCurrent:\x20'+this[_0x1590aa(0x3cd)][_0x1590aa(0x491)]);this[_0x1590aa(0x322)](_0x4ca175);},'onSendChangeset':(_0x5dfa76,_0x39004e)=>{const _0x143c2a=_0x3c40a4;_0x5dfa76['sid']||(_0x5dfa76[_0x143c2a(0x40e)]=this[_0x143c2a(0x4fd)],_0x5dfa76[_0x143c2a(0x287)]=++this['_changesetReqId']);let _0x20f6c0={'eventID':_0xacdc36[_0x143c2a(0x265)],'data':{'unitID':_0x5dfa76[_0x143c2a(0x2af)],'unitType':this[_0x143c2a(0x230)],'changeset':_0x5dfa76,'memberID':this[_0x143c2a(0x472)][_0x143c2a(0x290)]()}};return this[_0x143c2a(0x472)][_0x143c2a(0x441)](_0x20f6c0,this[_0x143c2a(0x2af)],_0x39004e);},'onConflict':(_0x202a91,_0x528c3d,_0x1133f6)=>{const _0x4fbcf9=_0x3c40a4;this[_0x4fbcf9(0x3c6)][_0x4fbcf9(0x321)]||this[_0x4fbcf9(0x3c6)][_0x4fbcf9(0x429)]({'unitID':_0x169c01,..._0x202a91,'localChanges':_0x528c3d,'cacheCleared':_0x1133f6});},'onChangesetResend':_0x23f3c1=>{const _0x3e393b=_0x3c40a4;this[_0x3e393b(0x4d6)][_0x3e393b(0x3af)]('[CollaborationEntity]',_0x3e393b(0x487)+_0x23f3c1[_0x3e393b(0x287)]+'\x20('+_0x23f3c1[_0x3e393b(0x355)]+_0x3e393b(0x342)+_0x23f3c1[_0x3e393b(0x3a0)]+')'),queueMicrotask(()=>{const _0x1c3e56=_0x3e393b;this[_0x1c3e56(0x452)][_0x1c3e56(0x321)]||this[_0x1c3e56(0x452)][_0x1c3e56(0x429)]({'unitID':_0x169c01,..._0x23f3c1});});},'onMissingChangesets':({from:_0x42c3c5,to:_0x1fb514})=>{const _0x5f5750=_0x3c40a4;this[_0x5f5750(0x4d6)][_0x5f5750(0x3af)](_0x5f5750(0x207),_0x5f5750(0x46d)+_0x42c3c5+_0x5f5750(0x448)+_0x1fb514);let _0x344521={'eventID':_0xacdc36[_0x5f5750(0x4c5)],'data':{'unitID':_0x169c01,'unitType':this[_0x5f5750(0x230)],'from':_0x42c3c5,'to':_0x1fb514}};this[_0x5f5750(0x472)]['send'](_0x344521,this[_0x5f5750(0x2af)]);}};}async[_0x64ef4d(0x2db)](_0x1baf23){const _0x307c76=_0x64ef4d;var _0x453efc;let _0x13ce98=await((_0x453efc=this['_localCacheService'])==null?void 0x0:_0x453efc[_0x307c76(0x35e)](this[_0x307c76(0x2af)])),_0x4d15ca=(_0x13ce98==null?void 0x0:_0x13ce98[_0x307c76(0x3da)])??[],_0x42cc38=(_0x13ce98==null?void 0x0:_0x13ce98[_0x307c76(0x400)])??null,_0x4d478a=!!(_0x42cc38!=null&&_0x42cc38[_0x307c76(0x40e)])&&!!(_0x42cc38!=null&&_0x42cc38[_0x307c76(0x287)]);this[_0x307c76(0x4fd)]=_0x4d478a?_0x42cc38[_0x307c76(0x40e)]:_0x163043(),this[_0x307c76(0x34e)]=_0x4d478a?_0x42cc38[_0x307c76(0x287)]:0x0;let _0x45a8e6=this[_0x307c76(0x2af)];try{this[_0x307c76(0x530)](_0x42cc38,_0x4d15ca);}catch(_0x40ca2b){this['_logService'][_0x307c76(0x2d5)](_0x40ca2b);}let _0x15ff03=this[_0x307c76(0x481)]();if(_0x1baf23){let _0x51e22e=Pn(this['_injector'],_0x45a8e6,this[_0x307c76(0x230)],_0x42cc38,_0x4d15ca,_0x15ff03);return _0x51e22e instanceof q?_0x51e22e[_0x307c76(0x3ce)]():(_0x51e22e instanceof Y||_0x51e22e instanceof J)&&_0x51e22e[_0x307c76(0x4f2)](),_0x51e22e;}return this[_0x307c76(0x32a)][_0x307c76(0x333)](Z,_0x45a8e6,this[_0x307c76(0x230)],_0x42cc38,_0x4d15ca,_0x15ff03);}[_0x64ef4d(0x530)](_0x2dd55c,_0x1c8a8e){const _0x60668f=_0x64ef4d;var _0x5a6445,_0x130176;let _0x9c36cc=this['_compressMutationService'][_0x60668f(0x4eb)]['fetchThroughInterceptors'](this[_0x60668f(0x200)][_0x60668f(0x4eb)][_0x60668f(0x3cf)]()[_0x60668f(0x28d)]);(_0x5a6445=_0x9c36cc((_0x2dd55c==null?void 0x0:_0x2dd55c['mutations'])||[],null))==null||_0x5a6445[_0x60668f(0x3c3)](_0x4f05c6=>this[_0x60668f(0x22c)][_0x60668f(0x4bf)](_0x4f05c6['id'],_0x4f05c6[_0x60668f(0x4f6)])),(_0x130176=_0x9c36cc(_0x1c8a8e||[],null))==null||_0x130176[_0x60668f(0x3c3)](_0x22c554=>this['_commandService']['executeCommand'](_0x22c554['id'],_0x22c554[_0x60668f(0x4f6)]));}};$=H([V(0x3,_0x12abaf(_0x1f4ba8)),V(0x4,_0x12abaf(_0x1457db)),V(0x5,_0x12abaf(_0x1b8087)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x12abaf(B)),V(0x8,_0xde2491),V(0x9,_0x1a4744),V(0xa,_0x59a890),V(0xb,_0x4457eb),V(0xc,_0x4c5a46(W)),V(0xd,_0x4c5a46(U))],$);let Fn=class extends ${constructor(_0x4c3337,_0x2fc3b2,_0x31b13c,_0x5b42fb,_0x121671,_0x32504d,_0x55e1a2,_0x21a14b,_0x1329e2,_0x364794,_0x20bfd2,_0x46a4b5,_0x3c92bd,_0x5dada2,_0x5e1448){const _0x190953=_0x64ef4d;super(_0x4c3337,_0x31b13c,_0x2fc3b2,_0x5b42fb,_0x121671,_0x32504d,_0x55e1a2,_0x21a14b,_0x1329e2,_0x364794,_0x20bfd2,_0x46a4b5,_0x5dada2,_0x5e1448),this[_0x190953(0x2af)]=_0x4c3337,this[_0x190953(0x38f)]=_0x2fc3b2,this[_0x190953(0x1ef)]=_0x3c92bd,z(this,_0x190953(0x362),null);}[_0x64ef4d(0x3f0)](_0x18ae5e){const _0x3f92f0=_0x64ef4d;this[_0x3f92f0(0x362)]=_0x18ae5e;}['dispose'](){const _0x42fb01=_0x64ef4d;this[_0x42fb01(0x362)]=null,super[_0x42fb01(0x357)]();}[_0x64ef4d(0x481)](){const _0xadf7e4=_0x64ef4d;let _0x1978ba=super[_0xadf7e4(0x481)]();return _0x1978ba[_0xadf7e4(0x4d2)]=_0x3da922=>{const _0x136d3d=_0xadf7e4;var _0x5ef526,_0x2df3d3;return(_0x5ef526=this[_0x136d3d(0x362)])==null||(_0x2df3d3=_0x5ef526[_0x136d3d(0x4d2)])==null?void 0x0:_0x2df3d3[_0x136d3d(0x35c)](_0x5ef526,_0x3da922);},_0x1978ba[_0xadf7e4(0x2d6)]=_0x49917c=>{const _0x5a5ea9=_0xadf7e4;var _0x4033cf,_0x47ea44;return(_0x4033cf=this[_0x5a5ea9(0x362)])==null||(_0x47ea44=_0x4033cf[_0x5a5ea9(0x2d6)])==null?void 0x0:_0x47ea44[_0x5a5ea9(0x35c)](_0x4033cf,_0x49917c);},_0x1978ba[_0xadf7e4(0x4ee)]=_0x2cadb4=>{const _0x2de35e=_0xadf7e4;var _0x144489,_0x57f6a9;return((_0x144489=this['_handlerCallback'])==null||(_0x57f6a9=_0x144489['onPrepareTransformSelections'])==null?void 0x0:_0x57f6a9[_0x2de35e(0x35c)](_0x144489,_0x2cadb4))??null;},_0x1978ba[_0xadf7e4(0x218)]=_0x300bfe=>{const _0x400487=_0xadf7e4;var _0x38876b,_0x40f812;return(_0x38876b=this['_handlerCallback'])==null||(_0x40f812=_0x38876b[_0x400487(0x218)])==null?void 0x0:_0x40f812['call'](_0x38876b,_0x300bfe);},_0x1978ba['onSyncEditingCollabCursor']=_0x2e2fa2=>{const _0x28123a=_0xadf7e4;var _0x1e413a,_0x446417;return(_0x1e413a=this['_handlerCallback'])==null||(_0x446417=_0x1e413a[_0x28123a(0x390)])==null?void 0x0:_0x446417[_0x28123a(0x35c)](_0x1e413a,_0x2e2fa2);},_0x1978ba[_0xadf7e4(0x237)]=_0x311c6f=>{const _0x30c397=_0xadf7e4;var _0x2781fc,_0x10a933;return((_0x2781fc=this['_handlerCallback'])==null||(_0x10a933=_0x2781fc[_0x30c397(0x237)])==null?void 0x0:_0x10a933[_0x30c397(0x35c)](_0x2781fc,_0x311c6f))??_0x311c6f;},_0x1978ba['onTransformRemoteChangesetByStateCache']=_0x11cb17=>{const _0xb7bfb9=_0xadf7e4;var _0x2fa204,_0x2e627d;return((_0x2fa204=this[_0xb7bfb9(0x362)])==null||(_0x2e627d=_0x2fa204[_0xb7bfb9(0x29d)])==null?void 0x0:_0x2e627d['call'](_0x2fa204,_0x11cb17))??_0x11cb17;},_0x1978ba;}async[_0x64ef4d(0x26a)](){const _0x3375d0=_0x64ef4d;let _0x37d97d=await super[_0x3375d0(0x26a)]();return this[_0x3375d0(0x38a)](this['_docStateChangeManagerService'][_0x3375d0(0x397)]['subscribe'](_0x48c837=>{const _0x22c2de=_0x3375d0;if(_0x48c837==null||_0x48c837[_0x22c2de(0x339)]!==this['unitID'])return;let {commandId:_0x4e8eb8,redoState:_0xa9a573,unitId:_0x1d06b5}=_0x48c837,_0x1cd526={'id':_0x4e8eb8,'type':_0x503736['MUTATION'],'params':{'unitId':_0x1d06b5,'actions':_0xa9a573[_0x22c2de(0x327)],'textRanges':null}};this['_onLocalMutation'](_0x1cd526);})),this[_0x3375d0(0x38a)](this[_0x3375d0(0x22c)][_0x3375d0(0x2d8)]((_0x216f95,_0x2a76d2)=>{const _0x3ed83c=_0x3375d0;if(_0x216f95[_0x3ed83c(0x38f)]!==_0x503736[_0x3ed83c(0x2ae)]||_0x2a76d2!=null&&_0x2a76d2[_0x3ed83c(0x36c)]||_0x2a76d2!=null&&_0x2a76d2['onlyLocal']||_0x216f95['id']===_0x3a6e2f['id'])return;let _0x189d46=_0x216f95[_0x3ed83c(0x4f6)];if((_0x189d46==null?void 0x0:_0x189d46[_0x3ed83c(0x339)])!==this[_0x3ed83c(0x2af)])return;let _0x17d0a1=_0x216f95,_0x29822a=this['_compressMutationService'][_0x3ed83c(0x4eb)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x3ed83c(0x4eb)][_0x3ed83c(0x3cf)]()[_0x3ed83c(0x2be)])([_0x17d0a1],this[_0x3ed83c(0x3e4)])||[_0x17d0a1];this[_0x3ed83c(0x4e4)](_0x29822a[0x0]);})),_0x37d97d;}};Fn=H([V(0x3,_0x12abaf(_0x1f4ba8)),V(0x4,_0x12abaf(_0x1457db)),V(0x5,_0x12abaf(_0x1b8087)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x12abaf(B)),V(0x8,_0xde2491),V(0x9,_0x1a4744),V(0xa,_0x59a890),V(0xb,_0x4457eb),V(0xc,_0x12abaf(_0x33d1e9)),V(0xd,_0x4c5a46(W)),V(0xe,_0x4c5a46(U))],Fn);let In=class extends ${constructor(_0x120ba1,_0x5170e4,_0x3957f7,_0x3f7ea0,_0x201c8b,_0x2b5116,_0x181066,_0x46ce0f,_0x2f80be,_0x205280,_0x5581b7,_0x411e1e,_0x337b8b,_0x428d76){const _0x19c1bd=_0x64ef4d;super(_0x120ba1,_0x3957f7,_0x5170e4,_0x3f7ea0,_0x201c8b,_0x2b5116,_0x181066,_0x46ce0f,_0x2f80be,_0x205280,_0x5581b7,_0x411e1e,_0x337b8b,_0x428d76),this[_0x19c1bd(0x2af)]=_0x120ba1,this[_0x19c1bd(0x38f)]=_0x5170e4;}async[_0x64ef4d(0x26a)](){const _0xf736a=_0x64ef4d;let _0x2f2c3c=await super[_0xf736a(0x26a)]();return this[_0xf736a(0x38a)](this[_0xf736a(0x22c)][_0xf736a(0x2d8)]((_0xe4f03d,_0xb301b8)=>{const _0x5b8a72=_0xf736a;if(_0xe4f03d[_0x5b8a72(0x38f)]!==_0x503736[_0x5b8a72(0x2ae)]||_0xb301b8!=null&&_0xb301b8[_0x5b8a72(0x36c)]||_0xb301b8!=null&&_0xb301b8[_0x5b8a72(0x3e9)])return;let _0x1282a1=_0xe4f03d[_0x5b8a72(0x4f6)];if((_0x1282a1==null?void 0x0:_0x1282a1[_0x5b8a72(0x339)])!==this['unitID'])return;let _0xe37404=_0xe4f03d,_0x16b09d=this[_0x5b8a72(0x200)][_0x5b8a72(0x4eb)][_0x5b8a72(0x2a3)](this[_0x5b8a72(0x200)][_0x5b8a72(0x4eb)][_0x5b8a72(0x3cf)]()[_0x5b8a72(0x2be)])([_0xe37404],this[_0x5b8a72(0x3e4)])||[_0xe37404];this[_0x5b8a72(0x4e4)](_0x16b09d[0x0]);})),_0x2f2c3c;}};In=H([V(0x3,_0x12abaf(_0x1f4ba8)),V(0x4,_0x12abaf(_0x1457db)),V(0x5,_0x12abaf(_0x1b8087)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x12abaf(B)),V(0x8,_0xde2491),V(0x9,_0x1a4744),V(0xa,_0x59a890),V(0xb,_0x4457eb),V(0xc,_0x4c5a46(W)),V(0xd,_0x4c5a46(U))],In);let Ln=class extends ${constructor(_0x4d534d,_0x18d93e,_0x32f5b4,_0x410f82,_0x262426,_0x1951b6,_0x174bcd,_0x59e45f,_0x55ee1b,_0x31d2b2,_0x2d394e,_0x18655,_0x29082e,_0x3728df,_0x30c39d){const _0x3165c6=_0x64ef4d;super(_0x4d534d,_0x32f5b4,_0x18d93e,_0x410f82,_0x262426,_0x1951b6,_0x174bcd,_0x55ee1b,_0x31d2b2,_0x2d394e,_0x18655,_0x29082e,_0x3728df,_0x30c39d),this[_0x3165c6(0x2af)]=_0x4d534d,this[_0x3165c6(0x38f)]=_0x18d93e,this[_0x3165c6(0x28e)]=_0x59e45f;}[_0x64ef4d(0x481)](){const _0x4b0c27=_0x64ef4d;let _0x2d035e=super[_0x4b0c27(0x481)]();return _0x2d035e[_0x4b0c27(0x218)]=_0x370c4b=>this[_0x4b0c27(0x28e)][_0x4b0c27(0x4d4)](_0x370c4b),_0x2d035e;}async[_0x64ef4d(0x26a)](){const _0x107ed9=_0x64ef4d;let _0x23f7d9=await super[_0x107ed9(0x26a)]();return this[_0x107ed9(0x38a)](this[_0x107ed9(0x22c)][_0x107ed9(0x2d8)]((_0x2332aa,_0x5712c6)=>{const _0x1334d2=_0x107ed9;if(_0x2332aa[_0x1334d2(0x38f)]!==_0x503736[_0x1334d2(0x2ae)]||_0x5712c6!=null&&_0x5712c6[_0x1334d2(0x36c)]||_0x5712c6!=null&&_0x5712c6[_0x1334d2(0x3e9)])return;let _0x24b737=_0x2332aa[_0x1334d2(0x4f6)];if((_0x24b737==null?void 0x0:_0x24b737['unitId'])!==this[_0x1334d2(0x2af)])return;let _0x7cd3c7=_0x2332aa,_0x23a37d=this[_0x1334d2(0x200)][_0x1334d2(0x4eb)]['fetchThroughInterceptors'](this[_0x1334d2(0x200)][_0x1334d2(0x4eb)][_0x1334d2(0x3cf)]()['COMPRESS_MUTATION_SEND'])([_0x7cd3c7],this[_0x1334d2(0x3e4)])||[_0x7cd3c7];this[_0x1334d2(0x4e4)](_0x23a37d[0x0]);})),_0x23f7d9;}};Ln=H([V(0x3,_0x12abaf(_0x1f4ba8)),V(0x4,_0x12abaf(_0x1457db)),V(0x5,_0x12abaf(_0x1b8087)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x12abaf(ln)),V(0x8,_0x12abaf(B)),V(0x9,_0xde2491),V(0xa,_0x1a4744),V(0xb,_0x59a890),V(0xc,_0x4457eb),V(0xd,_0x4c5a46(W)),V(0xe,_0x4c5a46(U))],Ln);let Rn=class extends ${constructor(_0x852041,_0x5c6ccf,_0x309e15,_0x26ac98,_0x860885,_0x2620cd,_0x414a58,_0x300b16,_0x3e76dc,_0x12d95f,_0x4cb61c,_0x4df310,_0x113963,_0x595e80){const _0x591695=_0x64ef4d;super(_0x852041,_0x309e15,_0x5c6ccf,_0x26ac98,_0x860885,_0x2620cd,_0x414a58,_0x300b16,_0x3e76dc,_0x12d95f,_0x4cb61c,_0x4df310,_0x113963,_0x595e80),this[_0x591695(0x2af)]=_0x852041,this[_0x591695(0x38f)]=_0x5c6ccf;}async['_init'](){const _0x1f04cd=_0x64ef4d;let _0x356bdc=await super[_0x1f04cd(0x26a)]();return this['disposeWithMe'](this[_0x1f04cd(0x22c)]['onMutationExecutedForCollab']((_0x4ead44,_0x4a0bb6)=>{const _0x4a9cf0=_0x1f04cd;if(_0x4ead44['type']!==_0x503736[_0x4a9cf0(0x2ae)]||_0x4a0bb6!=null&&_0x4a0bb6['fromCollab']||_0x4a0bb6!=null&&_0x4a0bb6[_0x4a9cf0(0x3e9)])return;let _0xaefff6=_0x4ead44[_0x4a9cf0(0x4f6)];if((_0xaefff6==null?void 0x0:_0xaefff6['unitId'])!==this[_0x4a9cf0(0x2af)])return;let _0x211a79=_0x4ead44,_0x3f7a34=this['_compressMutationService'][_0x4a9cf0(0x4eb)][_0x4a9cf0(0x2a3)](this['_compressMutationService'][_0x4a9cf0(0x4eb)][_0x4a9cf0(0x3cf)]()[_0x4a9cf0(0x2be)])([_0x211a79],this['_univerInstanceService'])||[_0x211a79];this[_0x4a9cf0(0x4e4)](_0x3f7a34[0x0]);})),_0x356bdc;}};Rn=H([V(0x3,_0x12abaf(_0x1f4ba8)),V(0x4,_0x12abaf(_0x1457db)),V(0x5,_0x12abaf(_0x1b8087)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x12abaf(B)),V(0x8,_0xde2491),V(0x9,_0x1a4744),V(0xa,_0x59a890),V(0xb,_0x4457eb),V(0xc,_0x4c5a46(W)),V(0xd,_0x4c5a46(U))],Rn);let zn=class extends ${constructor(_0x37ce33,_0x4ad96c,_0x2b6608,_0x491dca,_0x1aa4e4,_0x124556,_0x16f8c2,_0x42a2cc,_0x584442,_0x4069d7,_0x22f503,_0x3f8c25,_0x314f19,_0x39f871){const _0x2742aa=_0x64ef4d;super(_0x37ce33,_0x2b6608,_0x4ad96c,_0x491dca,_0x1aa4e4,_0x124556,_0x16f8c2,_0x42a2cc,_0x584442,_0x4069d7,_0x22f503,_0x3f8c25,_0x314f19,_0x39f871),this[_0x2742aa(0x2af)]=_0x37ce33,this[_0x2742aa(0x38f)]=_0x4ad96c;}async[_0x64ef4d(0x26a)](){const _0x173c55=_0x64ef4d;let _0x150acb=await super['_init']();return this['disposeWithMe'](this['_commandService'][_0x173c55(0x2d8)]((_0x3ed85c,_0x1b2e76)=>{const _0x1ad128=_0x173c55;if(_0x3ed85c[_0x1ad128(0x38f)]!==_0x503736[_0x1ad128(0x2ae)]||_0x1b2e76!=null&&_0x1b2e76[_0x1ad128(0x36c)]||_0x1b2e76!=null&&_0x1b2e76[_0x1ad128(0x3e9)])return;let _0xe81a9e=_0x3ed85c[_0x1ad128(0x4f6)];if((_0xe81a9e==null?void 0x0:_0xe81a9e[_0x1ad128(0x339)])!==this[_0x1ad128(0x2af)])return;let _0x468402=_0x3ed85c,_0x3abe42=this[_0x1ad128(0x200)]['interceptor'][_0x1ad128(0x2a3)](this[_0x1ad128(0x200)]['interceptor'][_0x1ad128(0x3cf)]()[_0x1ad128(0x2be)])([_0x468402],this['_univerInstanceService'])||[_0x468402];this[_0x1ad128(0x4e4)](_0x3abe42[0x0]);})),_0x150acb;}};zn=H([V(0x3,_0x12abaf(_0x1f4ba8)),V(0x4,_0x12abaf(_0x1457db)),V(0x5,_0x12abaf(_0x1b8087)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x12abaf(B)),V(0x8,_0xde2491),V(0x9,_0x1a4744),V(0xa,_0x59a890),V(0xb,_0x4457eb),V(0xc,_0x4c5a46(W)),V(0xd,_0x4c5a46(U))],zn);let Bn=class extends ${constructor(_0x164379,_0x8a882,_0x2f936a,_0x586bd1,_0x133d2e,_0x2c8102,_0x13d3e0,_0x365ca9,_0x13f4ca,_0x3ad777,_0x1694f8,_0xdef62f,_0x124c90,_0x331b24){const _0x1eccfa=_0x64ef4d;super(_0x164379,_0x2f936a,_0x8a882,_0x586bd1,_0x133d2e,_0x2c8102,_0x13d3e0,_0x365ca9,_0x13f4ca,_0x3ad777,_0x1694f8,_0xdef62f,_0x124c90,_0x331b24),this[_0x1eccfa(0x2af)]=_0x164379,this[_0x1eccfa(0x38f)]=_0x8a882;}async[_0x64ef4d(0x26a)](){const _0x4c97ae=_0x64ef4d;let _0x17ce20=await super[_0x4c97ae(0x26a)]();return this[_0x4c97ae(0x38a)](this[_0x4c97ae(0x22c)][_0x4c97ae(0x2d8)]((_0xf4e9a1,_0xaa6a67)=>{const _0x23f929=_0x4c97ae;if(_0xf4e9a1[_0x23f929(0x38f)]!==_0x503736[_0x23f929(0x2ae)]||_0xaa6a67!=null&&_0xaa6a67[_0x23f929(0x36c)]||_0xaa6a67!=null&&_0xaa6a67[_0x23f929(0x3e9)])return;let _0x2d6b15=_0xf4e9a1[_0x23f929(0x4f6)];if((_0x2d6b15==null?void 0x0:_0x2d6b15[_0x23f929(0x339)])!==this[_0x23f929(0x2af)])return;let _0x30fd7f=_0xf4e9a1,_0x4e87fe=this['_compressMutationService']['interceptor'][_0x23f929(0x2a3)](this['_compressMutationService'][_0x23f929(0x4eb)][_0x23f929(0x3cf)]()[_0x23f929(0x2be)])([_0x30fd7f],this[_0x23f929(0x3e4)])||[_0x30fd7f];this['_onLocalMutation'](_0x4e87fe[0x0]);})),_0x17ce20;}};Bn=H([V(0x3,_0x12abaf(_0x1f4ba8)),V(0x4,_0x12abaf(_0x1457db)),V(0x5,_0x12abaf(_0x1b8087)),V(0x6,_0x12abaf(_0x36042b)),V(0x7,_0x12abaf(B)),V(0x8,_0xde2491),V(0x9,_0x1a4744),V(0xa,_0x59a890),V(0xb,_0x4457eb),V(0xc,_0x4c5a46(W)),V(0xd,_0x4c5a46(U))],Bn);const Vn=_0x4d466b('univer-pro.collaboration-client.network-condition.service');function Hn(_0x49bbda){const _0xa1fe82=_0x64ef4d;let _0x1c3b18=_0x49bbda[_0xa1fe82(0x4e5)],_0xb21d9e=JSON[_0xa1fe82(0x46c)](_0x1c3b18);switch(_0xb21d9e['cmd']){case _0x399e6c[_0xa1fe82(0x430)]:case _0x399e6c[_0xa1fe82(0x25b)]:{let _0x1b6e37=_0xb21d9e['infoRsp'];return{..._0xb21d9e,'data':_0x1b6e37,'cmd':_0xb21d9e[_0xa1fe82(0x228)]};}case _0x399e6c[_0xa1fe82(0x484)]:{let _0x342d07=_0xb21d9e[_0xa1fe82(0x478)];return{..._0xb21d9e,'data':_0x342d07,'cmd':_0xb21d9e[_0xa1fe82(0x228)]};}case _0x399e6c[_0xa1fe82(0x1f7)]:{let _0x1fd349=_0xb21d9e[_0xa1fe82(0x267)];switch(_0x1fd349[_0xa1fe82(0x500)]){case _0xacdc36[_0xa1fe82(0x3db)]:{let {cs:_0x17950e,code:_0x3a0a8b,reason:_0x4b0d8b}=_0x1fd349[_0xa1fe82(0x2cf)]??{};return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x17950e,'code':_0x3a0a8b,'reason':_0x4b0d8b},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};}case _0xacdc36[_0xa1fe82(0x28b)]:var _0x29cf86;return{..._0xb21d9e,'data':{..._0x1fd349,'data':(_0x29cf86=_0x1fd349[_0xa1fe82(0x2d0)])==null?void 0x0:_0x29cf86['cs']},'cmd':_0xb21d9e['cmd']};case _0xacdc36[_0xa1fe82(0x23d)]:var _0x2265da;return{..._0xb21d9e,'data':{..._0x1fd349,'data':(_0x2265da=_0x1fd349[_0xa1fe82(0x3e6)])==null?void 0x0:_0x2265da['cs']},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36[_0xa1fe82(0x469)]:{let {cs:_0x4ebfa2,code:_0x4f7845,reason:_0x42efac}=_0x1fd349[_0xa1fe82(0x43f)]??{};return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x4ebfa2,'code':_0x4f7845,'reason':_0x42efac},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};}case _0xacdc36[_0xa1fe82(0x391)]:{let {cs:_0x2a95a0,code:_0x285eee,reason:_0x754a60}=_0x1fd349[_0xa1fe82(0x44f)]??{};return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x2a95a0,'code':_0x285eee,'reason':_0x754a60},'cmd':_0xb21d9e['cmd']};}case _0xacdc36[_0xa1fe82(0x4dc)]:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349[_0xa1fe82(0x532)]},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36['USERS_ENTER']:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349[_0xa1fe82(0x37d)]},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36['USERS_LEAVE']:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349['leaveEvent']},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36[_0xa1fe82(0x3e5)]:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349['liveShareNewHost']},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36[_0xa1fe82(0x33d)]:case _0xacdc36[_0xa1fe82(0x1fd)]:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349[_0xa1fe82(0x2f6)]},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36['LIVESHARE_TERMINATE']:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349[_0xa1fe82(0x485)]},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36[_0xa1fe82(0x41a)]:return{..._0xb21d9e,'data':_0x1fd349,'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36['COMMENT_UPDATE']:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349[_0xa1fe82(0x524)]},'cmd':_0xb21d9e['cmd']};case _0xacdc36[_0xa1fe82(0x2e9)]:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349[_0xa1fe82(0x314)]},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36['SHOULD_CLOSE_CONN']:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349[_0xa1fe82(0x2c3)]},'cmd':_0xb21d9e[_0xa1fe82(0x228)]};case _0xacdc36[_0xa1fe82(0x30a)]:return{..._0xb21d9e,'data':{..._0x1fd349,'data':_0x1fd349['uniscriptRunEvent']},'cmd':_0xb21d9e['cmd']};default:return _0xb21d9e;}}default:return _0xb21d9e;}}function Un(_0x4b6279){const _0x2a68c8=_0x64ef4d;switch(_0x4b6279[_0x2a68c8(0x228)]){case _0x399e6c['HEARTBEAT']:case _0x399e6c[_0x2a68c8(0x25b)]:return JSON[_0x2a68c8(0x398)]({'cmd':_0x4b6279[_0x2a68c8(0x228)],'routeKey':_0x4b6279[_0x2a68c8(0x4d3)]});case _0x399e6c[_0x2a68c8(0x476)]:{let _0x390daa;switch(_0x4b6279[_0x2a68c8(0x4e5)]['eventID']){case _0xacdc36['UPDATE_CURSOR']:_0x390daa={'eventID':_0xacdc36[_0x2a68c8(0x4dc)],'updateCursorEvent':_0x4b6279[_0x2a68c8(0x4e5)][_0x2a68c8(0x4e5)]};break;case _0xacdc36[_0x2a68c8(0x346)]:_0x390daa={'eventID':_0xacdc36[_0x2a68c8(0x346)],'leaveEvent':_0x4b6279[_0x2a68c8(0x4e5)]['data']};break;case _0xacdc36[_0x2a68c8(0x4c1)]:_0x390daa={'eventID':_0xacdc36[_0x2a68c8(0x4c1)],'joinEvent':_0x4b6279[_0x2a68c8(0x4e5)][_0x2a68c8(0x4e5)]};break;case _0xacdc36[_0x2a68c8(0x3e5)]:_0x390daa={'eventID':_0xacdc36[_0x2a68c8(0x3e5)],'liveShareNewHost':_0x4b6279['data']['data']};break;case _0xacdc36[_0x2a68c8(0x1fd)]:_0x390daa={'eventID':_0xacdc36[_0x2a68c8(0x1fd)],'liveShareOperation':_0x4b6279[_0x2a68c8(0x4e5)][_0x2a68c8(0x4e5)]};break;case _0xacdc36[_0x2a68c8(0x2bb)]:_0x390daa={'eventID':_0xacdc36[_0x2a68c8(0x2bb)],'liveShareTerminate':_0x4b6279[_0x2a68c8(0x4e5)][_0x2a68c8(0x4e5)]};break;case _0xacdc36[_0x2a68c8(0x512)]:_0x390daa={'eventID':_0xacdc36[_0x2a68c8(0x512)],'liveShareRequestHost':_0x4b6279[_0x2a68c8(0x4e5)][_0x2a68c8(0x4e5)]};break;case _0xacdc36[_0x2a68c8(0x33d)]:_0x390daa={'eventID':_0xacdc36[_0x2a68c8(0x33d)]};break;default:_0x390daa={'eventID':_0x4b6279['data'][_0x2a68c8(0x500)]};}return JSON[_0x2a68c8(0x398)]({'cmd':_0x4b6279[_0x2a68c8(0x228)],'routeKey':_0x4b6279[_0x2a68c8(0x4d3)],'collaMsg':_0x390daa});}case _0x399e6c['JOIN']:return JSON[_0x2a68c8(0x398)]({'cmd':_0x4b6279['cmd'],'routeKey':_0x4b6279[_0x2a68c8(0x4d3)],'joinReq':_0x4b6279[_0x2a68c8(0x4e5)]});case _0x399e6c[_0x2a68c8(0x432)]:return JSON[_0x2a68c8(0x398)]({'cmd':_0x4b6279['cmd'],'routeKey':_0x4b6279[_0x2a68c8(0x4d3)],'leaveReq':_0x4b6279[_0x2a68c8(0x4e5)]});default:throw Error(_0x2a68c8(0x359));}}const Wn=_0x4d466b('univer-pro.collaboration-client-socket-service');function Gn(_0x20ce5d,_0x198f2f,_0x3d0445){return _0x20ce5d+'/'+_0x198f2f+'/unit/'+_0x3d0445+'/new_changes';}let Kn=class extends _0x43913d{constructor(_0x21c8ca,_0x52a502,_0x3be4d9,_0x1f2885,_0xdc4c11){const _0x477ec9=_0x64ef4d;super(),this[_0x477ec9(0x32a)]=_0x21c8ca,this[_0x477ec9(0x503)]=_0x52a502,this['_configService']=_0x3be4d9,this['_logService']=_0x1f2885,this[_0x477ec9(0x26f)]=_0xdc4c11;}[_0x64ef4d(0x301)](_0x22011c){const _0xb8a40b=_0x64ef4d;let _0x2b4281=this[_0xb8a40b(0x32a)][_0xb8a40b(0x22d)](_0x9d68fa);if(!_0x2b4281)throw Error(_0xb8a40b(0x523));let _0x419ae7=_0x2b4281[_0xb8a40b(0x1ff)](_0x22011c);if(!_0x419ae7)throw Error(_0xb8a40b(0x361));let _0x6298ed=new _0x5aa9c8(),_0x405dde=new _0x18775b();_0x6298ed[_0xb8a40b(0x2d9)](_0x419ae7[_0xb8a40b(0x4a2)]['subscribe'](_0x4f5ba7=>_0x405dde[_0xb8a40b(0x429)](_0x4f5ba7))),_0x6298ed[_0xb8a40b(0x2d9)](_0x27106b(()=>_0x405dde[_0xb8a40b(0x46f)]()));let _0x1bf8de=new _0x18775b();_0x6298ed[_0xb8a40b(0x2d9)](_0x419ae7[_0xb8a40b(0x3e3)]['subscribe'](_0xc577c3=>_0x1bf8de[_0xb8a40b(0x429)](_0xc577c3))),_0x6298ed['add'](_0x27106b(()=>_0x1bf8de['complete']()));let _0x5ae0ee=new _0x18775b();_0x6298ed[_0xb8a40b(0x2d9)](_0x419ae7['message$']['subscribe'](_0x3a6d2c=>{const _0x4f1d47=_0xb8a40b;let _0xceb235=Hn(_0x3a6d2c);_0x5ae0ee[_0x4f1d47(0x429)](_0xceb235);})),_0x6298ed['add'](_0x27106b(()=>_0x5ae0ee[_0xb8a40b(0x46f)]()));let _0x11cfc8,_0x338105=()=>{const _0xfc9e57=_0xb8a40b;_0x1bf8de[_0xfc9e57(0x429)](new Event('connection\x20error')),_0x405dde[_0xfc9e57(0x429)](new Event(_0xfc9e57(0x2b3))),_0x11cfc8['close']();};return _0x11cfc8={'memberID':'','close$':_0x405dde[_0xb8a40b(0x41e)](),'error$':_0x1bf8de['asObservable'](),'open$':_0x419ae7[_0xb8a40b(0x2a6)],'message$':_0x5ae0ee[_0xb8a40b(0x41e)](),'send':(_0x541c25,_0x5da1d4)=>{const _0x4a76c8=_0xb8a40b;if(_0x541c25[_0x4a76c8(0x228)]===_0x399e6c[_0x4a76c8(0x476)]){if(_0x541c25[_0x4a76c8(0x4e5)]['eventID']===_0xacdc36['SUBMIT_CHANGESET']){let _0x1d5f1b=this[_0x4a76c8(0x445)](_0x11cfc8,_0x541c25[_0x4a76c8(0x4e5)],(_0x5da1d4==null?void 0x0:_0x5da1d4[_0x4a76c8(0x3a3)])??0x1d4c0);return _0x1d5f1b[_0x4a76c8(0x2e4)](()=>void 0x0),_0x1d5f1b;}if(_0x541c25[_0x4a76c8(0x4e5)][_0x4a76c8(0x500)]===_0xacdc36[_0x4a76c8(0x4c5)]){let _0x5e1749=_0x541c25['data'];this[_0x4a76c8(0x2e7)](_0x5e1749)[_0x4a76c8(0x298)](_0x528342=>{const _0x1ad651=_0x4a76c8;_0x5ae0ee[_0x1ad651(0x429)]({'cmd':_0x399e6c[_0x1ad651(0x1f7)],'code':_0x46e02a['OK'],'routeKey':_0x5e1749[_0x1ad651(0x4e5)][_0x1ad651(0x2af)],'routeType':'','data':{'eventID':_0xacdc36[_0x1ad651(0x3b8)],'data':{'changesets':_0x528342}}});})[_0x4a76c8(0x2e4)](_0x531e1f=>{const _0x589e3f=_0x4a76c8;this[_0x589e3f(0x4d6)][_0x589e3f(0x2d5)](_0x531e1f),_0x338105();});return;}}_0x419ae7[_0x4a76c8(0x441)](Un(_0x541c25));},'close':()=>{const _0x56b69d=_0xb8a40b;_0x419ae7['close'](),_0x6298ed[_0x56b69d(0x357)]();}},_0x11cfc8;}[_0x64ef4d(0x445)](_0x4327a4,_0x2a3141,_0x3db69e){const _0x1502a5=_0x64ef4d;let {unitType:_0x2f65df,unitID:_0x5300f1,changeset:_0x378d53}=_0x2a3141[_0x1502a5(0x4e5)],_0x44d711={'unitID':_0x5300f1,'memberID':_0x4327a4[_0x1502a5(0x2de)],'type':_0x2f65df,'changeset':_0x26d18b(_0x378d53)},_0x28d95e=this[_0x1502a5(0x351)][_0x1502a5(0x1f4)](R),_0x2f65c6=Gn((_0x28d95e==null?void 0x0:_0x28d95e['collabSubmitChangesetUrl'])??_0x1502a5(0x2ed),_0x2f65df,_0x5300f1);return _0x5d9383(this[_0x1502a5(0x503)][_0x1502a5(0x2fe)](_0x1502a5(0x3c0),_0x2f65c6,{'body':_0x44d711})[_0x1502a5(0x4f0)](_0x470f82(_0x59552e=>_0x59552e['type']===_0x1d7c88[_0x1502a5(0x266)]),_0x2c1d29(_0x3db69e)))[_0x1502a5(0x298)](()=>void 0x0,_0x7d2a03=>{const _0x3d5b2b=_0x1502a5;throw this['_logService']['warn'](_0x3d5b2b(0x312),_0x3d5b2b(0x24c)+_0x378d53[_0x3d5b2b(0x40e)]+':'+_0x378d53[_0x3d5b2b(0x287)]+'\x20failed:\x20'+qn(_0x7d2a03)),_0x7d2a03;});}async[_0x64ef4d(0x2e7)](_0x54e979){const _0x5d0088=_0x64ef4d;let {unitID:_0x7c6053,from:_0x50d8db,to:_0x4978bd,unitType:_0x5b6915}=_0x54e979['data'];return(await this[_0x5d0088(0x26f)][_0x5d0088(0x453)]({'metadata':void 0x0},{'unitID':_0x7c6053,'type':_0x5b6915,'from':_0x50d8db,'to':_0x4978bd}))[_0x5d0088(0x364)]['map'](_0x93599e=>((_0x93599e[_0x5d0088(0x3da)]===null||_0x93599e[_0x5d0088(0x3da)]===void 0x0)&&(_0x93599e[_0x5d0088(0x3da)]=[]),_0x93599e));}};Kn=H([V(0x0,_0x12abaf(_0x1f4ba8)),V(0x1,_0x12abaf(_0x180f6d)),V(0x2,_0x1c2d46),V(0x3,_0x1a4744),V(0x4,_0x3dc74b)],Kn);function qn(_0x5be51d){const _0x5bb5d4=_0x64ef4d;return _0x5be51d instanceof _0x4b2faf?_0x5bb5d4(0x3e8)+(_0x5be51d[_0x5bb5d4(0x491)]??0x0):_0x5be51d instanceof Error?_0x5be51d[_0x5bb5d4(0x27f)]:String(_0x5be51d);}const Jn=_0x4d466b(_0x64ef4d(0x2f4));function Yn(_0x215d0f={}){const _0x5c4536=_0x64ef4d;return _0x215d0f[_0x5c4536(0x4ec)]?{'resolveUnit':_0x215d0f[_0x5c4536(0x4ec)]}:{'resolveUnit':_0xcf2568=>({'target':{'unitId':_0xcf2568[_0x5c4536(0x339)],'unitType':_0xcf2568[_0x5c4536(0x332)]}})};}function Xn(_0x23e8d4,_0x1f7dde,_0x37cac8){const _0x33f502=_0x64ef4d;let _0x5b4fa2=_0x37cac8[_0x33f502(0x216)][_0x33f502(0x51e)];if(_0x5b4fa2!=null&&_0x5b4fa2[_0x33f502(0x4d8)]()==='')throw Error(_0x33f502(0x3a4));if(!_0x37cac8[_0x33f502(0x216)][_0x33f502(0x339)])throw Error(_0x33f502(0x440));return{'localUnitId':_0x23e8d4,'unitType':_0x1f7dde,'target':{'endpoint':_0x5b4fa2,'unitId':_0x37cac8['target'][_0x33f502(0x339)],'unitType':_0x37cac8[_0x33f502(0x216)][_0x33f502(0x332)]??_0x1f7dde},'changeset':_0x37cac8[_0x33f502(0x4ea)]};}let Zn=class extends _0x43913d{constructor(_0x456ee0,_0x51b0a8,_0x56ff1b,_0x141519,_0x212cc6,_0x3df9c7){const _0x4669a0=_0x64ef4d;super(),this[_0x4669a0(0x32a)]=_0x456ee0,this['_logService']=_0x51b0a8,this['_configService']=_0x56ff1b,this[_0x4669a0(0x2ce)]=_0x141519,this[_0x4669a0(0x3a2)]=_0x212cc6,this[_0x4669a0(0x3d1)]=_0x3df9c7,z(this,_0x4669a0(0x402),new Map()),z(this,_0x4669a0(0x241),new Map()),z(this,'_sessionChannels',new Map()),z(this,_0x4669a0(0x4f9),new Map()),z(this,_0x4669a0(0x502),void 0x0),z(this,_0x4669a0(0x3a5),this[_0x4669a0(0x20b)](void 0x0)[_0x4669a0(0x3a5)][_0x4669a0(0x41e)]()),z(this,_0x4669a0(0x4ca),new _0x205351(0x0)),z(this,_0x4669a0(0x2e1),this[_0x4669a0(0x4ca)][_0x4669a0(0x41e)]());}[_0x64ef4d(0x32f)](){const _0x167a10=_0x64ef4d;this[_0x167a10(0x502)]||(this['_networkConditionService']=this[_0x167a10(0x32a)][_0x167a10(0x22d)](Vn,_0x2e8b9c[_0x167a10(0x4d7)])??void 0x0,this[_0x167a10(0x502)]&&this[_0x167a10(0x38a)](this[_0x167a10(0x502)][_0x167a10(0x30c)][_0x167a10(0x4bd)](_0x2b75d0=>{const _0x5f22db=_0x167a10;_0x2b75d0&&this[_0x5f22db(0x24d)](),_0x2b75d0||this[_0x5f22db(0x4f9)][_0x5f22db(0x3c3)](_0x1d5e22=>this[_0x5f22db(0x3f9)](_0x1d5e22));})));}[_0x64ef4d(0x357)](){const _0x1f33c7=_0x64ef4d;super[_0x1f33c7(0x357)](),this[_0x1f33c7(0x4f9)][_0x1f33c7(0x3c3)](_0x19fd14=>{const _0x542ff7=_0x1f33c7;var _0x248b61,_0x4387bc,_0x4f9f7c;(_0x248b61=_0x19fd14[_0x542ff7(0x27d)])==null||_0x248b61[_0x542ff7(0x349)](),_0x19fd14[_0x542ff7(0x27d)]=null,this['_clearHandshakeTimer'](_0x19fd14),this[_0x542ff7(0x2c4)](_0x19fd14),this[_0x542ff7(0x39b)](_0x19fd14),this[_0x542ff7(0x224)](_0x19fd14),(_0x4387bc=_0x19fd14[_0x542ff7(0x3a5)]['getValue']())==null||_0x4387bc['close'](),(_0x4f9f7c=_0x19fd14[_0x542ff7(0x4fc)])==null||_0x4f9f7c[_0x542ff7(0x45b)](),_0x19fd14[_0x542ff7(0x3a5)][_0x542ff7(0x46f)]();}),this['_socketChannels'][_0x1f33c7(0x4e0)](),this[_0x1f33c7(0x402)][_0x1f33c7(0x3c3)](_0x1d6963=>_0x1d6963[_0x1f33c7(0x357)]()),this[_0x1f33c7(0x402)][_0x1f33c7(0x4e0)](),this[_0x1f33c7(0x26c)]['clear'](),this[_0x1f33c7(0x4ca)][_0x1f33c7(0x46f)]();}async[_0x64ef4d(0x4ff)](_0xf6aa4,_0x5a1de6){const _0xefe0b6=_0x64ef4d;if(this[_0xefe0b6(0x32f)](),this['_sessions'][_0xefe0b6(0x41b)](_0xf6aa4))return this[_0xefe0b6(0x402)][_0xefe0b6(0x22d)](_0xf6aa4);let _0x27402d=this['_pendingSessions'][_0xefe0b6(0x22d)](_0xf6aa4);if(_0x27402d)return _0x27402d;let _0x4665c9=this[_0xefe0b6(0x291)](_0xf6aa4,_0x5a1de6);this['_pendingSessions'][_0xefe0b6(0x2f7)](_0xf6aa4,_0x4665c9);try{return await _0x4665c9;}finally{this[_0xefe0b6(0x241)][_0xefe0b6(0x209)](_0xf6aa4);}}async[_0x64ef4d(0x291)](_0x2f42d2,_0x17c377){const _0x31ad03=_0x64ef4d;let _0x513363=await this[_0x31ad03(0x253)](_0x2f42d2,_0x17c377),_0x5741eb=this['_getSocketChannel'](_0x513363['target'][_0x31ad03(0x51e)]);this[_0x31ad03(0x3d7)](_0x5741eb);let _0x1365ce=this['_injector'][_0x31ad03(0x333)](on,_0x513363,_0x5741eb[_0x31ad03(0x3a5)][_0x31ad03(0x41e)]());return this[_0x31ad03(0x402)][_0x31ad03(0x2f7)](_0x2f42d2,_0x1365ce),this[_0x31ad03(0x26c)]['set'](_0x2f42d2,_0x5741eb[_0x31ad03(0x2e5)]),_0x1365ce;}['closeSession'](_0x5aa1d8){const _0x17150e=_0x64ef4d;let _0x44f714=this['_sessions']['get'](_0x5aa1d8),_0xa6dcb2=this[_0x17150e(0x26c)][_0x17150e(0x22d)](_0x5aa1d8);if(_0x44f714&&(this[_0x17150e(0x402)]['delete'](_0x5aa1d8),this[_0x17150e(0x26c)]['delete'](_0x5aa1d8),_0x44f714[_0x17150e(0x45b)]()),_0xa6dcb2!==void 0x0&&!this[_0x17150e(0x328)](_0xa6dcb2)){let _0x4d0fc3=this[_0x17150e(0x4f9)][_0x17150e(0x22d)](_0xa6dcb2);_0x4d0fc3&&this[_0x17150e(0x3f9)](_0x4d0fc3);}}[_0x64ef4d(0x24d)](){const _0x303dfb=_0x64ef4d;(this['_socketChannels'][_0x303dfb(0x475)]?[...this[_0x303dfb(0x4f9)]['values']()]:[this[_0x303dfb(0x20b)](void 0x0)])[_0x303dfb(0x3c3)](_0x26f160=>{const _0x3e08d3=_0x303dfb;!this[_0x3e08d3(0x328)](_0x26f160[_0x3e08d3(0x2e5)])||_0x26f160['socketReady']||_0x26f160['candidateSocket']||_0x26f160['connectionAttempt']||(_0x26f160['retryCount']=0x0,this[_0x3e08d3(0x2c4)](_0x26f160),this[_0x3e08d3(0x283)](_0x26f160));});}['_clearRetryConnectingTimer'](_0x25c183){const _0x4ba223=_0x64ef4d;_0x25c183[_0x4ba223(0x3c4)]!=null&&(clearTimeout(_0x25c183[_0x4ba223(0x3c4)]),_0x25c183['retryConnectingTimer']=null);}[_0x64ef4d(0x222)](_0x45e490){const _0x161466=_0x64ef4d;let _0x4d7c6d=this[_0x161466(0x351)][_0x161466(0x1f4)](R),_0x19e656=_0x45e490['endpoint']??(_0x4d7c6d==null?void 0x0:_0x4d7c6d[_0x161466(0x2ec)])??'ws://127.0.0.1:8000/universer-api/comb/connect';return this[_0x161466(0x2ce)][_0x161466(0x1ff)](_0x19e656);}async[_0x64ef4d(0x3d7)](_0x5d6f8d){const _0x3360e7=_0x64ef4d;var _0x4b54b9;if(this[_0x3360e7(0x3ed)]||((_0x4b54b9=this[_0x3360e7(0x502)])==null?void 0x0:_0x4b54b9[_0x3360e7(0x37b)])===!0x1||_0x5d6f8d[_0x3360e7(0x33c)]||_0x5d6f8d[_0x3360e7(0x4fc)]||_0x5d6f8d[_0x3360e7(0x21d)])return;let _0x588447={};_0x5d6f8d[_0x3360e7(0x21d)]=_0x588447;try{let _0x2ad9ae=await this[_0x3360e7(0x222)](_0x5d6f8d);if(this[_0x3360e7(0x3ed)]||_0x5d6f8d['connectionAttempt']!==_0x588447){_0x2ad9ae==null||_0x2ad9ae['close']();return;}if(_0x2ad9ae){var _0x532a48;_0x5d6f8d['candidateSocket']=_0x2ad9ae,_0x5d6f8d[_0x3360e7(0x286)]=setTimeout(()=>{const _0x3111d4=_0x3360e7;!this[_0x3111d4(0x3ed)]&&_0x5d6f8d[_0x3111d4(0x4fc)]===_0x2ad9ae&&this[_0x3111d4(0x4f4)](_0x5d6f8d);},0x4e20);let _0x3bdd04=_0x2ad9ae['send'];_0x2ad9ae['send']=(_0x7c8e20,_0x47ad83)=>{const _0x5cfd55=_0x3360e7;_0x7c8e20[_0x5cfd55(0x228)]!==_0x399e6c['LEAVE']&&!Qn(_0x7c8e20)&&_0x5d6f8d[_0x5cfd55(0x33c)]&&_0x5d6f8d['socket$'][_0x5cfd55(0x27e)]()===_0x2ad9ae&&this[_0x5cfd55(0x354)](_0x5d6f8d);let _0x32139e=_0x47ad83===void 0x0?_0x3bdd04[_0x5cfd55(0x35c)](_0x2ad9ae,_0x7c8e20):_0x3bdd04[_0x5cfd55(0x35c)](_0x2ad9ae,_0x7c8e20,_0x47ad83);return _0x32139e instanceof Promise&&_0x32139e[_0x5cfd55(0x2e4)](_0x278f52=>{const _0x3b7037=_0x5cfd55;$n(_0x278f52)&&_0x5d6f8d[_0x3b7037(0x3a5)]['getValue']()===_0x2ad9ae&&this['_onLicenseRejected'](_0x5d6f8d);}),_0x32139e;},(_0x532a48=_0x5d6f8d['socketSubscription'])==null||_0x532a48['unsubscribe']();let _0x254209=new _0x485063();_0x5d6f8d[_0x3360e7(0x27d)]=_0x254209,_0x254209[_0x3360e7(0x2d9)](_0x2ad9ae['message$'][_0x3360e7(0x4bd)](_0x3ff1b4=>this[_0x3360e7(0x385)](_0x5d6f8d,_0x2ad9ae,_0x3ff1b4))),_0x254209[_0x3360e7(0x2d9)](_0x2ad9ae[_0x3360e7(0x3e3)][_0x3360e7(0x4f0)](_0x4befe2(0x1))[_0x3360e7(0x4bd)](_0xa4223b=>this[_0x3360e7(0x4d6)][_0x3360e7(0x2d5)](_0x3360e7(0x510),_0xa4223b))),_0x254209['add'](_0x2ad9ae['open$'][_0x3360e7(0x4f0)](_0x4befe2(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x5d6f8d,_0x2ad9ae);})),_0x254209[_0x3360e7(0x2d9)](_0x2ad9ae[_0x3360e7(0x4a2)]['pipe'](_0x4befe2(0x1))[_0x3360e7(0x4bd)](_0xac33f9=>{const _0xf60fc9=_0x3360e7;(_0x5d6f8d[_0xf60fc9(0x4fc)]===_0x2ad9ae||_0x5d6f8d[_0xf60fc9(0x3a5)][_0xf60fc9(0x27e)]()===_0x2ad9ae)&&(this[_0xf60fc9(0x4d6)][_0xf60fc9(0x3af)]('[CollaborationSessionService]','socket\x20close',_0xac33f9),this[_0xf60fc9(0x4f4)](_0x5d6f8d));}));}}catch(_0x20176c){if(_0x5d6f8d[_0x3360e7(0x21d)]!==_0x588447)return;if($n(_0x20176c)){this[_0x3360e7(0x335)](_0x5d6f8d);return;}this[_0x3360e7(0x4d6)][_0x3360e7(0x2d5)](_0x20176c),this[_0x3360e7(0x4f4)](_0x5d6f8d);}finally{_0x5d6f8d['connectionAttempt']===_0x588447&&(_0x5d6f8d[_0x3360e7(0x21d)]=null);}}[_0x64ef4d(0x3d8)](_0x33597a,_0x19dcc0){const _0x51c4c7=_0x64ef4d;this[_0x51c4c7(0x3ed)]||_0x33597a['candidateSocket']!==_0x19dcc0||(this[_0x51c4c7(0x4d6)]['debug'](_0x51c4c7(0x3f2),_0x51c4c7(0x42f)),_0x19dcc0[_0x51c4c7(0x441)]({'cmd':_0x399e6c[_0x51c4c7(0x25b)]}));}['_onOffline'](_0x4f2fb4){const _0x4cd5c0=_0x64ef4d;var _0x31a61b;let _0x54a77d=_0x4f2fb4[_0x4cd5c0(0x3a5)][_0x4cd5c0(0x27e)]()??_0x4f2fb4['candidateSocket'];_0x4f2fb4[_0x4cd5c0(0x21d)]=null,_0x4f2fb4[_0x4cd5c0(0x33c)]=!0x1,_0x4f2fb4['candidateSocket']=null,(_0x31a61b=_0x4f2fb4['socketSubscription'])==null||_0x31a61b[_0x4cd5c0(0x349)](),_0x4f2fb4[_0x4cd5c0(0x27d)]=null,this[_0x4cd5c0(0x4ca)][_0x4cd5c0(0x429)](0x2),_0x4f2fb4[_0x4cd5c0(0x3a5)]['next'](null),this[_0x4cd5c0(0x2c4)](_0x4f2fb4),this['_clearHandshakeTimer'](_0x4f2fb4),this[_0x4cd5c0(0x39b)](_0x4f2fb4),this[_0x4cd5c0(0x224)](_0x4f2fb4),_0x54a77d==null||_0x54a77d[_0x4cd5c0(0x45b)]();}[_0x64ef4d(0x335)](_0x5f0b6f){const _0x5a3252=_0x64ef4d;this[_0x5a3252(0x3f9)](_0x5f0b6f),this[_0x5a3252(0x3a2)]['emitEvent']({'id':_0x5a3252(0x47f)});}[_0x64ef4d(0x4f4)](_0x334b8f){const _0x127f5f=_0x64ef4d;var _0x5b5341;this['_onOffline'](_0x334b8f),!this[_0x127f5f(0x3ed)]&&((_0x5b5341=this[_0x127f5f(0x502)])==null?void 0x0:_0x5b5341[_0x127f5f(0x37b)])!==!0x1&&this['_hasSessionsForEndpoint'](_0x334b8f[_0x127f5f(0x2e5)])&&(_0x334b8f[_0x127f5f(0x2e8)]<(this[_0x127f5f(0x351)][_0x127f5f(0x1f4)]('RETRY_CONNECTING_MAX_COUNT')??0x3)?(this['_collaborationUIEventService'][_0x127f5f(0x2c0)]({'id':_0x127f5f(0x410)}),this[_0x127f5f(0x283)](_0x334b8f)):this[_0x127f5f(0x3a2)][_0x127f5f(0x2c0)]({'id':_0x127f5f(0x50c)}));}[_0x64ef4d(0x283)](_0x400e42){const _0x101d79=_0x64ef4d;let _0x3cc1f3=_0x400e42[_0x101d79(0x2e8)],_0x12e166=this[_0x101d79(0x351)]['getConfig'](R),_0xec076a=_0x3cc1f3===0x0?0x0:((_0x12e166==null?void 0x0:_0x12e166['retryConnectingInterval'])??0x4e20)*0x2**_0x3cc1f3;_0x400e42['retryConnectingTimer']=setTimeout(()=>{const _0x11a996=_0x101d79;clearTimeout(_0x400e42[_0x11a996(0x3c4)]),_0x400e42[_0x11a996(0x3c4)]=null,this['_tryEnsureSocket'](_0x400e42);},_0xec076a),_0x400e42[_0x101d79(0x2e8)]+=0x1;}async[_0x64ef4d(0x253)](_0x47fca2,_0x3c9390){const _0x5497ac=_0x64ef4d;return Xn(_0x47fca2,_0x3c9390,await this[_0x5497ac(0x3d1)]['resolveUnit']({'unitId':_0x47fca2,'unitType':_0x3c9390}));}[_0x64ef4d(0x385)](_0x575a04,_0x5bd927,_0x202e18){const _0x51bd7c=_0x64ef4d;if(this['_disposed']||_0x575a04['candidateSocket']!==_0x5bd927&&_0x575a04['socket$'][_0x51bd7c(0x27e)]()!==_0x5bd927)return;let {cmd:_0xe8b9f2}=_0x202e18;if(_0xe8b9f2===_0x399e6c['HELLO']&&!_0x575a04[_0x51bd7c(0x33c)]){var _0x5dd3c5;if((_0x202e18[_0x51bd7c(0x3d0)]??_0x46e02a['OK'])!==_0x46e02a['OK']||!((_0x5dd3c5=_0x202e18[_0x51bd7c(0x4e5)])!=null&&_0x5dd3c5[_0x51bd7c(0x2de)])){this['_onConnectionFailed'](_0x575a04);return;}this[_0x51bd7c(0x3f7)](_0x575a04),_0x5bd927['memberID']=_0x202e18['data']['memberID'],_0x575a04[_0x51bd7c(0x2e8)]=0x0,_0x575a04['socketReady']=!0x0,_0x575a04['candidateSocket']=null,_0x575a04[_0x51bd7c(0x3a5)][_0x51bd7c(0x429)](_0x5bd927),this[_0x51bd7c(0x4ca)][_0x51bd7c(0x429)](0x3);}_0xe8b9f2===_0x399e6c[_0x51bd7c(0x430)]&&this['_clearTimeoutTimer'](_0x575a04),this[_0x51bd7c(0x354)](_0x575a04);}[_0x64ef4d(0x328)](_0x310f9d){const _0x5ab447=_0x64ef4d;return[...this[_0x5ab447(0x26c)][_0x5ab447(0x393)]()][_0x5ab447(0x2ac)](_0x217e80=>_0x217e80===_0x310f9d);}[_0x64ef4d(0x20b)](_0x17b852){const _0x1e8434=_0x64ef4d;let _0x3d91c6=_0x17b852??'',_0x56565d=this['_socketChannels'][_0x1e8434(0x22d)](_0x3d91c6);if(_0x56565d)return _0x56565d;let _0x3f4d2a={'endpointKey':_0x3d91c6,'endpoint':_0x17b852,'socket$':new _0x205351(void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1e8434(0x4f9)][_0x1e8434(0x2f7)](_0x3d91c6,_0x3f4d2a),_0x3f4d2a;}[_0x64ef4d(0x3f7)](_0x4f9340){const _0x5c15eb=_0x64ef4d;_0x4f9340['handshakeTimer']!=null&&(clearTimeout(_0x4f9340[_0x5c15eb(0x286)]),_0x4f9340[_0x5c15eb(0x286)]=null);}[_0x64ef4d(0x354)](_0x40eae7){const _0x41deb2=_0x64ef4d;this[_0x41deb2(0x224)](_0x40eae7),_0x40eae7[_0x41deb2(0x33c)]&&(_0x40eae7[_0x41deb2(0x3aa)]=setTimeout(()=>this['_sendHeartbeat'](_0x40eae7),this[_0x41deb2(0x351)]['getConfig']('HEARTBEAT_INTERVAL')??0x7530));}['_sendHeartbeat'](_0xf47297){const _0x286935=_0x64ef4d;let _0x27d5d5=_0xf47297[_0x286935(0x3a5)][_0x286935(0x27e)]();_0xf47297[_0x286935(0x33c)]&&_0x27d5d5&&(_0x27d5d5[_0x286935(0x441)]({'cmd':_0x399e6c['HEARTBEAT']}),this[_0x286935(0x43d)](_0xf47297));}['_waitForHeartbeatResponse'](_0x11dc1e){const _0x595c5e=_0x64ef4d;_0x11dc1e[_0x595c5e(0x4f5)]=setTimeout(()=>this['_onConnectionFailed'](_0x11dc1e),this[_0x595c5e(0x351)][_0x595c5e(0x1f4)](_0x595c5e(0x417))??0x4e20);}[_0x64ef4d(0x224)](_0x2ab3c9){const _0x4d663a=_0x64ef4d;_0x2ab3c9[_0x4d663a(0x3aa)]!=null&&(clearTimeout(_0x2ab3c9[_0x4d663a(0x3aa)]),_0x2ab3c9[_0x4d663a(0x3aa)]=null);}[_0x64ef4d(0x39b)](_0x2f394b){const _0x22efe2=_0x64ef4d;_0x2f394b[_0x22efe2(0x4f5)]!=null&&(clearTimeout(_0x2f394b['timeoutTimer']),_0x2f394b['timeoutTimer']=null);}};Zn=H([V(0x0,_0x12abaf(_0x1f4ba8)),V(0x1,_0x1a4744),V(0x2,_0x1c2d46),V(0x3,Wn),V(0x4,_0x12abaf(B)),V(0x5,Jn)],Zn);function Qn(_0x4e9f3d){const _0x467250=_0x64ef4d;if(_0x4e9f3d[_0x467250(0x228)]!==_0x399e6c['INGEST'])return!0x1;let _0xa2de3=_0x4e9f3d[_0x467250(0x4e5)][_0x467250(0x500)];return _0xa2de3===_0xacdc36[_0x467250(0x265)]||_0xa2de3===_0xacdc36[_0x467250(0x4c5)];}function $n(_0x82fa3a){const _0x3e13fd=_0x64ef4d;var _0x27e211;if(!(_0x82fa3a instanceof _0x4b2faf)||_0x82fa3a[_0x3e13fd(0x491)]!==0x193)return!0x1;let _0x588071=_0x82fa3a[_0x3e13fd(0x2d5)];return(_0x588071==null||(_0x27e211=_0x588071[_0x3e13fd(0x2d5)])==null?void 0x0:_0x27e211[_0x3e13fd(0x3d0)])===_0x3523bb['LICENSE_DOMAIN_REJECTED'];}let er=class extends _0x3f9f03{constructor(_0x4016cf,_0x329347,_0x5a3fb5,_0x40d830){const _0x19da43=_0x64ef4d;var _0xabfc3;super(),this[_0x19da43(0x32a)]=_0x4016cf,this['_collabSessionService']=_0x329347,this[_0x19da43(0x351)]=_0x5a3fb5,this[_0x19da43(0x3e4)]=_0x40d830,z(this,_0x19da43(0x21c),new Map()),z(this,_0x19da43(0x4ac),new _0x18775b()),z(this,_0x19da43(0x4da),this[_0x19da43(0x4ac)]['asObservable']()),((_0xabfc3=this[_0x19da43(0x351)]['getConfig'](_0x19da43(0x315)))==null?void 0x0:_0xabfc3['enableCollaboration'])!==!0x1&&this[_0x19da43(0x26a)]();}['dispose'](){const _0x1c440d=_0x64ef4d;super['dispose'](),this[_0x1c440d(0x21c)][_0x1c440d(0x3c3)](_0x3edc5b=>_0x3edc5b['dispose']()),this[_0x1c440d(0x21c)][_0x1c440d(0x4e0)]();}[_0x64ef4d(0x4ed)](_0x50cd4b){const _0x20e3a3=_0x64ef4d;return this[_0x20e3a3(0x21c)][_0x20e3a3(0x22d)](_0x50cd4b)??null;}[_0x64ef4d(0x4c9)](){const _0x360ff4=_0x64ef4d;return Array['from'](this[_0x360ff4(0x21c)][_0x360ff4(0x393)]());}[_0x64ef4d(0x389)](_0xe71e48){const _0x370f2e=_0x64ef4d;let _0x410d54=this[_0x370f2e(0x4ed)](_0xe71e48);return _0x410d54?_0x2129d3(_0x410d54):this[_0x370f2e(0x4ac)][_0x370f2e(0x4f0)](_0x56e948(_0x474222=>_0x474222[_0x370f2e(0x2af)]===_0xe71e48));}[_0x64ef4d(0x2a7)](_0x54ed0c){const _0x57c783=_0x64ef4d;return _0x5d9383(this['getCollabEntity$'](_0x54ed0c)[_0x57c783(0x4f0)](_0x4b6d47(()=>void 0x0)));}[_0x64ef4d(0x320)](_0x1f542c){const _0x5b1905=_0x64ef4d;if(_0x1f542c!==void 0x0){var _0x230e8f;return((_0x230e8f=this[_0x5b1905(0x21c)][_0x5b1905(0x22d)](_0x1f542c))==null?void 0x0:_0x230e8f['hasWritePending']())??!0x1;}for(let _0x3dc00b of this[_0x5b1905(0x21c)][_0x5b1905(0x393)]())if(_0x3dc00b[_0x5b1905(0x320)]())return!0x0;return!0x1;}[_0x64ef4d(0x26a)](){const _0x4375b4=_0x64ef4d;this['_univerInstanceService'][_0x4375b4(0x3d2)](_0x3ec4c0['UNIVER_SHEET'])['pipe'](_0x2cfbbb(this[_0x4375b4(0x4b4)]),_0x18553b(0x10))[_0x4375b4(0x4bd)](async _0x5a2260=>{const _0x51a859=_0x4375b4;let _0xdb18a=_0x5a2260['unit'][_0x51a859(0x44c)](),_0x392e3b=await this[_0x51a859(0x370)](_0xdb18a,_0x3ec4c0['UNIVER_SHEET']);this[_0x51a859(0x21c)]['set'](_0xdb18a,_0x392e3b);}),this[_0x4375b4(0x3e4)][_0x4375b4(0x3d2)](_0x3ec4c0['UNIVER_DOC'])['pipe'](_0x2cfbbb(this['dispose$']),_0x18553b(0x10))[_0x4375b4(0x4f0)](_0x56e948(_0x2ed718=>!_0x2ed718['unit'][_0x4375b4(0x44c)]()[_0x4375b4(0x2bc)]('__')))[_0x4375b4(0x4bd)](async _0xa87a6d=>{const _0x284e55=_0x4375b4;let _0x2abdda=_0xa87a6d[_0x284e55(0x470)][_0x284e55(0x44c)](),_0x78f463=await this[_0x284e55(0x370)](_0x2abdda,_0x3ec4c0[_0x284e55(0x25d)]);this['_entities'][_0x284e55(0x2f7)](_0x2abdda,_0x78f463);}),this[_0x4375b4(0x3e4)]['getTypeOfUnitAdded$'](_0x3ec4c0[_0x4375b4(0x292)])['pipe'](_0x2cfbbb(this[_0x4375b4(0x4b4)]),_0x18553b(0x10))[_0x4375b4(0x4bd)](async _0x39f8f8=>{const _0x3035fb=_0x4375b4;let _0x395247=_0x39f8f8[_0x3035fb(0x470)][_0x3035fb(0x44c)](),_0x2f34cb=await this[_0x3035fb(0x370)](_0x395247,_0x3ec4c0[_0x3035fb(0x292)]);this[_0x3035fb(0x21c)][_0x3035fb(0x2f7)](_0x395247,_0x2f34cb);}),this[_0x4375b4(0x3e4)]['getTypeOfUnitAdded$'](_0x3ec4c0[_0x4375b4(0x494)])[_0x4375b4(0x4f0)](_0x2cfbbb(this[_0x4375b4(0x4b4)]),_0x18553b(0x10))[_0x4375b4(0x4bd)](async _0x5a8073=>{const _0x20f9a7=_0x4375b4;let _0x2b5783=_0x5a8073[_0x20f9a7(0x470)][_0x20f9a7(0x44c)](),_0x5c5ad1=await this[_0x20f9a7(0x370)](_0x2b5783,_0x3ec4c0[_0x20f9a7(0x494)]);this[_0x20f9a7(0x21c)]['set'](_0x2b5783,_0x5c5ad1);}),this[_0x4375b4(0x3e4)][_0x4375b4(0x3d2)](_0x3ec4c0[_0x4375b4(0x506)])[_0x4375b4(0x4f0)](_0x2cfbbb(this[_0x4375b4(0x4b4)]),_0x18553b(0x10))[_0x4375b4(0x4bd)](async _0x3933bd=>{const _0x501b36=_0x4375b4;let _0x463340=_0x3933bd['unit']['getUnitId'](),_0x2b6a13=await this[_0x501b36(0x370)](_0x463340,_0x3ec4c0[_0x501b36(0x506)]);this[_0x501b36(0x21c)][_0x501b36(0x2f7)](_0x463340,_0x2b6a13);}),this[_0x4375b4(0x3e4)]['getTypeOfUnitAdded$'](_0x3ec4c0[_0x4375b4(0x22b)])[_0x4375b4(0x4f0)](_0x2cfbbb(this[_0x4375b4(0x4b4)]),_0x18553b(0x10))[_0x4375b4(0x4bd)](async _0x47f1bd=>{const _0x5a136d=_0x4375b4;let _0x35059d=_0x47f1bd[_0x5a136d(0x470)][_0x5a136d(0x44c)](),_0x4cf385=await this[_0x5a136d(0x370)](_0x35059d,_0x3ec4c0[_0x5a136d(0x22b)]);this[_0x5a136d(0x21c)][_0x5a136d(0x2f7)](_0x35059d,_0x4cf385);}),_0x276ef3(this['_univerInstanceService'][_0x4375b4(0x434)](_0x3ec4c0[_0x4375b4(0x363)]),this[_0x4375b4(0x3e4)][_0x4375b4(0x434)](_0x3ec4c0['UNIVER_DOC']),this[_0x4375b4(0x3e4)][_0x4375b4(0x434)](_0x3ec4c0[_0x4375b4(0x292)]),this[_0x4375b4(0x3e4)][_0x4375b4(0x434)](_0x3ec4c0[_0x4375b4(0x494)]),this[_0x4375b4(0x3e4)][_0x4375b4(0x434)](_0x3ec4c0[_0x4375b4(0x506)]),this[_0x4375b4(0x3e4)]['getTypeOfUnitDisposed$'](_0x3ec4c0[_0x4375b4(0x22b)]))[_0x4375b4(0x4f0)](_0x2cfbbb(this[_0x4375b4(0x4b4)]))['subscribe'](_0x182812=>{const _0x2d3ba5=_0x4375b4;let _0x5d6e24=_0x182812[_0x2d3ba5(0x44c)](),_0x5b1f7d=this[_0x2d3ba5(0x21c)][_0x2d3ba5(0x22d)](_0x5d6e24);_0x5b1f7d&&(_0x5b1f7d['dispose'](),this[_0x2d3ba5(0x21c)][_0x2d3ba5(0x209)](_0x5d6e24));});}async[_0x64ef4d(0x370)](_0x5257d6,_0x2c70fe){const _0x23f0cd=_0x64ef4d;let _0x4a5c80=await this['_collabSessionService'][_0x23f0cd(0x4ff)](_0x5257d6),_0x4ef69a=this[_0x23f0cd(0x32a)]['createInstance'](this[_0x23f0cd(0x409)](_0x2c70fe),_0x5257d6,_0x2c70fe,_0x4a5c80);return await _0x4ef69a[_0x23f0cd(0x340)](),this[_0x23f0cd(0x4ac)][_0x23f0cd(0x429)](_0x4ef69a),_0x4ef69a;}[_0x64ef4d(0x409)](_0x4ca966){const _0x335550=_0x64ef4d;switch(_0x4ca966){case _0x3ec4c0[_0x335550(0x25d)]:return Fn;case _0x3ec4c0[_0x335550(0x363)]:return Ln;case _0x3ec4c0['UNIVER_SLIDE']:return Rn;case _0x3ec4c0[_0x335550(0x494)]:return zn;case _0x3ec4c0[_0x335550(0x506)]:return In;case _0x3ec4c0['UNIVER_PDF']:return Bn;default:throw Error(_0x335550(0x48b)+_0x4ca966);}}};er=H([V(0x0,_0x12abaf(_0x1f4ba8)),V(0x1,_0x12abaf(Zn)),V(0x2,_0x1c2d46),V(0x3,_0xde2491)],er);var tr=_0x64ef4d(0x3f3),nr=_0x64ef4d(0x31a);let rr=class extends _0x43913d{constructor(_0x3939fc,_0x190b9e){const _0x184556=_0x64ef4d;super(),this[_0x184556(0x3e4)]=_0x3939fc,this[_0x184556(0x351)]=_0x190b9e,this[_0x184556(0x26a)]();}[_0x64ef4d(0x26a)](){const _0x180c59=_0x64ef4d;this['disposeWithMe'](this[_0x180c59(0x3e4)][_0x180c59(0x395)][_0x180c59(0x4bd)](()=>{const _0x18d1d5=_0x180c59;let _0x15d03f=this['_univerInstanceService']['getFocusedUnit'](),_0x38c487=this[_0x18d1d5(0x351)]['getConfig'](_0x18d1d5(0x520))??_0x18d1d5(0x4ae);_0x15d03f instanceof _0x4f49c4&&(_0x38c487=_0x15d03f[_0x18d1d5(0x27f)]),document[_0x18d1d5(0x221)]=_0x38c487;}));}};rr=H([V(0x0,_0xde2491),V(0x1,_0x1c2d46)],rr);const ir=_0x4d466b(_0x64ef4d(0x31d));let ar=class{constructor(_0x12d9bb,_0x385fb1,_0x3d02bf){const _0x539851=_0x64ef4d;this[_0x539851(0x503)]=_0x12d9bb,this[_0x539851(0x351)]=_0x385fb1,this[_0x539851(0x3e4)]=_0x3d02bf;}[_0x64ef4d(0x4b3)](){const _0x1e0252=_0x64ef4d;return this[_0x1e0252(0x2f0)]()[_0x1e0252(0x235)]??{};}async[_0x64ef4d(0x536)](_0x434a68){const _0x1a3d1f=_0x64ef4d;let _0x415571=this['getUploadOptions']();if(or(_0x434a68,_0x415571),_0x415571[_0x1a3d1f(0x2c6)])return _0x415571[_0x1a3d1f(0x2c6)](_0x434a68);let _0x105ddd=await this['_upload'](_0x434a68);return{'id':_0x105ddd,'name':_0x434a68['name'],'mimeType':_0x434a68['type'],'size':_0x434a68['size'],'sourceType':_0x2eb2a8['UUID'],'source':_0x105ddd};}async[_0x64ef4d(0x455)](_0x26e6e4,_0x6f938c){const _0x87314f=_0x64ef4d;if(_0x6f938c!==_0x2eb2a8[_0x87314f(0x52d)])return _0x26e6e4;let _0x3bb8a7=(await this['_httpService'][_0x87314f(0x22d)](this[_0x87314f(0x3a8)]()[_0x87314f(0x30d)](_0x87314f(0x273),_0x26e6e4)))[_0x87314f(0x2f3)];if(_0x3bb8a7['error']&&_0x3bb8a7['error']['code']!==_0x3523bb['OK'])throw _0x3bb8a7[_0x87314f(0x2d5)];if(!_0x3bb8a7['url'])throw Error(_0x87314f(0x534));return _0x53c41a(_0x3bb8a7[_0x87314f(0x507)],this[_0x87314f(0x353)]());}async['_upload'](_0x3c8c72){const _0x4ebdf0=_0x64ef4d;let _0x569414=this[_0x4ebdf0(0x3e4)]['getFocusedUnit'](),_0x408238=_0x569414==null?void 0x0:_0x569414[_0x4ebdf0(0x44c)]();if(!_0x408238)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x56a735=new FormData();_0x56a735[_0x4ebdf0(0x244)](_0x4ebdf0(0x4fb),_0x3c8c72);let _0x110f40=this[_0x4ebdf0(0x210)]()+_0x4ebdf0(0x4dd)+_0x3c8c72[_0x4ebdf0(0x475)][_0x4ebdf0(0x2b8)]()+_0x4ebdf0(0x296)+_0x71c5e3[_0x4ebdf0(0x447)]+_0x4ebdf0(0x378)+encodeURIComponent(_0x408238),_0x1e685b=(await this[_0x4ebdf0(0x503)][_0x4ebdf0(0x3dd)](_0x110f40,{'body':_0x56a735}))[_0x4ebdf0(0x2f3)][_0x4ebdf0(0x3f5)];if(typeof _0x1e685b!='string'||!_0x1e685b)throw Error(_0x4ebdf0(0x2cc));return _0x1e685b;}['_getUploadFileURL'](){const _0xe3ed7a=_0x64ef4d;return this[_0xe3ed7a(0x2f0)]()[_0xe3ed7a(0x3a6)]??'/universer-api/stream/file/upload';}[_0x64ef4d(0x3a8)](){const _0x790204=_0x64ef4d;return this[_0x790204(0x2f0)]()[_0x790204(0x480)]??'/universer-api/file/{fileID}/sign-url';}[_0x64ef4d(0x353)](){const _0x4a3d69=_0x64ef4d;let _0x4e2716=this[_0x4a3d69(0x2f0)]();return _0x4e2716[_0x4a3d69(0x4c0)]?_0x4e2716[_0x4a3d69(0x4c0)]:typeof location<'u'?location[_0x4a3d69(0x4f8)]:_0x4e2716[_0x4a3d69(0x3a6)]??'';}[_0x64ef4d(0x2f0)](){const _0x2fc8bb=_0x64ef4d;return this[_0x2fc8bb(0x351)]['getConfig'](_0x2fc8bb(0x315))??{};}};ar=H([V(0x0,_0x12abaf(_0x180f6d)),V(0x1,_0x12abaf(_0x1c2d46)),V(0x2,_0x12abaf(_0xde2491))],ar);function or(_0x384826,_0x59e52f){const _0x374655=_0x64ef4d;var _0x5ab846;if(_0x59e52f[_0x374655(0x22e)]!=null&&_0x384826[_0x374655(0x475)]>_0x59e52f['maxSize'])throw Error(_0x374655(0x49b));if((_0x5ab846=_0x59e52f['accept'])!=null&&_0x5ab846[_0x374655(0x251)]&&!_0x59e52f[_0x374655(0x483)]['some'](_0x217537=>_0x384826['type']===_0x217537||_0x384826['name']['endsWith'](_0x217537)||_0x217537[_0x374655(0x3ab)]('/*')&&_0x384826[_0x374655(0x38f)][_0x374655(0x2bc)](_0x217537[_0x374655(0x471)](0x0,-0x1))))throw Error(_0x374655(0x443));}let sr=class{constructor(_0x54523c,_0xe1866a,_0x1b58d2){const _0x3c865f=_0x64ef4d;this['_configService']=_0x54523c,this[_0x3c865f(0x503)]=_0xe1866a,this['localeService']=_0x1b58d2,this['init']();}[_0x64ef4d(0x340)](){const _0x10b6f2=_0x64ef4d;this[_0x10b6f2(0x503)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x43b56b,_0x273785)=>_0x273785(_0x43b56b)[_0x10b6f2(0x4f0)](_0x2173a7(async _0x530b81=>{const _0x1c0b20=_0x10b6f2;let _0x164abf=_0x530b81;if(_0x164abf[_0x1c0b20(0x491)]===0x191){if(typeof window>'u')throw Error(_0x1c0b20(0x20c));if(window[_0x1c0b20(0x2c2)](this[_0x1c0b20(0x3cb)]['t'](_0x1c0b20(0x45d)))){let _0x19db9b=window[_0x1c0b20(0x380)](window['location']['href']);window[_0x1c0b20(0x47c)]['href']=this[_0x1c0b20(0x39a)]()+_0x1c0b20(0x299)+_0x19db9b;}}return _0x164abf;}))});}['_getLoginPath'](){const _0x46e166=_0x64ef4d;let _0x3f7000=this[_0x46e166(0x351)][_0x46e166(0x1f4)](R);return(_0x3f7000==null?void 0x0:_0x3f7000[_0x46e166(0x23a)])??_0x46e166(0x285);}};sr=H([V(0x0,_0x1c2d46),V(0x1,_0x12abaf(_0x180f6d)),V(0x2,_0x12abaf(_0x1b8087))],sr);let cr=class extends _0x43913d{constructor(_0x5a7083,_0x12a9f3){const _0x1db466=_0x64ef4d;super(),this[_0x1db466(0x3f6)]=_0x5a7083,this[_0x1db466(0x351)]=_0x12a9f3,z(this,_0x1db466(0x2b5),!0x1),this[_0x1db466(0x4a4)]();}[_0x64ef4d(0x4a4)](){const _0x94f1a9=_0x64ef4d;let _0x18e048=this;this['disposeWithMe'](this[_0x94f1a9(0x3f6)][_0x94f1a9(0x215)]({'priority':0x3e7,'interceptor':_0x4432eb({'isMatch'(_0x1d771a){const _0x3cd24a=_0x94f1a9;var _0x203afd;if(_0x1d771a['method']==='POST'&&(_0x203afd=_0x1d771a[_0x3cd24a(0x3fe)])!=null&&_0x203afd[_0x3cd24a(0x2f3)]){let {objectID:_0xfb10c6,objectType:_0x32087c}=_0x1d771a[_0x3cd24a(0x3fe)][_0x3cd24a(0x2f3)]||{};if(!_0xfb10c6||_0x32087c===void 0x0)return!0x1;let _0x1bcc22=_0x18e048[_0x3cd24a(0x306)]()+'/'+_0x32087c+_0x3cd24a(0x4cc)+encodeURIComponent(_0xfb10c6)+'/allowed';if(_0x1d771a['url']===_0x1bcc22)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3541ab){const _0x1bc28b=_0x94f1a9;var _0x22ec3f;return(_0x22ec3f=_0x3541ab[_0x1bc28b(0x3fe)])==null?void 0x0:_0x22ec3f[_0x1bc28b(0x2f3)];},'mergeParamsToRequest'(_0x11d3c3,_0x183bd2){const _0x6a8cca=_0x94f1a9;let _0x26420b=_0x18e048['_getAPIPrefixPath']()+_0x6a8cca(0x2ba),_0x18c7b6=_0x11d3c3[_0x6a8cca(0x4f3)]((_0x568c92,_0x5421df)=>{const _0x517aa5=_0x6a8cca;let {unitID:_0x2f0a50,objectID:_0x12987e,objectType:_0x1b09c5,actions:_0x2c914c}=_0x5421df;return _0x568c92[_0x2f0a50]||(_0x568c92[_0x2f0a50]=Object[_0x517aa5(0x36f)](null)),_0x568c92[_0x2f0a50][_0x12987e]||(_0x568c92[_0x2f0a50][_0x12987e]={'objectID':_0x12987e,'objectType':_0x1b09c5,'actions':[]}),_0x568c92[_0x2f0a50][_0x12987e][_0x517aa5(0x327)]['push'](..._0x2c914c),_0x568c92;},Object[_0x6a8cca(0x36f)](null)),_0x419f8f=[];for(let _0x35b7e3 in _0x18c7b6)for(let _0x2a4ed8 in _0x18c7b6[_0x35b7e3]){let {actions:_0x4626bf,objectType:_0x1ab9a5}=_0x18c7b6[_0x35b7e3][_0x2a4ed8],_0x22d4e4=[...new Set(_0x4626bf)];_0x419f8f['push']({'unitID':_0x35b7e3,'objectID':_0x2a4ed8,'objectType':_0x1ab9a5,'actions':_0x22d4e4});}return new _0xac2747(_0x6a8cca(0x3c0),_0x26420b,{'headers':_0x183bd2[_0x6a8cca(0x449)],'withCredentials':_0x183bd2[_0x6a8cca(0x358)],'responseType':_0x183bd2[_0x6a8cca(0x258)],'body':{'requests':_0x419f8f}});}},{'distributeResult'(_0x42bd5b,_0xade807){const _0x14770c=_0x94f1a9;let {objectActions:_0x38f187}=_0x42bd5b;return _0xade807[_0x14770c(0x48a)](_0x5c673b=>{const _0x373dd8=_0x14770c;let {unitID:_0x19e027,objectID:_0x4ef4d4,actions:_0x21c0fe}=_0x5c673b,_0x22230a=_0x38f187[_0x373dd8(0x40b)](_0x4ab0e1=>_0x4ab0e1['unitID']===_0x19e027&&_0x4ab0e1[_0x373dd8(0x28c)]===_0x4ef4d4);return{'config':_0x5c673b,'result':{'actions':_0x21c0fe[_0x373dd8(0x48a)](_0x54d914=>_0x22230a==null?void 0x0:_0x22230a[_0x373dd8(0x327)][_0x373dd8(0x40b)](_0x247953=>_0x247953[_0x373dd8(0x1f9)]===_0x54d914))[_0x373dd8(0x35f)](_0x5435d7=>!!_0x5435d7),'error':_0x42bd5b['error']}};});}})}));}[_0x64ef4d(0x306)](){const _0x130502=_0x64ef4d;let _0x1883ae=this[_0x130502(0x351)][_0x130502(0x1f4)](R);return(_0x1883ae==null?void 0x0:_0x1883ae[_0x130502(0x4ef)])??'/universer-api/authz';}async['create'](_0x4ddbe7){const _0x13301a=_0x64ef4d;let _0x15f26f=this[_0x13301a(0x306)]()+'/'+_0x4ddbe7[_0x13301a(0x47a)]+_0x13301a(0x329);return(await this[_0x13301a(0x3f6)][_0x13301a(0x3dd)](_0x15f26f,{'body':_0x4ddbe7}))['body'][_0x13301a(0x28c)]||'';}async[_0x64ef4d(0x435)](_0xef0fd7){const _0x17d09c=_0x64ef4d;let _0x46f32f=this[_0x17d09c(0x306)]()+'/-/object/list';return(await this[_0x17d09c(0x3f6)]['post'](_0x46f32f,{'body':_0xef0fd7}))['body'][_0x17d09c(0x3c8)];}async[_0x64ef4d(0x316)](_0x577324){const _0x17eca6=_0x64ef4d;var _0x2cdd81;let _0x110e7c=this[_0x17eca6(0x306)]()+'/'+_0x577324[_0x17eca6(0x47a)]+_0x17eca6(0x4cc)+encodeURIComponent(_0x577324[_0x17eca6(0x28c)]),_0x56b652=await this[_0x17eca6(0x3f6)][_0x17eca6(0x250)](_0x110e7c,{'body':_0x577324});if((_0x56b652==null||(_0x2cdd81=_0x56b652[_0x17eca6(0x2f3)])==null||(_0x2cdd81=_0x2cdd81[_0x17eca6(0x2d5)])==null?void 0x0:_0x2cdd81[_0x17eca6(0x3d0)])!==0x1)throw Error(_0x17eca6(0x519));}async[_0x64ef4d(0x236)](_0x4a9527){const _0x458b17=_0x64ef4d;let _0x454e6f=this[_0x458b17(0x306)]()+'/'+_0x4a9527[_0x458b17(0x47a)]+_0x458b17(0x4cc)+encodeURIComponent(_0x4a9527[_0x458b17(0x28c)])+_0x458b17(0x39e);return(await this['_HTTPService'][_0x458b17(0x3dd)](_0x454e6f,{'body':_0x4a9527}))['body']['actions'];}async[_0x64ef4d(0x303)](_0xc598f6){const _0x41b065=_0x64ef4d;let _0x3e5efe=this[_0x41b065(0x306)]()+_0x41b065(0x2ba);return(await this['_HTTPService'][_0x41b065(0x3dd)](_0x3e5efe,{'body':{'requests':_0xc598f6}}))[_0x41b065(0x2f3)]['objectActions'];}async['listRoles'](_0x54e61b){const _0x326baf=_0x64ef4d;let _0x1ac3b4=this[_0x326baf(0x306)]()+'/'+_0x54e61b[_0x326baf(0x47a)]+_0x326baf(0x467),_0x41962d=await this['_HTTPService'][_0x326baf(0x3dd)](_0x1ac3b4,{'body':_0x54e61b});return{'roles':_0x41962d[_0x326baf(0x2f3)][_0x326baf(0x4a1)],'actions':_0x41962d[_0x326baf(0x2f3)][_0x326baf(0x327)]};}async['deleteCollaborator'](_0xa11a12){const _0x44c4fe=_0x64ef4d;let _0x4f7e97=this[_0x44c4fe(0x306)]()+'/collaborator';await this[_0x44c4fe(0x3f6)][_0x44c4fe(0x209)](_0x4f7e97,{'params':{'collaboratorID':_0xa11a12[_0x44c4fe(0x48e)],'objectID':_0xa11a12['objectID'],'unitID':_0xa11a12[_0x44c4fe(0x2af)]}});}async['updateCollaborator'](_0x2d6ecc){const _0x18ac3d=_0x64ef4d;let _0x4572e9=this[_0x18ac3d(0x306)]()+_0x18ac3d(0x394);await this[_0x18ac3d(0x3f6)][_0x18ac3d(0x217)](_0x4572e9,{'body':_0x2d6ecc});}async[_0x64ef4d(0x46e)](_0x248a58){const _0x3d978c=_0x64ef4d;let _0x5e8040=this[_0x3d978c(0x306)]()+_0x3d978c(0x394);await this[_0x3d978c(0x3f6)][_0x3d978c(0x3dd)](_0x5e8040,{'body':_0x248a58});}async[_0x64ef4d(0x343)](_0x1dbc1a){const _0x303002=_0x64ef4d;let _0x496033=this[_0x303002(0x306)]()+_0x303002(0x394),_0x241c43=await this[_0x303002(0x3f6)][_0x303002(0x22d)](_0x496033,{'params':{'objectID':_0x1dbc1a[_0x303002(0x28c)],'unitID':_0x1dbc1a[_0x303002(0x2af)]}});return this[_0x303002(0x531)](_0x241c43['body'][_0x303002(0x533)]??!0x1),_0x241c43[_0x303002(0x2f3)]['collaborators'];}async[_0x64ef4d(0x26d)](_0x24410d){const _0x591b57=_0x64ef4d;let _0x53edad=this['_getAPIPrefixPath']()+_0x591b57(0x394);await this['_HTTPService'][_0x591b57(0x250)](_0x53edad,{'body':_0x24410d});}['setCfgEnableObjInherit'](_0x18d537){const _0x142432=_0x64ef4d;this[_0x142432(0x2b5)]=_0x18d537;}['getCfgEnableObjInherit'](){const _0x5776b0=_0x64ef4d;return this[_0x5776b0(0x2b5)];}};cr=H([V(0x0,_0x12abaf(_0x180f6d)),V(0x1,_0x12abaf(_0x1c2d46))],cr);function lr(_0x2a94d7){const _0x1bbbe9=_0x64ef4d;let _0x4bdcff=atob(_0x2a94d7),_0x19ee07=new Uint8Array(_0x4bdcff[_0x1bbbe9(0x251)]);for(let _0x50ca5c=0x0;_0x50ca5c<_0x4bdcff[_0x1bbbe9(0x251)];_0x50ca5c++)_0x19ee07[_0x50ca5c]=_0x4bdcff[_0x1bbbe9(0x4c3)](_0x50ca5c);return _0x19ee07;}function ur(_0x28a10f){const _0x5b9a67=_0x64ef4d;let _0x1efe11='';for(let _0x2939b8=0x0;_0x2939b8<_0x28a10f['length'];_0x2939b8++)_0x1efe11+=String[_0x5b9a67(0x24f)](_0x28a10f[_0x2939b8]);return btoa(_0x1efe11);}function dr(_0x4e63dc,_0x227d8a){const _0x169fe6=_0x64ef4d;let _0x1d5ad3=lr(_0x227d8a),_0x4e6149=_0x306732(0x10),_0x12327e=_0x10c69c(_0x1d5ad3,_0x4e6149)[_0x169fe6(0x261)](_0x107766(_0x4e63dc));return ur(_0x530996(_0x4e6149,_0x12327e));}function fr(){const _0x4d79fc=_0x64ef4d;let _0x1740be=_0x250f0c()[_0x4d79fc(0x21a)];if(typeof window<'u'&&window[_0x4d79fc(0x47c)]!==void 0x0&&_0x1740be){let _0x42d35e={'time':Math[_0x4d79fc(0x3e2)](Date['now']()/0x3e8),'domain':location[_0x4d79fc(0x3fa)]};return dr(JSON[_0x4d79fc(0x398)](_0x42d35e),_0x1740be);}}let pr=class{constructor(_0x18c28a){const _0xfb3452=_0x64ef4d;this['_httpService']=_0x18c28a,this[_0xfb3452(0x4aa)]();}[_0x64ef4d(0x4aa)](){const _0x1a7963=_0x64ef4d;this['_httpService'][_0x1a7963(0x215)]({'interceptor':(_0xaae4e7,_0x53a17b)=>{const _0xf3e3eb=_0x1a7963;let _0x130382=fr();return _0x130382&&_0xaae4e7[_0xf3e3eb(0x449)]['set'](_0xf3e3eb(0x3c5),_0x130382),_0x53a17b(_0xaae4e7);}});}};pr=H([V(0x0,_0x12abaf(_0x180f6d))],pr);let mr=class extends _0x3f9f03{constructor(_0x2bd1a8,_0x2197fc,_0x1e9ecb){const _0x4e4bc5=_0x64ef4d;super(),this[_0x4e4bc5(0x4d6)]=_0x2bd1a8,this[_0x4e4bc5(0x214)]=_0x2197fc,this[_0x4e4bc5(0x226)]=_0x1e9ecb,z(this,_0x4e4bc5(0x38d),new _0x205351(null)),z(this,_0x4e4bc5(0x263),new _0x18775b()),z(this,_0x4e4bc5(0x350),this[_0x4e4bc5(0x38d)]['asObservable']()),z(this,'unitLoaded$',this['_unitLoaded$']['asObservable']());}[_0x64ef4d(0x357)](){const _0x2cdaac=_0x64ef4d;super[_0x2cdaac(0x357)](),this[_0x2cdaac(0x263)][_0x2cdaac(0x46f)](),this[_0x2cdaac(0x38d)][_0x2cdaac(0x46f)]();}['loadUnitOfRevision'](_0x31f890,_0x3a3b49,_0x47e68f,_0x52fd88,_0x597b8f){const _0x31a5eb=_0x64ef4d;return this[_0x31a5eb(0x462)](_0x31f890,_0x3a3b49,_0x47e68f,_0x52fd88,_0x597b8f);}[_0x64ef4d(0x2fd)](_0x1951bb,_0x236d05,_0x1b4f57,_0x43026b){const _0x31c278=_0x64ef4d;return this[_0x31c278(0x462)](_0x1951bb,_0x236d05,void 0x0,_0x1b4f57,_0x43026b);}async[_0x64ef4d(0x462)](_0x2d15c2,_0x907f91,_0x5edf3f,_0x4b28e7,_0x14954a){const _0x1fc86e=_0x64ef4d;this[_0x1fc86e(0x38d)][_0x1fc86e(0x429)]({'unitId':_0x2d15c2,'type':_0x907f91,'subUnitId':_0x4b28e7});let _0x46b2e6=_0x5edf3f;if(_0x46b2e6===void 0x0){var _0x55de2e;let _0x1e6656=await((_0x55de2e=this[_0x1fc86e(0x226)])==null?void 0x0:_0x55de2e[_0x1fc86e(0x35e)](_0x2d15c2));_0x46b2e6=_0x1e6656&&(_0x1e6656[_0x1fc86e(0x400)]||_0x1e6656[_0x1fc86e(0x3da)]['length']!==0x0)?_0x1e6656[_0x1fc86e(0x498)]:0x0,_0x46b2e6===0x0&&this[_0x1fc86e(0x4d6)][_0x1fc86e(0x3af)](_0x1fc86e(0x454),_0x1fc86e(0x43e));}return this[_0x1fc86e(0x319)](_0x2d15c2,_0x907f91,_0x46b2e6,_0x4b28e7,_0x14954a);}async[_0x64ef4d(0x319)](_0x485c98,_0x2efef5,_0x4f7c3b,_0x5407ce,_0x17bb6a){const _0x5228e1=_0x64ef4d;let _0x21cc7d=null;switch(_0x2efef5){case _0x3ec4c0[_0x5228e1(0x363)]:_0x21cc7d=await this[_0x5228e1(0x214)][_0x5228e1(0x4c8)](_0x485c98,_0x4f7c3b,_0x17bb6a,{'initialSubUnitId':_0x5407ce});break;case _0x3ec4c0['UNIVER_DOC']:_0x21cc7d=await this[_0x5228e1(0x214)][_0x5228e1(0x4ce)](_0x485c98,_0x4f7c3b,_0x17bb6a);break;case _0x3ec4c0[_0x5228e1(0x292)]:_0x21cc7d=await this[_0x5228e1(0x214)]['loadSlide'](_0x485c98,_0x4f7c3b,_0x17bb6a);break;case _0x3ec4c0[_0x5228e1(0x494)]:_0x21cc7d=await this[_0x5228e1(0x214)][_0x5228e1(0x336)](_0x485c98,_0x4f7c3b,_0x17bb6a);break;case _0x3ec4c0[_0x5228e1(0x506)]:_0x21cc7d=await this['_snapshotService'][_0x5228e1(0x3b6)](_0x485c98,_0x4f7c3b,_0x17bb6a);break;case _0x3ec4c0[_0x5228e1(0x22b)]:_0x21cc7d=await this[_0x5228e1(0x214)][_0x5228e1(0x50b)](_0x485c98,_0x4f7c3b,_0x17bb6a);break;default:this[_0x5228e1(0x4d6)][_0x5228e1(0x2d5)](_0x5228e1(0x454),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x21cc7d&&this[_0x5228e1(0x263)][_0x5228e1(0x429)](_0x21cc7d),_0x21cc7d;}};mr=H([V(0x0,_0x1a4744),V(0x1,_0x12abaf(_0x83dc7b)),V(0x2,_0x4c5a46(U))],mr);let hr=class{constructor(_0x4119c7,_0x29f1d2,_0x23e58b){const _0x4751c6=_0x64ef4d;this[_0x4751c6(0x503)]=_0x4119c7,this[_0x4751c6(0x351)]=_0x29f1d2,this['_univerInstanceService']=_0x23e58b,z(this,_0x4751c6(0x3e1),0x0),z(this,_0x4751c6(0x2f1),new _0x18775b()),z(this,'change$',this['_change$']),z(this,_0x4751c6(0x242),new Map());}[_0x64ef4d(0x3e7)](_0x2e771e){const _0x4be6da=_0x64ef4d;this[_0x4be6da(0x3e1)]=_0x2e771e,this[_0x4be6da(0x2f1)][_0x4be6da(0x429)](_0x2e771e);}[_0x64ef4d(0x47b)](_0xe645b,_0x5108a6){const _0x934bd2=_0x64ef4d;if(_0x5108a6===_0x2eb2a8['BASE64']){let _0x21803f=new Image();return _0x21803f[_0x934bd2(0x49d)]=_0xe645b,_0x21803f;}return this[_0x934bd2(0x242)][_0x934bd2(0x22d)](_0xe645b);}[_0x64ef4d(0x3b3)](_0x4115dc,_0x3ad54f,_0x2e9d39){const _0x41602d=_0x64ef4d;_0x3ad54f!==_0x2eb2a8['BASE64']&&_0x2e9d39!=null&&this['_imageSourceCache'][_0x41602d(0x2f7)](_0x4115dc,_0x2e9d39);}async[_0x64ef4d(0x344)](_0x2dab5c){const _0x205765=_0x64ef4d;try{let _0x41aba9=this['_replaceFileID'](this[_0x205765(0x3a8)](),''+_0x2dab5c),_0x414047=(await this[_0x205765(0x503)]['get'](_0x41aba9))[_0x205765(0x2f3)];if(_0x414047[_0x205765(0x2d5)]&&_0x414047[_0x205765(0x2d5)]['code']===_0x3523bb['OK']){let _0x1176c1=_0x53c41a(_0x414047[_0x205765(0x507)],this[_0x205765(0x353)]());return Promise['resolve'](_0x1176c1);}return Promise[_0x205765(0x408)](_0x414047[_0x205765(0x2d5)]);}catch(_0x38171d){return Promise['reject'](_0x38171d);}}async[_0x64ef4d(0x490)](_0x10501){const _0x3a7411=_0x64ef4d;let _0x5cc7a2='';if(!_0x43754c[_0x3a7411(0x213)](_0x10501['type']))return this[_0x3a7411(0x3f1)](),Promise['reject'](Error(_0x14f99f[_0x3a7411(0x21e)]));if(_0x10501[_0x3a7411(0x475)]>_0x242601())return this[_0x3a7411(0x3f1)](),Promise[_0x3a7411(0x408)](Error(_0x14f99f[_0x3a7411(0x367)]));try{let _0x2a2ad8=new FormData();_0x2a2ad8[_0x3a7411(0x244)](_0x3a7411(0x4fb),_0x10501);let _0x33598a=this[_0x3a7411(0x3e4)][_0x3a7411(0x33f)](),_0x4a8098=_0x33598a==null?void 0x0:_0x33598a[_0x3a7411(0x44c)]();if(!_0x4a8098)throw Error(_0x3a7411(0x3ee));let _0x9d8c69=this[_0x3a7411(0x210)]()+_0x3a7411(0x4dd)+_0x10501[_0x3a7411(0x475)][_0x3a7411(0x2b8)]()+_0x3a7411(0x296)+_0x71c5e3[_0x3a7411(0x447)]+_0x3a7411(0x378)+encodeURIComponent(_0x4a8098),_0x4539f3={'body':_0x2a2ad8},_0x1aeb55=(await this['_httpService'][_0x3a7411(0x3dd)](_0x9d8c69,_0x4539f3))[_0x3a7411(0x2f3)];if(typeof _0x1aeb55[_0x3a7411(0x3f5)]!=_0x3a7411(0x30e))return this[_0x3a7411(0x3f1)](),Promise[_0x3a7411(0x408)](Error(_0x14f99f[_0x3a7411(0x3fc)]));_0x5cc7a2=_0x1aeb55[_0x3a7411(0x3f5)];}catch{return this[_0x3a7411(0x3f1)](),Promise[_0x3a7411(0x408)](Error(_0x14f99f['ERROR_IMAGE']));}return new Promise((_0x45df73,_0x1648ea)=>{const _0x1ce5ac=_0x3a7411;let _0x184b45=new FileReader();_0x184b45[_0x1ce5ac(0x2a4)](_0x10501),_0x184b45[_0x1ce5ac(0x4c2)]=_0x27edb4=>{const _0x320c22=_0x1ce5ac;var _0x5a299f;let _0x5bd060=(_0x5a299f=_0x27edb4[_0x320c22(0x216)])==null?void 0x0:_0x5a299f[_0x320c22(0x27c)];_0x5bd060==null?(this[_0x320c22(0x3f1)](),_0x1648ea(Error(_0x14f99f['ERROR_IMAGE']))):(_0x45df73({'imageId':_0x56ed1a(0x6),'imageSourceType':_0x2eb2a8[_0x320c22(0x52d)],'source':_0x5cc7a2,'base64Cache':_0x5bd060,'status':_0x14f99f[_0x320c22(0x43a)]}),this[_0x320c22(0x3f1)]());};});}[_0x64ef4d(0x210)](){const _0x2cdf1f=_0x64ef4d;let _0x4437f1=this[_0x2cdf1f(0x351)]['getConfig'](R);return(_0x4437f1==null?void 0x0:_0x4437f1[_0x2cdf1f(0x3a6)])??_0x2cdf1f(0x3b7);}[_0x64ef4d(0x3a8)](){const _0x2eead5=_0x64ef4d;let _0x4e4ef2=this[_0x2eead5(0x351)][_0x2eead5(0x1f4)](R);return(_0x4e4ef2==null?void 0x0:_0x4e4ef2[_0x2eead5(0x480)])??_0x2eead5(0x3b4);}[_0x64ef4d(0x353)](){const _0x54f0ad=_0x64ef4d;let _0x4d50ab=this[_0x54f0ad(0x351)][_0x54f0ad(0x1f4)](R);return(_0x4d50ab==null?void 0x0:_0x4d50ab[_0x54f0ad(0x4c0)])??location[_0x54f0ad(0x4f8)];}['_replaceFileID'](_0x22190c,_0x207f31){const _0xf1296b=_0x64ef4d;return _0x22190c[_0xf1296b(0x30d)](_0xf1296b(0x273),_0x207f31);}['_decreaseWaiting'](){const _0x56a333=_0x64ef4d;--this[_0x56a333(0x3e1)],this[_0x56a333(0x2f1)][_0x56a333(0x429)](this[_0x56a333(0x3e1)]);}};hr=H([V(0x0,_0x12abaf(_0x180f6d)),V(0x1,_0x1c2d46),V(0x2,_0x12abaf(_0xde2491))],hr);let gr=class{constructor(_0x5c42f2,_0x51d66b){const _0x1104a5=_0x64ef4d;this[_0x1104a5(0x351)]=_0x5c42f2,this['_HTTPService']=_0x51d66b;}['_getAPIPrefixPath'](){const _0x467fa1=_0x64ef4d;let _0xb3c9dd=this[_0x467fa1(0x351)]['getConfig'](R);return(_0xb3c9dd==null?void 0x0:_0xb3c9dd[_0x467fa1(0x4ef)])??_0x467fa1(0x233);}async[_0x64ef4d(0x435)](_0x30600c){const _0x415fda=_0x64ef4d;let _0x108aa4=this['_getAPIPrefixPath']()+_0x415fda(0x394);return{'list':[{'title':_0x415fda(0x492),'mentions':(await this[_0x415fda(0x3f6)][_0x415fda(0x22d)](_0x108aa4,{'params':{'objectID':_0x30600c[_0x415fda(0x339)],'unitID':_0x30600c[_0x415fda(0x339)]}}))[_0x415fda(0x2f3)][_0x415fda(0x514)]['map'](_0x4775c2=>({'objectId':_0x4775c2['id'],'name':_0x4775c2[_0x415fda(0x41f)][_0x415fda(0x27f)],'metadata':{'icon':_0x4775c2[_0x415fda(0x41f)][_0x415fda(0x238)]},'label':_0x4775c2[_0x415fda(0x41f)][_0x415fda(0x27f)],'objectType':_0x3dea41[_0x415fda(0x2c8)]})),'metadata':{},'type':_0x3dea41['PERSON']}]};}};gr=H([V(0x0,_0x12abaf(_0x1c2d46)),V(0x1,_0x12abaf(_0x180f6d))],gr);let _r=class extends _0x3f9f03{constructor(_0x3037cd,_0x595310,_0x5411ad,_0x53faf2,_0x485f6a,_0x27c3e4){const _0x565ec6=_0x64ef4d;super(),this[_0x565ec6(0x32a)]=_0x3037cd,this[_0x565ec6(0x3e4)]=_0x595310,this[_0x565ec6(0x24a)]=_0x5411ad,this[_0x565ec6(0x422)]=_0x53faf2,this['_collaborationSessionService']=_0x485f6a,this[_0x565ec6(0x3a2)]=_0x27c3e4,z(this,_0x565ec6(0x529),new Set()),this['disposeWithMe'](()=>this[_0x565ec6(0x529)][_0x565ec6(0x4e0)]()),this[_0x565ec6(0x38a)](vr(this[_0x565ec6(0x3e4)])['subscribe'](({unitId:_0x2b1fac})=>this[_0x565ec6(0x529)]['delete'](_0x2b1fac))),this['_initUnitPermissionChange'](),this[_0x565ec6(0x495)](),[_0x3ec4c0['UNIVER_DOC'],_0x3ec4c0[_0x565ec6(0x292)],_0x3ec4c0[_0x565ec6(0x506)],_0x3ec4c0['UNIVER_BOARD']][_0x565ec6(0x3c3)](_0x80d51f=>{const _0x13b924=_0x565ec6;this[_0x13b924(0x38a)](this['_univerInstanceService'][_0x13b924(0x434)](_0x80d51f)[_0x13b924(0x4bd)](_0x2d953c=>{const _0xddcbda=_0x13b924;this[_0xddcbda(0x529)][_0xddcbda(0x2d9)](_0x2d953c[_0xddcbda(0x44c)]()),this['_injector']['get'](_0x395c39)[_0xddcbda(0x52f)](_0x2d953c[_0xddcbda(0x44c)]());}));});}[_0x64ef4d(0x495)](){const _0x1d7ad3=_0x64ef4d;let _0x26cb69=async(_0x484fab,_0x2c455d)=>{const _0x30d470=_0x5841;let _0x4625f9=await this[_0x30d470(0x23c)][_0x30d470(0x4ff)](_0x484fab);this[_0x30d470(0x3ed)]||this[_0x30d470(0x529)][_0x30d470(0x41b)](_0x484fab)||!this[_0x30d470(0x3e4)][_0x30d470(0x295)](_0x484fab)||_0x4625f9[_0x30d470(0x3d5)][_0x30d470(0x4f0)](_0x56e948(_0x4fe56e=>_0x4fe56e[_0x30d470(0x500)]===_0xacdc36[_0x30d470(0x482)]),_0x5106a4(_0x276ef3(this[_0x30d470(0x4b4)],this[_0x30d470(0x3e4)][_0x30d470(0x2d7)][_0x30d470(0x4f0)](_0x56e948(_0x327b3b=>_0x327b3b[_0x30d470(0x44c)]()===_0x484fab)))))[_0x30d470(0x4bd)](_0x53b0bc=>{const _0x228a09=_0x30d470;let {reason:_0x1a49f5}=_0x53b0bc[_0x228a09(0x4e5)];this[_0x228a09(0x3a2)][_0x228a09(0x2c0)]({'id':'CLOSE_ROOM','data':_0x1a49f5}),this[_0x228a09(0x529)][_0x228a09(0x2d9)](_0x484fab),this[_0x228a09(0x32a)][_0x228a09(0x22d)](_0x395c39)[_0x228a09(0x52f)](_0x484fab);let _0x26b3d5=yr(_0x2c455d);_0x26b3d5!=null&&this[_0x228a09(0x20a)](_0x484fab,_0x26b3d5,_0x409e87['Edit'],!0x1),this[_0x228a09(0x23c)]['closeSession'](_0x484fab);});};vr(this['_univerInstanceService'])[_0x1d7ad3(0x4f0)](_0x56e948(({unitId:_0x1635d3})=>!_0x1ced0a(_0x1635d3)),_0x5106a4(this['dispose$']))[_0x1d7ad3(0x4bd)](({type:_0x47c66a,unitId:_0x158e96})=>{const _0x48ee8f=_0x1d7ad3;_0x26cb69(_0x158e96,_0x47c66a)[_0x48ee8f(0x2e4)](_0x25f930=>this[_0x48ee8f(0x32a)][_0x48ee8f(0x22d)](_0x1a4744)[_0x48ee8f(0x2d5)](_0x25f930));});}[_0x64ef4d(0x2fa)](){const _0x156eb8=_0x64ef4d;let _0x162f20=async(_0x5a5846,_0x45b020)=>{const _0x15d740=_0x5841;let _0x1a60ec=await this[_0x15d740(0x23c)]['requireSession'](_0x5a5846);if(!(this[_0x15d740(0x3ed)]||this[_0x15d740(0x529)]['has'](_0x5a5846)||!this['_univerInstanceService'][_0x15d740(0x295)](_0x5a5846))){if(_0x45b020===_0x3ec4c0[_0x15d740(0x363)]){let _0x2c8322=this['_injector']['get'](_0x3582b0);await _0x2c8322['initWorkbookPermissionChange'](_0x5a5846),_0x1a60ec['event$'][_0x15d740(0x4f0)](_0x56e948(_0x25fb8c=>_0x25fb8c[_0x15d740(0x500)]===_0xacdc36[_0x15d740(0x2e9)]),_0x5106a4(_0x276ef3(this['dispose$'],_0x1a60ec[_0x15d740(0x3d5)][_0x15d740(0x4f0)](_0x56e948(_0x219dd5=>_0x219dd5['eventID']===_0xacdc36[_0x15d740(0x482)])),this[_0x15d740(0x3e4)][_0x15d740(0x2d7)][_0x15d740(0x4f0)](_0x56e948(_0x2d81e2=>_0x2d81e2['getUnitId']()===_0x5a5846)))))[_0x15d740(0x4bd)](_0x1be08b=>{const _0x4af501=_0x15d740;let {objectId:_0x253845}=_0x1be08b[_0x4af501(0x4e5)];_0x253845===_0x5a5846?_0x2c8322[_0x4af501(0x45f)](_0x5a5846):_0x2c8322[_0x4af501(0x384)](_0x5a5846,_0x253845);});}else _0x1a60ec['event$'][_0x15d740(0x4f0)](_0x56e948(_0x5406b3=>_0x5406b3['eventID']===_0xacdc36[_0x15d740(0x2e9)]),_0x5106a4(_0x276ef3(this['dispose$'],_0x1a60ec[_0x15d740(0x3d5)][_0x15d740(0x4f0)](_0x56e948(_0x5a43d5=>_0x5a43d5[_0x15d740(0x500)]===_0xacdc36[_0x15d740(0x482)])),this[_0x15d740(0x3e4)][_0x15d740(0x2d7)]['pipe'](_0x56e948(_0x3ad9e6=>_0x3ad9e6[_0x15d740(0x44c)]()===_0x5a5846)))))['subscribe'](()=>{const _0x2ce9bf=_0x15d740;this[_0x2ce9bf(0x348)](_0x5a5846,_0x45b020)[_0x2ce9bf(0x2e4)](_0x347c78=>this[_0x2ce9bf(0x32a)]['get'](_0x1a4744)[_0x2ce9bf(0x2d5)](_0x347c78));}),await this[_0x15d740(0x348)](_0x5a5846,_0x45b020);}};vr(this['_univerInstanceService'])[_0x156eb8(0x4f0)](_0x56e948(({unitId:_0x1d2681})=>!_0x1ced0a(_0x1d2681)),_0x5106a4(this[_0x156eb8(0x4b4)]))[_0x156eb8(0x4bd)](({type:_0x5ba625,unitId:_0x507f08})=>{const _0x4624d5=_0x156eb8;_0x162f20(_0x507f08,_0x5ba625)[_0x4624d5(0x2e4)](_0x660238=>this[_0x4624d5(0x32a)]['get'](_0x1a4744)[_0x4624d5(0x2d5)](_0x660238));});}async[_0x64ef4d(0x348)](_0x531ff,_0x22aeb3){const _0x4e2ab0=_0x64ef4d;let _0x21355c=yr(_0x22aeb3);if(_0x21355c==null)return;let _0x2382cb=this[_0x4e2ab0(0x32a)]['get'](_0x395c39);if(_0x2382cb[_0x4e2ab0(0x38e)]({'unitId':_0x531ff,'objectId':_0x531ff,'objectType':_0x21355c})){await _0x2382cb[_0x4e2ab0(0x4b2)](_0x531ff);return;}let _0x561a89=this[_0x4e2ab0(0x2b7)](_0x531ff,_0x21355c);if(!_0x561a89[_0x4e2ab0(0x251)])return;let _0x14fecc=await this[_0x4e2ab0(0x422)][_0x4e2ab0(0x236)]({'objectID':_0x531ff,'objectType':_0x21355c,'unitID':_0x531ff,'actions':_0x561a89['map'](({action:_0x2acb0e})=>_0x2acb0e)});this[_0x4e2ab0(0x3ed)]||this['_closedUnits'][_0x4e2ab0(0x41b)](_0x531ff)||!this[_0x4e2ab0(0x3e4)][_0x4e2ab0(0x295)](_0x531ff)||_0x14fecc[_0x4e2ab0(0x3c3)](_0x2df063=>{const _0xaead60=_0x4e2ab0;let _0x4f3744=_0x2df063[_0xaead60(0x1f9)],_0x59d8f2=_0x2df063['allowed'];_0x4f3744!=null&&_0x59d8f2!=null&&_0x561a89[_0xaead60(0x35f)](_0xbf71fb=>_0xbf71fb[_0xaead60(0x1f9)]===_0x4f3744)[_0xaead60(0x3c3)](_0x234fe3=>this[_0xaead60(0x24a)]['updatePermissionPoint'](_0x234fe3['id'],_0x59d8f2));});}[_0x64ef4d(0x2b7)](_0x2bded9,_0x388b36){const _0x1b0c33=_0x64ef4d;let _0x45daf4=[];return this[_0x1b0c33(0x24a)][_0x1b0c33(0x3e0)]()[_0x1b0c33(0x3c3)]((_0x3dacf5,_0x5c17c1)=>{const _0x2cb008=_0x1b0c33;_0x3dacf5[_0x2cb008(0x4bd)](_0x3f9427=>{const _0x27b53a=_0x2cb008;_0x3f9427[_0x27b53a(0x38f)]===_0x388b36&&'unitId'in _0x3f9427&&_0x3f9427[_0x27b53a(0x339)]===_0x2bded9&&(!(_0x27b53a(0x3c2)in _0x3f9427)||_0x3f9427[_0x27b53a(0x3c2)]===_0x2bded9)&&_0x45daf4[_0x27b53a(0x21f)]({'id':_0x5c17c1,'action':_0x3f9427['subType']});})[_0x2cb008(0x349)]();}),_0x45daf4;}['_updateUnitPermissionPoint'](_0x2d200d,_0x3db71b,_0x3b6052,_0x9b030b){const _0x1ff817=_0x64ef4d;this['_permissionService'][_0x1ff817(0x3e0)]()[_0x1ff817(0x3c3)]((_0x4e3b27,_0x2949ff)=>{const _0x491e95=_0x1ff817;let _0x568e65=!0x1;_0x4e3b27['subscribe'](_0x4f7a05=>{const _0x49ea74=_0x5841;_0x568e65=_0x4f7a05[_0x49ea74(0x38f)]===_0x3db71b&&_0x4f7a05[_0x49ea74(0x44a)]===_0x3b6052&&_0x49ea74(0x339)in _0x4f7a05&&_0x4f7a05[_0x49ea74(0x339)]===_0x2d200d&&(!(_0x49ea74(0x3c2)in _0x4f7a05)||_0x4f7a05[_0x49ea74(0x3c2)]===_0x2d200d);})[_0x491e95(0x349)](),_0x568e65&&this[_0x491e95(0x24a)][_0x491e95(0x206)](_0x2949ff,_0x9b030b);});}};_r=H([V(0x0,_0x12abaf(_0x1f4ba8)),V(0x1,_0xde2491),V(0x2,_0x4457eb),V(0x3,_0x4c4852),V(0x4,_0x12abaf(Zn)),V(0x5,_0x12abaf(B))],_r);function vr(_0x32b4ae){const _0x3d930b=_0x64ef4d;return _0x276ef3(...[_0x3ec4c0['UNIVER_SHEET'],_0x3ec4c0[_0x3d930b(0x25d)],_0x3ec4c0[_0x3d930b(0x292)],_0x3ec4c0[_0x3d930b(0x494)],_0x3ec4c0[_0x3d930b(0x506)]]['map'](_0x97f26c=>_0x32b4ae[_0x3d930b(0x3d2)](_0x97f26c)[_0x3d930b(0x4f0)](_0x4b6d47(_0x22a2f1=>({'type':_0x97f26c,'unitId':_0x22a2f1[_0x3d930b(0x470)][_0x3d930b(0x44c)]()})))));}function yr(_0x5a9650){const _0x1df0bc=_0x64ef4d;switch(_0x5a9650){case _0x3ec4c0['UNIVER_SHEET']:return _0x456d2b[_0x1df0bc(0x51f)];case _0x3ec4c0[_0x1df0bc(0x25d)]:return _0x456d2b[_0x1df0bc(0x4cd)];case _0x3ec4c0[_0x1df0bc(0x292)]:return _0x456d2b[_0x1df0bc(0x489)];case _0x3ec4c0['UNIVER_BOARD']:return _0x456d2b[_0x1df0bc(0x212)];case _0x3ec4c0[_0x1df0bc(0x506)]:return _0x456d2b[_0x1df0bc(0x34b)];default:return;}}let br=class{constructor(_0x1e5452,_0x474b3c){const _0x5bedd0=_0x64ef4d;this[_0x5bedd0(0x351)]=_0x1e5452,this[_0x5bedd0(0x503)]=_0x474b3c;}async[_0x64ef4d(0x245)](_0x3e79dc,_0x574c66){const _0x47ab7e=_0x64ef4d;var _0xb8ef20;let {unitID:_0x544c07,type:_0x377870,revision:_0x4d22d5=0x0}=_0x574c66,_0x465ecd=this[_0x47ab7e(0x225)]()+'/'+_0x377870+_0x47ab7e(0x36d)+_0x544c07+_0x47ab7e(0x313)+_0x4d22d5,_0x122a40=(await this[_0x47ab7e(0x503)][_0x47ab7e(0x22d)](_0x465ecd))['body'],_0x366dbb=(_0xb8ef20=_0x122a40['snapshot'])==null?void 0x0:_0xb8ef20[_0x47ab7e(0x2ff)];if(_0x366dbb){let _0x2a36a1=_0x366dbb==null?void 0x0:_0x366dbb[_0x47ab7e(0x3b2)];_0x366dbb[_0x47ab7e(0x3b2)]=_0x3f147d[_0x47ab7e(0x525)](_0x4e0c43(_0x2a36a1)),Object[_0x47ab7e(0x47e)](_0x366dbb['sheets'])[_0x47ab7e(0x3c3)](([,_0x3ab958])=>{const _0x25725f=_0x47ab7e;let _0xac1243=_0x3ab958[_0x25725f(0x3b2)];_0x3ab958[_0x25725f(0x3b2)]=_0x3f147d[_0x25725f(0x525)](_0x4e0c43(_0xac1243));});}return _0x122a40;}async[_0x64ef4d(0x373)](_0x1208e6,_0x1aa484){const _0x3175aa=_0x64ef4d;let {unitID:_0x22566d,type:_0x18233d,blockID:_0x209785}=_0x1aa484,_0x1a56bf=this[_0x3175aa(0x276)]()+'/'+_0x18233d+'/unit/'+_0x22566d+_0x3175aa(0x427)+_0x209785;return(await this[_0x3175aa(0x503)][_0x3175aa(0x22d)](_0x1a56bf))[_0x3175aa(0x2f3)];}async[_0x64ef4d(0x284)](_0x4dbcf9,_0x3db04b){const _0x4a5d83=_0x64ef4d;let {unitID:_0x502888,type:_0x262b17,blockID:_0x224db5}=_0x3db04b,_0x80cc3=this[_0x4a5d83(0x276)]()+_0x4a5d83(0x427)+_0x262b17+_0x4a5d83(0x36d)+_0x502888+_0x4a5d83(0x427)+_0x224db5;return(await this[_0x4a5d83(0x503)]['get'](_0x80cc3))['body'];}async[_0x64ef4d(0x453)](_0x2bab98,_0x52af73){const _0x2614a1=_0x64ef4d;let {unitID:_0x5bf28,type:_0x526302,from:_0x23f0a2,to:_0x250ed1}=_0x52af73,_0x5fdb00=this['_getAPIPrefix']()+'/'+_0x526302+_0x2614a1(0x36d)+_0x5bf28+_0x2614a1(0x2b4)+_0x23f0a2+_0x2614a1(0x42e)+_0x250ed1;return(await this[_0x2614a1(0x503)][_0x2614a1(0x22d)](_0x5fdb00))[_0x2614a1(0x2f3)];}['getSnapshotAPIPath'](){const _0xf6fb04=_0x64ef4d;return this[_0xf6fb04(0x351)][_0xf6fb04(0x1f4)]('SNAPSHOT_URL_KEY')??this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x2532b2=_0x64ef4d;let _0x57ec38=this[_0x2532b2(0x351)][_0x2532b2(0x1f4)](R);return(_0x57ec38==null?void 0x0:_0x57ec38[_0x2532b2(0x360)])??_0x2532b2(0x38c);}async[_0x64ef4d(0x34f)](_0x552d22,_0x3b7dd3){const _0x40f5bf=_0x64ef4d;let _0x211813=_0x40f5bf(0x307)+_0x3b7dd3[_0x40f5bf(0x38f)]+_0x40f5bf(0x36d)+_0x3b7dd3[_0x40f5bf(0x2af)]+_0x40f5bf(0x330);return(await this[_0x40f5bf(0x503)][_0x40f5bf(0x22d)](_0x211813,{'params':{'resourceId':JSON[_0x40f5bf(0x398)](_0x3b7dd3[_0x40f5bf(0x4be)])}}))[_0x40f5bf(0x2f3)];}[_0x64ef4d(0x204)](){const _0x2d2085=_0x64ef4d;throw Error(_0x2d2085(0x450));}[_0x64ef4d(0x39f)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x64ef4d(0x392)](){const _0x22e969=_0x64ef4d;throw Error(_0x22e969(0x450));}[_0x64ef4d(0x27b)](){const _0x5a3cad=_0x64ef4d;throw Error(_0x5a3cad(0x450));}[_0x64ef4d(0x4e3)](){const _0x5e8d43=_0x64ef4d;throw Error(_0x5e8d43(0x450));}[_0x64ef4d(0x499)](){const _0x32388a=_0x64ef4d;throw Error(_0x32388a(0x450));}};br=H([V(0x0,_0x1c2d46),V(0x1,_0x12abaf(_0x180f6d))],br);let xr=class extends _0x2a80ff{constructor(_0x3076c8,_0x1b1eba,_0x28b9db,_0x2056b3,_0x14b77e,_0x50de44){const _0x2e3cf5=_0x64ef4d;super(_0x3076c8,_0x1b1eba,_0x28b9db,_0x2056b3),this[_0x2e3cf5(0x48f)]=_0x14b77e,this[_0x2e3cf5(0x4d6)]=_0x50de44;}[_0x64ef4d(0x46a)](_0x73e26e,_0xe64c6){const _0x403d1d=_0x64ef4d;let _0x5e5968=this[_0x403d1d(0x52b)](_0x73e26e);if(_0x5e5968)try{let _0xd78bcb=this[_0x403d1d(0x20e)](_0x5e5968,_0xe64c6);this[_0x403d1d(0x3c7)](_0x73e26e,_0xd78bcb);}catch(_0x26c7a7){this['_logService'][_0x403d1d(0x2d5)]('[CollaborationUndoRedoService]',_0x26c7a7),this[_0x403d1d(0x341)](_0x73e26e);}let _0x3a5584=this['_getRedoStack'](_0x73e26e);if(_0x3a5584)try{let _0x15912d=this[_0x403d1d(0x20e)](_0x3a5584,_0xe64c6,!0x0);this['_substituteRedoStack'](_0x73e26e,_0x15912d);}catch(_0x1d7a7f){this[_0x403d1d(0x4d6)]['error'](_0x1d7a7f),this[_0x403d1d(0x240)](_0x73e26e);}}[_0x64ef4d(0x341)](_0x2debe6){const _0x55f4fa=_0x64ef4d;let _0x310e41=this[_0x55f4fa(0x52b)](_0x2debe6);_0x310e41&&(_0x310e41[_0x55f4fa(0x251)]=0x0,this[_0x55f4fa(0x4c4)]());}['_clearRedo'](_0x4a355b){const _0x130a53=_0x64ef4d;let _0x771bdd=this['_getRedoStack'](_0x4a355b);_0x771bdd&&(_0x771bdd['length']=0x0,this[_0x130a53(0x4c4)]());}[_0x64ef4d(0x3c7)](_0x2f93f4,_0xfced1b){const _0x16344b=_0x64ef4d;this[_0x16344b(0x201)][_0x16344b(0x2f7)](_0x2f93f4,_0xfced1b),this['_updateStatus']();}['_substituteRedoStack'](_0xb26452,_0x22a5d6){const _0xf37fd5=_0x64ef4d;this[_0xf37fd5(0x4bb)]['set'](_0xb26452,_0x22a5d6),this[_0xf37fd5(0x4c4)]();}['_transformStack'](_0x1a0775,_0x47a953,_0x17bf98=!0x1){const _0x49556a=_0x64ef4d;if(!_0x1a0775['length'])return[];let _0x7260f5=[],_0x11fff5=_0x47a953,_0x521eaa=_0x47a953[_0x49556a(0x38f)]===_0x3ec4c0['UNIVER_DOC']?this[_0x49556a(0x3e4)][_0x49556a(0x295)](_0x47a953[_0x49556a(0x2af)],_0x3ec4c0[_0x49556a(0x25d)]):null,_0x175210=_0x521eaa?{'id':_0x521eaa[_0x49556a(0x44c)](),'documentStyle':{},'tableSource':_0x29d202[_0x49556a(0x34c)](_0x521eaa['getSnapshot']()[_0x49556a(0x3be)]??{})}:null;for(let _0x6fa2ac=_0x1a0775['length']-0x1;_0x6fa2ac>=0x0;_0x6fa2ac--){let {unitID:_0x54fe42,undoMutations:_0x17c259,redoMutations:_0x1f295b}=_0x1a0775[_0x6fa2ac],_0x1985f5=_0x17bf98?_0x1f295b:_0x17c259,_0x1035be=this['_transformHistoryMutations'](_0x11fff5,_0x1985f5);if(_0x3a5e41(_0x1035be)){this[_0x49556a(0x4d6)][_0x49556a(0x2d5)](_0x49556a(0x405),_0x49556a(0x431),_0x1035be);break;}let _0x1cd603=_0x17bf98?_0x17c259:_0x1f295b,_0x3f1cdc=this[_0x49556a(0x2c9)](_0x1035be['c1Prime'],_0x1cd603);if(_0x3a5e41(_0x3f1cdc)){this['_logService']['error']('[CollaborationUndoRedoService]',_0x49556a(0x431),_0x3f1cdc);break;}let _0x56068c=_0x17bf98?_0x3f1cdc:_0x1035be,_0x2d476d=_0x17bf98?_0x1035be:_0x3f1cdc;_0x11fff5=_0x1035be[_0x49556a(0x3a7)],_0x175210&&=this['_invertDocumentHistory'](_0x175210,_0x1035be[_0x49556a(0x2e0)],_0x3f1cdc[_0x49556a(0x2e0)]),_0x7260f5[_0x49556a(0x21f)]({'unitID':_0x54fe42,'undoMutations':_0x56068c[_0x49556a(0x2e0)],'redoMutations':_0x2d476d[_0x49556a(0x2e0)]});}return _0x7260f5[_0x49556a(0x4b8)]();}[_0x64ef4d(0x2c9)](_0x2fc180,_0xf1ef0){const _0x2a902b=_0x64ef4d;if(_0x2fc180[_0x2a902b(0x38f)]!==_0x3ec4c0[_0x2a902b(0x25d)]||_0xf1ef0[_0x2a902b(0x2ac)](_0x190f81=>_0x190f81['id']!==_0x3a6e2f['id']))return this[_0x2a902b(0x48f)][_0x2a902b(0x30f)](_0x2fc180,_0xf1ef0);let _0x398a63=_0x29d202[_0x2a902b(0x34c)](_0xf1ef0),_0xb25a31=[];for(let _0x36b359 of _0x2fc180[_0x2a902b(0x3da)]){let _0x56924e={..._0x2fc180,'mutations':[_0x36b359]},_0x45c01f=[];for(let _0x10ac14 of _0x398a63){_0x56924e=this[_0x2a902b(0x345)](_0x56924e,[_0x10ac14]);let _0x3d9881=this[_0x2a902b(0x48f)][_0x2a902b(0x30f)](_0x56924e,[_0x10ac14]);if(_0x3a5e41(_0x3d9881))return _0x3d9881;_0x56924e=_0x3d9881[_0x2a902b(0x3a7)],_0x45c01f[_0x2a902b(0x21f)](..._0x3d9881[_0x2a902b(0x2e0)]);}_0x398a63=_0x45c01f,_0xb25a31[_0x2a902b(0x21f)](..._0x56924e[_0x2a902b(0x3da)]);}return{'m2Prime':_0x398a63,'c1Prime':{..._0x2fc180,'mutations':_0xb25a31}};}[_0x64ef4d(0x345)](_0x141197,_0x7ca653){const _0xd1f662=_0x64ef4d;let _0x463af1=new Map(),_0xcb46ae=_0x190a2a['type'][_0xd1f662(0x317)](_0x7ca653[0x0][_0xd1f662(0x4f6)][_0xd1f662(0x327)]);if(_0xcb46ae[_0xd1f662(0x4de)](null,_0x3561ca=>{const _0x5e8398=_0xd1f662;if(_0x3561ca['et']!==_0x5e8398(0x4fa))return;let _0x47a7a1=JSON[_0x5e8398(0x398)](_0xcb46ae[_0x5e8398(0x47d)]()),_0x3dfd12=_0x463af1[_0x5e8398(0x22d)](_0x47a7a1)??new Map(),_0x3c20f2=0x0;for(let _0x1e92ba of _0x3561ca['e']){if(_0x1e92ba['t']===_0x2f9665[_0x5e8398(0x477)]){var _0x21370f;for(let _0x4aa743 of((_0x21370f=_0x1e92ba['body'])==null?void 0x0:_0x21370f[_0x5e8398(0x3cc)])??[])_0x3dfd12[_0x5e8398(0x2f7)](_0x3c20f2+_0x4aa743[_0x5e8398(0x34d)],{'paragraph':_0x4aa743,'replace':_0x1e92ba['coverType']===_0x59d783[_0x5e8398(0x278)]});}_0x1e92ba['t']!==_0x2f9665[_0x5e8398(0x2da)]&&(_0x3c20f2+=_0x1e92ba['len']);}_0x3dfd12[_0x5e8398(0x475)]>0x0&&_0x463af1['set'](_0x47a7a1,_0x3dfd12);}),_0x463af1[_0xd1f662(0x475)]===0x0)return _0x141197;let _0x2b420a=_0x29d202['deepClone'](_0x141197);for(let _0x297a89 of _0x2b420a['mutations']){if(_0x297a89['id']!==_0x3a6e2f['id'])continue;let _0x4f58f0=_0x190a2a[_0xd1f662(0x38f)][_0xd1f662(0x317)](_0x297a89[_0xd1f662(0x4f6)]['actions']);_0x4f58f0['traverse'](null,_0x4228ac=>{const _0x12c283=_0xd1f662;if(_0x4228ac['et']!==_0x12c283(0x4fa))return;let _0x18a524=JSON[_0x12c283(0x398)](_0x4f58f0[_0x12c283(0x47d)]()),_0x319aa0=_0x463af1[_0x12c283(0x22d)](_0x18a524);if(!(_0x319aa0!=null&&_0x319aa0[_0x12c283(0x475)]))return;let _0x559d49=0x0;for(let _0x369de8 of _0x4228ac['e']){if(_0x369de8['t']===_0x2f9665['RETAIN']&&_0x369de8[_0x12c283(0x2b1)]===_0x59d783[_0x12c283(0x278)]){var _0x20ae0b;for(let _0x1940e2 of((_0x20ae0b=_0x369de8[_0x12c283(0x2f3)])==null?void 0x0:_0x20ae0b[_0x12c283(0x3cc)])??[]){var _0x1fe618;let _0x580a03=(_0x1fe618=_0x369de8[_0x12c283(0x227)])==null||(_0x1fe618=_0x1fe618[_0x12c283(0x3cc)])==null?void 0x0:_0x1fe618['find'](_0x17ae9f=>_0x17ae9f[_0x12c283(0x34d)]===_0x1940e2[_0x12c283(0x34d)]),_0x223470=_0x319aa0[_0x12c283(0x22d)](_0x559d49+_0x1940e2[_0x12c283(0x34d)]);if(_0x580a03&&_0x223470){this['_rebaseUnchangedAttributes'](_0x1940e2,_0x580a03,_0x223470[_0x12c283(0x52c)],_0x223470[_0x12c283(0x30d)]);let _0x423ea6=_0x223470[_0x12c283(0x30d)]?new Set([...Object[_0x12c283(0x4a6)](_0x223470['paragraph']),...Object[_0x12c283(0x4a6)](_0x1940e2)]):Object[_0x12c283(0x4a6)](_0x223470[_0x12c283(0x52c)]);for(let _0x41abbe of _0x423ea6){if(_0x41abbe===_0x12c283(0x34d)||_0x41abbe===_0x12c283(0x36b))continue;let _0x1ed846=Reflect[_0x12c283(0x22d)](_0x1940e2,_0x41abbe);_0x1ed846===void 0x0?Reflect[_0x12c283(0x3d6)](_0x223470[_0x12c283(0x52c)],_0x41abbe):Reflect[_0x12c283(0x2f7)](_0x223470[_0x12c283(0x52c)],_0x41abbe,_0x29d202['deepClone'](_0x1ed846));}}}}_0x369de8['t']!==_0x2f9665[_0x12c283(0x2da)]&&(_0x559d49+=_0x369de8[_0x12c283(0x3a1)]);}});}return _0x2b420a;}['_rebaseUnchangedAttributes'](_0x11595e,_0x35cba5,_0x440655,_0x117ccd){const _0x2d58c0=_0x64ef4d;let _0x21fdc5=new Set([...Object[_0x2d58c0(0x4a6)](_0x11595e),...Object[_0x2d58c0(0x4a6)](_0x35cba5),...Object[_0x2d58c0(0x4a6)](_0x440655)]);for(let _0x51b523 of _0x21fdc5){if(_0x51b523===_0x2d58c0(0x34d)||_0x51b523===_0x2d58c0(0x36b))continue;let _0x13606a=Reflect[_0x2d58c0(0x22d)](_0x11595e,_0x51b523),_0x58326d=Reflect[_0x2d58c0(0x22d)](_0x35cba5,_0x51b523),_0x380f75=Reflect[_0x2d58c0(0x22d)](_0x440655,_0x51b523);if(_0x117ccd||_0x380f75!==void 0x0){if(_0x29d202['diffValue'](_0x13606a,_0x58326d))_0x380f75===void 0x0?(Reflect[_0x2d58c0(0x3d6)](_0x11595e,_0x51b523),Reflect[_0x2d58c0(0x3d6)](_0x35cba5,_0x51b523)):(Reflect['set'](_0x11595e,_0x51b523,_0x29d202[_0x2d58c0(0x34c)](_0x380f75)),Reflect['set'](_0x35cba5,_0x51b523,_0x29d202[_0x2d58c0(0x34c)](_0x380f75)));else{if(_0x29d202['isObject'](_0x13606a)&&(_0x29d202[_0x2d58c0(0x2ef)](_0x58326d)||_0x58326d===void 0x0)){let _0x4d3c59=_0x58326d??{};this[_0x2d58c0(0x4ad)](_0x13606a,_0x4d3c59,_0x29d202[_0x2d58c0(0x2ef)](_0x380f75)?_0x380f75:{},_0x117ccd),(_0x58326d!==void 0x0||Object[_0x2d58c0(0x4a6)](_0x4d3c59)[_0x2d58c0(0x251)]>0x0)&&Reflect[_0x2d58c0(0x2f7)](_0x35cba5,_0x51b523,_0x4d3c59);}}}}}['_invertDocumentHistory'](_0x3394a7,_0x2e2aba,_0x387f71){const _0x12ccb2=_0x64ef4d;if(_0x2e2aba[_0x12ccb2(0x251)]!==0x1||_0x387f71[_0x12ccb2(0x251)]!==0x1||_0x2e2aba[0x0]['id']!==_0x3a6e2f['id']||_0x387f71[0x0]['id']!==_0x3a6e2f['id'])return _0x3394a7;let _0x58818f=_0x2e2aba[0x0]['params'],_0x25ee59=_0x387f71[0x0][_0x12ccb2(0x4f6)],_0x5bf4ec=this[_0x12ccb2(0x297)](_0x58818f[_0x12ccb2(0x327)],!0x0);return _0x3d2c27[_0x12ccb2(0x45e)](_0x5bf4ec)?_0x3394a7:(_0x25ee59[_0x12ccb2(0x327)]=_0x3d2c27[_0x12ccb2(0x426)](this['_filterTableActions'](_0x25ee59['actions'],!0x1),_0x3d2c27['invertWithDoc'](_0x5bf4ec,_0x3394a7)),_0x3d2c27[_0x12ccb2(0x3ea)](_0x3394a7,_0x5bf4ec)??_0x3394a7);}[_0x64ef4d(0x297)](_0x1eb112,_0x2bedc9){const _0x5b931c=_0x64ef4d;let _0x22c7f9=_0x190a2a[_0x5b931c(0x38f)][_0x5b931c(0x317)](_0x1eb112),_0x1fae6a=_0x190a2a[_0x5b931c(0x38f)][_0x5b931c(0x458)]();return _0x22c7f9[_0x5b931c(0x4de)](null,_0x17022b=>{const _0x74e06e=_0x5b931c;let _0x46aeee=_0x22c7f9[_0x74e06e(0x47d)]();if(_0x46aeee[0x0]===_0x74e06e(0x3be)===_0x2bedc9){for(let _0x4f477c of Object['keys'](_0x17022b))_0x1fae6a[_0x74e06e(0x229)](_0x46aeee,_0x4f477c,_0x17022b[_0x4f477c]);}}),_0x1fae6a[_0x5b931c(0x22d)]();}};xr=H([V(0x0,_0xde2491),V(0x1,_0x59a890),V(0x2,_0xa9f31f),V(0x3,_0x1c2d46),V(0x4,_0x2f82dd),V(0x5,_0x1a4744)],xr);let Sr=class extends _0x5e9c61{constructor(_0x6c32a3=Tt,_0x4668ed,_0x408685,_0x45bcca){const _0x5d0782=_0x64ef4d;super(),this[_0x5d0782(0x42c)]=_0x6c32a3,this[_0x5d0782(0x4d6)]=_0x4668ed,this[_0x5d0782(0x32a)]=_0x408685,this[_0x5d0782(0x351)]=_0x45bcca;let {..._0x136806}=_0x441f78({},Tt,this[_0x5d0782(0x42c)]);if(!_0x136806[_0x5d0782(0x383)])throw Error(_0x5d0782(0x42d));this[_0x5d0782(0x42c)]=_0x136806,this[_0x5d0782(0x351)][_0x5d0782(0x2fc)](R,_0x136806);}[_0x64ef4d(0x436)](){const _0x2a8260=_0x64ef4d;this['_configService'][_0x2a8260(0x2fc)](_0x5d9173,this[_0x2a8260(0x42c)][_0x2a8260(0x2b0)]??[]),this[_0x2a8260(0x300)](),this[_0x2a8260(0x411)]();}[_0x64ef4d(0x300)](){const _0x430c9e=_0x64ef4d;var _0x8d741c,_0x318e9f;this['_injector']['has'](_0x510392)&&this[_0x430c9e(0x4d6)][_0x430c9e(0x2d5)](_0x430c9e(0x282),_0x430c9e(0x365));let _0x11fd83=_0x318485([[_0x510392,{'useClass':xr}],[Jn,{'useValue':Yn()}],[Zn],[Kt],[ln],[sr],[pr],[Gt],[_r],[B],[mr],[Wn,{'useClass':this[_0x430c9e(0x42c)]['socketService']}],[_0x3dc74b,{'useClass':br}],[_0x4c4852,{'useClass':cr}],[_0x589c2f,{'useClass':hr}],[ir,{'useClass':ar}],[_0x17dd91,{'useClass':gr}],[er],[rr]],(_0x8d741c=this[_0x430c9e(0x42c)])==null?void 0x0:_0x8d741c[_0x430c9e(0x2c5)]);if(!((_0x318e9f=this['_config'])!=null&&_0x318e9f['enableSingleActiveInstanceLock'])){let _0xfb9b6f=_0x11fd83[_0x430c9e(0x231)](([_0x180423])=>_0x180423===W);_0xfb9b6f!==-0x1&&_0x11fd83[_0x430c9e(0x3bb)](_0xfb9b6f,0x1);}_0x1e2a16(this[_0x430c9e(0x32a)],_0x11fd83);}[_0x64ef4d(0x411)](){const _0x3fb3f2=_0x64ef4d;var _0x532dc4,_0x20248d;if(this[_0x3fb3f2(0x32a)][_0x3fb3f2(0x22d)](_0x180f6d)[_0x3fb3f2(0x215)]({'priority':0x14,'interceptor':_0x25a6f8({'maxParallel':0x6})}),!((_0x532dc4=this[_0x3fb3f2(0x42c)])!=null&&_0x532dc4[_0x3fb3f2(0x49c)])){var _0x260227;(_0x260227=this['_injector']['get'](U,_0x2e8b9c['OPTIONAL']))==null||_0x260227[_0x3fb3f2(0x49a)]();}(_0x20248d=this['_config'])!=null&&_0x20248d[_0x3fb3f2(0x2bf)]&&_0x43e699(this['_injector'],[[sr]]),_0x43e699(this[_0x3fb3f2(0x32a)],[[pr],[er],[_r]]);}};z(Sr,_0x64ef4d(0x535),_0x64ef4d(0x3ff)),z(Sr,_0x64ef4d(0x3ae),tr),z(Sr,_0x64ef4d(0x366),nr),Sr=H([_0x1f3e0d(_0x40a033,_0xe167c7,_0x5af545),V(0x1,_0x1a4744),V(0x2,_0x12abaf(_0x1f4ba8)),V(0x3,_0x1c2d46)],Sr);export{cr as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,In as BaseCollaborationEntity,zn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Bt as ChangesetSubmitter,ar as CollaborationAttachmentIoService,er as CollaborationController,$ as CollaborationEntity,hr as CollaborationImageIoService,on as CollaborationSession,Zn as CollaborationSessionService,Kn as CollaborationSocketService,Nn as CollaborationStatus,Wt as CollaborationUIEventId,B as CollaborationUIEventService,xr as CollaborativeUndoRedoService,Gt as CommentService,X as ConflictState,Rt as DEFAULT_ACK_TIMEOUT,Et as DEFAULT_COLLAB_WEB_SOCKET_URL,Pt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,Dt as DEFAULT_WS_SESSION_TICKET_URL,mr as DataLoaderService,Fn as DocCollaborationEntity,Q as FetchingMissState,Ot as HEARTBEAT_INTERVAL_KEY,kt as HEARTBEAT_TIMEOUT_KEY,ir as IAttachmentIoService,Jn as ICollaborationClientAdapterService,Wn as ICollaborationSocketService,U as ILocalCacheService,Vn as INetworkConditionService,W as ISingleActiveUnitService,Mt as LOCAL_CACHE_INTERVAL,jt as LOCAL_CACHE_INTERVAL_KEY,zt as MAX_ACK_TIMEOUT,Kt as MemberService,gr as MentionIoHttpService,Z as OfflineState,Bn as PdfCollaborationEntity,q as PendingState,Nt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,At as RETRY_CONNECTING_MAX_COUNT_KEY,rn as SessionStatus,Ln as SheetCollaborationEntity,ln as SheetTransformSelectionsService,Rn as SlideCollaborationEntity,br as SnapshotServerOverHTTPService,K as SyncedState,un as UnitStatus,Sr as UniverCollaborationClientPlugin,Yn as createUniverCollaborationAdapter,Hn as deserializeToCombResponse,sn as getLocalCacheKey,Un as serializeCombRequest};
|
|
1
|
+
const _0x58e0b4=_0x2b0c;(function(_0x56dcd3,_0x2249eb){const _0x3706c1=_0x2b0c,_0x4a9683=_0x56dcd3();while(!![]){try{const _0x3203ed=parseInt(_0x3706c1(0x1e0))/0x1*(-parseInt(_0x3706c1(0x3d6))/0x2)+parseInt(_0x3706c1(0x459))/0x3+parseInt(_0x3706c1(0x379))/0x4+-parseInt(_0x3706c1(0x344))/0x5+parseInt(_0x3706c1(0x421))/0x6+-parseInt(_0x3706c1(0x1d5))/0x7+parseInt(_0x3706c1(0x3ff))/0x8;if(_0x3203ed===_0x2249eb)break;else _0x4a9683['push'](_0x4a9683['shift']());}catch(_0x3e7ca3){_0x4a9683['push'](_0x4a9683['shift']());}}}(_0x4d89,0xa09d8));import{HTTPEventType as _0x237e52,HTTPRequest as _0xf1a50,HTTPResponseError as _0x4d36f7,HTTPService as _0x41a562,ISocketService as _0x171dba,MergeInterceptorFactory as _0x2349b0,ThresholdInterceptorFactory as _0x556633,UniverNetworkPlugin as _0x158a36}from'@univerjs/network';import{BehaviorSubject as _0xabbeab,Subject as _0x5159b6,Subscription as _0x150abd,TimeoutError as _0x1ec2fc,concatMap as _0x2ff269,filter as _0xf9bd18,firstValueFrom as _0x80f93,map as _0x5d906a,merge as _0x53f80a,of as _0x24983f,shareReplay as _0x1ab590,take as _0x61ef98,takeUntil as _0x20e81c,timeout as _0x435d5d}from'rxjs';import{CollaborationEvent as _0x43c2b6,CompressMutationService as _0x53d75e,EmptyMutationInfo as _0x1c8c3f,ISnapshotServerService as _0x295e26,ITransformService as _0x1ce01e,RevertRevisionMutation as _0x1037c2,RevisionService as _0x1f2446,SnapshotService as _0x52793a,UniverCollaborationPlugin as _0x1c2944,b64DecodeUnicode as _0x34a21a,isTransformChangesetsSuccess as _0xf5d392,isTransformMutationsWithChangesetFailure as _0x2a7fc3,isTransformMutationsWithChangesetSuccess as _0x33aa8f,mapDocumentTypeToUniverInstanceType as _0x276c7f,parseChangesetToProtocol as _0x14c146,parseProtocolChangeset as _0x268c32,textEncoder as _0x34830c,uuidv4 as _0x48da7e}from'@univerjs-pro/collaboration';import{CommandType as _0x1d7a06,DependentOn as _0x1d6b03,Disposable as _0x4198a8,DisposableCollection as _0x4147a0,IAuthzIoService as _0x573925,ICommandService as _0x1db1d2,IConfigService as _0xf6e881,IContextService as _0x4ad6a3,IImageIoService as _0x43a554,ILogService as _0x273710,IMentionIOService as _0x49104c,IPermissionService as _0x4bb697,IUndoRedoService as _0xbb7bbe,IUniverInstanceService as _0x2c297b,ImageSourceType as _0x193c57,ImageUploadStatusType as _0x345769,Inject as _0x5a17cb,Injector as _0x42cf99,JSON1 as _0x3915f5,JSONX as _0x4c5074,LocalUndoRedoService as _0x553c47,LocaleService as _0x4e02d2,MentionType as _0x390ab1,OBJECT_PERMISSION_CONFIG_KEY as _0x5d6118,ObjectPermissionService as _0x530872,Optional as _0x16c3fa,Plugin as _0x268bdb,Quantity as _0x136e89,Rectangle as _0x7f2658,RxDisposable as _0x3129e8,TextXActionType as _0x123ce4,Tools as _0x1d0822,UniverInstanceType as _0x22f8f1,UpdateDocsAttributeType as _0x22a6a2,UserManagerService as _0x5be06a,Workbook as _0x554b42,createIdentifier as _0x1b0051,generateRandomId as _0x2043b6,isInternalEditorID as _0x7840f,merge as _0x5090c8,mergeOverrideWithDependencies as _0x1d6a71,registerDependencies as _0x159939,resolveWithBasePath as _0x278c1f,sequenceExecute as _0x6abc10,toDisposable as _0x238621,touchDependencies as _0x4deee6}from'@univerjs/core';import{DocStateChangeManagerService as _0x38b2aa,RichTextEditingMutation as _0x5061cf}from'@univerjs/docs';import{InsertSheetMutation as _0x2f4974,SetSelectionsOperation as _0x575bb9,SheetPermissionInitController as _0x207115,SheetsSelectionsService as _0x190b91,WorkbookEditablePermission as _0x50e04b}from'@univerjs/sheets';import{CmdRspCode as _0x2bfe8c,CombCmd as _0x569635,ErrorCode as _0xb46715,FileSource as _0x51a094,UnitAction as _0x51d148,UnitObject as _0x1b27ce}from'@univerjs/protocol';import{ITelemetryService as _0x53c3f0}from'@univerjs/telemetry';import{delay as _0x5cca28,filter as _0x1a5549,map as _0x280b22,take as _0x3e7e1c,takeUntil as _0x2631f4}from'rxjs/operators';import{AddSlidePageMutation as _0x32975b,EnsureSlideMasterPageMutation as _0x2c7dd5,MoveSlidePageMutation as _0x4f2076,RemoveSlidePageMutation as _0xbf8333}from'@univerjs-pro/slides';import{UniverLicensePlugin as _0x3ad829,getGlobalObject as _0x5c0508}from'@univerjs-pro/license';import{cbc as _0x1f598d}from'@noble/ciphers/aes.js';import{concatBytes as _0x4a6733,randomBytes as _0x5b40cd,utf8ToBytes as _0x661604}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x350cf2,getDrawingImageAllowSize as _0x5a3a67}from'@univerjs/drawing';const R='collaboration-client.config',Tt={},Et='ws://127.0.0.1:8000/universer-api/comb/connect',Dt='/universer-api/user/session-ticket',Ot=_0x58e0b4(0x2cb),kt=_0x58e0b4(0x1da),At='RETRY_CONNECTING_MAX_COUNT',jt=_0x58e0b4(0x194),Mt=0x3e8,Nt=_0x58e0b4(0x44d),Pt=_0x58e0b4(0x407);function Ft(_0x3d4cee){'@babel/helpers - typeof';const _0xa33592=_0x58e0b4;return Ft=typeof Symbol==_0xa33592(0x27a)&&typeof Symbol[_0xa33592(0x408)]=='symbol'?function(_0x219d8b){return typeof _0x219d8b;}:function(_0x1f2f87){const _0x2105c7=_0xa33592;return _0x1f2f87&&typeof Symbol==_0x2105c7(0x27a)&&_0x1f2f87[_0x2105c7(0x3f2)]===Symbol&&_0x1f2f87!==Symbol[_0x2105c7(0x373)]?_0x2105c7(0x323):typeof _0x1f2f87;},Ft(_0x3d4cee);}function It(_0x146a43,_0x232e14){const _0x33fbfa=_0x58e0b4;if(Ft(_0x146a43)!=_0x33fbfa(0x189)||!_0x146a43)return _0x146a43;var _0x4a61d2=_0x146a43[Symbol[_0x33fbfa(0x32d)]];if(_0x4a61d2!==void 0x0){var _0x502e9a=_0x4a61d2[_0x33fbfa(0x374)](_0x146a43,_0x232e14||_0x33fbfa(0x430));if(Ft(_0x502e9a)!=_0x33fbfa(0x189))return _0x502e9a;throw TypeError(_0x33fbfa(0x2be));}return(_0x232e14===_0x33fbfa(0x140)?String:Number)(_0x146a43);}function Lt(_0x4e4a9a){const _0x1f7ae4=_0x58e0b4;var _0x3b7aaa=It(_0x4e4a9a,_0x1f7ae4(0x140));return Ft(_0x3b7aaa)=='symbol'?_0x3b7aaa:_0x3b7aaa+'';}function z(_0x2b786a,_0x45894d,_0x5cdfe6){const _0x497621=_0x58e0b4;return(_0x45894d=Lt(_0x45894d))in _0x2b786a?Object[_0x497621(0x467)](_0x2b786a,_0x45894d,{'value':_0x5cdfe6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b786a[_0x45894d]=_0x5cdfe6,_0x2b786a;}const Rt=0x4e20,zt=0x1d4c0;var Bt=class{constructor(_0x345ab1,_0x4db8c8,_0x54fd6e={}){const _0x44ad4e=_0x58e0b4;this[_0x44ad4e(0x429)]=_0x4db8c8,this[_0x44ad4e(0x1db)]=_0x54fd6e,z(this,_0x44ad4e(0x376),0x0),z(this,'_firstSentAt',void 0x0),z(this,_0x44ad4e(0x1e6),void 0x0),z(this,_0x44ad4e(0x265),void 0x0),z(this,_0x44ad4e(0x404),0x0),z(this,_0x44ad4e(0x15a),0x0),z(this,_0x44ad4e(0x226),null),z(this,_0x44ad4e(0x431),null),z(this,_0x44ad4e(0x229),null),z(this,'_sendToken',0x0),z(this,_0x44ad4e(0x424),!0x1),z(this,'_now',void 0x0),z(this,_0x44ad4e(0x21c),void 0x0),this[_0x44ad4e(0x21c)]=_0x345ab1,this['_ackTimeout']=_0x54fd6e[_0x44ad4e(0x26a)]??0x4e20,this[_0x44ad4e(0x265)]=Math[_0x44ad4e(0x33d)](_0x54fd6e['maxAckTimeout']??0x1d4c0,this[_0x44ad4e(0x1e6)]),this[_0x44ad4e(0x1ed)]=_0x54fd6e[_0x44ad4e(0x208)]??(()=>Date[_0x44ad4e(0x208)]()),this[_0x44ad4e(0x3c7)]=this['_now']();}get[_0x58e0b4(0x42e)](){const _0x45932f=_0x58e0b4;return this[_0x45932f(0x21c)];}get['attempt'](){const _0x15d3f8=_0x58e0b4;return this[_0x15d3f8(0x376)];}get['nextDelayMs'](){const _0x3c421e=_0x58e0b4;return this[_0x3c421e(0x15a)];}get[_0x58e0b4(0x3a1)](){const _0x2993f2=_0x58e0b4;return this[_0x2993f2(0x1ed)]()-this[_0x2993f2(0x3c7)];}[_0x58e0b4(0x36e)](_0x25dc5b){const _0x8ab13=_0x58e0b4;if(this[_0x8ab13(0x424)])return;this[_0x8ab13(0x229)]=_0x25dc5b;let _0x4d9ea2=this['_pendingReason'];_0x4d9ea2&&(this[_0x8ab13(0x431)]=null,this[_0x8ab13(0x251)](_0x4d9ea2));}['unbind'](){const _0x1ce1c9=_0x58e0b4;this[_0x1ce1c9(0x229)]=null;}[_0x58e0b4(0x214)](_0x2bd018,_0x3ae306,_0x33a6a8){const _0x1adf6c=_0x58e0b4;this['_disposed']||(_0x33a6a8&&this['_countResend'](_0x33a6a8),this[_0x1adf6c(0x193)](),this[_0x1adf6c(0x147)](_0x2bd018),this[_0x1adf6c(0x21c)]=_0x2bd018[_0x1adf6c(0x42e)]??this[_0x1adf6c(0x21c)],_0x33a6a8&&this[_0x1adf6c(0x2c1)](_0x33a6a8,_0x3ae306));}['armAckTimeout'](){const _0x510657=_0x58e0b4;this[_0x510657(0x2b3)](this['_ackTimeout'],_0x510657(0x437));}[_0x58e0b4(0x294)](_0x23fab5='should_retry'){const _0x316cff=_0x58e0b4;this[_0x316cff(0x2b3)](this[_0x316cff(0x404)],_0x23fab5);}[_0x58e0b4(0x1d3)](){const _0x3b2df4=_0x58e0b4;this[_0x3b2df4(0x424)]=!0x0,this['_clearTimer'](),this[_0x3b2df4(0x229)]=null,this['_pendingReason']=null;}[_0x58e0b4(0x147)](_0x2d4447){const _0x293206=_0x58e0b4;let _0x249357=++this[_0x293206(0x347)],_0x7bfbc9;try{_0x7bfbc9=this[_0x293206(0x429)](_0x2d4447,{'timeout':this['_ackTimeout']});}catch(_0x25dbf1){this[_0x293206(0x31b)](_0x249357,_0x25dbf1);return;}_0x7bfbc9 instanceof Promise&&_0x7bfbc9['catch'](_0x5c5ecd=>this[_0x293206(0x31b)](_0x249357,_0x5c5ecd));}[_0x58e0b4(0x31b)](_0xa770cf,_0x3660d7){const _0x47df95=_0x58e0b4;if(this[_0x47df95(0x424)]||_0xa770cf!==this[_0x47df95(0x347)])return;let _0x1f2ae5=Vt(_0x3660d7,this[_0x47df95(0x404)]);_0x1f2ae5!==null&&this['_schedule'](_0x1f2ae5,_0x47df95(0x43b));}[_0x58e0b4(0x2b3)](_0xc1245,_0x216e3b){const _0x306af3=_0x58e0b4;this['_disposed']||(this[_0x306af3(0x351)](),this[_0x306af3(0x431)]=null,this[_0x306af3(0x15a)]=_0xc1245,this['_timer']=setTimeout(()=>{const _0x4b9e61=_0x306af3;this[_0x4b9e61(0x226)]=null,this['_source']?this[_0x4b9e61(0x251)](_0x216e3b):this[_0x4b9e61(0x431)]=_0x216e3b;},_0xc1245));}['_resend'](_0x11e7eb){const _0x5d32e0=_0x58e0b4;let _0x943bd1=this[_0x5d32e0(0x229)];if(!_0x943bd1||this[_0x5d32e0(0x424)])return;let {changeset:_0x5f230c,unsyncedMutationCount:_0x242168}=_0x943bd1();this[_0x5d32e0(0x228)](_0x11e7eb),this[_0x5d32e0(0x193)](),this[_0x5d32e0(0x147)](_0x5f230c),this[_0x5d32e0(0x21c)]=_0x5f230c[_0x5d32e0(0x42e)]??this['_reqId'],this[_0x5d32e0(0x2c1)](_0x11e7eb,_0x242168);}[_0x58e0b4(0x228)](_0x407d67){const _0x51b368=_0x58e0b4;this[_0x51b368(0x376)]+=0x1,_0x407d67===_0x51b368(0x28c)||_0x407d67===_0x51b368(0x43b)||_0x407d67===_0x51b368(0x30d)?this[_0x51b368(0x404)]=this[_0x51b368(0x404)]===0x0?0x3e8:Math[_0x51b368(0x41d)](this['_retryBackoff']*0x2,0x4e20):_0x407d67==='ack_timeout'&&(this[_0x51b368(0x1e6)]=Math['min'](this[_0x51b368(0x1e6)]*0x2,this[_0x51b368(0x265)]));}[_0x58e0b4(0x2c1)](_0x1130b8,_0x370b95){const _0x3ccc20=_0x58e0b4;var _0x3989c8,_0x333163;this[_0x3ccc20(0x424)]||(_0x3989c8=(_0x333163=this[_0x3ccc20(0x1db)])[_0x3ccc20(0x34b)])==null||_0x3989c8['call'](_0x333163,{'reqId':this[_0x3ccc20(0x21c)],'reason':_0x1130b8,'attempt':this[_0x3ccc20(0x376)],'elapsedMs':this[_0x3ccc20(0x3a1)],'unsyncedMutationCount':_0x370b95,'nextDelayMs':this[_0x3ccc20(0x1e6)]});}[_0x58e0b4(0x351)](){const _0x19cd7b=_0x58e0b4;this['_timer']!=null&&(clearTimeout(this[_0x19cd7b(0x226)]),this['_timer']=null);}};function Vt(_0x3797e9,_0x26e931){const _0x501aed=_0x58e0b4;if(_0x3797e9 instanceof _0x1ec2fc)return null;if(_0x3797e9 instanceof _0x4d36f7){let _0x10a727=_0x3797e9['status']??0x0;return _0x10a727===0x0||_0x10a727===0x198||_0x10a727===0x1ad||_0x10a727>=0x1f4?Math[_0x501aed(0x33d)](_0x26e931,Ht(_0x3797e9)):null;}return _0x26e931;}function Ht(_0x3d1cbf){const _0x5d3bdc=_0x58e0b4;var _0x2b8e69;let _0x587481=(_0x2b8e69=_0x3d1cbf[_0x5d3bdc(0x1f2)])==null||(_0x2b8e69=_0x2b8e69['get']('retry-after'))==null?void 0x0:_0x2b8e69[0x0],_0x11d04d=_0x587481===void 0x0?NaN:Number(_0x587481);return Number[_0x5d3bdc(0x20b)](_0x11d04d)&&_0x11d04d>0x0?_0x11d04d*0x3e8:0x0;}function Ut(_0x4b233c){const _0x1a46a2=_0x58e0b4;return JSON[_0x1a46a2(0x412)](_0x4b233c)[_0x1a46a2(0x2bb)];}let Wt=function(_0x1451e9){const _0x3f4ef0=_0x58e0b4;return _0x1451e9[_0x3f4ef0(0x255)]=_0x3f4ef0(0x255),_0x1451e9[_0x3f4ef0(0x478)]='PERMISSION_DENIED',_0x1451e9['CONFLICT_PROCESSING']='CONFLICT_PROCESSING',_0x1451e9[_0x3f4ef0(0x3fb)]=_0x3f4ef0(0x3fb),_0x1451e9[_0x3f4ef0(0x39e)]='CONFLICT',_0x1451e9[_0x3f4ef0(0x341)]=_0x3f4ef0(0x341),_0x1451e9[_0x3f4ef0(0x236)]=_0x3f4ef0(0x236),_0x1451e9['SOCKET_FAILED_RETRY']=_0x3f4ef0(0x288),_0x1451e9[_0x3f4ef0(0x1c5)]=_0x3f4ef0(0x1c5),_0x1451e9[_0x3f4ef0(0x150)]='LICENSE_DOMAIN_REJECTED',_0x1451e9[_0x3f4ef0(0x2d3)]=_0x3f4ef0(0x2d3),_0x1451e9;}({});var B=class{constructor(){const _0x2c2e9e=_0x58e0b4;z(this,'_event$',new _0x5159b6()),z(this,'event$',this[_0x2c2e9e(0x184)][_0x2c2e9e(0x42c)]());}[_0x58e0b4(0x3c1)](_0x182b10){const _0x1d56ca=_0x58e0b4;this['_event$'][_0x1d56ca(0x450)](_0x182b10);}},Gt=class{constructor(){const _0x3d7f08=_0x58e0b4;z(this,_0x3d7f08(0x43a),new _0x5159b6()),z(this,_0x3d7f08(0x2bc),this[_0x3d7f08(0x43a)][_0x3d7f08(0x42c)]());}[_0x58e0b4(0x396)](_0x3b8fba){const _0x270681=_0x58e0b4;this['_commentUpdate$'][_0x270681(0x450)](_0x3b8fba);}};function V(_0x2c3d71,_0x43d35f){return function(_0x4b92ca,_0x260544){_0x43d35f(_0x4b92ca,_0x260544,_0x2c3d71);};}function H(_0x48621c,_0x2daf8e,_0x33d27e,_0x444523){const _0x3ea2a2=_0x58e0b4;var _0xe560f4=arguments['length'],_0x480d38=_0xe560f4<0x3?_0x2daf8e:_0x444523===null?_0x444523=Object[_0x3ea2a2(0x278)](_0x2daf8e,_0x33d27e):_0x444523,_0xd7a88e;if(typeof Reflect==_0x3ea2a2(0x189)&&typeof Reflect[_0x3ea2a2(0x2c5)]==_0x3ea2a2(0x27a))_0x480d38=Reflect[_0x3ea2a2(0x2c5)](_0x48621c,_0x2daf8e,_0x33d27e,_0x444523);else{for(var _0x4868f9=_0x48621c[_0x3ea2a2(0x2bb)]-0x1;_0x4868f9>=0x0;_0x4868f9--)(_0xd7a88e=_0x48621c[_0x4868f9])&&(_0x480d38=(_0xe560f4<0x3?_0xd7a88e(_0x480d38):_0xe560f4>0x3?_0xd7a88e(_0x2daf8e,_0x33d27e,_0x480d38):_0xd7a88e(_0x2daf8e,_0x33d27e))||_0x480d38);}return _0xe560f4>0x3&&_0x480d38&&Object[_0x3ea2a2(0x467)](_0x2daf8e,_0x33d27e,_0x480d38),_0x480d38;}let Kt=class extends _0x4198a8{constructor(_0x15842e){const _0x135a62=_0x58e0b4;super(),this[_0x135a62(0x3e5)]=_0x15842e,z(this,_0x135a62(0x1fb),new Map()),z(this,_0x135a62(0x37a),new _0x5159b6()),this[_0x135a62(0x398)](_0x53f80a(this[_0x135a62(0x3e5)][_0x135a62(0x384)](_0x22f8f1['UNIVER_SHEET'])['pipe'](_0x280b22(_0x38411d=>_0x38411d['getUnitId']())),this[_0x135a62(0x3e5)][_0x135a62(0x384)](_0x22f8f1[_0x135a62(0x157)])[_0x135a62(0x3dc)](_0x280b22(_0x64c299=>_0x64c299[_0x135a62(0x15b)]())),this['_univerInstanceService'][_0x135a62(0x384)](_0x22f8f1['UNIVER_BOARD'])['pipe'](_0x280b22(_0xaf8f66=>_0xaf8f66[_0x135a62(0x15b)]())),this[_0x135a62(0x3e5)][_0x135a62(0x384)](_0x22f8f1[_0x135a62(0x280)])[_0x135a62(0x3dc)](_0x280b22(_0x28e668=>_0x28e668[_0x135a62(0x15b)]())))[_0x135a62(0x377)](_0x2e733e=>this[_0x135a62(0x22f)](_0x2e733e)));}[_0x58e0b4(0x462)](_0x603179){const _0x202153=_0x58e0b4;return this[_0x202153(0x1fb)][_0x202153(0x2b9)](_0x603179)?_0x24983f(this['_roomMembers'][_0x202153(0x172)](_0x603179)):this['_roomCreated$']['pipe'](_0x280b22(_0x37684c=>{const _0xbc3cc2=_0x202153;if(_0x37684c===_0x603179)return this[_0xbc3cc2(0x1fb)][_0xbc3cc2(0x172)](_0x37684c);}));}[_0x58e0b4(0x3a3)](_0x3e18b8,_0x545ac3){const _0x595394=_0x58e0b4;let _0x1afbb0=this[_0x595394(0x1fb)][_0x595394(0x172)](_0x3e18b8);_0x1afbb0||(_0x1afbb0=new qt(),this[_0x595394(0x1fb)][_0x595394(0x3bb)](_0x3e18b8,_0x1afbb0),this[_0x595394(0x37a)][_0x595394(0x450)](_0x3e18b8)),_0x1afbb0[_0x595394(0x3a3)](_0x545ac3);}[_0x58e0b4(0x3a6)](_0x44a350,_0x1a740f){const _0xff408b=_0x58e0b4;let _0x2b493d=this[_0xff408b(0x1fb)][_0xff408b(0x172)](_0x44a350);_0x2b493d&&_0x2b493d[_0xff408b(0x3a6)](_0x1a740f);}[_0x58e0b4(0x3f4)](_0x556356){const _0x58d046=_0x58e0b4;return this[_0x58d046(0x1fb)][_0x58d046(0x172)](_0x556356);}[_0x58e0b4(0x3db)](_0x3bcf66,_0x5cb396){const _0x56f975=_0x58e0b4;let _0x29279e=this[_0x56f975(0x1fb)]['get'](_0x3bcf66);if(_0x29279e)return _0x29279e['getMember'](_0x5cb396);}['_removeRoom'](_0x51050c){const _0x2e6368=_0x58e0b4;let _0x4a2bef=this[_0x2e6368(0x1fb)]['get'](_0x51050c);_0x4a2bef&&(_0x4a2bef[_0x2e6368(0x1d3)](),this['_roomMembers'][_0x2e6368(0x435)](_0x51050c));}[_0x58e0b4(0x1d3)](){const _0x524e8f=_0x58e0b4;this['_roomMembers'][_0x524e8f(0x266)](_0x33baa1=>_0x33baa1['dispose']()),this[_0x524e8f(0x1fb)][_0x524e8f(0x1d6)](),this[_0x524e8f(0x37a)][_0x524e8f(0x19a)]();}};Kt=H([V(0x0,_0x2c297b)],Kt);var qt=class extends _0x4198a8{constructor(..._0x3f0e3e){const _0x140cd6=_0x58e0b4;super(..._0x3f0e3e),z(this,_0x140cd6(0x3f1),new Map()),z(this,_0x140cd6(0x439),new _0xabbeab(this[_0x140cd6(0x3f1)])),z(this,_0x140cd6(0x329),this['_members$'][_0x140cd6(0x42c)]());}[_0x58e0b4(0x1d3)](){const _0x126d00=_0x58e0b4;this[_0x126d00(0x3f1)][_0x126d00(0x1d6)](),this[_0x126d00(0x439)][_0x126d00(0x19a)]();}[_0x58e0b4(0x3a3)](_0x2f7537){const _0x562bee=_0x58e0b4;this[_0x562bee(0x3f1)][_0x562bee(0x3bb)](_0x2f7537[_0x562bee(0x3d2)],_0x2f7537),this[_0x562bee(0x3dd)]();}[_0x58e0b4(0x3a6)](_0x39d831){const _0x50e1ec=_0x58e0b4;this[_0x50e1ec(0x3f1)][_0x50e1ec(0x435)](_0x39d831),this[_0x50e1ec(0x3dd)]();}[_0x58e0b4(0x3db)](_0x563a13){const _0x2a8f92=_0x58e0b4;return this[_0x2a8f92(0x3f1)]['get'](_0x563a13);}[_0x58e0b4(0x210)](){const _0x42ef5b=_0x58e0b4;return Array[_0x42ef5b(0x2ab)](this[_0x42ef5b(0x3f1)][_0x42ef5b(0x281)]());}[_0x58e0b4(0x3dd)](){const _0x233be4=_0x58e0b4;this[_0x233be4(0x439)][_0x233be4(0x450)](this['_members']);}};function Jt(_0x5d66c3,_0x3a8bd8){const _0x342a7a=_0x58e0b4;if(Xt(_0x5d66c3))return _0x3a8bd8;if(_0x3a8bd8[_0x342a7a(0x2e9)]===_0x43c2b6[_0x342a7a(0x2d9)]){let _0x2d5c79=tn(_0x5d66c3),_0x1000bf=_0x3a8bd8;return{..._0x1000bf,'data':{..._0x1000bf[_0x342a7a(0x1d7)],'unitID':_0x5d66c3[_0x342a7a(0x300)][_0x342a7a(0x25c)],'unitType':_0x5d66c3[_0x342a7a(0x300)]['unitType']??_0x1000bf[_0x342a7a(0x1d7)][_0x342a7a(0x47d)],'changeset':_0x2d5c79[_0x342a7a(0x163)](_0x1000bf[_0x342a7a(0x1d7)][_0x342a7a(0x232)],nn(_0x5d66c3))}};}if(_0x3a8bd8['eventID']===_0x43c2b6[_0x342a7a(0x45d)]){let _0x3a45d9=_0x3a8bd8;return{..._0x3a45d9,'data':{..._0x3a45d9[_0x342a7a(0x1d7)],'unitID':_0x5d66c3[_0x342a7a(0x300)][_0x342a7a(0x25c)],'unitType':_0x5d66c3[_0x342a7a(0x300)]['unitType']??_0x3a45d9['data'][_0x342a7a(0x47d)]}};}return _0x3a8bd8;}function Yt(_0x219970,_0x34c147){const _0xb3b050=_0x58e0b4;if(Xt(_0x219970))return[_0x34c147];switch(_0x34c147['eventID']){case _0x43c2b6[_0xb3b050(0x39d)]:return[Zt(_0x219970,_0x34c147)];case _0x43c2b6['PSEUDO_FETCH_MISSING_RESULT']:return[$t(_0x219970,_0x34c147)];case _0x43c2b6['CHANGESET_SHOULD_RETRY']:return[Qt(_0x219970,_0x34c147)];default:return[_0x34c147];}}function Xt(_0x27f861){const _0x496f89=_0x58e0b4;return _0x27f861[_0x496f89(0x300)][_0x496f89(0x43e)]==null&&_0x27f861[_0x496f89(0x300)]['unitId']===_0x27f861[_0x496f89(0x2bf)]&&!_0x27f861[_0x496f89(0x232)];}function Zt(_0x5cd2b2,_0x39e112){return{..._0x39e112,'data':_0x14c146(en(_0x5cd2b2,_0x268c32(_0x39e112['data'])))};}function Qt(_0x299157,_0x98e808){const _0xe70a58=_0x58e0b4;return{..._0x98e808,'data':en(_0x299157,_0x98e808[_0xe70a58(0x1d7)])};}function $t(_0x53fc2d,_0x3e4199){const _0x16ae0a=_0x58e0b4;let _0x4210c7=_0x3e4199[_0x16ae0a(0x1d7)];return{..._0x3e4199,'data':{..._0x4210c7,'changesets':_0x4210c7[_0x16ae0a(0x3c5)][_0x16ae0a(0x3da)](_0x51416b=>_0x14c146(en(_0x53fc2d,_0x268c32(_0x51416b))))}};}function en(_0x5c47c7,_0x48b5e1){const _0x11ccd4=_0x58e0b4;return tn(_0x5c47c7)[_0x11ccd4(0x2b5)](_0x48b5e1,nn(_0x5c47c7));}function tn(_0x1ecdba){const _0x53289c=_0x58e0b4;if(!_0x1ecdba[_0x53289c(0x232)])throw Error(_0x53289c(0x362));return _0x1ecdba['changeset'];}function nn(_0x1b6b72){const _0x372e78=_0x58e0b4;return{'localUnitId':_0x1b6b72[_0x372e78(0x2bf)],'unitType':_0x1b6b72[_0x372e78(0x47d)],'target':_0x1b6b72[_0x372e78(0x300)]};}let rn=function(_0x45ab3e){const _0x27a3df=_0x58e0b4;return _0x45ab3e[_0x45ab3e[_0x27a3df(0x241)]=0x0]='IDLE',_0x45ab3e[_0x45ab3e['JOINING']=0x1]=_0x27a3df(0x3e0),_0x45ab3e[_0x45ab3e[_0x27a3df(0x201)]=0x2]=_0x27a3df(0x201),_0x45ab3e[_0x45ab3e[_0x27a3df(0x446)]=0x3]=_0x27a3df(0x446),_0x45ab3e;}({});const an={[_0x2bfe8c[_0x58e0b4(0x29a)]]:_0x58e0b4(0x2ff),[_0x2bfe8c[_0x58e0b4(0x35d)]]:'session.room-full',[_0x2bfe8c[_0x58e0b4(0x13f)]]:_0x58e0b4(0x330),[_0x2bfe8c['JOIN_ROOM_PERMISSION_DENIED']]:_0x58e0b4(0x473),[_0x2bfe8c[_0x58e0b4(0x340)]]:'session.room-cnt-exceeds'};let on=class extends _0x3129e8{get['sessionStatus'](){const _0x2e8051=_0x58e0b4;return this['_sessionStatus$'][_0x2e8051(0x45c)]();}constructor(_0x34718a,_0x412bdf,_0x321f05,_0x18f481,_0xd022b3,_0x3b885b,_0x4a7139){const _0x278fa7=_0x58e0b4;super(),this[_0x278fa7(0x2de)]=_0x34718a,this['_logService']=_0x321f05,this['_memberService']=_0x18f481,this[_0x278fa7(0x257)]=_0xd022b3,this['_collaborationUIEventService']=_0x3b885b,this[_0x278fa7(0x3d8)]=_0x4a7139,z(this,'_sessionStatus$',new _0xabbeab(0x0)),z(this,_0x278fa7(0x28f),this[_0x278fa7(0x2ed)]['asObservable']()),z(this,'_event$',new _0x5159b6()),z(this,_0x278fa7(0x206),this['_event$']['asObservable']()),z(this,_0x278fa7(0x2d6),void 0x0),z(this,_0x278fa7(0x3e9),void 0x0),z(this,_0x278fa7(0x1a1),!0x1),z(this,'_telemetryInfo',null),this[_0x278fa7(0x1a1)]=!!this[_0x278fa7(0x3d8)],_0x412bdf[_0x278fa7(0x3dc)](_0x20e81c(this[_0x278fa7(0x46f)]))[_0x278fa7(0x377)](_0x2ad932=>{const _0x13bdec=_0x278fa7;if(_0x2ad932!==void 0x0){if(this[_0x13bdec(0x2d6)]=_0x2ad932,_0x2ad932)this[_0x13bdec(0x254)](_0x2ad932),this['_socketMessageSubscription']=_0x2ad932[_0x13bdec(0x3c8)]['subscribe'](_0x5969f0=>{const _0x3aca5e=_0x13bdec;_0x5969f0[_0x3aca5e(0x3c6)]===this[_0x3aca5e(0x2de)][_0x3aca5e(0x300)][_0x3aca5e(0x25c)]&&this[_0x3aca5e(0x35b)](_0x5969f0);});else{var _0xf48b62;this[_0x13bdec(0x358)](),this[_0x13bdec(0x2ed)][_0x13bdec(0x450)](0x2),(_0xf48b62=this[_0x13bdec(0x3e9)])==null||_0xf48b62[_0x13bdec(0x34e)](),this[_0x13bdec(0x3e9)]=null;}}});}[_0x58e0b4(0x38f)](){const _0x37b5cf=_0x58e0b4;var _0x4c5afa;return((_0x4c5afa=this[_0x37b5cf(0x2d6)])==null?void 0x0:_0x4c5afa[_0x37b5cf(0x3d2)])??null;}[_0x58e0b4(0x1d3)](){const _0x237ca5=_0x58e0b4;super['dispose'](),this[_0x237ca5(0x2fe)](),this[_0x237ca5(0x46f)][_0x237ca5(0x450)](),this[_0x237ca5(0x46f)][_0x237ca5(0x19a)]();}[_0x58e0b4(0x2fe)](){const _0x2ae67b=_0x58e0b4;var _0x6d2761;this[_0x2ae67b(0x358)](),(_0x6d2761=this[_0x2ae67b(0x2d6)])==null||_0x6d2761['send']({'cmd':_0x569635[_0x2ae67b(0x470)],'data':{'roomID':this[_0x2ae67b(0x2de)][_0x2ae67b(0x300)][_0x2ae67b(0x25c)]}}),this[_0x2ae67b(0x184)][_0x2ae67b(0x19a)](),this[_0x2ae67b(0x2ed)][_0x2ae67b(0x19a)]();}['_onCombEvent'](_0x31e420){const _0x242802=_0x58e0b4;_0x31e420[_0x242802(0x46a)]===_0x569635[_0x242802(0x339)]?this['_onJoinRoomEvent'](_0x31e420):_0x31e420[_0x242802(0x46a)]===_0x569635['RECV']&&this[_0x242802(0x1a7)](_0x31e420);}[_0x58e0b4(0x254)](_0x2f0692){const _0x3f1e08=_0x58e0b4;this[_0x3f1e08(0x2ed)][_0x3f1e08(0x450)](0x1),_0x2f0692['send']({'cmd':_0x569635['JOIN'],'routeKey':this[_0x3f1e08(0x2de)]['target'][_0x3f1e08(0x25c)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x3f1e08(0x300)][_0x3f1e08(0x25c)]}]}});}['_onJoinRoomEvent'](_0x3bb881){const _0x268a2c=_0x58e0b4;var _0x292e27;if(_0x3bb881[_0x268a2c(0x2ea)]in an){this[_0x268a2c(0x2ad)][_0x268a2c(0x3c1)]({'id':_0x268a2c(0x236),'data':an[_0x3bb881[_0x268a2c(0x2ea)]]}),this[_0x268a2c(0x2ed)]['next'](0x2);return;}this[_0x268a2c(0x2ed)][_0x268a2c(0x450)](0x3);let _0x55765d=(_0x292e27=_0x3bb881['data'][_0x268a2c(0x2fd)][this[_0x268a2c(0x2de)]['target'][_0x268a2c(0x25c)]])==null?void 0x0:_0x292e27[_0x268a2c(0x161)];_0x55765d&&_0x55765d[_0x268a2c(0x266)](_0x408eaf=>this['_memberService'][_0x268a2c(0x3a3)](this[_0x268a2c(0x2de)]['localUnitId'],_0x408eaf));}['_onRecvEvent'](_0x4f4a34){const _0x4999b6=_0x58e0b4;try{let _0x459e56=Yt(this[_0x4999b6(0x2de)],_0x4f4a34[_0x4999b6(0x1d7)]);for(let _0x5f58c9 of _0x459e56)switch(_0x5f58c9[_0x4999b6(0x2e9)]){case _0x43c2b6[_0x4999b6(0x32f)]:this[_0x4999b6(0x2d4)](_0x5f58c9),this[_0x4999b6(0x184)]['next'](_0x5f58c9);break;case _0x43c2b6[_0x4999b6(0x361)]:this[_0x4999b6(0x46c)](_0x5f58c9),this[_0x4999b6(0x184)][_0x4999b6(0x450)](_0x5f58c9);break;case _0x43c2b6[_0x4999b6(0x317)]:case _0x43c2b6[_0x4999b6(0x1f8)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_event$'][_0x4999b6(0x450)](_0x5f58c9);break;case _0x43c2b6['MSG_FOR_ERROR']:this[_0x4999b6(0x401)][_0x4999b6(0x2fa)](_0x4999b6(0x36c)+JSON[_0x4999b6(0x412)](_0x5f58c9)),this[_0x4999b6(0x184)][_0x4999b6(0x450)](_0x5f58c9);break;case _0x43c2b6[_0x4999b6(0x183)]:this[_0x4999b6(0x257)][_0x4999b6(0x396)](_0x5f58c9[_0x4999b6(0x1d7)]),this['_event$'][_0x4999b6(0x450)](_0x5f58c9);break;default:this[_0x4999b6(0x184)][_0x4999b6(0x450)](_0x5f58c9);}}catch(_0x358145){this[_0x4999b6(0x401)]['error'](_0x358145,_0x4f4a34);}}[_0x58e0b4(0x2d4)](_0x5684f4){const _0x4111ae=_0x58e0b4;this[_0x4111ae(0x182)][_0x4111ae(0x3a3)](this[_0x4111ae(0x2de)]['localUnitId'],_0x5684f4[_0x4111ae(0x1d7)]);}[_0x58e0b4(0x46c)](_0x5a03de){const _0x11410c=_0x58e0b4;this['_memberService'][_0x11410c(0x3a6)](this[_0x11410c(0x2de)][_0x11410c(0x2bf)],_0x5a03de[_0x11410c(0x1d7)][_0x11410c(0x3d2)]);}async['send'](_0x530baf,_0x5344b6,_0x4fc111){const _0x11ae6e=_0x58e0b4;if(this['sessionStatus']!==0x3||!this[_0x11ae6e(0x2d6)])throw Error(_0x11ae6e(0x263));try{let _0xd0a278=Jt(this[_0x11ae6e(0x2de)],_0x530baf);_0xd0a278[_0x11ae6e(0x2e9)]===_0x43c2b6[_0x11ae6e(0x2d9)]&&this[_0x11ae6e(0x16e)](_0xd0a278);let _0x4d1753={'cmd':_0x569635[_0x11ae6e(0x19d)],'routeKey':this[_0x11ae6e(0x2de)][_0x11ae6e(0x300)][_0x11ae6e(0x25c)],'routeType':'','data':_0xd0a278};return _0x4fc111===void 0x0?this[_0x11ae6e(0x2d6)]['send'](_0x4d1753):this[_0x11ae6e(0x2d6)][_0x11ae6e(0x30e)](_0x4d1753,_0x4fc111);}catch(_0x3237d1){this['_logService']['error'](_0x3237d1);}}[_0x58e0b4(0x16e)](_0x2ec708){const _0x2bd72e=_0x58e0b4;if(!this['_shouldReportTelemetry'])return;let {data:_0x47caab}=_0x2ec708,{unitID:_0x506e31,changeset:_0x214106}=_0x47caab,{mutations:_0x2e28bf,type:_0x267065}=_0x214106;this[_0x2bd72e(0x2db)]={'unitId':_0x506e31,'type':_0x267065,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Ut(_0x2e28bf)};}[_0x58e0b4(0x434)](){const _0x525ee6=_0x58e0b4;this['_shouldReportTelemetry']&&(this['_telemetryInfo']?(this[_0x525ee6(0x2db)][_0x525ee6(0x2ef)]=performance[_0x525ee6(0x208)](),this['_telemetryInfo']['duration']=this[_0x525ee6(0x2db)][_0x525ee6(0x2ef)]-this[_0x525ee6(0x2db)][_0x525ee6(0x286)],this[_0x525ee6(0x3d8)][_0x525ee6(0x422)]('collaboration_new_changeset',this['_telemetryInfo']),this[_0x525ee6(0x2db)]=null):this[_0x525ee6(0x401)][_0x525ee6(0x2fa)](_0x525ee6(0x357),_0x525ee6(0x24c)));}[_0x58e0b4(0x358)](){this['_telemetryInfo']=null;}};on=H([V(0x2,_0x273710),V(0x3,_0x5a17cb(Kt)),V(0x4,_0x5a17cb(Gt)),V(0x5,_0x5a17cb(B)),V(0x6,_0x16c3fa(_0x53c3f0))],on);const U=_0x1b0051(_0x58e0b4(0x1df));function sn(_0x5c523a,_0x108534){const _0x1184d8=_0x58e0b4;return _0x108534===''||_0x108534==null?_0x1184d8(0x1b0)+_0x5c523a:_0x1184d8(0x1b0)+_0x5c523a+'-'+encodeURIComponent(_0x108534);}function cn(_0x586e62){const _0x55b43c=_0x58e0b4;let {unitID:_0x25be23,mutations:_0x4f83d0}=_0x586e62;return{'unitId':_0x25be23,'subUnitId':_0x4f83d0[_0x55b43c(0x2bb)]>0x0?_0x4f83d0[0x0]['params'][_0x55b43c(0x2da)]:null};}let ln=class{constructor(_0x5ee7ac,_0x4badd9,_0x2afc98){const _0x29234c=_0x58e0b4;this[_0x29234c(0x268)]=_0x5ee7ac,this[_0x29234c(0x3ca)]=_0x4badd9,this[_0x29234c(0x1f6)]=_0x2afc98;}[_0x58e0b4(0x28e)](_0x56eed9){const _0x2c64bd=_0x58e0b4;var _0x3a28bd,_0x17ec67;let _0x5092a1=this[_0x2c64bd(0x268)]['get'](_0x190b91),{unitId:_0x2f0dd2,subUnitId:_0x15039e}=cn(_0x56eed9),_0x4f41f5=_0x5092a1==null?void 0x0:_0x5092a1[_0x2c64bd(0x452)](_0x2f0dd2)[_0x2c64bd(0x369)](),_0x7a8cf5=(_0x3a28bd=this['_instanceService'][_0x2c64bd(0x3c2)](_0x2f0dd2))==null||(_0x3a28bd=_0x3a28bd[_0x2c64bd(0x151)]())==null?void 0x0:_0x3a28bd[_0x2c64bd(0x3ee)]();if(_0x4f41f5['length']===0x0||!_0x2f0dd2||!_0x15039e)return;let _0x5c3db7=[{'id':_0x575bb9['id'],'params':{'unitId':_0x2f0dd2,'subUnitId':_0x7a8cf5,'selections':_0x1d0822[_0x2c64bd(0x1d4)](_0x4f41f5)}}],_0x7e2989=this[_0x2c64bd(0x3ca)][_0x2c64bd(0x155)](_0x56eed9,_0x5c3db7);if(!_0x33aa8f(_0x7e2989))throw _0x7e2989[_0x2c64bd(0x2fa)];let _0x39092e=(_0x17ec67=_0x7e2989[_0x2c64bd(0x1a6)][0x0])==null||(_0x17ec67=_0x17ec67['params'])==null?void 0x0:_0x17ec67[_0x2c64bd(0x169)];if(Array[_0x2c64bd(0x336)](_0x39092e)&&_0x39092e['length']){if(_0x39092e[_0x2c64bd(0x2bb)]===_0x5c3db7[0x0][_0x2c64bd(0x417)]['selections'][_0x2c64bd(0x2bb)]&&_0x39092e[_0x2c64bd(0x395)]((_0x5f2a2c,_0x5cfb8d)=>_0x7f2658[_0x2c64bd(0x23f)](_0x5f2a2c['range'],_0x5c3db7[0x0][_0x2c64bd(0x417)][_0x2c64bd(0x169)][_0x5cfb8d][_0x2c64bd(0x3f6)])))return;this['_injector'][_0x2c64bd(0x172)](_0x1db1d2)[_0x2c64bd(0x1fd)](_0x575bb9['id'],{'unitId':_0x2f0dd2,'subUnitId':_0x7a8cf5,'selections':_0x39092e});}}};ln=H([V(0x0,_0x5a17cb(_0x42cf99)),V(0x1,_0x1ce01e),V(0x2,_0x2c297b)],ln);const W=_0x1b0051(_0x58e0b4(0x142));let un=function(_0x19499b){const _0x146c44=_0x58e0b4;return _0x19499b[_0x19499b['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x19499b[_0x19499b['OTHER_CLIENTS_EDITING']=0x1]=_0x146c44(0x196),_0x19499b;}({});function dn(_0x4f63c6){const _0x36d069=_0x58e0b4;var _0x2d82e5;return!!((_0x2d82e5=_0x4f63c6[_0x36d069(0x417)])!=null&&_0x2d82e5[_0x36d069(0x167)]);}const fn=new Set([_0x2f4974['id']]),pn=new Set([_0x32975b['id'],_0x2c7dd5['id'],_0x4f2076['id'],_0xbf8333['id']]);function mn(_0x1a90e6,_0x2092b5=fn){const _0x446ee6=_0x58e0b4;let _0x472565=[];for(let _0x1b1af0 of _0x1a90e6){if(_0x2092b5[_0x446ee6(0x2b9)](_0x1b1af0['id'])||dn(_0x1b1af0)){if(_0x472565[_0x446ee6(0x2bb)]>0x0)break;_0x472565[_0x446ee6(0x3ad)](_0x1b1af0);break;}_0x472565['push'](_0x1b1af0);}return _0x472565;}function hn(_0x3321c5,_0x2c1d9b,_0x2ea262,_0x15175f,_0x2585f7){const _0x48b4f6=_0x58e0b4;let _0x30b2d3=mn(_0x3321c5),_0x49b06b=_0x2585f7['getCurrentUser'](),_0xbc3049=(_0x49b06b==null?void 0x0:_0x49b06b[_0x48b4f6(0x342)])??_0x48b4f6(0x472),_0x3333a0=(_0x49b06b==null?void 0x0:_0x49b06b[_0x48b4f6(0x3d2)])??_0x48b4f6(0x472);return{'changeset':{'unitID':_0x2c1d9b,'type':_0x276c7f(_0x2ea262[_0x48b4f6(0x313)](_0x2c1d9b)),'baseRev':_0x15175f[_0x48b4f6(0x35c)](_0x2c1d9b),'revision':0x0,'userID':_0xbc3049,'memberID':_0x3333a0,'mutations':_0x30b2d3},'pendingMutations':_0x3321c5[_0x48b4f6(0x3a8)](_0x30b2d3[_0x48b4f6(0x2bb)])};}const gn=hn;function _n(_0x5e4c36,_0x569194,_0x4e5a3b,_0x22300a,_0x1e2c96){const _0x42d2d0=_0x58e0b4;let _0x106709=mn(_0x5e4c36,pn),_0x154791=_0x1e2c96[_0x42d2d0(0x3b3)](),_0x189408=(_0x154791==null?void 0x0:_0x154791[_0x42d2d0(0x342)])??_0x42d2d0(0x472),_0x4063ae=(_0x154791==null?void 0x0:_0x154791[_0x42d2d0(0x3d2)])??_0x42d2d0(0x472);return{'changeset':{'unitID':_0x569194,'type':_0x276c7f(_0x4e5a3b['getUnitType'](_0x569194)),'baseRev':_0x22300a[_0x42d2d0(0x35c)](_0x569194),'revision':0x0,'userID':_0x189408,'memberID':_0x4063ae,'mutations':_0x106709},'pendingMutations':_0x5e4c36[_0x42d2d0(0x3a8)](_0x106709[_0x42d2d0(0x2bb)])};}function vn(_0x73abb0,_0x1d7d7f,_0x5bd496,_0x18a622,_0x1b06d7){const _0x3b9d0f=_0x58e0b4;let _0x3b8589=_0x73abb0[_0x3b9d0f(0x1b7)]((_0x538df2,_0x4295e4)=>{const _0x5d4f90=_0x3b9d0f;let _0x2816c0=_0x538df2[_0x538df2['length']-0x1],{id:_0x3aa52a}=_0x2816c0??{},{id:_0x1d0db7,type:_0x4c7089}=_0x4295e4,_0x3d15b8=_0x4295e4[_0x5d4f90(0x417)];if(_0x3aa52a&&_0x3aa52a!==_0x1d0db7)throw Error(_0x5d4f90(0x371)+_0x3aa52a+'\x20-\x20'+_0x1d0db7+'.');if(!_0x2816c0)return[{'id':_0x1d0db7,'type':_0x4c7089,'params':{'unitId':_0x3d15b8['unitId'],'textRanges':_0x3d15b8[_0x5d4f90(0x188)],'actions':_0x3d15b8[_0x5d4f90(0x2fb)]}}];let _0x4c13b0=_0x2816c0[_0x5d4f90(0x417)];return yn(_0x4c13b0,_0x3d15b8)?[..._0x538df2[_0x5d4f90(0x3a8)](0x0,-0x1),{..._0x2816c0,'id':_0x1d0db7,'type':_0x4c7089,'params':{'unitId':_0x3d15b8[_0x5d4f90(0x25c)],'textRanges':_0x3d15b8[_0x5d4f90(0x188)],'actions':_0x4c5074[_0x5d4f90(0x479)](_0x4c13b0[_0x5d4f90(0x2fb)],_0x3d15b8[_0x5d4f90(0x2fb)])}}]:[..._0x538df2,{'id':_0x1d0db7,'type':_0x4c7089,'params':{'unitId':_0x3d15b8['unitId'],'textRanges':_0x3d15b8['textRanges'],'actions':_0x3d15b8[_0x5d4f90(0x2fb)]}}];},[]),_0x1f5376=_0x1b06d7[_0x3b9d0f(0x3b3)](),_0x56f56d=(_0x1f5376==null?void 0x0:_0x1f5376[_0x3b9d0f(0x342)])??_0x3b9d0f(0x472),_0x4c0211=(_0x1f5376==null?void 0x0:_0x1f5376[_0x3b9d0f(0x3d2)])??_0x3b9d0f(0x472);return{'changeset':{'unitID':_0x1d7d7f,'type':_0x276c7f(_0x5bd496[_0x3b9d0f(0x313)](_0x1d7d7f)),'baseRev':_0x18a622[_0x3b9d0f(0x35c)](_0x1d7d7f),'revision':0x0,'userID':_0x56f56d,'memberID':_0x4c0211,'mutations':_0x3b8589},'pendingMutations':_0x73abb0[_0x3b9d0f(0x3a8)](_0x73abb0[_0x3b9d0f(0x2bb)])};}function yn(_0x9934df,_0x5272a8){const _0x57bd13=_0x58e0b4;return!bn(_0x9934df)&&!bn(_0x5272a8)&&xn(_0x9934df[_0x57bd13(0x2fb)],_0x5272a8['actions']);}function bn(_0x5c695a){const _0x30d9a1=_0x58e0b4;return _0x5c695a[_0x30d9a1(0x16f)]!==void 0x0;}function xn(_0x16a77f,_0x403611){return Sn(_0x16a77f)&&Sn(_0x403611)&&!wn(_0x16a77f)&&!wn(_0x403611)&&!Cn(_0x16a77f)&&!Cn(_0x403611);}function Sn(_0xbc1d0a){const _0x3ef963=_0x58e0b4;return Tn(_0xbc1d0a)[_0x3ef963(0x2cd)](_0x554820=>En(_0x554820)&&_0x554820['et']===_0x3ef963(0x22a));}function Cn(_0x1f56b4){const _0x59858c=_0x58e0b4;return Tn(_0x1f56b4)[_0x59858c(0x2cd)](_0x464bce=>Array[_0x59858c(0x336)](_0x464bce)||typeof _0x464bce==_0x59858c(0x140)||typeof _0x464bce==_0x59858c(0x1bc));}function wn(_0x41abb4){const _0x3ea125=_0x58e0b4;return Tn(_0x41abb4)[_0x3ea125(0x2cd)](_0x9afd2a=>!En(_0x9afd2a)||_0x9afd2a['et']!==_0x3ea125(0x22a)||!Array[_0x3ea125(0x336)](_0x9afd2a['e'])?!0x1:_0x9afd2a['e'][_0x3ea125(0x2cd)](_0x4f1999=>!En(_0x4f1999)||!En(_0x4f1999[_0x3ea125(0x36a)])?!0x1:Object[_0x3ea125(0x373)][_0x3ea125(0x293)][_0x3ea125(0x374)](_0x4f1999[_0x3ea125(0x36a)],'tables')||Object['prototype'][_0x3ea125(0x293)][_0x3ea125(0x374)](_0x4f1999[_0x3ea125(0x36a)],_0x3ea125(0x212))||Object[_0x3ea125(0x373)][_0x3ea125(0x293)]['call'](_0x4f1999[_0x3ea125(0x36a)],'blockRanges')));}function Tn(_0x30b261){const _0x43e717=_0x58e0b4;if(!Array[_0x43e717(0x336)](_0x30b261))return[];let _0x5e8c4a=_0x30b261['includes'](_0x43e717(0x36a))?_0x30b261:_0x30b261['find'](_0x2d9469=>Array[_0x43e717(0x336)](_0x2d9469)&&_0x2d9469['includes']('body'));if(!Array[_0x43e717(0x336)](_0x5e8c4a))return[];let _0x41a0fb=_0x5e8c4a[_0x43e717(0x14c)](_0x43e717(0x36a));return _0x41a0fb===-0x1?[]:_0x5e8c4a['slice'](_0x41a0fb+0x1);}function En(_0x4d0c95){const _0x16bc10=_0x58e0b4;return typeof _0x4d0c95==_0x16bc10(0x189)&&!!_0x4d0c95&&!Array[_0x16bc10(0x336)](_0x4d0c95);}function Dn(_0x46ee40,_0x408d98){const _0x485554=_0x58e0b4;for(let _0x558d88 of _0x46ee40[_0x485554(0x17f)]){if(_0x558d88['id']!==_0x1037c2['id'])continue;let _0x2fa137=_0x558d88['params'];if((_0x2fa137==null?void 0x0:_0x2fa137['unitId'])===_0x408d98&&typeof _0x2fa137[_0x485554(0x393)]==_0x485554(0x1bc))return{'unitId':_0x2fa137[_0x485554(0x25c)],'revision':_0x2fa137['revision']};}return null;}var On,kn,An,jn=class extends Error{constructor(_0x25c4ee){const _0x25e3cc=_0x58e0b4;super(_0x25c4ee instanceof Error?_0x25c4ee[_0x25e3cc(0x360)]:typeof _0x25c4ee==_0x25e3cc(0x140)?_0x25c4ee:'[CollaborationState]:\x20apply\x20error!'),this['applyError']=_0x25c4ee,this[_0x25e3cc(0x237)]=_0x25e3cc(0x3df);}},Mn=class extends Error{constructor(_0x54295b){const _0xe2525f=_0x58e0b4;var _0x4a4fd5;super(_0xe2525f(0x158)+((_0x4a4fd5=_0x54295b['revert'])==null?void 0x0:_0x4a4fd5['revision'])+'.'),this[_0xe2525f(0x37c)]=_0x54295b,this['name']=_0xe2525f(0x364);}};let Nn=function(_0x49b33c){const _0x360780=_0x58e0b4;return _0x49b33c[_0x360780(0x27d)]=_0x360780(0x382),_0x49b33c['SYNCED']=_0x360780(0x40e),_0x49b33c[_0x360780(0x2f1)]=_0x360780(0x2b6),_0x49b33c[_0x360780(0x224)]=_0x360780(0x350),_0x49b33c[_0x360780(0x1b6)]=_0x360780(0x1c1),_0x49b33c['FETCH_MISS']=_0x360780(0x419),_0x49b33c['CONFLICT']=_0x360780(0x3ce),_0x49b33c[_0x360780(0x201)]=_0x360780(0x3e2),_0x49b33c;}({});var G=class{constructor(_0xfa5a1f,_0xd32d2f,_0x47ba4,_0x26412f,_0x447827,_0x1236d1,_0x3a5801,_0x5259ca,_0x2d05e2){const _0x5f027a=_0x58e0b4;this['unitID']=_0xfa5a1f,this[_0x5f027a(0x222)]=_0xd32d2f,this['_handler']=_0x447827,this[_0x5f027a(0x3ae)]=_0x1236d1,this[_0x5f027a(0x3ec)]=_0x3a5801,this['_revisionService']=_0x5259ca,this[_0x5f027a(0x13e)]=_0x2d05e2,z(this,'_awaitingChangeset',null),z(this,_0x5f027a(0x274),[]),this[_0x5f027a(0x37d)]=_0x47ba4,this[_0x5f027a(0x274)]=_0x26412f;}[_0x58e0b4(0x337)](){const _0x21fd37=_0x58e0b4;return!!this[_0x21fd37(0x37d)]||this[_0x21fd37(0x274)][_0x21fd37(0x2bb)]>0x0;}[_0x58e0b4(0x1d3)](){}[_0x58e0b4(0x211)](){const _0x327c64=_0x58e0b4;var _0xbc8aa9;return(((_0xbc8aa9=this[_0x327c64(0x37d)])==null?void 0x0:_0xbc8aa9[_0x327c64(0x17f)][_0x327c64(0x2bb)])??0x0)+this[_0x327c64(0x274)][_0x327c64(0x2bb)];}[_0x58e0b4(0x1e4)](_0x559c8d){const _0xe0a035=_0x58e0b4;return new Bt(_0x559c8d[_0xe0a035(0x42e)]??0x0,(_0x3f60a6,_0x399cc8)=>this[_0xe0a035(0x3bd)]['onSendChangeset'](_0x3f60a6,_0x399cc8),{...this[_0xe0a035(0x3bd)][_0xe0a035(0x1bb)],'onResend':_0x3ee712=>{const _0xa9a517=_0xe0a035;var _0xa1f07d,_0x4f9d41;return(_0xa1f07d=(_0x4f9d41=this['_handler'])[_0xa9a517(0x33a)])==null?void 0x0:_0xa1f07d[_0xa9a517(0x374)](_0x4f9d41,_0x3ee712);}});}[_0x58e0b4(0x355)](_0x1d1871){const _0x5db821=_0x58e0b4;if(this[_0x5db821(0x15f)](_0x1d1871))return _0x5db821(0x476);if(Dn(_0x1d1871,this[_0x5db821(0x468)]))return _0x5db821(0x2e3);let _0x522577=this['_getCurrentRevision']();return _0x1d1871[_0x5db821(0x393)]<=_0x522577?_0x5db821(0x146):_0x1d1871['revision']>_0x522577+0x1?'missing':_0x5db821(0x1e5);}[_0x58e0b4(0x3bc)](_0x452123){const _0x1d101a=_0x58e0b4;let _0x20e58c=this[_0x1d101a(0x171)]();return _0x452123['revision']<=_0x20e58c?this['_isAckOfAwaitingChangeset'](_0x452123)?_0x1d101a(0x1d8):_0x1d101a(0x170):_0x452123[_0x1d101a(0x393)]>_0x20e58c+0x1?'missing':_0x1d101a(0x450);}[_0x58e0b4(0x1ce)](_0x62f594,_0x14841e){const _0x9a2636=_0x58e0b4;switch(this['_classifyRemoteChangeset'](_0x62f594)){case _0x9a2636(0x476):return this['onRemoteAck'](_0x62f594);case _0x9a2636(0x2e3):return _0x14841e[_0x9a2636(0x3fe)](_0x62f594);case _0x9a2636(0x146):return this;case _0x9a2636(0x166):return this[_0x9a2636(0x2f8)](_0x62f594[_0x9a2636(0x393)]),_0x14841e['onMissing'](_0x62f594);case _0x9a2636(0x1e5):return _0x14841e[_0x9a2636(0x25d)](_0x62f594);}}[_0x58e0b4(0x3b8)](_0xa849a5){const _0x282ab4=_0x58e0b4;return{'reason':_0x282ab4(0x2e3),'revert':{'revision':Dn(_0xa849a5,this[_0x282ab4(0x468)])['revision'],'memberId':_0xa849a5[_0x282ab4(0x3d2)],'userId':_0xa849a5[_0x282ab4(0x342)]}};}[_0x58e0b4(0x14f)](_0x2b4444){const _0xc4ccbd=_0x58e0b4;return{'reason':_0x2b4444 instanceof jn?_0xc4ccbd(0x3b7):'transform_failed','message':_0x2b4444 instanceof Error?_0x2b4444[_0xc4ccbd(0x360)]:typeof _0x2b4444==_0xc4ccbd(0x140)?_0x2b4444:void 0x0};}['_rejectionInfo'](_0x33f218){const _0x1a4898=_0x58e0b4;return{'reason':_0x33f218!=null&&_0x33f218[_0x1a4898(0x320)]?'permission_rejected':(_0x33f218==null?void 0x0:_0x33f218['code'])===_0xb46715[_0x1a4898(0x216)]?_0x1a4898(0x283):_0x1a4898(0x16b),'message':_0x33f218==null?void 0x0:_0x33f218[_0x1a4898(0x1b8)]};}['_retryReason'](_0x415f62){const _0x7ce9e8=_0x58e0b4;return _0x415f62===_0xb46715[_0x7ce9e8(0x1af)]?_0x7ce9e8(0x30d):_0x7ce9e8(0x28c);}['_requestMissingChangesets'](_0x119b82){const _0x253735=_0x58e0b4;this[_0x253735(0x3bd)][_0x253735(0x30a)]({'from':this[_0x253735(0x171)](),'to':_0x119b82-0x1});}[_0x58e0b4(0x38b)](_0x24659e){const _0x241b94=_0x58e0b4;this[_0x241b94(0x3ec)][_0x241b94(0x1f3)](this[_0x241b94(0x468)],_0x24659e);}['_transformSelections'](_0x2f6dd7){const _0x52d1b9=_0x58e0b4;var _0x1ae063,_0x586429;(_0x1ae063=(_0x586429=this[_0x52d1b9(0x3bd)])[_0x52d1b9(0x1c0)])==null||_0x1ae063[_0x52d1b9(0x374)](_0x586429,_0x2f6dd7);}['_prepareTransformSelections'](_0x4e1a7b){const _0x4618fd=_0x58e0b4;var _0x5539c9,_0x155866;return((_0x5539c9=(_0x155866=this[_0x4618fd(0x3bd)])[_0x4618fd(0x1f5)])==null?void 0x0:_0x5539c9['call'](_0x155866,_0x4e1a7b))??null;}['_transformIMECache'](_0x3d3cd2){const _0x1efead=_0x58e0b4;var _0x3d0114,_0x53f1a5;return(_0x3d0114=(_0x53f1a5=this['_handler'])['onTransformIME'])==null?void 0x0:_0x3d0114[_0x1efead(0x374)](_0x53f1a5,_0x3d3cd2);}[_0x58e0b4(0x23d)](_0x31909a){const _0x461466=_0x58e0b4;var _0xf80fcb,_0x4f7882;return(_0xf80fcb=(_0x4f7882=this['_handler'])[_0x461466(0x1a8)])==null?void 0x0:_0xf80fcb[_0x461466(0x374)](_0x4f7882,_0x31909a);}[_0x58e0b4(0x44c)](_0x2f792d){const _0x4c13de=_0x58e0b4;var _0x4196bd,_0x393ced;return((_0x4196bd=(_0x393ced=this[_0x4c13de(0x3bd)])[_0x4c13de(0x367)])==null?void 0x0:_0x4196bd[_0x4c13de(0x374)](_0x393ced,_0x2f792d))??_0x2f792d;}[_0x58e0b4(0x3f9)](_0x3c6eb5){const _0x33c3e9=_0x58e0b4;var _0x11df78,_0xa580ce;return((_0x11df78=(_0xa580ce=this[_0x33c3e9(0x3bd)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x11df78[_0x33c3e9(0x374)](_0xa580ce,_0x3c6eb5))??_0x3c6eb5;}[_0x58e0b4(0x1cc)](_0x3bbcdc){const _0x4a2429=_0x58e0b4;if(this[_0x4a2429(0x222)]===_0x22f8f1[_0x4a2429(0x157)]){let {unitID:_0x1ddbb4,mutations:_0x202379,memberID:_0x4548c7}=_0x3bbcdc,_0x408244=_0x202379[_0x4a2429(0x2bb)]>0x0?_0x202379[0x0][_0x4a2429(0x417)][_0x4a2429(0x188)]:[];if(Array[_0x4a2429(0x336)](_0x408244)&&_0x408244[_0x4a2429(0x2bb)]>0x0){var _0x3b5380,_0x2e303e;(_0x3b5380=(_0x2e303e=this[_0x4a2429(0x3bd)])['onSyncEditingCollabCursor'])==null||_0x3b5380[_0x4a2429(0x374)](_0x2e303e,{'unitID':_0x1ddbb4,'memberID':_0x4548c7,'textRanges':_0x408244});}}}[_0x58e0b4(0x2c2)](){const _0xb28983=_0x58e0b4;var _0x488d97;(_0x488d97=this['_localCacheService'])==null||_0x488d97[_0xb28983(0x1a2)](this['unitID'],this[_0xb28983(0x222)],this[_0xb28983(0x37d)],this[_0xb28983(0x274)]);}[_0x58e0b4(0x171)](){const _0x28e4d7=_0x58e0b4;return this[_0x28e4d7(0x3a5)][_0x28e4d7(0x35c)](this['unitID']);}['_isEchoedAwaitingChangeset'](_0x47a7a4){const _0x2aabd5=_0x58e0b4;let _0x2ea6df=this['_awaitingChangeset'];return!_0x2ea6df||!_0x2ea6df[_0x2aabd5(0x370)]||_0x2ea6df[_0x2aabd5(0x42e)]===null||_0x2ea6df[_0x2aabd5(0x42e)]===void 0x0?!0x1:_0x47a7a4[_0x2aabd5(0x468)]===_0x2ea6df['unitID']&&_0x47a7a4[_0x2aabd5(0x370)]===_0x2ea6df[_0x2aabd5(0x370)]&&_0x47a7a4[_0x2aabd5(0x42e)]===_0x2ea6df[_0x2aabd5(0x42e)];}['_isAckOfAwaitingChangeset'](_0x5bfba1){const _0x184b24=_0x58e0b4;let _0x331811=this[_0x184b24(0x37d)];return!(_0x331811!=null&&_0x331811['sid'])||_0x331811[_0x184b24(0x42e)]==null||!_0x5bfba1[_0x184b24(0x370)]||_0x5bfba1[_0x184b24(0x42e)]==null?!0x1:_0x5bfba1[_0x184b24(0x370)]===_0x331811[_0x184b24(0x370)]&&_0x5bfba1['reqId']===_0x331811[_0x184b24(0x42e)];}[_0x58e0b4(0x1f4)](){const _0xab0311=_0x58e0b4;this[_0xab0311(0x3a5)]['incrementRevOfUnit'](this[_0xab0311(0x468)]);}[_0x58e0b4(0x402)](_0x1b4ac9){const _0xf45860=_0x58e0b4;let _0x1edbdd=this['_transformRemoteChangesetByIMECache'](_0x1b4ac9);_0x1edbdd=this[_0xf45860(0x3f9)](_0x1edbdd);let _0x3fd231=this['_prepareTransformSelections'](_0x1edbdd),_0x2df3ac=_0x6abc10(_0x1edbdd[_0xf45860(0x17f)],this['_commandService'],{'fromCollab':!0x0});if(!_0x2df3ac[_0xf45860(0x187)])throw _0x3fd231==null||_0x3fd231['rollback'](),new jn(_0x2df3ac[_0xf45860(0x2fa)]);_0x3fd231==null||_0x3fd231[_0xf45860(0x285)](),this[_0xf45860(0x197)](_0x1edbdd),this[_0xf45860(0x23d)](_0x1edbdd),this[_0xf45860(0x38b)](_0x1b4ac9),this[_0xf45860(0x271)](_0x1edbdd),this[_0xf45860(0x1cc)](_0x1edbdd),this['_incrementRevisionNumber']();}};let K=class extends G{constructor(_0x41bd34,_0x312b14,_0x99c385,_0x5efe52,_0x176890,_0x3164b6,_0x217dd9,_0x161ae2,_0x36bba0,_0x3ba02e){const _0x181b28=_0x58e0b4;super(_0x41bd34,_0x312b14,null,[],_0x99c385,_0x217dd9,_0x3164b6,_0x5efe52,_0x3ba02e),this[_0x181b28(0x268)]=_0x176890,this[_0x181b28(0x401)]=_0x161ae2,this['_transformService']=_0x36bba0,this[_0x181b28(0x38a)]=_0x3ba02e,z(this,_0x181b28(0x20f),_0x181b28(0x40e));}[_0x58e0b4(0x21e)](_0x57980b){const _0x12aca9=_0x58e0b4;let _0x1c1f85=this[_0x12aca9(0x268)][_0x12aca9(0x1fc)](q,this[_0x12aca9(0x468)],this['type'],[_0x57980b],this[_0x12aca9(0x3bd)]);return _0x1c1f85[_0x12aca9(0x2b3)](),_0x1c1f85['_updateLocalCache'](),_0x1c1f85;}[_0x58e0b4(0x35a)](_0x3b8c08){const _0x5b6827=_0x58e0b4;return this['_dispatchRemoteChangeset'](_0x3b8c08,{'onMissing':()=>this[_0x5b6827(0x268)][_0x5b6827(0x1fc)](Q,this[_0x5b6827(0x468)],this[_0x5b6827(0x222)],null,[],null,[_0x3b8c08],this[_0x5b6827(0x3bd)],void 0x0),'onApply':()=>this[_0x5b6827(0x448)](_0x3b8c08),'onRemoteRevert':()=>this[_0x5b6827(0x250)](this[_0x5b6827(0x3b8)](_0x3b8c08))});}[_0x58e0b4(0x448)](_0x4b9ee8){const _0x1fc016=_0x58e0b4;try{let _0x7865b6=this[_0x1fc016(0x3ca)]['transformMutationsWithChangeset'](_0x4b9ee8,[_0x1c8c3f]);if(_0x33aa8f(_0x7865b6)){let {c1Prime:_0x1eaae9}=_0x7865b6;return this[_0x1fc016(0x402)](_0x1eaae9),this;}throw _0x7865b6[_0x1fc016(0x2fa)];}catch(_0x19e560){return this[_0x1fc016(0x401)][_0x1fc016(0x2fa)](_0x19e560),this[_0x1fc016(0x250)](this[_0x1fc016(0x14f)](_0x19e560));}}[_0x58e0b4(0x250)](_0x351da1){const _0x49fed1=_0x58e0b4;return this[_0x49fed1(0x268)]['createInstance'](X,this[_0x49fed1(0x468)],this[_0x49fed1(0x222)],null,[],this['_handler'],_0x351da1);}[_0x58e0b4(0x458)](_0xe95e81){const _0x202c49=_0x58e0b4;if(this[_0x202c49(0x3bc)](_0xe95e81)==='stale')return this;throw Error(_0x202c49(0x319));}['onRemoteRej'](){const _0x58ce30=_0x58e0b4;throw Error(_0x58ce30(0x322));}[_0x58e0b4(0x14a)](){return this;}['toggleOffline'](){const _0x7e3942=_0x58e0b4;return this[_0x7e3942(0x268)][_0x7e3942(0x1fc)](Z,this[_0x7e3942(0x468)],this['type'],null,[],this[_0x7e3942(0x3bd)]);}[_0x58e0b4(0x220)](){return this;}[_0x58e0b4(0x42d)](){const _0x247b43=_0x58e0b4;throw Error(_0x247b43(0x390));}[_0x58e0b4(0x46b)](){const _0x2e259d=_0x58e0b4;let _0x30a7e3=this['_revisionService'][_0x2e259d(0x35c)](this[_0x2e259d(0x468)]);return this[_0x2e259d(0x3bd)][_0x2e259d(0x30a)]({'from':_0x30a7e3,'to':0x0}),this[_0x2e259d(0x268)][_0x2e259d(0x1fc)](Q,this[_0x2e259d(0x468)],this[_0x2e259d(0x222)],null,[],null,[],this[_0x2e259d(0x3bd)],void 0x0);}};K=H([V(0x3,_0x5a17cb(_0x1f2446)),V(0x4,_0x5a17cb(_0x42cf99)),V(0x5,_0xbb7bbe),V(0x6,_0x1db1d2),V(0x7,_0x273710),V(0x8,_0x1ce01e),V(0x9,_0x16c3fa(U))],K);let q=On=class extends G{constructor(_0x35906b,_0x15ee03,_0x1c0e9c,_0xdd6c99,_0x23f7f5,_0x4209c0,_0x34413b,_0xd9c0d2,_0x2bb944,_0x4aa4f4,_0x41e18b,_0x3eeb31,_0x2eddcc,_0xdf9dd4){const _0x4dceac=_0x58e0b4;super(_0x35906b,_0x15ee03,null,_0x1c0e9c,_0xdd6c99,_0x2bb944,_0x2eddcc,_0x4209c0,_0xdf9dd4),this['_injector']=_0x23f7f5,this[_0x4dceac(0x260)]=_0x34413b,this['_logService']=_0xd9c0d2,this[_0x4dceac(0x1a5)]=_0x4aa4f4,this['_transformService']=_0x41e18b,this['_univerInstanceService']=_0x3eeb31,z(this,'status','pending'),z(this,_0x4dceac(0x327),null),z(this,_0x4dceac(0x39f),null);}[_0x58e0b4(0x21e)](_0x2085a8){const _0x327b47=_0x58e0b4;return this[_0x327b47(0x274)][_0x327b47(0x3ad)](_0x2085a8),this[_0x327b47(0x2c2)](),this;}[_0x58e0b4(0x35a)](_0x5735b1){const _0x33b985=_0x58e0b4;return this[_0x33b985(0x1ce)](_0x5735b1,{'onMissing':()=>(this['_clearScheduledTask'](),this[_0x33b985(0x268)][_0x33b985(0x1fc)](Q,this[_0x33b985(0x468)],this[_0x33b985(0x222)],null,this[_0x33b985(0x274)],null,[_0x5735b1],this[_0x33b985(0x3bd)],void 0x0)),'onApply':()=>this[_0x33b985(0x448)](_0x5735b1),'onRemoteRevert':()=>this[_0x33b985(0x250)](this[_0x33b985(0x3b8)](_0x5735b1))});}[_0x58e0b4(0x448)](_0x325513){const _0x3476f6=_0x58e0b4;try{let _0x2a32a9=this['_transformService']['transformMutationsWithChangeset'](_0x325513,this[_0x3476f6(0x274)]);if(_0x33aa8f(_0x2a32a9)){let {c1Prime:_0x55e3b0,m2Prime:_0x25d85d}=_0x2a32a9;this[_0x3476f6(0x402)](_0x55e3b0);let _0x4032f3=this[_0x3476f6(0x268)][_0x3476f6(0x1fc)](On,this[_0x3476f6(0x468)],this[_0x3476f6(0x222)],_0x25d85d,this[_0x3476f6(0x3bd)]);_0x4032f3[_0x3476f6(0x2c2)](),this[_0x3476f6(0x1f1)]();let _0x4c5d1c=new Date()['getTime'](),_0x3343e5=this[_0x3476f6(0x327)]?Math['max'](this[_0x3476f6(0x327)]-_0x4c5d1c,0x0):this[_0x3476f6(0x178)]();return _0x4032f3['_schedule'](_0x3343e5),_0x4032f3;}throw _0x2a32a9[_0x3476f6(0x2fa)];}catch(_0x19cf12){return this[_0x3476f6(0x401)][_0x3476f6(0x2fa)](_0x19cf12),this[_0x3476f6(0x250)](this['_conflictInfoFromError'](_0x19cf12));}}[_0x58e0b4(0x458)](_0x4f7794){const _0x243261=_0x58e0b4;if(this[_0x243261(0x3bc)](_0x4f7794)==='stale')return this;throw Error(_0x243261(0x1ff));}[_0x58e0b4(0x354)](){throw Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x3fa286=_0x58e0b4;return this[_0x3fa286(0x1f1)](),this['_injector']['createInstance'](Z,this['unitID'],this['type'],null,this[_0x3fa286(0x274)],this['_handler']);}[_0x58e0b4(0x220)](){return this;}[_0x58e0b4(0x2b3)](_0x52519d){const _0x2b99d3=_0x58e0b4;let _0x4beb69=_0x52519d??this[_0x2b99d3(0x178)]();this['_scheduleCompleteTimestamp']=new Date()[_0x2b99d3(0x30c)]()+_0x4beb69,this[_0x2b99d3(0x39f)]=setTimeout(()=>{const _0x2de625=_0x2b99d3;this[_0x2de625(0x1f1)]();let _0x4dc42d=null;switch(this[_0x2de625(0x222)]){case _0x22f8f1[_0x2de625(0x277)]:_0x4dc42d=hn(this[_0x2de625(0x274)],this[_0x2de625(0x468)],this[_0x2de625(0x3e5)],this[_0x2de625(0x3a5)],this[_0x2de625(0x260)]);break;case _0x22f8f1[_0x2de625(0x157)]:_0x4dc42d=this[_0x2de625(0x274)]['every'](_0x320806=>_0x320806['id']===_0x5061cf['id'])?vn(this['_pendingMutations'],this[_0x2de625(0x468)],this['_univerInstanceService'],this[_0x2de625(0x3a5)],this[_0x2de625(0x260)]):hn(this[_0x2de625(0x274)],this[_0x2de625(0x468)],this['_univerInstanceService'],this[_0x2de625(0x3a5)],this[_0x2de625(0x260)]);break;case _0x22f8f1[_0x2de625(0x209)]:_0x4dc42d=_n(this['_pendingMutations'],this[_0x2de625(0x468)],this[_0x2de625(0x3e5)],this[_0x2de625(0x3a5)],this[_0x2de625(0x260)]);break;case _0x22f8f1['UNIVER_PDF']:_0x4dc42d=gn(this['_pendingMutations'],this[_0x2de625(0x468)],this[_0x2de625(0x3e5)],this[_0x2de625(0x3a5)],this['_userManagerService']);break;case _0x22f8f1['UNIVER_BOARD']:_0x4dc42d=hn(this[_0x2de625(0x274)],this[_0x2de625(0x468)],this['_univerInstanceService'],this['_revisionService'],this[_0x2de625(0x260)]);break;case _0x22f8f1[_0x2de625(0x280)]:_0x4dc42d=hn(this[_0x2de625(0x274)],this[_0x2de625(0x468)],this[_0x2de625(0x3e5)],this[_0x2de625(0x3a5)],this[_0x2de625(0x260)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x2de625(0x222)]+_0x2de625(0x3de));}let {changeset:_0x2b3980,pendingMutations:_0x11a924}=_0x4dc42d,_0xbe3ae6=this['_createChangesetSubmitter'](_0x2b3980);_0xbe3ae6['submit'](_0x2b3980,_0x2b3980[_0x2de625(0x17f)]['length']+_0x11a924[_0x2de625(0x2bb)]);let _0x205b61=_0x11a924[_0x2de625(0x2bb)]?this['_injector'][_0x2de625(0x1fc)](Y,this['unitID'],this[_0x2de625(0x222)],_0x2b3980,_0x11a924,this[_0x2de625(0x3bd)],_0xbe3ae6):this[_0x2de625(0x268)][_0x2de625(0x1fc)](J,this['unitID'],this[_0x2de625(0x222)],_0x2b3980,this[_0x2de625(0x3bd)],_0xbe3ae6);_0x205b61[_0x2de625(0x2c2)](),this['_handler'][_0x2de625(0x453)](this,_0x205b61);},_0x4beb69);}[_0x58e0b4(0x178)](){const _0x5a4050=_0x58e0b4;let _0x3ee590=this[_0x5a4050(0x1a5)][_0x5a4050(0x21f)](R);return(_0x3ee590==null?void 0x0:_0x3ee590[_0x5a4050(0x1f9)])??0x7d0;}[_0x58e0b4(0x42d)](){const _0x2e34c2=_0x58e0b4;throw Error(_0x2e34c2(0x17b));}[_0x58e0b4(0x1f1)](){const _0x4f11cb=_0x58e0b4;this['_sendingTimer']!=null&&(clearTimeout(this[_0x4f11cb(0x39f)]),this[_0x4f11cb(0x39f)]=null);}['dispose'](){const _0x3c2c5e=_0x58e0b4;this[_0x3c2c5e(0x1f1)]();}[_0x58e0b4(0x250)](_0xa7c26f){const _0x1d591b=_0x58e0b4;return this['_clearScheduledTask'](),this['_injector']['createInstance'](X,this[_0x1d591b(0x468)],this['type'],null,this[_0x1d591b(0x274)],this[_0x1d591b(0x3bd)],_0xa7c26f);}};q=On=H([V(0x4,_0x5a17cb(_0x42cf99)),V(0x5,_0x5a17cb(_0x1f2446)),V(0x6,_0x5a17cb(_0x5be06a)),V(0x7,_0x273710),V(0x8,_0x1db1d2),V(0x9,_0xf6e881),V(0xa,_0x1ce01e),V(0xb,_0x2c297b),V(0xc,_0xbb7bbe),V(0xd,_0x16c3fa(U))],q);let J=kn=class extends G{constructor(_0x350ba8,_0x1b39a7,_0x470d7c,_0x5252e4,_0x509fa5,_0x49fd65,_0x1bbe06,_0x39b2fd,_0xccc720,_0x4b15cd,_0x3fddc7,_0x443ada){const _0x3404f3=_0x58e0b4;super(_0x350ba8,_0x1b39a7,_0x470d7c,[],_0x5252e4,_0x39b2fd,_0x3fddc7,_0x1bbe06,_0x443ada),this[_0x3404f3(0x268)]=_0x49fd65,this[_0x3404f3(0x401)]=_0xccc720,this['_transformService']=_0x4b15cd,z(this,_0x3404f3(0x20f),_0x3404f3(0x350)),z(this,_0x3404f3(0x213),void 0x0),this[_0x3404f3(0x213)]=_0x509fa5??this['_createChangesetSubmitter'](_0x470d7c),this[_0x3404f3(0x213)][_0x3404f3(0x36e)](()=>({'changeset':this[_0x3404f3(0x37d)],'unsyncedMutationCount':this[_0x3404f3(0x211)]()})),_0x509fa5||this[_0x3404f3(0x213)][_0x3404f3(0x193)]();}[_0x58e0b4(0x21e)](_0x12bb11){const _0x4d7288=_0x58e0b4;this[_0x4d7288(0x31f)]();let _0x22c425=this['_injector']['createInstance'](Y,this[_0x4d7288(0x468)],this['type'],this['_awaitingChangeset'],[_0x12bb11],this[_0x4d7288(0x3bd)],this['_submitter']);return _0x22c425['_updateLocalCache'](),_0x22c425;}[_0x58e0b4(0x35a)](_0x494e2b){const _0x2cce9c=_0x58e0b4;return this['_dispatchRemoteChangeset'](_0x494e2b,{'onMissing':()=>(this['_detachSubmitter'](),this[_0x2cce9c(0x268)][_0x2cce9c(0x1fc)](Q,this[_0x2cce9c(0x468)],this['type'],this[_0x2cce9c(0x37d)],[],null,[_0x494e2b],this[_0x2cce9c(0x3bd)],this[_0x2cce9c(0x213)])),'onApply':()=>this['_transformAndApply'](_0x494e2b),'onRemoteRevert':()=>this[_0x2cce9c(0x250)](this['_remoteRevertInfo'](_0x494e2b))});}[_0x58e0b4(0x448)](_0x12cfda){const _0x24038b=_0x58e0b4;try{let _0xb89f73=this['_transformService'][_0x24038b(0x2c0)]([_0x12cfda],[this[_0x24038b(0x37d)]],!0x1);if(_0xf5d392(_0xb89f73)){let {c1Prime:_0xc54918,c2Prime:_0x203a17}=_0xb89f73;this[_0x24038b(0x402)](_0xc54918[0x0]),_0x203a17[0x0]['baseRev']=this[_0x24038b(0x171)](),this[_0x24038b(0x31f)]();let _0xbe9daa=this[_0x24038b(0x268)][_0x24038b(0x1fc)](kn,this[_0x24038b(0x468)],this[_0x24038b(0x222)],_0x203a17[0x0],this['_handler'],this['_submitter']);return _0xbe9daa['_updateLocalCache'](),_0xbe9daa;}throw _0xb89f73['error'];}catch(_0x2a4453){return this[_0x24038b(0x401)]['error'](_0x2a4453),this['_onConflict'](this[_0x24038b(0x14f)](_0x2a4453));}}[_0x58e0b4(0x458)](_0x57aefc){const _0x4fb656=_0x58e0b4;switch(this[_0x4fb656(0x3bc)](_0x57aefc)){case _0x4fb656(0x170):return this['_logService'][_0x4fb656(0x36f)](_0x4fb656(0x191),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x57aefc[_0x4fb656(0x393)]+_0x4fb656(0x3aa)+this[_0x4fb656(0x171)]()+'.'),this;case _0x4fb656(0x1d8):return this[_0x4fb656(0x213)][_0x4fb656(0x1d3)](),this[_0x4fb656(0x461)]();case _0x4fb656(0x166):return this[_0x4fb656(0x213)][_0x4fb656(0x1d3)](),this[_0x4fb656(0x2f8)](_0x57aefc[_0x4fb656(0x393)]),this['_injector'][_0x4fb656(0x1fc)](Q,this['unitID'],this[_0x4fb656(0x222)],this['_awaitingChangeset'],[],_0x57aefc['revision'],[],this[_0x4fb656(0x3bd)],void 0x0);case _0x4fb656(0x450):return this[_0x4fb656(0x213)][_0x4fb656(0x1d3)](),this[_0x4fb656(0x1f4)](),this['_toSynced']();}}[_0x58e0b4(0x461)](){const _0x52ad8f=_0x58e0b4;let _0x4acf77=this[_0x52ad8f(0x268)][_0x52ad8f(0x1fc)](K,this[_0x52ad8f(0x468)],this[_0x52ad8f(0x222)],this[_0x52ad8f(0x3bd)]);return _0x4acf77[_0x52ad8f(0x2c2)](),_0x4acf77;}[_0x58e0b4(0x354)](_0x2ce653){const _0x4cd8c3=_0x58e0b4;return this[_0x4cd8c3(0x250)](this[_0x4cd8c3(0x3be)](_0x2ce653));}[_0x58e0b4(0x14a)](_0x3bf677,_0x55725f){const _0xf7b1b8=_0x58e0b4;var _0xf2a45a;return _0x3bf677[_0xf7b1b8(0x42e)]===((_0xf2a45a=this[_0xf7b1b8(0x37d)])==null?void 0x0:_0xf2a45a[_0xf7b1b8(0x42e)])&&this[_0xf7b1b8(0x213)][_0xf7b1b8(0x294)](this[_0xf7b1b8(0x160)](_0x55725f)),this;}[_0x58e0b4(0x292)](){const _0x160b11=_0x58e0b4;return this[_0x160b11(0x213)]['dispose'](),this['_injector'][_0x160b11(0x1fc)](Z,this['unitID'],this[_0x160b11(0x222)],this[_0x160b11(0x37d)],[],this['_handler']);}[_0x58e0b4(0x220)](){return this;}['resend'](_0x277194=_0x58e0b4(0x296)){const _0x243c5a=_0x58e0b4;this['_submitter'][_0x243c5a(0x214)](this['_awaitingChangeset'],this[_0x243c5a(0x211)](),_0x277194);}[_0x58e0b4(0x250)](_0x3c4da6){const _0x3f463c=_0x58e0b4;return this['_submitter'][_0x3f463c(0x1d3)](),this[_0x3f463c(0x268)][_0x3f463c(0x1fc)](X,this[_0x3f463c(0x468)],this[_0x3f463c(0x222)],this[_0x3f463c(0x37d)],[],this['_handler'],_0x3c4da6);}[_0x58e0b4(0x1d3)](){const _0x5a82cc=_0x58e0b4;this[_0x5a82cc(0x213)][_0x5a82cc(0x1d3)]();}['_detachSubmitter'](){const _0x31091c=_0x58e0b4;this['_submitter'][_0x31091c(0x289)]();}};J=kn=H([V(0x5,_0x5a17cb(_0x42cf99)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x1db1d2),V(0x8,_0x273710),V(0x9,_0x1ce01e),V(0xa,_0xbb7bbe),V(0xb,_0x16c3fa(U))],J);let Y=An=class extends G{constructor(_0x3fcdb4,_0x409e65,_0x359564,_0x5316d3,_0x8be267,_0x1f1284,_0x4ffddb,_0x3c5362,_0x2203f1,_0x43a45a,_0x5b094d,_0x90a2fd,_0x4e94af){const _0x2616b1=_0x58e0b4;super(_0x3fcdb4,_0x409e65,_0x359564,_0x5316d3,_0x8be267,_0x2203f1,_0x90a2fd,_0x3c5362,_0x4e94af),this[_0x2616b1(0x268)]=_0x4ffddb,this[_0x2616b1(0x401)]=_0x43a45a,this[_0x2616b1(0x3ca)]=_0x5b094d,this[_0x2616b1(0x38a)]=_0x4e94af,z(this,'status',_0x2616b1(0x1c1)),z(this,_0x2616b1(0x213),void 0x0),this[_0x2616b1(0x213)]=_0x1f1284??this[_0x2616b1(0x1e4)](_0x359564),this[_0x2616b1(0x213)][_0x2616b1(0x36e)](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x1f1284||this['_submitter']['armAckTimeout']();}[_0x58e0b4(0x21e)](_0x2e73ee){return this['_pendingMutations']['push'](_0x2e73ee),this['_updateLocalCache'](),this;}[_0x58e0b4(0x35a)](_0x88dfee){const _0x1bf98d=_0x58e0b4;return this[_0x1bf98d(0x1ce)](_0x88dfee,{'onMissing':()=>(this[_0x1bf98d(0x31f)](),this[_0x1bf98d(0x268)][_0x1bf98d(0x1fc)](Q,this[_0x1bf98d(0x468)],this['type'],this[_0x1bf98d(0x37d)],this[_0x1bf98d(0x274)],null,[_0x88dfee],this[_0x1bf98d(0x3bd)],this[_0x1bf98d(0x213)])),'onApply':()=>this[_0x1bf98d(0x448)](_0x88dfee),'onRemoteRevert':()=>this[_0x1bf98d(0x250)](this[_0x1bf98d(0x3b8)](_0x88dfee))});}[_0x58e0b4(0x448)](_0x2de554){const _0x4f20d4=_0x58e0b4;try{let _0x19a653=this[_0x4f20d4(0x3ca)][_0x4f20d4(0x2c0)]([_0x2de554],[this[_0x4f20d4(0x37d)]],!0x1);if(_0xf5d392(_0x19a653)){let {c1Prime:_0x3849a4,c2Prime:_0x59452c}=_0x19a653,_0x5f4939=this[_0x4f20d4(0x3ca)][_0x4f20d4(0x155)](_0x3849a4[0x0],this[_0x4f20d4(0x274)]);if(_0x33aa8f(_0x5f4939)){let {c1Prime:_0x5151c4,m2Prime:_0x5ba47c}=_0x5f4939;this[_0x4f20d4(0x402)](_0x5151c4),_0x59452c[0x0][_0x4f20d4(0x2a2)]=this[_0x4f20d4(0x171)](),this[_0x4f20d4(0x31f)]();let _0x2e3464=this[_0x4f20d4(0x268)]['createInstance'](An,this[_0x4f20d4(0x468)],this[_0x4f20d4(0x222)],_0x59452c[0x0],_0x5ba47c,this[_0x4f20d4(0x3bd)],this['_submitter']);return _0x2e3464[_0x4f20d4(0x2c2)](),_0x2e3464;}throw _0x5f4939['error'];}throw _0x19a653[_0x4f20d4(0x2fa)];}catch(_0x35010f){return this['_logService']['error'](_0x35010f),this['_onConflict'](this['_conflictInfoFromError'](_0x35010f));}}[_0x58e0b4(0x458)](_0x5c1235){const _0x157f44=_0x58e0b4;switch(this['_classifyAck'](_0x5c1235)){case _0x157f44(0x170):return this[_0x157f44(0x401)][_0x157f44(0x36f)](_0x157f44(0x3b0),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x5c1235[_0x157f44(0x393)]+_0x157f44(0x3aa)+this[_0x157f44(0x171)]()+'.'),this;case _0x157f44(0x1d8):return this[_0x157f44(0x213)][_0x157f44(0x1d3)](),this[_0x157f44(0x34a)]();case _0x157f44(0x166):return this[_0x157f44(0x213)]['dispose'](),this[_0x157f44(0x2f8)](_0x5c1235[_0x157f44(0x393)]),this[_0x157f44(0x268)][_0x157f44(0x1fc)](Q,this[_0x157f44(0x468)],this['type'],this[_0x157f44(0x37d)],this[_0x157f44(0x274)],_0x5c1235[_0x157f44(0x393)],[],this[_0x157f44(0x3bd)],void 0x0);case _0x157f44(0x450):return this[_0x157f44(0x213)][_0x157f44(0x1d3)](),this[_0x157f44(0x1f4)](),this['_toPending']();}}[_0x58e0b4(0x34a)](){const _0x250424=_0x58e0b4;let _0x4f2730=this[_0x250424(0x268)][_0x250424(0x1fc)](q,this['unitID'],this['type'],this[_0x250424(0x274)],this['_handler']);return _0x4f2730['_schedule'](),_0x4f2730[_0x250424(0x2c2)](),_0x4f2730;}[_0x58e0b4(0x354)](_0x59773a){return this['_onConflict'](this['_rejectionInfo'](_0x59773a));}[_0x58e0b4(0x14a)](_0x1902f9,_0x5746ef){const _0x3fcaa7=_0x58e0b4;var _0x2cc264;return _0x1902f9[_0x3fcaa7(0x42e)]===((_0x2cc264=this[_0x3fcaa7(0x37d)])==null?void 0x0:_0x2cc264[_0x3fcaa7(0x42e)])&&this[_0x3fcaa7(0x213)][_0x3fcaa7(0x294)](this['_retryReason'](_0x5746ef)),this;}[_0x58e0b4(0x292)](){const _0x208cf0=_0x58e0b4;return this[_0x208cf0(0x213)][_0x208cf0(0x1d3)](),this['_injector'][_0x208cf0(0x1fc)](Z,this['unitID'],this['type'],this[_0x208cf0(0x37d)],this[_0x208cf0(0x274)],this[_0x208cf0(0x3bd)]);}[_0x58e0b4(0x220)](){return this;}[_0x58e0b4(0x42d)](_0x1775f7=_0x58e0b4(0x296)){const _0x3d0635=_0x58e0b4;this['_submitter'][_0x3d0635(0x214)](this['_awaitingChangeset'],this[_0x3d0635(0x211)](),_0x1775f7);}[_0x58e0b4(0x250)](_0x2e0e7c){const _0x4c524b=_0x58e0b4;return this[_0x4c524b(0x213)][_0x4c524b(0x1d3)](),this[_0x4c524b(0x268)][_0x4c524b(0x1fc)](X,this[_0x4c524b(0x468)],this[_0x4c524b(0x222)],this[_0x4c524b(0x37d)],this['_pendingMutations'],this[_0x4c524b(0x3bd)],_0x2e0e7c);}[_0x58e0b4(0x1d3)](){const _0x18a359=_0x58e0b4;this['_submitter'][_0x18a359(0x1d3)]();}[_0x58e0b4(0x31f)](){const _0x3b6290=_0x58e0b4;this[_0x3b6290(0x213)][_0x3b6290(0x289)]();}};Y=An=H([V(0x6,_0x5a17cb(_0x42cf99)),V(0x7,_0x5a17cb(_0x1f2446)),V(0x8,_0x1db1d2),V(0x9,_0x273710),V(0xa,_0x1ce01e),V(0xb,_0xbb7bbe),V(0xc,_0x16c3fa(U))],Y);let X=class extends G{constructor(_0x2ef92f,_0xcc8ca6,_0x4372e4,_0x1127d6,_0x192edb,_0x134d5f,_0x2167dd,_0x57fd8e,_0x2113ee,_0x5703cf,_0x7ab298,_0x3dafc6,_0x35d210,_0x5174b2){const _0x569794=_0x58e0b4;var _0x1cdd1e;super(_0x2ef92f,_0xcc8ca6,_0x4372e4,_0x1127d6,_0x192edb,_0x57fd8e,_0x2113ee,_0x5703cf,_0x5174b2),this[_0x569794(0x37c)]=_0x134d5f,this['_permissionService']=_0x2167dd,this['_userManagerService']=_0x7ab298,this['_logService']=_0x3dafc6,this['_collaborationUIEventService']=_0x35d210,this[_0x569794(0x38a)]=_0x5174b2,z(this,'status',_0x569794(0x3ce)),z(this,_0x569794(0x46d),void 0x0);let _0x199ed4=((_0x1cdd1e=this[_0x569794(0x260)][_0x569794(0x3b3)]())==null?void 0x0:_0x1cdd1e['userID'])??'';this['localChanges']=_0x4372e4||_0x1127d6[_0x569794(0x2bb)]?{'unitID':_0x2ef92f,'userId':_0x199ed4||void 0x0,'type':_0xcc8ca6,'rev':this[_0x569794(0x171)](),'awaitingChangeset':_0x4372e4,'mutations':_0x1127d6}:null,this[_0x569794(0x18c)](),this[_0x569794(0x389)](),this['_prepareConflictRecovery'](_0x199ed4)[_0x569794(0x3c3)](_0x452cc8=>this['_logService'][_0x569794(0x2fa)](_0x452cc8));}async[_0x58e0b4(0x37f)](_0x2ea47){const _0x3cbbfe=_0x58e0b4;var _0x14ca76,_0x13ebbb,_0x3f9b2b,_0x12e5f9;await((_0x14ca76=this[_0x3cbbfe(0x13e)])==null||(_0x13ebbb=_0x14ca76[_0x3cbbfe(0x259)])==null?void 0x0:_0x13ebbb[_0x3cbbfe(0x374)](_0x14ca76,this[_0x3cbbfe(0x468)],this['info'][_0x3cbbfe(0x1b8)],_0x2ea47)[_0x3cbbfe(0x3c3)](()=>void 0x0));let _0x29eb90=!0x0;try{var _0x5cb4f4;await((_0x5cb4f4=this[_0x3cbbfe(0x13e)])==null?void 0x0:_0x5cb4f4[_0x3cbbfe(0x17d)](this[_0x3cbbfe(0x468)],_0x2ea47));}catch{_0x29eb90=!0x1,this['_collaborationUIEventService'][_0x3cbbfe(0x3c1)]({'id':_0x3cbbfe(0x3fb),'unitID':this[_0x3cbbfe(0x468)],'userId':_0x2ea47});}(_0x3f9b2b=(_0x12e5f9=this[_0x3cbbfe(0x3bd)])[_0x3cbbfe(0x18f)])==null||_0x3f9b2b[_0x3cbbfe(0x374)](_0x12e5f9,this[_0x3cbbfe(0x37c)],this[_0x3cbbfe(0x46d)],_0x29eb90);}[_0x58e0b4(0x21e)](){return this;}['onRemoteChangeset'](){return this;}[_0x58e0b4(0x458)](){return this;}[_0x58e0b4(0x354)](){return this;}[_0x58e0b4(0x14a)](){return this;}[_0x58e0b4(0x292)](){return this;}[_0x58e0b4(0x220)](){return this;}[_0x58e0b4(0x42d)](){const _0x339d93=_0x58e0b4;throw Error(_0x339d93(0x1e1));}[_0x58e0b4(0x389)](){const _0x16f581=_0x58e0b4;this[_0x16f581(0x2ad)]['emitEvent']({'id':_0x16f581(0x29e),'unitID':this[_0x16f581(0x468)]});}[_0x58e0b4(0x18c)](){const _0x477692=_0x58e0b4;this[_0x477692(0x397)][_0x477692(0x454)](new _0x50e04b(this[_0x477692(0x468)])['id'],!0x1);}};X=H([V(0x6,_0x5a17cb(_0x4bb697)),V(0x7,_0x1db1d2),V(0x8,_0xbb7bbe),V(0x9,_0x5a17cb(_0x1f2446)),V(0xa,_0x5a17cb(_0x5be06a)),V(0xb,_0x273710),V(0xc,_0x5a17cb(B)),V(0xd,_0x16c3fa(U))],X);let Z=class extends G{constructor(_0x4a69f2,_0x5dff62,_0x45fc8b,_0xd96821,_0x35f6ca,_0x5270c8,_0x286f03,_0x4235dc,_0x517206,_0x5c9600,_0x5d3730){const _0x3e440b=_0x58e0b4;super(_0x4a69f2,_0x5dff62,_0x45fc8b,_0xd96821,_0x35f6ca,_0x4235dc,_0x517206,_0x286f03,_0x5d3730),this[_0x3e440b(0x268)]=_0x5270c8,this[_0x3e440b(0x401)]=_0x5c9600,z(this,'status',_0x3e440b(0x3e2));}[_0x58e0b4(0x21e)](_0x18585e){const _0x1caaf9=_0x58e0b4;return this[_0x1caaf9(0x274)][_0x1caaf9(0x3ad)](_0x18585e),this[_0x1caaf9(0x2c2)](),this;}[_0x58e0b4(0x35a)](_0x355d66){const _0x4afb46=_0x58e0b4;return this[_0x4afb46(0x401)][_0x4afb46(0x36f)](_0x4afb46(0x239),_0x4afb46(0x20e)+_0x355d66[_0x4afb46(0x393)]+'.'),this;}[_0x58e0b4(0x458)](_0x407203){const _0x2d92ba=_0x58e0b4;return this[_0x2d92ba(0x401)][_0x2d92ba(0x36f)](_0x2d92ba(0x239),_0x2d92ba(0x2f9)+_0x407203[_0x2d92ba(0x393)]+'.'),this;}[_0x58e0b4(0x354)](){const _0x579509=_0x58e0b4;return this['_logService'][_0x579509(0x36f)](_0x579509(0x239),_0x579509(0x349)),this;}['onRemoteRetry'](){return this;}[_0x58e0b4(0x292)](){return this;}[_0x58e0b4(0x220)](){const _0x50890f=_0x58e0b4;let {_injector:_0x28f7b8,_pendingMutations:_0x3ef2d8,_awaitingChangeset:_0x48a036,unitID:_0x555cc7,_handler:_0x369e91,type:_0x57475a}=this,_0x4a9b17=Pn(_0x28f7b8,_0x555cc7,_0x57475a,_0x48a036,_0x3ef2d8,_0x369e91);return _0x4a9b17 instanceof q?_0x4a9b17[_0x50890f(0x2b3)]():(_0x4a9b17 instanceof Y||_0x4a9b17 instanceof J)&&_0x4a9b17['resend'](),_0x4a9b17;}[_0x58e0b4(0x42d)](){const _0x1703a9=_0x58e0b4;throw Error(_0x1703a9(0x225));}};Z=H([V(0x5,_0x5a17cb(_0x42cf99)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x1db1d2),V(0x8,_0xbb7bbe),V(0x9,_0x273710),V(0xa,_0x16c3fa(U))],Z);let Q=class extends G{constructor(_0x29027f,_0x1cc86b,_0x6d7c13,_0xa8bef6,_0x3b2288,_0x3726c8,_0x3c41e5,_0x566e80,_0x213eae,_0x22238e,_0x2fa09c,_0x1398a6,_0xd2406c,_0x3df31f,_0x30ab91){const _0x381e34=_0x58e0b4;super(_0x29027f,_0x1cc86b,_0x6d7c13,_0xa8bef6,_0x3c41e5,_0x1398a6,_0xd2406c,_0x22238e,_0x30ab91),this['_acknowledgedAwaitingRevision']=_0x3b2288,this[_0x381e34(0x428)]=_0x3726c8,this['_submitter']=_0x566e80,this['_injector']=_0x213eae,this[_0x381e34(0x401)]=_0x2fa09c,this[_0x381e34(0x3ca)]=_0x3df31f,this[_0x381e34(0x38a)]=_0x30ab91,z(this,_0x381e34(0x20f),_0x381e34(0x419));}[_0x58e0b4(0x1f0)](_0x2f7644){const _0x2d65cd=_0x58e0b4;try{if(this[_0x2d65cd(0x16c)](_0x2f7644)[_0x2d65cd(0x23e)])throw Error(_0x2d65cd(0x2b4));if(this[_0x2d65cd(0x16c)]([...this[_0x2d65cd(0x428)]][_0x2d65cd(0x153)]((_0x3c3ead,_0x33164e)=>_0x3c3ead[_0x2d65cd(0x393)]-_0x33164e[_0x2d65cd(0x393)]))[_0x2d65cd(0x23e)])return this['_queuedRemoteChangesets']=[],this[_0x2d65cd(0x2c2)](),this[_0x2d65cd(0x3bd)][_0x2d65cd(0x30a)]({'from':this[_0x2d65cd(0x171)](),'to':0x0}),this;let _0x1e44e8=this[_0x2d65cd(0x37d)],_0x3589d2=this['_pendingMutations'],_0x300387;if(_0x1e44e8&&_0x3589d2['length']!==0x0)_0x300387=this[_0x2d65cd(0x268)][_0x2d65cd(0x1fc)](Y,this[_0x2d65cd(0x468)],this[_0x2d65cd(0x222)],_0x1e44e8,_0x3589d2,this['_handler'],this['_submitter']);else{if(_0x1e44e8&&_0x3589d2['length']===0x0)_0x1e44e8['baseRev']=this[_0x2d65cd(0x171)](),_0x300387=this['_injector'][_0x2d65cd(0x1fc)](J,this['unitID'],this[_0x2d65cd(0x222)],_0x1e44e8,this[_0x2d65cd(0x3bd)],this[_0x2d65cd(0x213)]);else{if(_0x3589d2['length']!==0x0){let _0xb571f8=this[_0x2d65cd(0x268)][_0x2d65cd(0x1fc)](q,this['unitID'],this['type'],_0x3589d2,this[_0x2d65cd(0x3bd)]);_0xb571f8['_schedule'](),_0x300387=_0xb571f8;}else _0x300387=this[_0x2d65cd(0x268)]['createInstance'](K,this[_0x2d65cd(0x468)],this['type'],this[_0x2d65cd(0x3bd)]);}}return _0x300387[_0x2d65cd(0x2c2)](),_0x300387;}catch(_0x35676e){return _0x35676e instanceof Mn?(this[_0x2d65cd(0x401)][_0x2d65cd(0x36f)]('[FetchMissState]',_0x35676e[_0x2d65cd(0x360)]),this[_0x2d65cd(0x250)](_0x35676e['info'])):(this['_logService'][_0x2d65cd(0x2fa)]('[FetchMissState]',_0x2d65cd(0x26d),_0x35676e),this[_0x2d65cd(0x250)](this['_conflictInfoFromError'](_0x35676e)));}}['_handleRemoteChangesets'](_0x5c332d){const _0x4c4ef7=_0x58e0b4;this[_0x4c4ef7(0x2df)]();for(let _0x4bcdd5=0x0;_0x4bcdd5<_0x5c332d[_0x4c4ef7(0x2bb)];_0x4bcdd5++){let _0x5f35f2=_0x5c332d[_0x4bcdd5];switch(this[_0x4c4ef7(0x355)](_0x5f35f2)){case _0x4c4ef7(0x476):{let _0x3f934a=this[_0x4c4ef7(0x171)]();if(_0x5f35f2[_0x4c4ef7(0x393)]>_0x3f934a+0x1)return{'missingChangesets':!0x0};_0x5f35f2['revision']<=_0x3f934a?this['_dropAcknowledgedAwaiting']():this[_0x4c4ef7(0x26c)]();break;}case'remote_revert':throw new Mn(this['_remoteRevertInfo'](_0x5f35f2));case'applied':break;case _0x4c4ef7(0x166):return{'missingChangesets':!0x0};case _0x4c4ef7(0x1e5):this[_0x4c4ef7(0x2c7)](_0x5f35f2),this[_0x4c4ef7(0x2df)]();}}return{'missingChangesets':!0x1};}[_0x58e0b4(0x2c7)](_0x3cb6d6){const _0x4659da=_0x58e0b4;let _0x511c0b=_0x3cb6d6,_0x378082=this[_0x4659da(0x37d)];if(_0x378082){let _0x3b4519=this[_0x4659da(0x3ca)][_0x4659da(0x2c0)]([_0x3cb6d6],[_0x378082],!0x1);if(!_0xf5d392(_0x3b4519))throw _0x3b4519[_0x4659da(0x2fa)];_0x511c0b=_0x3b4519['c1Prime'][0x0],_0x378082=_0x3b4519[_0x4659da(0x2eb)][0x0];}let _0x516c79=this['_pendingMutations'];if(_0x516c79[_0x4659da(0x2bb)]){let _0x5b9abc=this[_0x4659da(0x3ca)][_0x4659da(0x155)](_0x511c0b,_0x516c79);if(!_0x33aa8f(_0x5b9abc))throw _0x5b9abc[_0x4659da(0x2fa)];_0x511c0b=_0x5b9abc[_0x4659da(0x45f)],_0x516c79=_0x5b9abc[_0x4659da(0x1a6)];}this[_0x4659da(0x402)](_0x511c0b),_0x378082&&(_0x378082['baseRev']=this[_0x4659da(0x171)]()),this[_0x4659da(0x37d)]=_0x378082,this[_0x4659da(0x274)]=_0x516c79;}[_0x58e0b4(0x2df)](){const _0x559d80=_0x58e0b4;if(!this[_0x559d80(0x37d)]||this[_0x559d80(0x295)]==null)return;let _0x166f05=this[_0x559d80(0x171)]();if(this[_0x559d80(0x295)]<=_0x166f05)throw Error(_0x559d80(0x44b)+this[_0x559d80(0x295)]+'.');this[_0x559d80(0x295)]===_0x166f05+0x1&&this[_0x559d80(0x26c)]();}[_0x58e0b4(0x26c)](){const _0x3623f2=_0x58e0b4;this[_0x3623f2(0x1f4)](),this[_0x3623f2(0x3d3)]();}[_0x58e0b4(0x3d3)](){const _0x491f16=_0x58e0b4;this[_0x491f16(0x37d)]=null,this[_0x491f16(0x295)]=null,this['_disposeSubmitter']();}[_0x58e0b4(0x27f)](){const _0x5ecdd3=_0x58e0b4;var _0x1b5e03;(_0x1b5e03=this[_0x5ecdd3(0x213)])==null||_0x1b5e03['dispose'](),this[_0x5ecdd3(0x213)]=void 0x0;}[_0x58e0b4(0x1d3)](){const _0x271abf=_0x58e0b4;this[_0x271abf(0x27f)]();}[_0x58e0b4(0x42d)](){const _0x344a75=_0x58e0b4;throw Error(_0x344a75(0x291));}['appendMutation'](_0x2f4f4c){const _0x2863cd=_0x58e0b4;return this[_0x2863cd(0x274)][_0x2863cd(0x3ad)](_0x2f4f4c),this[_0x2863cd(0x2c2)](),this;}[_0x58e0b4(0x35a)](_0x27c38e){const _0x130451=_0x58e0b4;return this[_0x130451(0x428)][_0x130451(0x3ad)](_0x27c38e),this;}[_0x58e0b4(0x458)](_0x4c23d6){const _0x2f5758=_0x58e0b4;let _0x2b15e8=this['_classifyAck'](_0x4c23d6);if(this[_0x2f5758(0x37d)]){switch(_0x2b15e8){case _0x2f5758(0x1d8):this[_0x2f5758(0x3d3)]();break;case'stale':break;case _0x2f5758(0x450):this['_acknowledgeAwaiting']();break;case _0x2f5758(0x166):this[_0x2f5758(0x295)]=_0x4c23d6[_0x2f5758(0x393)],this[_0x2f5758(0x27f)]();}return this;}if(_0x2b15e8===_0x2f5758(0x170))return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x58e0b4(0x354)](_0x58a512){const _0x4618e5=_0x58e0b4;return this[_0x4618e5(0x250)](this[_0x4618e5(0x3be)](_0x58a512));}[_0x58e0b4(0x14a)](_0x245f49,_0x110f9f){const _0x25ebfc=_0x58e0b4;var _0x22d3f1;return this['_acknowledgedAwaitingRevision']!=null||_0x245f49['reqId']!==((_0x22d3f1=this[_0x25ebfc(0x37d)])==null?void 0x0:_0x22d3f1[_0x25ebfc(0x42e)])||(this[_0x25ebfc(0x213)]??=this[_0x25ebfc(0x1e4)](this[_0x25ebfc(0x37d)]),this[_0x25ebfc(0x213)]['requestRetry'](this['_retryReason'](_0x110f9f))),this;}[_0x58e0b4(0x292)](){const _0x12aeca=_0x58e0b4;return this[_0x12aeca(0x27f)](),this[_0x12aeca(0x268)][_0x12aeca(0x1fc)](Z,this[_0x12aeca(0x468)],this[_0x12aeca(0x222)],this[_0x12aeca(0x37d)],this[_0x12aeca(0x274)],this['_handler']);}[_0x58e0b4(0x220)](){return this;}[_0x58e0b4(0x250)](_0x22bb42){const _0x119ef9=_0x58e0b4;return this['_disposeSubmitter'](),this[_0x119ef9(0x268)][_0x119ef9(0x1fc)](X,this['unitID'],this['type'],this[_0x119ef9(0x37d)],this[_0x119ef9(0x274)],this[_0x119ef9(0x3bd)],_0x22bb42);}};Q=H([V(0x8,_0x5a17cb(_0x42cf99)),V(0x9,_0x5a17cb(_0x1f2446)),V(0xa,_0x273710),V(0xb,_0x1db1d2),V(0xc,_0xbb7bbe),V(0xd,_0x1ce01e),V(0xe,_0x16c3fa(U))],Q);function Pn(_0x5595c3,_0x110ee4,_0x8b2925,_0x3f8117,_0x591f7b,_0x4b17b8){const _0x4fc5c9=_0x58e0b4;return _0x3f8117&&_0x591f7b[_0x4fc5c9(0x2bb)]?_0x5595c3[_0x4fc5c9(0x1fc)](Y,_0x110ee4,_0x8b2925,_0x3f8117,_0x591f7b,_0x4b17b8,void 0x0):_0x3f8117?_0x5595c3[_0x4fc5c9(0x1fc)](J,_0x110ee4,_0x8b2925,_0x3f8117,_0x4b17b8,void 0x0):_0x591f7b[_0x4fc5c9(0x2bb)]?_0x5595c3[_0x4fc5c9(0x1fc)](q,_0x110ee4,_0x8b2925,_0x591f7b,_0x4b17b8):_0x5595c3[_0x4fc5c9(0x1fc)](K,_0x110ee4,_0x8b2925,_0x4b17b8);}let $=class extends _0x3129e8{get['state'](){const _0x87cf37=_0x58e0b4;return this[_0x87cf37(0x352)];}constructor(_0x24254c,_0x4b0afb,_0x7778aa,_0x2fed2b,_0x34b0ee,_0x19ab38,_0x226006,_0x2d1ec4,_0x239ae0,_0x2317b8,_0x2a5ff6,_0x38125c,_0x364b84,_0x53bc05){const _0x29d655=_0x58e0b4;super(),this[_0x29d655(0x468)]=_0x24254c,this[_0x29d655(0x315)]=_0x4b0afb,this[_0x29d655(0x2af)]=_0x7778aa,this[_0x29d655(0x268)]=_0x2fed2b,this[_0x29d655(0x391)]=_0x34b0ee,this[_0x29d655(0x41c)]=_0x19ab38,this[_0x29d655(0x3a5)]=_0x226006,this[_0x29d655(0x359)]=_0x2d1ec4,this['_univerInstanceService']=_0x239ae0,this[_0x29d655(0x401)]=_0x2317b8,this[_0x29d655(0x3ae)]=_0x2a5ff6,this[_0x29d655(0x397)]=_0x38125c,this[_0x29d655(0x143)]=_0x364b84,this[_0x29d655(0x13e)]=_0x53bc05,z(this,_0x29d655(0x233),new _0xabbeab(null)),z(this,_0x29d655(0x380),this[_0x29d655(0x233)]['asObservable']()),z(this,'_state',void 0x0),z(this,_0x29d655(0x464),!0x1),z(this,'_changesetSessionId',''),z(this,'_changesetReqId',0x0),z(this,_0x29d655(0x456),this['state$'][_0x29d655(0x3dc)](_0x5d906a(_0xb73e3e=>_0xb73e3e?_0xb73e3e[_0x29d655(0x20f)]:_0x29d655(0x3e2)),_0x1ab590({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x29d655(0x2b2),new _0x5159b6()),z(this,_0x29d655(0x28b),this['_changesetResend$'][_0x29d655(0x42c)]()),z(this,_0x29d655(0x2e8),new _0x5159b6()),z(this,_0x29d655(0x43c),this[_0x29d655(0x2e8)][_0x29d655(0x42c)]()),z(this,'_transitionLocked',!0x1),z(this,'_remoteChangesetQueue',[]);}async['init'](){const _0x4910a6=_0x58e0b4;if(this['state'])throw Error(_0x4910a6(0x261));await this['_init']();}['pauseCollaboration'](){const _0x593ae4=_0x58e0b4;return this[_0x593ae4(0x464)]=!0x0,_0x238621(()=>{const _0x39b5cd=_0x593ae4;this[_0x39b5cd(0x464)]=!0x1,this[_0x39b5cd(0x38e)]();});}[_0x58e0b4(0x1b3)](_0xbbb1ee){this['_onLocalMutation'](_0xbbb1ee);}[_0x58e0b4(0x1c2)](){const _0x2a479f=_0x58e0b4;var _0x5f5785;return((_0x5f5785=this[_0x2a479f(0x352)])==null?void 0x0:_0x5f5785[_0x2a479f(0x337)]())??!0x1;}[_0x58e0b4(0x1d3)](){const _0x36d695=_0x58e0b4;var _0x5a65d0;super[_0x36d695(0x1d3)](),(_0x5a65d0=this[_0x36d695(0x352)])==null||_0x5a65d0[_0x36d695(0x1d3)](),this['_changesetResend$']['complete'](),this['_conflict$'][_0x36d695(0x19a)]();}[_0x58e0b4(0x3cf)](_0x3970f4){const _0x5cfa88=_0x58e0b4;this['_state']=_0x3970f4,this[_0x5cfa88(0x233)][_0x5cfa88(0x450)](_0x3970f4);}async['_init'](){const _0x3aed97=_0x58e0b4;if(this[_0x3aed97(0x3cf)](await this['_createInitialState']()),this[_0x3aed97(0x143)]){var _0x486d65;(_0x486d65=this[_0x3aed97(0x143)])==null||_0x486d65[_0x3aed97(0x198)](this[_0x3aed97(0x468)]),this[_0x3aed97(0x398)](this[_0x3aed97(0x143)][_0x3aed97(0x338)](this['unitID'])[_0x3aed97(0x377)](_0x25e1b0=>{const _0x4faffd=_0x3aed97;this[_0x4faffd(0x401)][_0x4faffd(0x36f)](_0x4faffd(0x447),'editing\x20status\x20changed\x20to',_0x25e1b0),_0x25e1b0===0x1?(this[_0x4faffd(0x359)]['emitEvent']({'id':'OTHER_CLIENT_EDITING'}),this[_0x4faffd(0x397)][_0x4faffd(0x454)](new _0x50e04b(this[_0x4faffd(0x468)])['id'],!0x1),this[_0x4faffd(0x397)][_0x4faffd(0x34d)](!0x1)):(this[_0x4faffd(0x397)]['updatePermissionPoint'](new _0x50e04b(this[_0x4faffd(0x468)])['id'],!0x0),this[_0x4faffd(0x397)][_0x4faffd(0x34d)](!0x0));}));}let _0x1cf14b=!0x1;return this[_0x3aed97(0x398)](this[_0x3aed97(0x315)][_0x3aed97(0x28f)][_0x3aed97(0x377)](_0x2d5f8a=>{const _0x64ac8d=_0x3aed97;_0x2d5f8a===0x3?this['_toggleOnline'](_0x1cf14b):_0x2d5f8a===0x2&&(_0x1cf14b=!0x0,this[_0x64ac8d(0x1a3)]());})),this[_0x3aed97(0x398)](this[_0x3aed97(0x315)][_0x3aed97(0x206)][_0x3aed97(0x377)](_0x4dd0fc=>{const _0x454e4a=_0x3aed97;try{switch(_0x4dd0fc[_0x454e4a(0x2e9)]){case _0x43c2b6[_0x454e4a(0x39d)]:this['_onRemoteChangeset'](_0x268c32(_0x4dd0fc[_0x454e4a(0x1d7)]));break;case _0x43c2b6[_0x454e4a(0x317)]:this[_0x454e4a(0x2e0)](_0x4dd0fc[_0x454e4a(0x1d7)]);break;case _0x43c2b6[_0x454e4a(0x3a2)]:this['_onRemoteRejected']({'isPermissionRej':!0x1,'reason':_0x4dd0fc[_0x454e4a(0x1b8)],'code':_0x4dd0fc[_0x454e4a(0x2ea)]});break;case _0x43c2b6[_0x454e4a(0x1f8)]:{let _0x588cdc=_0x4dd0fc;this['_onRemoteRetry'](_0x588cdc[_0x454e4a(0x1d7)],_0x588cdc[_0x454e4a(0x2ea)]);break;}case _0x43c2b6[_0x454e4a(0x31d)]:this['_onFetchMissResult'](_0x4dd0fc['data'][_0x454e4a(0x3c5)][_0x454e4a(0x3da)](_0x30c987=>_0x268c32(_0x30c987)));break;case _0x43c2b6[_0x454e4a(0x25b)]:this['_onRemoteRejected']({'isPermissionRej':!0x0,'reason':_0x4dd0fc[_0x454e4a(0x1b8)],'code':_0x4dd0fc['code']});break;case _0x43c2b6[_0x454e4a(0x303)]:}}catch(_0x374be4){throw console['error'](_0x454e4a(0x235),_0x374be4),_0x374be4;}})),this['_state'];}[_0x58e0b4(0x1a0)](){const _0x3083d9=_0x58e0b4;this[_0x3083d9(0x466)]=!0x1;}['_lockTransition'](){const _0x3fab88=_0x58e0b4;if(this[_0x3fab88(0x466)])throw Error('[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.');this['_transitionLocked']=!0x0;}[_0x58e0b4(0x219)](_0x27b35a){const _0x54cd33=_0x58e0b4;this[_0x54cd33(0x2a4)]();try{this[_0x54cd33(0x3cf)](_0x27b35a());}finally{this[_0x54cd33(0x1a0)]();}}[_0x58e0b4(0x39c)](_0x72a530){const _0x2407d9=_0x58e0b4;this[_0x2407d9(0x219)](()=>this[_0x2407d9(0x352)][_0x2407d9(0x21e)](_0x72a530));}['_onRemoteChangeset'](_0x48f7e3){const _0x2f0705=_0x58e0b4;this[_0x2f0705(0x464)]?this[_0x2f0705(0x388)]['push'](_0x48f7e3):this[_0x2f0705(0x1b5)](_0x48f7e3);}[_0x58e0b4(0x38e)](){const _0x5d9b49=_0x58e0b4;this[_0x5d9b49(0x388)]['forEach'](_0x31a4b1=>this[_0x5d9b49(0x1b5)](_0x31a4b1)),this[_0x5d9b49(0x388)]=[];}['_applyRemoteChangeset'](_0x1d2a22){const _0x5b19bb=_0x58e0b4;let _0x1bd0f6=this[_0x5b19bb(0x391)][_0x5b19bb(0x42a)][_0x5b19bb(0x249)](this['_compressMutationService'][_0x5b19bb(0x42a)][_0x5b19bb(0x416)]()[_0x5b19bb(0x33b)])(_0x1d2a22[_0x5b19bb(0x17f)],null)||_0x1d2a22[_0x5b19bb(0x17f)],_0x3b957b={..._0x1d2a22,'mutations':_0x1bd0f6};this[_0x5b19bb(0x219)](()=>this[_0x5b19bb(0x352)][_0x5b19bb(0x35a)](_0x3b957b));}[_0x58e0b4(0x2e0)](_0x5c4146){const _0x7591b0=_0x58e0b4;this[_0x7591b0(0x219)](()=>this[_0x7591b0(0x352)][_0x7591b0(0x458)](_0x5c4146));}[_0x58e0b4(0x180)](_0x23bf3a){const _0xfb2c41=_0x58e0b4;this[_0xfb2c41(0x219)](()=>this[_0xfb2c41(0x352)]['onRemoteRej'](_0x23bf3a));}[_0x58e0b4(0x16d)](_0x568a6a,_0xb0679e){const _0x1306bb=_0x58e0b4;this['_transit'](()=>this[_0x1306bb(0x352)][_0x1306bb(0x14a)](_0x568a6a,_0xb0679e));}['_onFetchMissResult'](_0x2ed41f){const _0x1a3479=_0x58e0b4;let _0x3ea472=this[_0x1a3479(0x352)];if(!(_0x3ea472 instanceof Q))throw TypeError(_0x1a3479(0x3a4));let _0x33c72f=_0x2ed41f[_0x1a3479(0x3da)](_0x5a85fb=>{const _0x355422=_0x1a3479;let _0x586ed3=this[_0x355422(0x391)][_0x355422(0x42a)][_0x355422(0x249)](this['_compressMutationService']['interceptor'][_0x355422(0x416)]()[_0x355422(0x33b)])(_0x5a85fb['mutations'],null)||_0x5a85fb[_0x355422(0x17f)];return{..._0x5a85fb,'mutations':_0x586ed3};});this[_0x1a3479(0x219)](()=>_0x3ea472['onMissedChangesetFetched'](_0x33c72f));}[_0x58e0b4(0x1a3)](){const _0x42f592=_0x58e0b4;this[_0x42f592(0x219)](()=>this[_0x42f592(0x352)]['toggleOffline']());}[_0x58e0b4(0x312)](_0x1f08e1=!0x1){const _0x5d68ed=_0x58e0b4;this[_0x5d68ed(0x219)](()=>this[_0x5d68ed(0x352)][_0x5d68ed(0x220)]());let _0x1174a0=this[_0x5d68ed(0x352)];_0x1f08e1&&_0x1174a0 instanceof K&&this[_0x5d68ed(0x219)](()=>_0x1174a0[_0x5d68ed(0x46b)]());}async[_0x58e0b4(0x386)](){return new Promise(_0x55eb3c=>{const _0x4ca9db=_0x2b0c;this[_0x4ca9db(0x315)][_0x4ca9db(0x28f)][_0x4ca9db(0x3dc)](_0x61ef98(0x1))[_0x4ca9db(0x377)](async _0x5ef717=>{const _0x1fd54b=_0x4ca9db;_0x55eb3c(await this[_0x1fd54b(0x3d9)](_0x5ef717===0x3));});});}[_0x58e0b4(0x449)](){const _0x1e34e2=_0x58e0b4;let _0x3f9042=this['unitID'],_0x3553ad=this[_0x1e34e2(0x268)][_0x1e34e2(0x172)](_0xf6e881)[_0x1e34e2(0x21f)](R);return{'resendTimeouts':{'ackTimeout':_0x3553ad==null?void 0x0:_0x3553ad[_0x1e34e2(0x24b)],'maxAckTimeout':_0x3553ad==null?void 0x0:_0x3553ad[_0x1e34e2(0x2e2)]},'onStateChange':(_0x33e422,_0x3d4258)=>{const _0x486a72=_0x1e34e2;if(_0x33e422!==this[_0x486a72(0x352)])throw Error(_0x486a72(0x318)+_0x33e422['status']+'\x0aAfter:\x20'+_0x3d4258[_0x486a72(0x20f)]+_0x486a72(0x270)+this[_0x486a72(0x352)][_0x486a72(0x20f)]);this[_0x486a72(0x3cf)](_0x3d4258);},'onSendChangeset':(_0x3d228d,_0xc97381)=>{const _0x39b950=_0x1e34e2;_0x3d228d[_0x39b950(0x370)]||(_0x3d228d[_0x39b950(0x370)]=this[_0x39b950(0x418)],_0x3d228d[_0x39b950(0x42e)]=++this[_0x39b950(0x25f)]);let _0x5aed28={'eventID':_0x43c2b6[_0x39b950(0x2d9)],'data':{'unitID':_0x3d228d[_0x39b950(0x468)],'unitType':this[_0x39b950(0x2af)],'changeset':_0x3d228d,'memberID':this[_0x39b950(0x315)]['getMemberID']()}};return this[_0x39b950(0x315)][_0x39b950(0x30e)](_0x5aed28,this['unitID'],_0xc97381);},'onConflict':(_0x508a91,_0x36dcab,_0x2e6fb3)=>{const _0x280b21=_0x1e34e2;this[_0x280b21(0x2e8)]['closed']||this[_0x280b21(0x2e8)]['next']({'unitID':_0x3f9042,..._0x508a91,'localChanges':_0x36dcab,'cacheCleared':_0x2e6fb3});},'onChangesetResend':_0x17fe27=>{const _0x594109=_0x1e34e2;this[_0x594109(0x401)][_0x594109(0x36f)](_0x594109(0x447),'resent\x20changeset\x20'+_0x17fe27[_0x594109(0x42e)]+'\x20('+_0x17fe27['reason']+_0x594109(0x27c)+_0x17fe27[_0x594109(0x3e1)]+')'),queueMicrotask(()=>{const _0x339da1=_0x594109;this['_changesetResend$'][_0x339da1(0x328)]||this[_0x339da1(0x2b2)]['next']({'unitID':_0x3f9042,..._0x17fe27});});},'onMissingChangesets':({from:_0x3cd602,to:_0x487a4a})=>{const _0x121c36=_0x1e34e2;this['_logService']['debug'](_0x121c36(0x447),_0x121c36(0x1d9)+_0x3cd602+_0x121c36(0x36d)+_0x487a4a);let _0x4eecb2={'eventID':_0x43c2b6[_0x121c36(0x45d)],'data':{'unitID':_0x3f9042,'unitType':this[_0x121c36(0x2af)],'from':_0x3cd602,'to':_0x487a4a}};this[_0x121c36(0x315)][_0x121c36(0x30e)](_0x4eecb2,this['unitID']);}};}async[_0x58e0b4(0x3d9)](_0x40bacc){const _0xcba0df=_0x58e0b4;var _0x2b0eee;let _0x553b8b=await((_0x2b0eee=this['_localCacheService'])==null?void 0x0:_0x2b0eee[_0xcba0df(0x21d)](this[_0xcba0df(0x468)])),_0x3b9d66=(_0x553b8b==null?void 0x0:_0x553b8b[_0xcba0df(0x17f)])??[],_0x2c1993=(_0x553b8b==null?void 0x0:_0x553b8b[_0xcba0df(0x154)])??null,_0x264e9b=!!(_0x2c1993!=null&&_0x2c1993[_0xcba0df(0x370)])&&!!(_0x2c1993!=null&&_0x2c1993[_0xcba0df(0x42e)]);this['_changesetSessionId']=_0x264e9b?_0x2c1993[_0xcba0df(0x370)]:_0x48da7e(),this[_0xcba0df(0x25f)]=_0x264e9b?_0x2c1993[_0xcba0df(0x42e)]:0x0;let _0x31449d=this[_0xcba0df(0x468)];try{this[_0xcba0df(0x40a)](_0x2c1993,_0x3b9d66);}catch(_0x40566e){this['_logService'][_0xcba0df(0x2fa)](_0x40566e);}let _0x24febb=this[_0xcba0df(0x449)]();if(_0x40bacc){let _0x2ac885=Pn(this[_0xcba0df(0x268)],_0x31449d,this[_0xcba0df(0x2af)],_0x2c1993,_0x3b9d66,_0x24febb);return _0x2ac885 instanceof q?_0x2ac885[_0xcba0df(0x2b3)]():(_0x2ac885 instanceof Y||_0x2ac885 instanceof J)&&_0x2ac885[_0xcba0df(0x42d)](),_0x2ac885;}return this[_0xcba0df(0x268)][_0xcba0df(0x1fc)](Z,_0x31449d,this[_0xcba0df(0x2af)],_0x2c1993,_0x3b9d66,_0x24febb);}['_replayCachedMutations'](_0xdcfce6,_0x3ebe57){const _0x4095c1=_0x58e0b4;var _0x3d3681,_0x3b4a97;let _0x1ee5ef=this[_0x4095c1(0x391)][_0x4095c1(0x42a)][_0x4095c1(0x249)](this[_0x4095c1(0x391)][_0x4095c1(0x42a)][_0x4095c1(0x416)]()['COMPRESS_MUTATION_APPLY']);(_0x3d3681=_0x1ee5ef((_0xdcfce6==null?void 0x0:_0xdcfce6[_0x4095c1(0x17f)])||[],null))==null||_0x3d3681[_0x4095c1(0x266)](_0x2c766a=>this[_0x4095c1(0x3ae)][_0x4095c1(0x1fd)](_0x2c766a['id'],_0x2c766a[_0x4095c1(0x417)])),(_0x3b4a97=_0x1ee5ef(_0x3ebe57||[],null))==null||_0x3b4a97['forEach'](_0x204973=>this[_0x4095c1(0x3ae)]['executeCommand'](_0x204973['id'],_0x204973[_0x4095c1(0x417)]));}};$=H([V(0x3,_0x5a17cb(_0x42cf99)),V(0x4,_0x5a17cb(_0x53d75e)),V(0x5,_0x5a17cb(_0x4e02d2)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x5a17cb(B)),V(0x8,_0x2c297b),V(0x9,_0x273710),V(0xa,_0x1db1d2),V(0xb,_0x4bb697),V(0xc,_0x16c3fa(W)),V(0xd,_0x16c3fa(U))],$);let Fn=class extends ${constructor(_0x497ebf,_0x3530a3,_0x493567,_0x56cff9,_0x577b22,_0x1aa316,_0x684c72,_0x57bf30,_0x11b6ea,_0x4faa5e,_0x402156,_0x2617e6,_0x3f9e4d,_0x1fd536,_0x28da01){const _0x5ac7fc=_0x58e0b4;super(_0x497ebf,_0x493567,_0x3530a3,_0x56cff9,_0x577b22,_0x1aa316,_0x684c72,_0x57bf30,_0x11b6ea,_0x4faa5e,_0x402156,_0x2617e6,_0x1fd536,_0x28da01),this[_0x5ac7fc(0x468)]=_0x497ebf,this['type']=_0x3530a3,this[_0x5ac7fc(0x420)]=_0x3f9e4d,z(this,'_handlerCallback',null);}[_0x58e0b4(0x3ed)](_0x4d3d17){const _0x26da3d=_0x58e0b4;this[_0x26da3d(0x202)]=_0x4d3d17;}[_0x58e0b4(0x1d3)](){const _0x3a2478=_0x58e0b4;this[_0x3a2478(0x202)]=null,super[_0x3a2478(0x1d3)]();}[_0x58e0b4(0x449)](){const _0x3ad9fa=_0x58e0b4;let _0x487070=super[_0x3ad9fa(0x449)]();return _0x487070['onTransformIME']=_0x554d37=>{const _0x39538d=_0x3ad9fa;var _0x34d3bc,_0x2db4b3;return(_0x34d3bc=this['_handlerCallback'])==null||(_0x2db4b3=_0x34d3bc[_0x39538d(0x45b)])==null?void 0x0:_0x2db4b3[_0x39538d(0x374)](_0x34d3bc,_0x554d37);},_0x487070[_0x3ad9fa(0x1a8)]=_0x1ada3a=>{const _0x466a65=_0x3ad9fa;var _0x3b6d94,_0x218d6b;return(_0x3b6d94=this['_handlerCallback'])==null||(_0x218d6b=_0x3b6d94['onTransformState'])==null?void 0x0:_0x218d6b[_0x466a65(0x374)](_0x3b6d94,_0x1ada3a);},_0x487070['onPrepareTransformSelections']=_0x4670d5=>{const _0x2af8a6=_0x3ad9fa;var _0x262fc9,_0x419b11;return((_0x262fc9=this[_0x2af8a6(0x202)])==null||(_0x419b11=_0x262fc9[_0x2af8a6(0x1f5)])==null?void 0x0:_0x419b11[_0x2af8a6(0x374)](_0x262fc9,_0x4670d5))??null;},_0x487070[_0x3ad9fa(0x1c0)]=_0x3ec554=>{const _0x4f28e2=_0x3ad9fa;var _0x4e7117,_0xa3a93b;return(_0x4e7117=this[_0x4f28e2(0x202)])==null||(_0xa3a93b=_0x4e7117[_0x4f28e2(0x1c0)])==null?void 0x0:_0xa3a93b[_0x4f28e2(0x374)](_0x4e7117,_0x3ec554);},_0x487070[_0x3ad9fa(0x2a7)]=_0x5732e8=>{const _0x5a561d=_0x3ad9fa;var _0xc508d8,_0x517125;return(_0xc508d8=this['_handlerCallback'])==null||(_0x517125=_0xc508d8[_0x5a561d(0x2a7)])==null?void 0x0:_0x517125[_0x5a561d(0x374)](_0xc508d8,_0x5732e8);},_0x487070['onTransformRemoteChangesetByIMECache']=_0x1af0da=>{const _0x193ccf=_0x3ad9fa;var _0x176f17,_0x53da36;return((_0x176f17=this['_handlerCallback'])==null||(_0x53da36=_0x176f17['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x53da36[_0x193ccf(0x374)](_0x176f17,_0x1af0da))??_0x1af0da;},_0x487070['onTransformRemoteChangesetByStateCache']=_0x53f7a5=>{const _0x50cfe2=_0x3ad9fa;var _0x59b18b,_0x4f6c4f;return((_0x59b18b=this[_0x50cfe2(0x202)])==null||(_0x4f6c4f=_0x59b18b[_0x50cfe2(0x1a9)])==null?void 0x0:_0x4f6c4f[_0x50cfe2(0x374)](_0x59b18b,_0x53f7a5))??_0x53f7a5;},_0x487070;}async[_0x58e0b4(0x34f)](){const _0x1aa2a0=_0x58e0b4;let _0x331e3a=await super[_0x1aa2a0(0x34f)]();return this[_0x1aa2a0(0x398)](this[_0x1aa2a0(0x420)][_0x1aa2a0(0x1ba)][_0x1aa2a0(0x377)](_0x8d7330=>{const _0x28f21d=_0x1aa2a0;if(_0x8d7330==null||_0x8d7330[_0x28f21d(0x25c)]!==this[_0x28f21d(0x468)])return;let {commandId:_0x10ccbf,redoState:_0x1f02f1,unitId:_0x56ff10}=_0x8d7330,_0x4ab7dc={'id':_0x10ccbf,'type':_0x1d7a06[_0x28f21d(0x3b4)],'params':{'unitId':_0x56ff10,'actions':_0x1f02f1['actions'],'textRanges':null}};this[_0x28f21d(0x39c)](_0x4ab7dc);})),this[_0x1aa2a0(0x398)](this['_commandService'][_0x1aa2a0(0x47c)]((_0x4ce6e5,_0x2a98c9)=>{const _0x4f0104=_0x1aa2a0;if(_0x4ce6e5[_0x4f0104(0x222)]!==_0x1d7a06[_0x4f0104(0x3b4)]||_0x2a98c9!=null&&_0x2a98c9['fromCollab']||_0x2a98c9!=null&&_0x2a98c9[_0x4f0104(0x18e)]||_0x4ce6e5['id']===_0x5061cf['id'])return;let _0x50e805=_0x4ce6e5[_0x4f0104(0x417)];if((_0x50e805==null?void 0x0:_0x50e805['unitId'])!==this[_0x4f0104(0x468)])return;let _0x3e1e43=_0x4ce6e5,_0x1f19b5=this[_0x4f0104(0x391)][_0x4f0104(0x42a)][_0x4f0104(0x249)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x4f0104(0x1b2)])([_0x3e1e43],this['_univerInstanceService'])||[_0x3e1e43];this[_0x4f0104(0x39c)](_0x1f19b5[0x0]);})),_0x331e3a;}};Fn=H([V(0x3,_0x5a17cb(_0x42cf99)),V(0x4,_0x5a17cb(_0x53d75e)),V(0x5,_0x5a17cb(_0x4e02d2)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x5a17cb(B)),V(0x8,_0x2c297b),V(0x9,_0x273710),V(0xa,_0x1db1d2),V(0xb,_0x4bb697),V(0xc,_0x5a17cb(_0x38b2aa)),V(0xd,_0x16c3fa(W)),V(0xe,_0x16c3fa(U))],Fn);let In=class extends ${constructor(_0x1ff602,_0x4a7087,_0x1d6fa4,_0x417bd4,_0x4f219f,_0x2d7300,_0x3585a4,_0x381b05,_0x59b4d4,_0x2f5680,_0x4bde08,_0x1ef19c,_0x48a30d,_0x3a86fe){super(_0x1ff602,_0x1d6fa4,_0x4a7087,_0x417bd4,_0x4f219f,_0x2d7300,_0x3585a4,_0x381b05,_0x59b4d4,_0x2f5680,_0x4bde08,_0x1ef19c,_0x48a30d,_0x3a86fe),this['unitID']=_0x1ff602,this['type']=_0x4a7087;}async[_0x58e0b4(0x34f)](){const _0x99f7d5=_0x58e0b4;let _0x156c48=await super[_0x99f7d5(0x34f)]();return this[_0x99f7d5(0x398)](this[_0x99f7d5(0x3ae)]['onMutationExecutedForCollab']((_0x24deea,_0x2da6aa)=>{const _0x39d9d1=_0x99f7d5;if(_0x24deea[_0x39d9d1(0x222)]!==_0x1d7a06['MUTATION']||_0x2da6aa!=null&&_0x2da6aa[_0x39d9d1(0x2c4)]||_0x2da6aa!=null&&_0x2da6aa[_0x39d9d1(0x18e)])return;let _0xdcf3fb=_0x24deea[_0x39d9d1(0x417)];if((_0xdcf3fb==null?void 0x0:_0xdcf3fb[_0x39d9d1(0x25c)])!==this[_0x39d9d1(0x468)])return;let _0x10832e=_0x24deea,_0x16c27f=this['_compressMutationService'][_0x39d9d1(0x42a)][_0x39d9d1(0x249)](this[_0x39d9d1(0x391)][_0x39d9d1(0x42a)][_0x39d9d1(0x416)]()['COMPRESS_MUTATION_SEND'])([_0x10832e],this[_0x39d9d1(0x3e5)])||[_0x10832e];this[_0x39d9d1(0x39c)](_0x16c27f[0x0]);})),_0x156c48;}};In=H([V(0x3,_0x5a17cb(_0x42cf99)),V(0x4,_0x5a17cb(_0x53d75e)),V(0x5,_0x5a17cb(_0x4e02d2)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x5a17cb(B)),V(0x8,_0x2c297b),V(0x9,_0x273710),V(0xa,_0x1db1d2),V(0xb,_0x4bb697),V(0xc,_0x16c3fa(W)),V(0xd,_0x16c3fa(U))],In);let Ln=class extends ${constructor(_0x37c378,_0x9d95f8,_0x563095,_0x1a8b68,_0x549b3d,_0x5d6075,_0x2527bd,_0x39c59e,_0x65e9c3,_0x4affb4,_0x21e233,_0x2d2ef7,_0x12ec6c,_0x48a6f9,_0x35da22){const _0xd5fe55=_0x58e0b4;super(_0x37c378,_0x563095,_0x9d95f8,_0x1a8b68,_0x549b3d,_0x5d6075,_0x2527bd,_0x65e9c3,_0x4affb4,_0x21e233,_0x2d2ef7,_0x12ec6c,_0x48a6f9,_0x35da22),this[_0xd5fe55(0x468)]=_0x37c378,this[_0xd5fe55(0x222)]=_0x9d95f8,this[_0xd5fe55(0x1b9)]=_0x39c59e;}[_0x58e0b4(0x449)](){const _0x4aec2c=_0x58e0b4;let _0x5b7a32=super[_0x4aec2c(0x449)]();return _0x5b7a32[_0x4aec2c(0x1c0)]=_0x3a9cfe=>this[_0x4aec2c(0x1b9)]['transformSelections'](_0x3a9cfe),_0x5b7a32;}async['_init'](){const _0x1c6e7b=_0x58e0b4;let _0x49ea66=await super[_0x1c6e7b(0x34f)]();return this[_0x1c6e7b(0x398)](this[_0x1c6e7b(0x3ae)][_0x1c6e7b(0x47c)]((_0x37d9dc,_0x5bb7a3)=>{const _0x3c314b=_0x1c6e7b;if(_0x37d9dc['type']!==_0x1d7a06['MUTATION']||_0x5bb7a3!=null&&_0x5bb7a3[_0x3c314b(0x2c4)]||_0x5bb7a3!=null&&_0x5bb7a3[_0x3c314b(0x18e)])return;let _0x4a2a1a=_0x37d9dc[_0x3c314b(0x417)];if((_0x4a2a1a==null?void 0x0:_0x4a2a1a[_0x3c314b(0x25c)])!==this['unitID'])return;let _0x48a253=_0x37d9dc,_0x3086c7=this['_compressMutationService'][_0x3c314b(0x42a)][_0x3c314b(0x249)](this[_0x3c314b(0x391)][_0x3c314b(0x42a)]['getInterceptPoints']()[_0x3c314b(0x1b2)])([_0x48a253],this[_0x3c314b(0x3e5)])||[_0x48a253];this[_0x3c314b(0x39c)](_0x3086c7[0x0]);})),_0x49ea66;}};Ln=H([V(0x3,_0x5a17cb(_0x42cf99)),V(0x4,_0x5a17cb(_0x53d75e)),V(0x5,_0x5a17cb(_0x4e02d2)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x5a17cb(ln)),V(0x8,_0x5a17cb(B)),V(0x9,_0x2c297b),V(0xa,_0x273710),V(0xb,_0x1db1d2),V(0xc,_0x4bb697),V(0xd,_0x16c3fa(W)),V(0xe,_0x16c3fa(U))],Ln);let Rn=class extends ${constructor(_0x19ff3c,_0x2eb416,_0x327c68,_0x1911c0,_0x21f283,_0x3e52cd,_0x32b104,_0x48c78e,_0x2ae53e,_0x413963,_0x1606c7,_0x3174b9,_0x1a7a44,_0x141870){const _0x5eb63e=_0x58e0b4;super(_0x19ff3c,_0x327c68,_0x2eb416,_0x1911c0,_0x21f283,_0x3e52cd,_0x32b104,_0x48c78e,_0x2ae53e,_0x413963,_0x1606c7,_0x3174b9,_0x1a7a44,_0x141870),this[_0x5eb63e(0x468)]=_0x19ff3c,this[_0x5eb63e(0x222)]=_0x2eb416;}async['_init'](){const _0x2e8391=_0x58e0b4;let _0x2041b1=await super[_0x2e8391(0x34f)]();return this[_0x2e8391(0x398)](this[_0x2e8391(0x3ae)][_0x2e8391(0x47c)]((_0x1944ce,_0x15f52e)=>{const _0x1f6ea5=_0x2e8391;if(_0x1944ce[_0x1f6ea5(0x222)]!==_0x1d7a06[_0x1f6ea5(0x3b4)]||_0x15f52e!=null&&_0x15f52e['fromCollab']||_0x15f52e!=null&&_0x15f52e[_0x1f6ea5(0x18e)])return;let _0x5d92f9=_0x1944ce[_0x1f6ea5(0x417)];if((_0x5d92f9==null?void 0x0:_0x5d92f9[_0x1f6ea5(0x25c)])!==this['unitID'])return;let _0x225168=_0x1944ce,_0x384e0d=this[_0x1f6ea5(0x391)][_0x1f6ea5(0x42a)][_0x1f6ea5(0x249)](this[_0x1f6ea5(0x391)][_0x1f6ea5(0x42a)][_0x1f6ea5(0x416)]()[_0x1f6ea5(0x1b2)])([_0x225168],this['_univerInstanceService'])||[_0x225168];this[_0x1f6ea5(0x39c)](_0x384e0d[0x0]);})),_0x2041b1;}};Rn=H([V(0x3,_0x5a17cb(_0x42cf99)),V(0x4,_0x5a17cb(_0x53d75e)),V(0x5,_0x5a17cb(_0x4e02d2)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x5a17cb(B)),V(0x8,_0x2c297b),V(0x9,_0x273710),V(0xa,_0x1db1d2),V(0xb,_0x4bb697),V(0xc,_0x16c3fa(W)),V(0xd,_0x16c3fa(U))],Rn);let zn=class extends ${constructor(_0x2d232b,_0x466e93,_0x4be3a1,_0x580198,_0x12e7a6,_0x31c695,_0x2d2a71,_0x4adc77,_0x58dd6c,_0x6bcb4a,_0x2f43d0,_0x190e24,_0x3f7b90,_0x13d48d){const _0x4f6b11=_0x58e0b4;super(_0x2d232b,_0x4be3a1,_0x466e93,_0x580198,_0x12e7a6,_0x31c695,_0x2d2a71,_0x4adc77,_0x58dd6c,_0x6bcb4a,_0x2f43d0,_0x190e24,_0x3f7b90,_0x13d48d),this['unitID']=_0x2d232b,this[_0x4f6b11(0x222)]=_0x466e93;}async[_0x58e0b4(0x34f)](){const _0x54121b=_0x58e0b4;let _0x524a24=await super[_0x54121b(0x34f)]();return this[_0x54121b(0x398)](this[_0x54121b(0x3ae)][_0x54121b(0x47c)]((_0x5bd506,_0x54e155)=>{const _0x93e60b=_0x54121b;if(_0x5bd506['type']!==_0x1d7a06[_0x93e60b(0x3b4)]||_0x54e155!=null&&_0x54e155[_0x93e60b(0x2c4)]||_0x54e155!=null&&_0x54e155['onlyLocal'])return;let _0x337612=_0x5bd506[_0x93e60b(0x417)];if((_0x337612==null?void 0x0:_0x337612[_0x93e60b(0x25c)])!==this[_0x93e60b(0x468)])return;let _0x3c9c0f=_0x5bd506,_0x3cfd5d=this[_0x93e60b(0x391)][_0x93e60b(0x42a)][_0x93e60b(0x249)](this[_0x93e60b(0x391)][_0x93e60b(0x42a)][_0x93e60b(0x416)]()[_0x93e60b(0x1b2)])([_0x3c9c0f],this[_0x93e60b(0x3e5)])||[_0x3c9c0f];this['_onLocalMutation'](_0x3cfd5d[0x0]);})),_0x524a24;}};function _0x4d89(){const _0x115f0c=['baseRev','requestParams','_lockTransition','POST','ERROR_IMAGE','onSyncEditingCollabCursor','REPLACE','getAllPermissionPoint','endsWith','from','packageName','_collaborationUIEventService','PERSON','_type','_rescheduleHeartbeat','newCsEvent','_changesetResend$','_schedule','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','toLocal','pending','/universer-api/oidc/authpage','MSG_FOR_ERROR','has','UUID','length','commentUpdate$','updateSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','localUnitId','transformChangesets','_notifyResend','_updateLocalCache','loginUrlKey','fromCollab','decorate','_httpService','_transformAndApplyRemoteChangeset','[UniverCollaborationClientPlugin]','ws://127.0.0.1:8000/universer-api/comb/connect','[DataLoaderService]','HEARTBEAT_INTERVAL','src','some','retryConnectingTimer','_hasSessionsForEndpoint','readAsDataURL','_updateUnitPermissionPoint','_status$','SUBMIT_CHANGESET_TIMEOUT','_onUserJoin','socket\x20open.','_socket','joinRsp','_resolveSessionIdentity','SUBMIT_CHANGESET','subUnitId','_telemetryInfo','subject','_getUnitPermissionPoints','_identity','_acknowledgeAwaitingIfReady','_onRemoteACK','_clearRetryConnectingTimer','maxChangesetAckTimeout','remote_revert','_collaborationSessionService','_initCloseConn','/universer-api/authz','UnitEmbedded','_conflict$','eventID','code','c2Prime','online$','_sessionStatus$','&source=','stopTime','_upload','PENDING','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','writeAtPath','hostname','signUrlServerUrl','/role','then','_requestMissingChangesets','ignored\x20acknowledgement\x20of\x20revision\x20','error','actions','_collabSessionService','roomInfos','close','session.join-failed','target','OPTIONAL','registerHTTPInterceptor','UNISCRIPT_RUN','entityInit$','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','size','LIVESHARE_REQUEST_HOST','len','_onLicenseRejected','onMissingChangesets','_imageSourceCache','getTime','license_editing_connections_exceeded','send','[CollaborationSessionService]:\x20socket\x20error','deleteProperty','updatePermissionObjEvent','_toggleOnline','getUnitType','_clearTimeoutTimer','session','getDeserializedSheetBlock','CHANGESET_ACK','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[SyncedState]:\x20received\x20acknowledgement.','originalMeta','_onRequestFailed','_rebaseParagraphHistory','PSEUDO_FETCH_MISSING_RESULT','_networkConditionService','_detachSubmitter','isPermissionRej','clearUnit','[SyncedState]:\x20received\x20rejection.','symbol','update','getUnitOnRev','filter','_scheduleCompleteTimestamp','closed','members$','/object/','liveShareOperation','_getUploadFileURL','toPrimitive','collaboration-client.config','USERS_ENTER','session.room-not-exists','HELLO','loadBoard','_updateStatus','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','isArray','hasLocalChanges','getUnitStatus$','JOIN','onChangesetResend','COMPRESS_MUTATION_APPLY','close$','max','csRejEvent','/-/object/-/batch_allowed','GLOBAL_ROOMS_CNT_EXCEEDS','CLOSE_ROOM','userID','paragraphId','2755370VVPJdc','liveShareNewHost','online','_sendToken','method','ignored\x20rejection.','_toPending','onResend','getTypeOfUnitAdded$','setShowComponents','unsubscribe','_init','awaiting','_clearTimer','_state','saveSheetBlock','onRemoteRej','_classifyRemoteChangeset','_getUndoStack','[CollaborationSession]','_throwTelemetryCollaborationNewChangeset','_eventService','onRemoteChangeset','_onCombEvent','getCurrentRevOfUnit','JOIN_ROOM_FULL','_waitCount','splice','message','USERS_LEAVE','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','unit','RemoteRevertError','_clearRedo','getAttachmentUrl','onTransformRemoteChangesetByIMECache','/block/','getCurrentSelections','body','createSocket','save\x20fail\x20reason\x20is\x20','\x20to\x20','bind','debug','sid','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','rev','prototype','call','Base','_attempt','subscribe','loadUnit','2170440LGgggN','_roomCreated$','univer-pro.collaboration-client-adapter-service','info','_awaitingChangeset','getSheetBlock','_prepareConflictRecovery','state$','_substituteRedoStack','not_collab','univer-pro.collaboration-client.network-condition.service','getTypeOfUnitDisposed$','UPDATE_CURSOR','_createInitialState','UNIVER_COLLABORATION_CLIENT_PLUGIN','_remoteChangesetQueue','_showConflictProcessingNotification','localCacheService','_transformUndoredo','tableSource','create','_exhaustRemoteChangesetQueue','getMemberID','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_compressMutationService','append','revision','isNoop','every','onCommentUpdate','_permissionService','disposeWithMe','objects','_substituteUndoStack','batchAllowed','_onLocalMutation','NEW_CHANGESETS','CONFLICT','_sendingTimer','enableSingleActiveInstanceLock','elapsedMs','CHANGESET_REJ','updateMember','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_revisionService','removeMember','_replaceFileID','slice','url','\x20at\x20revision\x20','loadBase','onStarting','push','_commandService','enableAuthServer','[AwaitingWithPendingState]','SHOULD_CLOSE_CONN','_getRedoStack','getCurrentUser','MUTATION','_waitForHeartbeatResponse','Workbook','apply_failed','_remoteRevertInfo','href','closeSession','set','_classifyAck','_handler','_rejectionInfo','BASE64','updateCursorEvent','emitEvent','getUnit','catch','/new_changes','changesets','routeKey','_firstSentAt','message$','open$','_transformService','joinEvent','/fetchmissing?from=','[CollaborationUndoRedoService]','conflict','_updateState','_clearHeartbeatTimer','loadPdf','memberID','_dropAcknowledgedAwaiting','_transformStack','__Key__','126cNuBSn','_registerDependencies','_telemetryService','_createInitialStateImpl','map','getMember','pipe','_emitMembers','\x20in\x20_schedule.','RemoteChangesetApplyError','JOINING','attempt','offline','avatar','_snapshotService','_univerInstanceService','[CollaborationSocketService]','Board','writeCursor','_socketMessageSubscription','_onConnectionFailed','loadUnitOfRevision','_undoRedoService','addHandlerCallback','getSheetId','disableLocalCache','connection\x20error','_members','constructor','_createSocket','getRoom','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','range','listCollaborators','replace','_transformRemoteChangesetByStateCache','init','CONFLICT_CACHE_CLEAR_FAILED','Document','_loadSnapshot','onRemoteRevert','5380088sdvpWr','/collaborator','_logService','_executeRemoteChangeset','_pendingSessions','_retryBackoff','_sendHeartbeat','floor','/universer-api/uniscript','iterator','refreshPermission','_replayCachedMutations','Failed\x20to\x20update\x20permission\x20point','accept','_entities','synced','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_sessions','_tryEnsureSocket','stringify','retryCount','unitDisposed$','snapshotServerUrl','getInterceptPoints','params','_changesetSessionId','fetch_missing','updateCollaborator','timeoutTimer','_localeService','min','_config','/rev/','_docStateChangeManagerService','2285472CMbkPn','capture','collabSubmitChangesetUrl','_disposed','_getSignURL','warn','[CollaborationSessionService]','_queuedRemoteChangesets','_send','interceptor','sendHeartbeatTimer','asObservable','resend','reqId','_getAPIPrefix','default','_pendingReason','LIVESHARE_FETCH_OPERATIONS','univer-pro.collaboration-client-socket-service','_stopTelemetryCollaborationNewChangeset','delete','cfgEnableObjInherit','ack_timeout','list','_members$','_commentUpdate$','request_failed','conflict$','coverType','endpoint','_invertDocumentHistory','readCursor','Edit','collaboratorID','uploadFileServerUrl','_entityInit$','findIndex','ONLINE','[CollaborationEntity]','_transformAndApply','_createHandler','_getConfig','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_transformRemoteChangesetByIMECache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','upload','/allowed','next','collaMsg','getWorkbookSelections','onStateChange','updatePermissionPoint','Slide','status$','base-ui.attachment-io.service','onRemoteAck','1213908iQFKkE','resolveUnit','onTransformIME','getValue','FETCH_MISSING','maxSize','c1Prime','/universer-api/stream/file/upload','_toSynced','waitForRoom$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_collaborationPaused','isObject','_transitionLocked','defineProperty','unitID','_onOffline','cmd','fetchMiss','_onUserLeave','localChanges','socketSubscription','dispose$','LEAVE','socketService','unknown','session.room-permission-denied','INSERT','diffValue','echo','&to=','PERMISSION_DENIED','compose','responseType','collabWebSocketUrl','onMutationExecutedForCollab','unitType','_localCacheService','JOIN_ROOM_NOT_EXISTS','string','getImageSourceCache','univer-pro.collaboration-client.single-active-unit-service','_singleActiveUnitService','LIVESHARE_TERMINATE','_startCollaboration','applied','_deliver','roles','file','onRemoteRetry','requireSession','indexOf','LIVESHARE_NEW_HOST','traverse','_conflictInfoFromError','LICENSE_DOMAIN_REJECTED','getActiveSheet','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','sort','awaitingChangeset','transformMutationsWithChangeset','socketReady','UNIVER_DOC','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','_clearUndo','_nextDelay','getUnitId','_onConnectionOpen','commentUpdateEvent','fetchMissingChangesets','_isEchoedAwaitingChangeset','_retryReason','members','oldBody','toRemote','loadSlide','transformStack\x20failed!','missing','__splitChunk__','objectId','selections','getSnapshotAPIPath','changeset_rejected','_handleRemoteChangesets','_onRemoteRetry','_startTelemetryCollaborationNewChangeset','isCompositionEnd','stale','_getCurrentRevision','get','HEARTBEAT','LIVESHARE_OPERATION','endpointKey','_loadUnit','_HTTPService','_getSendChangesetTimeout','loadDoc','COLLABORATION_ENDPOINT_INVALID','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntities','clearOfflineData','onload','mutations','_onRemoteRejected','encrypt','_memberService','COMMENT_UPDATE','_event$','UNIVER_BOARD','paragraphs','result','textRanges','object','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_snapshotServerService','_disableEditing','_createSession','onlyLocal','onConflict','x-univer-host','[AwaitingState]','resolve','armAckTimeout','LOCAL_CACHE_INTERVAL','/unit/','OTHER_CLIENTS_EDITING','_transformIMECache','editingUnit','SNAPSHOT_URL_KEY','complete','setCfgEnableObjInherit','add','INGEST','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','connectionAttempt','_unlockTransition','_shouldReportTelemetry','updateOfflineData','_toggleOffline','location','_configService','m2Prime','_onRecvEvent','onTransformState','onTransformRemoteChangesetByStateCache','_transformHistoryMutations','UPDATE_PERMISSION_OBJ','uniscriptRunEvent','post','_doCreateSocket','LICENSE_EDITING_CONNECTIONS_EXCEEDED','unit-cache-','addImageSourceCache','COMPRESS_MUTATION_SEND','onLocalMutation','getLatestCsReqIdBySid','_applyRemoteChangeset','AWAITING_WITH_PENDING','reduce','reason','_sheetTransformSelectionsService','docStateChange$','resendTimeouts','number','_clearHandshakeTimer','unitLoaded$','retryConnectingInterval','onTransformSelections','awaiting_with_pending','hasWritePending','Univer','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','SOCKET_FAILED','putCollaborators','_listenToNetworkCondition','_adapter','_getAPIPrefixPath','encode','\x20failed:\x20','_syncEditingCollabCursor','_onMessage','_dispatchRemoteChangeset','shouldCloseConn','candidateSocket','change$','getFocusedUnit','dispose','deepClone','2758854qMiUmA','clear','data','ack_of_awaiting','fetching\x20missing\x20changesets\x20from\x20','HEARTBEAT_TIMEOUT','_options','setWaitCount','_tryReconnect','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','collaboration-client.local-cache-service','6311nAeegh','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','action','override','_createChangesetSubmitter','apply','_ackTimeout','DEFAULT_FILE_NAME','reject','startIndex','RECV','startsWith','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_now','authzUrl','downloadEndpointUrl','onMissedChangesetFetched','_clearScheduledTask','headers','transformUndoRedo','_incrementRevisionNumber','onPrepareTransformSelections','_instanceService','getCollabEntity','CHANGESET_SHOULD_RETRY','sendChangesetTimeout','saveImage','_roomMembers','createInstance','executeCommand','_refreshUnitPermission','[PendingState]:\x20received\x20acknowledgement.','error$','OFFLINE','_handlerCallback','version','/universer-api/snapshot','stream','event$','subType','now','UNIVER_SLIDE','fromCharCode','isFinite','origin','_initUnitPermissionChange','ignored\x20remote\x20changeset\x20of\x20revision\x20','status','getAllMembers','_unsyncedMutationCount','columnGroups','_submitter','submit','collaboration-client.auth.needGotoLoginAlert','LICENSE_UNIT_TYPE_REJECTED','&assign=','csAckEvent','_transit','keys','_initMergeInterceptor','_reqId','loadOfflineData','appendMutation','getConfig','toggleOnline','charCodeAt','type','withCredentials','AWAITING','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_timer','_change$','_countResend','_source','text-x','_redoStacks','toString','put','confirm','_removeRoom','getPath','setConfig','changeset','_state$','_authzIoService','Error\x20on\x20receiving\x20event','JOIN_ROOM_FAILED','name','ERROR_IMAGE_TYPE','[OfflineState]','RETAIN','_initDependencies','_rebaseUnchangedAttributes','_transformStateCache','missingChangesets','equals','_fetchMissChangesets','IDLE','snapshot','_unitInfo$','find','_getLoginPath','_undoStacks','allowed','sheets','fetchThroughInterceptors','_getCtorByUniverInstanceType','changesetAckTimeout','telemetry\x20info\x20is\x20not\x20initialized','collaborators','paragraph','UNIVER_PDF','_onConflict','_resend','_unitLoaded$','getCfgEnableObjInherit','_joinRoom','OTHER_CLIENT_EDITING','socket$','_commentService','objectID','backupOfflineData','includes','PERMISSION_REJ','unitId','onApply','_socketChannels','_changesetReqId','_userManagerService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_decreaseWaiting','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getUploadOptions','_maxAckTimeout','forEach','enableOfflineEditing','_injector','getResourcesRequest','ackTimeout','saveChangeset','_acknowledgeAwaiting','failed\x20to\x20apply\x20missed\x20changesets!','listRoles','_submitChangeset','\x0aCurrent:\x20','_transformSelections','/universer-api/snapshot/','_filterTableActions','_pendingMutations','timeout','reverse','UNIVER_SHEET','getOwnPropertyDescriptor','objectType','function','_closedUnits',',\x20attempt\x20','NOT_COLLAB','saveSnapshot','_disposeSubmitter','UNIVER_BASE','values','_cfgEnableObjInherit','license_unit_type_rejected','?size=','commit','startTime','readyForCollab','SOCKET_FAILED_RETRY','unbind','getImage','changesetResend$','should_retry','loadSheet','transformSelections','sessionStatus$','encodeURIComponent','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','toggleOffline','hasOwnProperty','requestRetry','_acknowledgedAwaitingRevision','reconnect','_initRequestHeader','_socketService','title','FAIL','_getSocketChannel','_sessionChannels','_getDownloadEndpointURL','CONFLICT_PROCESSING','{fileID}','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','getCollabEntity$'];_0x4d89=function(){return _0x115f0c;};return _0x4d89();}zn=H([V(0x3,_0x5a17cb(_0x42cf99)),V(0x4,_0x5a17cb(_0x53d75e)),V(0x5,_0x5a17cb(_0x4e02d2)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x5a17cb(B)),V(0x8,_0x2c297b),V(0x9,_0x273710),V(0xa,_0x1db1d2),V(0xb,_0x4bb697),V(0xc,_0x16c3fa(W)),V(0xd,_0x16c3fa(U))],zn);let Bn=class extends ${constructor(_0x491e4a,_0x1b4a46,_0x1b0f3b,_0x1620ff,_0x266654,_0x51204f,_0x5d7133,_0x526854,_0x2edb31,_0x3ddd91,_0x443557,_0x2f162c,_0x140278,_0x41eb3f){const _0x9aafb3=_0x58e0b4;super(_0x491e4a,_0x1b0f3b,_0x1b4a46,_0x1620ff,_0x266654,_0x51204f,_0x5d7133,_0x526854,_0x2edb31,_0x3ddd91,_0x443557,_0x2f162c,_0x140278,_0x41eb3f),this[_0x9aafb3(0x468)]=_0x491e4a,this[_0x9aafb3(0x222)]=_0x1b4a46;}async['_init'](){const _0x20e274=_0x58e0b4;let _0x9152f3=await super[_0x20e274(0x34f)]();return this[_0x20e274(0x398)](this[_0x20e274(0x3ae)][_0x20e274(0x47c)]((_0x580ecc,_0x1ec7c8)=>{const _0x3de019=_0x20e274;if(_0x580ecc[_0x3de019(0x222)]!==_0x1d7a06[_0x3de019(0x3b4)]||_0x1ec7c8!=null&&_0x1ec7c8[_0x3de019(0x2c4)]||_0x1ec7c8!=null&&_0x1ec7c8[_0x3de019(0x18e)])return;let _0x4c374f=_0x580ecc[_0x3de019(0x417)];if((_0x4c374f==null?void 0x0:_0x4c374f[_0x3de019(0x25c)])!==this[_0x3de019(0x468)])return;let _0x2786cc=_0x580ecc,_0x1d3e58=this[_0x3de019(0x391)][_0x3de019(0x42a)]['fetchThroughInterceptors'](this[_0x3de019(0x391)][_0x3de019(0x42a)][_0x3de019(0x416)]()[_0x3de019(0x1b2)])([_0x2786cc],this[_0x3de019(0x3e5)])||[_0x2786cc];this[_0x3de019(0x39c)](_0x1d3e58[0x0]);})),_0x9152f3;}};Bn=H([V(0x3,_0x5a17cb(_0x42cf99)),V(0x4,_0x5a17cb(_0x53d75e)),V(0x5,_0x5a17cb(_0x4e02d2)),V(0x6,_0x5a17cb(_0x1f2446)),V(0x7,_0x5a17cb(B)),V(0x8,_0x2c297b),V(0x9,_0x273710),V(0xa,_0x1db1d2),V(0xb,_0x4bb697),V(0xc,_0x16c3fa(W)),V(0xd,_0x16c3fa(U))],Bn);const Vn=_0x1b0051(_0x58e0b4(0x383));function Hn(_0x584808){const _0x13ed0a=_0x58e0b4;let _0x19d2b9=_0x584808[_0x13ed0a(0x1d7)],_0x10a5dd=JSON['parse'](_0x19d2b9);switch(_0x10a5dd['cmd']){case _0x569635[_0x13ed0a(0x173)]:case _0x569635[_0x13ed0a(0x331)]:{let _0x20e025=_0x10a5dd['infoRsp'];return{..._0x10a5dd,'data':_0x20e025,'cmd':_0x10a5dd['cmd']};}case _0x569635[_0x13ed0a(0x339)]:{let _0x4155a9=_0x10a5dd[_0x13ed0a(0x2d7)];return{..._0x10a5dd,'data':_0x4155a9,'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};}case _0x569635[_0x13ed0a(0x1ea)]:{let _0x91daa3=_0x10a5dd[_0x13ed0a(0x451)];switch(_0x91daa3[_0x13ed0a(0x2e9)]){case _0x43c2b6['PERMISSION_REJ']:{let {cs:_0x4c6d8e,code:_0x4a2bf6,reason:_0x5b0eda}=_0x91daa3['permissionRejEvent']??{};return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x4c6d8e,'code':_0x4a2bf6,'reason':_0x5b0eda},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};}case _0x43c2b6[_0x13ed0a(0x317)]:var _0x3d32fa;return{..._0x10a5dd,'data':{..._0x91daa3,'data':(_0x3d32fa=_0x91daa3[_0x13ed0a(0x218)])==null?void 0x0:_0x3d32fa['cs']},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6[_0x13ed0a(0x39d)]:var _0xe45fa8;return{..._0x10a5dd,'data':{..._0x91daa3,'data':(_0xe45fa8=_0x91daa3[_0x13ed0a(0x2b1)])==null?void 0x0:_0xe45fa8['cs']},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6[_0x13ed0a(0x3a2)]:{let {cs:_0x3044e4,code:_0x251e68,reason:_0xfe7b61}=_0x91daa3[_0x13ed0a(0x33e)]??{};return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x3044e4,'code':_0x251e68,'reason':_0xfe7b61},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};}case _0x43c2b6[_0x13ed0a(0x1f8)]:{let {cs:_0x53fc14,code:_0x6b73f8,reason:_0x1afa46}=_0x91daa3['csShouldRetryEvent']??{};return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x53fc14,'code':_0x6b73f8,'reason':_0x1afa46},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};}case _0x43c2b6[_0x13ed0a(0x385)]:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x3c0)]},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6['USERS_ENTER']:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x3cb)]},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6[_0x13ed0a(0x361)]:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3['leaveEvent']},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6['LIVESHARE_NEW_HOST']:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x345)]},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6['LIVESHARE_FETCH_OPERATIONS']:case _0x43c2b6['LIVESHARE_OPERATION']:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x32b)]},'cmd':_0x10a5dd['cmd']};case _0x43c2b6['LIVESHARE_TERMINATE']:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x345)]},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6[_0x13ed0a(0x2b8)]:return{..._0x10a5dd,'data':_0x91daa3,'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6[_0x13ed0a(0x183)]:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x15d)]},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6[_0x13ed0a(0x1ab)]:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x311)]},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6[_0x13ed0a(0x3b1)]:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x1cf)]},'cmd':_0x10a5dd[_0x13ed0a(0x46a)]};case _0x43c2b6[_0x13ed0a(0x303)]:return{..._0x10a5dd,'data':{..._0x91daa3,'data':_0x91daa3[_0x13ed0a(0x1ac)]},'cmd':_0x10a5dd['cmd']};default:return _0x10a5dd;}}default:return _0x10a5dd;}}function Un(_0x5f267b){const _0x3ad3b8=_0x58e0b4;switch(_0x5f267b[_0x3ad3b8(0x46a)]){case _0x569635[_0x3ad3b8(0x173)]:case _0x569635[_0x3ad3b8(0x331)]:return JSON['stringify']({'cmd':_0x5f267b['cmd'],'routeKey':_0x5f267b[_0x3ad3b8(0x3c6)]});case _0x569635['INGEST']:{let _0x2a47a5;switch(_0x5f267b[_0x3ad3b8(0x1d7)][_0x3ad3b8(0x2e9)]){case _0x43c2b6[_0x3ad3b8(0x385)]:_0x2a47a5={'eventID':_0x43c2b6['UPDATE_CURSOR'],'updateCursorEvent':_0x5f267b['data'][_0x3ad3b8(0x1d7)]};break;case _0x43c2b6[_0x3ad3b8(0x361)]:_0x2a47a5={'eventID':_0x43c2b6[_0x3ad3b8(0x361)],'leaveEvent':_0x5f267b[_0x3ad3b8(0x1d7)][_0x3ad3b8(0x1d7)]};break;case _0x43c2b6[_0x3ad3b8(0x32f)]:_0x2a47a5={'eventID':_0x43c2b6['USERS_ENTER'],'joinEvent':_0x5f267b[_0x3ad3b8(0x1d7)]['data']};break;case _0x43c2b6[_0x3ad3b8(0x14d)]:_0x2a47a5={'eventID':_0x43c2b6[_0x3ad3b8(0x14d)],'liveShareNewHost':_0x5f267b[_0x3ad3b8(0x1d7)][_0x3ad3b8(0x1d7)]};break;case _0x43c2b6[_0x3ad3b8(0x174)]:_0x2a47a5={'eventID':_0x43c2b6[_0x3ad3b8(0x174)],'liveShareOperation':_0x5f267b[_0x3ad3b8(0x1d7)][_0x3ad3b8(0x1d7)]};break;case _0x43c2b6[_0x3ad3b8(0x144)]:_0x2a47a5={'eventID':_0x43c2b6[_0x3ad3b8(0x144)],'liveShareTerminate':_0x5f267b['data'][_0x3ad3b8(0x1d7)]};break;case _0x43c2b6[_0x3ad3b8(0x307)]:_0x2a47a5={'eventID':_0x43c2b6['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x5f267b[_0x3ad3b8(0x1d7)][_0x3ad3b8(0x1d7)]};break;case _0x43c2b6['LIVESHARE_FETCH_OPERATIONS']:_0x2a47a5={'eventID':_0x43c2b6[_0x3ad3b8(0x432)]};break;default:_0x2a47a5={'eventID':_0x5f267b[_0x3ad3b8(0x1d7)][_0x3ad3b8(0x2e9)]};}return JSON[_0x3ad3b8(0x412)]({'cmd':_0x5f267b['cmd'],'routeKey':_0x5f267b[_0x3ad3b8(0x3c6)],'collaMsg':_0x2a47a5});}case _0x569635[_0x3ad3b8(0x339)]:return JSON[_0x3ad3b8(0x412)]({'cmd':_0x5f267b[_0x3ad3b8(0x46a)],'routeKey':_0x5f267b[_0x3ad3b8(0x3c6)],'joinReq':_0x5f267b[_0x3ad3b8(0x1d7)]});case _0x569635['LEAVE']:return JSON[_0x3ad3b8(0x412)]({'cmd':_0x5f267b[_0x3ad3b8(0x46a)],'routeKey':_0x5f267b[_0x3ad3b8(0x3c6)],'leaveReq':_0x5f267b[_0x3ad3b8(0x1d7)]});default:throw Error(_0x3ad3b8(0x40f));}}const Wn=_0x1b0051(_0x58e0b4(0x433));function Gn(_0x4109c2,_0x4cca9d,_0x384519){const _0x5ae52f=_0x58e0b4;return _0x4109c2+'/'+_0x4cca9d+_0x5ae52f(0x195)+_0x384519+_0x5ae52f(0x3c4);}let Kn=class extends _0x4198a8{constructor(_0x18c296,_0x127c73,_0x17b916,_0x3a6a3e,_0x16ff55){const _0x3b453c=_0x58e0b4;super(),this[_0x3b453c(0x268)]=_0x18c296,this[_0x3b453c(0x2c6)]=_0x127c73,this[_0x3b453c(0x1a5)]=_0x17b916,this[_0x3b453c(0x401)]=_0x3a6a3e,this[_0x3b453c(0x18b)]=_0x16ff55;}[_0x58e0b4(0x1ae)](_0x540abe){const _0x3942f7=_0x58e0b4;let _0x1903d5=this['_injector'][_0x3942f7(0x172)](_0x171dba);if(!_0x1903d5)throw Error(_0x3942f7(0x305));let _0x49097f=_0x1903d5[_0x3942f7(0x36b)](_0x540abe);if(!_0x49097f)throw Error(_0x3942f7(0x152));let _0x1ce165=new _0x4147a0(),_0x4460bf=new _0x5159b6();_0x1ce165['add'](_0x49097f[_0x3942f7(0x33c)][_0x3942f7(0x377)](_0x42bc2f=>_0x4460bf[_0x3942f7(0x450)](_0x42bc2f))),_0x1ce165['add'](_0x238621(()=>_0x4460bf['complete']()));let _0x5b239e=new _0x5159b6();_0x1ce165['add'](_0x49097f['error$']['subscribe'](_0x434013=>_0x5b239e['next'](_0x434013))),_0x1ce165[_0x3942f7(0x19c)](_0x238621(()=>_0x5b239e[_0x3942f7(0x19a)]()));let _0x456c0a=new _0x5159b6();_0x1ce165['add'](_0x49097f[_0x3942f7(0x3c8)][_0x3942f7(0x377)](_0x41c144=>{const _0x2f93ac=_0x3942f7;let _0x1ea29b=Hn(_0x41c144);_0x456c0a[_0x2f93ac(0x450)](_0x1ea29b);})),_0x1ce165['add'](_0x238621(()=>_0x456c0a[_0x3942f7(0x19a)]()));let _0x5cf2c3,_0x215795=()=>{const _0xc6082=_0x3942f7;_0x5b239e['next'](new Event('connection\x20error')),_0x4460bf[_0xc6082(0x450)](new Event(_0xc6082(0x3f0))),_0x5cf2c3[_0xc6082(0x2fe)]();};return _0x5cf2c3={'memberID':'','close$':_0x4460bf['asObservable'](),'error$':_0x5b239e[_0x3942f7(0x42c)](),'open$':_0x49097f[_0x3942f7(0x3c9)],'message$':_0x456c0a[_0x3942f7(0x42c)](),'send':(_0x26a008,_0x512b63)=>{const _0x5ce1e9=_0x3942f7;if(_0x26a008['cmd']===_0x569635['INGEST']){if(_0x26a008[_0x5ce1e9(0x1d7)][_0x5ce1e9(0x2e9)]===_0x43c2b6[_0x5ce1e9(0x2d9)]){let _0xcdef24=this[_0x5ce1e9(0x26f)](_0x5cf2c3,_0x26a008['data'],(_0x512b63==null?void 0x0:_0x512b63[_0x5ce1e9(0x275)])??0x1d4c0);return _0xcdef24[_0x5ce1e9(0x3c3)](()=>void 0x0),_0xcdef24;}if(_0x26a008['data'][_0x5ce1e9(0x2e9)]===_0x43c2b6[_0x5ce1e9(0x45d)]){let _0x465d7b=_0x26a008[_0x5ce1e9(0x1d7)];this[_0x5ce1e9(0x240)](_0x465d7b)[_0x5ce1e9(0x2f7)](_0x1b6145=>{const _0x41150b=_0x5ce1e9;_0x456c0a['next']({'cmd':_0x569635['RECV'],'code':_0x2bfe8c['OK'],'routeKey':_0x465d7b[_0x41150b(0x1d7)]['unitID'],'routeType':'','data':{'eventID':_0x43c2b6[_0x41150b(0x31d)],'data':{'changesets':_0x1b6145}}});})['catch'](_0x11fbb8=>{const _0xfa91bf=_0x5ce1e9;this[_0xfa91bf(0x401)]['error'](_0x11fbb8),_0x215795();});return;}}_0x49097f[_0x5ce1e9(0x30e)](Un(_0x26a008));},'close':()=>{const _0x44327f=_0x3942f7;_0x49097f[_0x44327f(0x2fe)](),_0x1ce165[_0x44327f(0x1d3)]();}},_0x5cf2c3;}[_0x58e0b4(0x26f)](_0x1f06e7,_0x125369,_0x4f6179){const _0x1f32a2=_0x58e0b4;let {unitType:_0x1e81e9,unitID:_0x1dad04,changeset:_0x51d6dc}=_0x125369['data'],_0x22893a={'unitID':_0x1dad04,'memberID':_0x1f06e7[_0x1f32a2(0x3d2)],'type':_0x1e81e9,'changeset':_0x14c146(_0x51d6dc)},_0x14c3a4=this[_0x1f32a2(0x1a5)]['getConfig'](R),_0xaedafd=Gn((_0x14c3a4==null?void 0x0:_0x14c3a4[_0x1f32a2(0x423)])??'/universer-api/comb',_0x1e81e9,_0x1dad04);return _0x80f93(this[_0x1f32a2(0x2c6)][_0x1f32a2(0x205)](_0x1f32a2(0x2a5),_0xaedafd,{'body':_0x22893a})[_0x1f32a2(0x3dc)](_0xf9bd18(_0x24cdbc=>_0x24cdbc[_0x1f32a2(0x222)]===_0x237e52['Response']),_0x435d5d(_0x4f6179)))[_0x1f32a2(0x2f7)](()=>void 0x0,_0xf8bfb5=>{const _0x408ea0=_0x1f32a2;throw this[_0x408ea0(0x401)][_0x408ea0(0x426)](_0x408ea0(0x3e6),'submitting\x20changeset\x20'+_0x51d6dc[_0x408ea0(0x370)]+':'+_0x51d6dc[_0x408ea0(0x42e)]+_0x408ea0(0x1cb)+qn(_0xf8bfb5)),_0xf8bfb5;});}async[_0x58e0b4(0x240)](_0x4f37bf){const _0x573dc5=_0x58e0b4;let {unitID:_0x5e1525,from:_0x3f9c2d,to:_0x45db1d,unitType:_0x1613e6}=_0x4f37bf['data'];return(await this[_0x573dc5(0x18b)][_0x573dc5(0x15e)]({'metadata':void 0x0},{'unitID':_0x5e1525,'type':_0x1613e6,'from':_0x3f9c2d,'to':_0x45db1d}))[_0x573dc5(0x3c5)][_0x573dc5(0x3da)](_0x17d3a0=>((_0x17d3a0[_0x573dc5(0x17f)]===null||_0x17d3a0['mutations']===void 0x0)&&(_0x17d3a0[_0x573dc5(0x17f)]=[]),_0x17d3a0));}};Kn=H([V(0x0,_0x5a17cb(_0x42cf99)),V(0x1,_0x5a17cb(_0x41a562)),V(0x2,_0xf6e881),V(0x3,_0x273710),V(0x4,_0x295e26)],Kn);function qn(_0x3261b7){const _0x528a32=_0x58e0b4;return _0x3261b7 instanceof _0x4d36f7?'HTTP\x20'+(_0x3261b7[_0x528a32(0x20f)]??0x0):_0x3261b7 instanceof Error?_0x3261b7['name']:String(_0x3261b7);}const Jn=_0x1b0051(_0x58e0b4(0x37b));function Yn(_0x3cb9e6={}){const _0x5c10a3=_0x58e0b4;return _0x3cb9e6[_0x5c10a3(0x45a)]?{'resolveUnit':_0x3cb9e6['resolveUnit']}:{'resolveUnit':_0x39a094=>({'target':{'unitId':_0x39a094[_0x5c10a3(0x25c)],'unitType':_0x39a094[_0x5c10a3(0x47d)]}})};}function Xn(_0x25bbe4,_0x2aa72,_0x2baf85){const _0x4974bb=_0x58e0b4;let _0x7ba61c=_0x2baf85[_0x4974bb(0x300)][_0x4974bb(0x43e)];if(_0x7ba61c!=null&&_0x7ba61c['trim']()==='')throw Error(_0x4974bb(0x17a));if(!_0x2baf85[_0x4974bb(0x300)][_0x4974bb(0x25c)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x25bbe4,'unitType':_0x2aa72,'target':{'endpoint':_0x7ba61c,'unitId':_0x2baf85[_0x4974bb(0x300)]['unitId'],'unitType':_0x2baf85[_0x4974bb(0x300)]['unitType']??_0x2aa72},'changeset':_0x2baf85['changeset']};}let Zn=class extends _0x4198a8{constructor(_0x341a15,_0x3af937,_0x25c6e9,_0x2462c8,_0x558dec,_0x108f5e){const _0x5b9e31=_0x58e0b4;super(),this[_0x5b9e31(0x268)]=_0x341a15,this[_0x5b9e31(0x401)]=_0x3af937,this[_0x5b9e31(0x1a5)]=_0x25c6e9,this[_0x5b9e31(0x298)]=_0x2462c8,this['_collaborationUIEventService']=_0x558dec,this[_0x5b9e31(0x1c8)]=_0x108f5e,z(this,_0x5b9e31(0x410),new Map()),z(this,_0x5b9e31(0x403),new Map()),z(this,_0x5b9e31(0x29c),new Map()),z(this,_0x5b9e31(0x25e),new Map()),z(this,_0x5b9e31(0x31e),void 0x0),z(this,'socket$',this[_0x5b9e31(0x29b)](void 0x0)[_0x5b9e31(0x256)]['asObservable']()),z(this,'_status$',new _0xabbeab(0x0)),z(this,_0x5b9e31(0x456),this[_0x5b9e31(0x2d2)][_0x5b9e31(0x42c)]());}[_0x58e0b4(0x1c7)](){const _0xe3f0b=_0x58e0b4;this[_0xe3f0b(0x31e)]||(this[_0xe3f0b(0x31e)]=this['_injector'][_0xe3f0b(0x172)](Vn,_0x136e89[_0xe3f0b(0x301)])??void 0x0,this['_networkConditionService']&&this[_0xe3f0b(0x398)](this[_0xe3f0b(0x31e)][_0xe3f0b(0x2ec)]['subscribe'](_0x37980f=>{const _0x2c18ef=_0xe3f0b;_0x37980f&&this['reconnect'](),_0x37980f||this[_0x2c18ef(0x25e)][_0x2c18ef(0x266)](_0x243fbd=>this[_0x2c18ef(0x469)](_0x243fbd));})));}[_0x58e0b4(0x1d3)](){const _0x536708=_0x58e0b4;super[_0x536708(0x1d3)](),this[_0x536708(0x25e)]['forEach'](_0x2f5c1e=>{const _0x6152ee=_0x536708;var _0x1a7552,_0x24299a,_0x566903;(_0x1a7552=_0x2f5c1e['socketSubscription'])==null||_0x1a7552[_0x6152ee(0x34e)](),_0x2f5c1e[_0x6152ee(0x46e)]=null,this['_clearHandshakeTimer'](_0x2f5c1e),this['_clearRetryConnectingTimer'](_0x2f5c1e),this['_clearTimeoutTimer'](_0x2f5c1e),this[_0x6152ee(0x3d0)](_0x2f5c1e),(_0x24299a=_0x2f5c1e[_0x6152ee(0x256)][_0x6152ee(0x45c)]())==null||_0x24299a[_0x6152ee(0x2fe)](),(_0x566903=_0x2f5c1e[_0x6152ee(0x1d0)])==null||_0x566903[_0x6152ee(0x2fe)](),_0x2f5c1e[_0x6152ee(0x256)][_0x6152ee(0x19a)]();}),this[_0x536708(0x25e)][_0x536708(0x1d6)](),this[_0x536708(0x410)][_0x536708(0x266)](_0x5e125d=>_0x5e125d['dispose']()),this['_sessions']['clear'](),this[_0x536708(0x29c)][_0x536708(0x1d6)](),this['_status$'][_0x536708(0x19a)]();}async[_0x58e0b4(0x14b)](_0x3c1287,_0x30e736){const _0x510610=_0x58e0b4;if(this[_0x510610(0x1c7)](),this['_sessions']['has'](_0x3c1287))return this[_0x510610(0x410)][_0x510610(0x172)](_0x3c1287);let _0x19a65f=this['_pendingSessions'][_0x510610(0x172)](_0x3c1287);if(_0x19a65f)return _0x19a65f;let _0x270210=this[_0x510610(0x18d)](_0x3c1287,_0x30e736);this[_0x510610(0x403)][_0x510610(0x3bb)](_0x3c1287,_0x270210);try{return await _0x270210;}finally{this['_pendingSessions']['delete'](_0x3c1287);}}async[_0x58e0b4(0x18d)](_0x2d1b40,_0x38e9ff){const _0x1ec8fa=_0x58e0b4;let _0x30d72b=await this[_0x1ec8fa(0x2d8)](_0x2d1b40,_0x38e9ff),_0xe3a9b=this[_0x1ec8fa(0x29b)](_0x30d72b[_0x1ec8fa(0x300)]['endpoint']);this[_0x1ec8fa(0x411)](_0xe3a9b);let _0x6e215e=this['_injector'][_0x1ec8fa(0x1fc)](on,_0x30d72b,_0xe3a9b[_0x1ec8fa(0x256)][_0x1ec8fa(0x42c)]());return this['_sessions']['set'](_0x2d1b40,_0x6e215e),this[_0x1ec8fa(0x29c)][_0x1ec8fa(0x3bb)](_0x2d1b40,_0xe3a9b[_0x1ec8fa(0x175)]),_0x6e215e;}[_0x58e0b4(0x3ba)](_0x4ab063){const _0x270b27=_0x58e0b4;let _0x27bf64=this[_0x270b27(0x410)][_0x270b27(0x172)](_0x4ab063),_0x280f84=this[_0x270b27(0x29c)][_0x270b27(0x172)](_0x4ab063);if(_0x27bf64&&(this[_0x270b27(0x410)][_0x270b27(0x435)](_0x4ab063),this[_0x270b27(0x29c)][_0x270b27(0x435)](_0x4ab063),_0x27bf64[_0x270b27(0x2fe)]()),_0x280f84!==void 0x0&&!this[_0x270b27(0x2cf)](_0x280f84)){let _0x3e12a7=this[_0x270b27(0x25e)][_0x270b27(0x172)](_0x280f84);_0x3e12a7&&this[_0x270b27(0x469)](_0x3e12a7);}}['reconnect'](){const _0x51e645=_0x58e0b4;(this[_0x51e645(0x25e)][_0x51e645(0x306)]?[...this['_socketChannels'][_0x51e645(0x281)]()]:[this[_0x51e645(0x29b)](void 0x0)])[_0x51e645(0x266)](_0x1c64af=>{const _0x286fd3=_0x51e645;!this[_0x286fd3(0x2cf)](_0x1c64af[_0x286fd3(0x175)])||_0x1c64af['socketReady']||_0x1c64af['candidateSocket']||_0x1c64af[_0x286fd3(0x19f)]||(_0x1c64af['retryCount']=0x0,this[_0x286fd3(0x2e1)](_0x1c64af),this[_0x286fd3(0x1dd)](_0x1c64af));});}[_0x58e0b4(0x2e1)](_0xa8f5a3){const _0x5e5820=_0x58e0b4;_0xa8f5a3[_0x5e5820(0x2ce)]!=null&&(clearTimeout(_0xa8f5a3[_0x5e5820(0x2ce)]),_0xa8f5a3['retryConnectingTimer']=null);}[_0x58e0b4(0x3f3)](_0x55c650){const _0x2fcdfe=_0x58e0b4;let _0x4653f0=this['_configService'][_0x2fcdfe(0x21f)](R),_0x1ce482=_0x55c650[_0x2fcdfe(0x43e)]??(_0x4653f0==null?void 0x0:_0x4653f0[_0x2fcdfe(0x47b)])??_0x2fcdfe(0x2c9);return this['_socketService'][_0x2fcdfe(0x36b)](_0x1ce482);}async[_0x58e0b4(0x411)](_0x355a28){const _0x287dd1=_0x58e0b4;var _0x458259;if(this['_disposed']||((_0x458259=this[_0x287dd1(0x31e)])==null?void 0x0:_0x458259['online'])===!0x1||_0x355a28[_0x287dd1(0x156)]||_0x355a28[_0x287dd1(0x1d0)]||_0x355a28[_0x287dd1(0x19f)])return;let _0x29df44={};_0x355a28['connectionAttempt']=_0x29df44;try{let _0xb59390=await this[_0x287dd1(0x3f3)](_0x355a28);if(this['_disposed']||_0x355a28[_0x287dd1(0x19f)]!==_0x29df44){_0xb59390==null||_0xb59390[_0x287dd1(0x2fe)]();return;}if(_0xb59390){var _0x48d850;_0x355a28[_0x287dd1(0x1d0)]=_0xb59390,_0x355a28['handshakeTimer']=setTimeout(()=>{const _0x872d91=_0x287dd1;!this[_0x872d91(0x424)]&&_0x355a28[_0x872d91(0x1d0)]===_0xb59390&&this['_onConnectionFailed'](_0x355a28);},0x4e20);let _0x4722e1=_0xb59390['send'];_0xb59390[_0x287dd1(0x30e)]=(_0x5c6218,_0x2ec6d7)=>{const _0x5a0380=_0x287dd1;_0x5c6218[_0x5a0380(0x46a)]!==_0x569635[_0x5a0380(0x470)]&&!Qn(_0x5c6218)&&_0x355a28[_0x5a0380(0x156)]&&_0x355a28[_0x5a0380(0x256)][_0x5a0380(0x45c)]()===_0xb59390&&this[_0x5a0380(0x2b0)](_0x355a28);let _0x6a6453=_0x2ec6d7===void 0x0?_0x4722e1[_0x5a0380(0x374)](_0xb59390,_0x5c6218):_0x4722e1[_0x5a0380(0x374)](_0xb59390,_0x5c6218,_0x2ec6d7);return _0x6a6453 instanceof Promise&&_0x6a6453[_0x5a0380(0x3c3)](_0x3a5d23=>{const _0x57ed4f=_0x5a0380;$n(_0x3a5d23)&&_0x355a28[_0x57ed4f(0x256)][_0x57ed4f(0x45c)]()===_0xb59390&&this['_onLicenseRejected'](_0x355a28);}),_0x6a6453;},(_0x48d850=_0x355a28[_0x287dd1(0x46e)])==null||_0x48d850[_0x287dd1(0x34e)]();let _0x4d7ab3=new _0x150abd();_0x355a28[_0x287dd1(0x46e)]=_0x4d7ab3,_0x4d7ab3[_0x287dd1(0x19c)](_0xb59390[_0x287dd1(0x3c8)][_0x287dd1(0x377)](_0x4d133e=>this[_0x287dd1(0x1cd)](_0x355a28,_0xb59390,_0x4d133e))),_0x4d7ab3[_0x287dd1(0x19c)](_0xb59390[_0x287dd1(0x200)][_0x287dd1(0x3dc)](_0x3e7e1c(0x1))[_0x287dd1(0x377)](_0x15800e=>this['_logService'][_0x287dd1(0x2fa)](_0x287dd1(0x30f),_0x15800e))),_0x4d7ab3[_0x287dd1(0x19c)](_0xb59390[_0x287dd1(0x3c9)]['pipe'](_0x3e7e1c(0x1))[_0x287dd1(0x377)](()=>{this['_onConnectionOpen'](_0x355a28,_0xb59390);})),_0x4d7ab3[_0x287dd1(0x19c)](_0xb59390[_0x287dd1(0x33c)][_0x287dd1(0x3dc)](_0x3e7e1c(0x1))[_0x287dd1(0x377)](_0x398e77=>{const _0x1ab243=_0x287dd1;(_0x355a28['candidateSocket']===_0xb59390||_0x355a28[_0x1ab243(0x256)][_0x1ab243(0x45c)]()===_0xb59390)&&(this[_0x1ab243(0x401)][_0x1ab243(0x36f)](_0x1ab243(0x427),'socket\x20close',_0x398e77),this[_0x1ab243(0x3ea)](_0x355a28));}));}}catch(_0x5f35f6){if(_0x355a28[_0x287dd1(0x19f)]!==_0x29df44)return;if($n(_0x5f35f6)){this['_onLicenseRejected'](_0x355a28);return;}this[_0x287dd1(0x401)][_0x287dd1(0x2fa)](_0x5f35f6),this[_0x287dd1(0x3ea)](_0x355a28);}finally{_0x355a28['connectionAttempt']===_0x29df44&&(_0x355a28['connectionAttempt']=null);}}[_0x58e0b4(0x15c)](_0x3727b9,_0x394140){const _0xcdd36f=_0x58e0b4;this[_0xcdd36f(0x424)]||_0x3727b9['candidateSocket']!==_0x394140||(this[_0xcdd36f(0x401)][_0xcdd36f(0x36f)](_0xcdd36f(0x427),_0xcdd36f(0x2d5)),_0x394140[_0xcdd36f(0x30e)]({'cmd':_0x569635[_0xcdd36f(0x331)]}));}['_onOffline'](_0x311b63){const _0x29c4df=_0x58e0b4;var _0x3fd65e;let _0x90569a=_0x311b63[_0x29c4df(0x256)][_0x29c4df(0x45c)]()??_0x311b63['candidateSocket'];_0x311b63[_0x29c4df(0x19f)]=null,_0x311b63[_0x29c4df(0x156)]=!0x1,_0x311b63[_0x29c4df(0x1d0)]=null,(_0x3fd65e=_0x311b63[_0x29c4df(0x46e)])==null||_0x3fd65e[_0x29c4df(0x34e)](),_0x311b63[_0x29c4df(0x46e)]=null,this[_0x29c4df(0x2d2)][_0x29c4df(0x450)](0x2),_0x311b63[_0x29c4df(0x256)]['next'](null),this[_0x29c4df(0x2e1)](_0x311b63),this[_0x29c4df(0x1bd)](_0x311b63),this['_clearTimeoutTimer'](_0x311b63),this[_0x29c4df(0x3d0)](_0x311b63),_0x90569a==null||_0x90569a['close']();}[_0x58e0b4(0x309)](_0x323640){const _0x5a1bf2=_0x58e0b4;this['_onOffline'](_0x323640),this[_0x5a1bf2(0x2ad)][_0x5a1bf2(0x3c1)]({'id':_0x5a1bf2(0x150)});}[_0x58e0b4(0x3ea)](_0x5643a4){const _0x45f2ab=_0x58e0b4;var _0x333b1a;this['_onOffline'](_0x5643a4),!this[_0x45f2ab(0x424)]&&((_0x333b1a=this[_0x45f2ab(0x31e)])==null?void 0x0:_0x333b1a[_0x45f2ab(0x346)])!==!0x1&&this['_hasSessionsForEndpoint'](_0x5643a4[_0x45f2ab(0x175)])&&(_0x5643a4[_0x45f2ab(0x413)]<(this[_0x45f2ab(0x1a5)][_0x45f2ab(0x21f)]('RETRY_CONNECTING_MAX_COUNT')??0x3)?(this[_0x45f2ab(0x2ad)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this[_0x45f2ab(0x1dd)](_0x5643a4)):this[_0x45f2ab(0x2ad)]['emitEvent']({'id':_0x45f2ab(0x1c5)}));}['_tryReconnect'](_0x108378){const _0x42b284=_0x58e0b4;let _0x48c6fc=_0x108378['retryCount'],_0x53110f=this[_0x42b284(0x1a5)][_0x42b284(0x21f)](R),_0x9f7115=_0x48c6fc===0x0?0x0:((_0x53110f==null?void 0x0:_0x53110f[_0x42b284(0x1bf)])??0x4e20)*0x2**_0x48c6fc;_0x108378[_0x42b284(0x2ce)]=setTimeout(()=>{const _0x5754a4=_0x42b284;clearTimeout(_0x108378[_0x5754a4(0x2ce)]),_0x108378[_0x5754a4(0x2ce)]=null,this[_0x5754a4(0x411)](_0x108378);},_0x9f7115),_0x108378[_0x42b284(0x413)]+=0x1;}async[_0x58e0b4(0x2d8)](_0x27aa29,_0xdaadf0){const _0x12120d=_0x58e0b4;return Xn(_0x27aa29,_0xdaadf0,await this[_0x12120d(0x1c8)][_0x12120d(0x45a)]({'unitId':_0x27aa29,'unitType':_0xdaadf0}));}[_0x58e0b4(0x1cd)](_0x43aee5,_0x5bbce3,_0xe9cbfe){const _0x5ec623=_0x58e0b4;if(this[_0x5ec623(0x424)]||_0x43aee5[_0x5ec623(0x1d0)]!==_0x5bbce3&&_0x43aee5[_0x5ec623(0x256)][_0x5ec623(0x45c)]()!==_0x5bbce3)return;let {cmd:_0x5bdc41}=_0xe9cbfe;if(_0x5bdc41===_0x569635[_0x5ec623(0x331)]&&!_0x43aee5[_0x5ec623(0x156)]){var _0x25241b;if((_0xe9cbfe[_0x5ec623(0x2ea)]??_0x2bfe8c['OK'])!==_0x2bfe8c['OK']||!((_0x25241b=_0xe9cbfe[_0x5ec623(0x1d7)])!=null&&_0x25241b[_0x5ec623(0x3d2)])){this[_0x5ec623(0x3ea)](_0x43aee5);return;}this['_clearHandshakeTimer'](_0x43aee5),_0x5bbce3['memberID']=_0xe9cbfe[_0x5ec623(0x1d7)][_0x5ec623(0x3d2)],_0x43aee5[_0x5ec623(0x413)]=0x0,_0x43aee5[_0x5ec623(0x156)]=!0x0,_0x43aee5[_0x5ec623(0x1d0)]=null,_0x43aee5[_0x5ec623(0x256)]['next'](_0x5bbce3),this['_status$'][_0x5ec623(0x450)](0x3);}_0x5bdc41===_0x569635[_0x5ec623(0x173)]&&this[_0x5ec623(0x314)](_0x43aee5),this['_rescheduleHeartbeat'](_0x43aee5);}[_0x58e0b4(0x2cf)](_0x1ce8e1){const _0x247af0=_0x58e0b4;return[...this[_0x247af0(0x29c)]['values']()][_0x247af0(0x2cd)](_0x3b1ecc=>_0x3b1ecc===_0x1ce8e1);}[_0x58e0b4(0x29b)](_0x11f7aa){const _0x4f1912=_0x58e0b4;let _0x134bc8=_0x11f7aa??'',_0xce0434=this['_socketChannels'][_0x4f1912(0x172)](_0x134bc8);if(_0xce0434)return _0xce0434;let _0x4616da={'endpointKey':_0x134bc8,'endpoint':_0x11f7aa,'socket$':new _0xabbeab(void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4f1912(0x25e)]['set'](_0x134bc8,_0x4616da),_0x4616da;}[_0x58e0b4(0x1bd)](_0xc04618){_0xc04618['handshakeTimer']!=null&&(clearTimeout(_0xc04618['handshakeTimer']),_0xc04618['handshakeTimer']=null);}[_0x58e0b4(0x2b0)](_0x303e34){const _0x519f75=_0x58e0b4;this[_0x519f75(0x3d0)](_0x303e34),_0x303e34[_0x519f75(0x156)]&&(_0x303e34[_0x519f75(0x42b)]=setTimeout(()=>this[_0x519f75(0x405)](_0x303e34),this[_0x519f75(0x1a5)]['getConfig'](_0x519f75(0x2cb))??0x7530));}[_0x58e0b4(0x405)](_0x15cbd8){const _0x425232=_0x58e0b4;let _0x2f32c7=_0x15cbd8[_0x425232(0x256)][_0x425232(0x45c)]();_0x15cbd8[_0x425232(0x156)]&&_0x2f32c7&&(_0x2f32c7[_0x425232(0x30e)]({'cmd':_0x569635[_0x425232(0x173)]}),this['_waitForHeartbeatResponse'](_0x15cbd8));}[_0x58e0b4(0x3b5)](_0x3e02db){const _0x43e6a2=_0x58e0b4;_0x3e02db[_0x43e6a2(0x41b)]=setTimeout(()=>this[_0x43e6a2(0x3ea)](_0x3e02db),this[_0x43e6a2(0x1a5)][_0x43e6a2(0x21f)](_0x43e6a2(0x1da))??0x4e20);}[_0x58e0b4(0x3d0)](_0x254c1a){const _0x3cc3e8=_0x58e0b4;_0x254c1a[_0x3cc3e8(0x42b)]!=null&&(clearTimeout(_0x254c1a[_0x3cc3e8(0x42b)]),_0x254c1a[_0x3cc3e8(0x42b)]=null);}[_0x58e0b4(0x314)](_0x77b37d){const _0x32b152=_0x58e0b4;_0x77b37d['timeoutTimer']!=null&&(clearTimeout(_0x77b37d[_0x32b152(0x41b)]),_0x77b37d[_0x32b152(0x41b)]=null);}};Zn=H([V(0x0,_0x5a17cb(_0x42cf99)),V(0x1,_0x273710),V(0x2,_0xf6e881),V(0x3,Wn),V(0x4,_0x5a17cb(B)),V(0x5,Jn)],Zn);function _0x2b0c(_0x41f73e,_0x480731){_0x41f73e=_0x41f73e-0x13e;const _0x4d8900=_0x4d89();let _0x2b0c63=_0x4d8900[_0x41f73e];return _0x2b0c63;}function Qn(_0x1ce867){const _0x4c5c17=_0x58e0b4;if(_0x1ce867[_0x4c5c17(0x46a)]!==_0x569635[_0x4c5c17(0x19d)])return!0x1;let _0x48c7e8=_0x1ce867[_0x4c5c17(0x1d7)]['eventID'];return _0x48c7e8===_0x43c2b6[_0x4c5c17(0x2d9)]||_0x48c7e8===_0x43c2b6[_0x4c5c17(0x45d)];}function $n(_0x2bb89c){const _0x567a90=_0x58e0b4;var _0x492ba7;if(!(_0x2bb89c instanceof _0x4d36f7)||_0x2bb89c[_0x567a90(0x20f)]!==0x193)return!0x1;let _0x7ade49=_0x2bb89c[_0x567a90(0x2fa)];return(_0x7ade49==null||(_0x492ba7=_0x7ade49[_0x567a90(0x2fa)])==null?void 0x0:_0x492ba7[_0x567a90(0x2ea)])===_0xb46715[_0x567a90(0x150)];}let er=class extends _0x3129e8{constructor(_0x3a3610,_0x34d577,_0x10f686,_0x549b8f){const _0x464f20=_0x58e0b4;var _0x22f69d;super(),this['_injector']=_0x3a3610,this['_collabSessionService']=_0x34d577,this[_0x464f20(0x1a5)]=_0x10f686,this['_univerInstanceService']=_0x549b8f,z(this,_0x464f20(0x40d),new Map()),z(this,_0x464f20(0x444),new _0x5159b6()),z(this,_0x464f20(0x304),this[_0x464f20(0x444)]['asObservable']()),((_0x22f69d=this[_0x464f20(0x1a5)][_0x464f20(0x21f)](_0x464f20(0x32e)))==null?void 0x0:_0x22f69d['enableCollaboration'])!==!0x1&&this[_0x464f20(0x34f)]();}[_0x58e0b4(0x1d3)](){const _0x49646f=_0x58e0b4;super[_0x49646f(0x1d3)](),this[_0x49646f(0x40d)][_0x49646f(0x266)](_0x5e1f15=>_0x5e1f15[_0x49646f(0x1d3)]()),this[_0x49646f(0x40d)][_0x49646f(0x1d6)]();}[_0x58e0b4(0x1f7)](_0x25ab92){const _0x2936bc=_0x58e0b4;return this[_0x2936bc(0x40d)][_0x2936bc(0x172)](_0x25ab92)??null;}[_0x58e0b4(0x17c)](){const _0x1c7a78=_0x58e0b4;return Array[_0x1c7a78(0x2ab)](this[_0x1c7a78(0x40d)][_0x1c7a78(0x281)]());}['getCollabEntity$'](_0x1379ea){const _0x3a2941=_0x58e0b4;let _0x3f11de=this[_0x3a2941(0x1f7)](_0x1379ea);return _0x3f11de?_0x24983f(_0x3f11de):this['_entityInit$'][_0x3a2941(0x3dc)](_0x1a5549(_0x1bbdb0=>_0x1bbdb0[_0x3a2941(0x468)]===_0x1379ea));}[_0x58e0b4(0x287)](_0x11bee2){const _0x4e2a5f=_0x58e0b4;return _0x80f93(this[_0x4e2a5f(0x2a1)](_0x11bee2)[_0x4e2a5f(0x3dc)](_0x280b22(()=>void 0x0)));}[_0x58e0b4(0x1c2)](_0x52dbc2){const _0x28a361=_0x58e0b4;if(_0x52dbc2!==void 0x0){var _0x2f58a6;return((_0x2f58a6=this[_0x28a361(0x40d)][_0x28a361(0x172)](_0x52dbc2))==null?void 0x0:_0x2f58a6[_0x28a361(0x1c2)]())??!0x1;}for(let _0x5bd025 of this[_0x28a361(0x40d)]['values']())if(_0x5bd025[_0x28a361(0x1c2)]())return!0x0;return!0x1;}[_0x58e0b4(0x34f)](){const _0x91e32b=_0x58e0b4;this[_0x91e32b(0x3e5)]['getTypeOfUnitAdded$'](_0x22f8f1['UNIVER_SHEET'])[_0x91e32b(0x3dc)](_0x20e81c(this[_0x91e32b(0x46f)]),_0x5cca28(0x10))['subscribe'](async _0x5637bf=>{const _0x236f93=_0x91e32b;let _0xcbdec1=_0x5637bf[_0x236f93(0x363)][_0x236f93(0x15b)](),_0x83e333=await this[_0x236f93(0x145)](_0xcbdec1,_0x22f8f1[_0x236f93(0x277)]);this[_0x236f93(0x40d)][_0x236f93(0x3bb)](_0xcbdec1,_0x83e333);}),this[_0x91e32b(0x3e5)]['getTypeOfUnitAdded$'](_0x22f8f1[_0x91e32b(0x157)])[_0x91e32b(0x3dc)](_0x20e81c(this[_0x91e32b(0x46f)]),_0x5cca28(0x10))[_0x91e32b(0x3dc)](_0x1a5549(_0x5e8a03=>!_0x5e8a03[_0x91e32b(0x363)][_0x91e32b(0x15b)]()[_0x91e32b(0x1eb)]('__')))[_0x91e32b(0x377)](async _0x10bec7=>{const _0x45d5d6=_0x91e32b;let _0x370f16=_0x10bec7[_0x45d5d6(0x363)][_0x45d5d6(0x15b)](),_0x206b52=await this['_startCollaboration'](_0x370f16,_0x22f8f1[_0x45d5d6(0x157)]);this[_0x45d5d6(0x40d)][_0x45d5d6(0x3bb)](_0x370f16,_0x206b52);}),this[_0x91e32b(0x3e5)][_0x91e32b(0x34c)](_0x22f8f1['UNIVER_SLIDE'])[_0x91e32b(0x3dc)](_0x20e81c(this[_0x91e32b(0x46f)]),_0x5cca28(0x10))[_0x91e32b(0x377)](async _0x518cd0=>{const _0x3ee9c3=_0x91e32b;let _0xa8691=_0x518cd0[_0x3ee9c3(0x363)]['getUnitId'](),_0x5252a6=await this[_0x3ee9c3(0x145)](_0xa8691,_0x22f8f1[_0x3ee9c3(0x209)]);this[_0x3ee9c3(0x40d)]['set'](_0xa8691,_0x5252a6);}),this[_0x91e32b(0x3e5)][_0x91e32b(0x34c)](_0x22f8f1[_0x91e32b(0x185)])['pipe'](_0x20e81c(this[_0x91e32b(0x46f)]),_0x5cca28(0x10))[_0x91e32b(0x377)](async _0x5d3a76=>{const _0x3f3b23=_0x91e32b;let _0x2c51cf=_0x5d3a76[_0x3f3b23(0x363)]['getUnitId'](),_0x109879=await this[_0x3f3b23(0x145)](_0x2c51cf,_0x22f8f1[_0x3f3b23(0x185)]);this[_0x3f3b23(0x40d)][_0x3f3b23(0x3bb)](_0x2c51cf,_0x109879);}),this['_univerInstanceService'][_0x91e32b(0x34c)](_0x22f8f1['UNIVER_BASE'])[_0x91e32b(0x3dc)](_0x20e81c(this['dispose$']),_0x5cca28(0x10))[_0x91e32b(0x377)](async _0xce41a9=>{const _0x204479=_0x91e32b;let _0x4d8c33=_0xce41a9[_0x204479(0x363)]['getUnitId'](),_0x201175=await this[_0x204479(0x145)](_0x4d8c33,_0x22f8f1[_0x204479(0x280)]);this['_entities'][_0x204479(0x3bb)](_0x4d8c33,_0x201175);}),this['_univerInstanceService'][_0x91e32b(0x34c)](_0x22f8f1[_0x91e32b(0x24f)])[_0x91e32b(0x3dc)](_0x20e81c(this[_0x91e32b(0x46f)]),_0x5cca28(0x10))[_0x91e32b(0x377)](async _0x2f9997=>{const _0x2a9e7e=_0x91e32b;let _0x3f3b96=_0x2f9997[_0x2a9e7e(0x363)][_0x2a9e7e(0x15b)](),_0x21b179=await this[_0x2a9e7e(0x145)](_0x3f3b96,_0x22f8f1[_0x2a9e7e(0x24f)]);this[_0x2a9e7e(0x40d)][_0x2a9e7e(0x3bb)](_0x3f3b96,_0x21b179);}),_0x53f80a(this[_0x91e32b(0x3e5)][_0x91e32b(0x384)](_0x22f8f1[_0x91e32b(0x277)]),this[_0x91e32b(0x3e5)][_0x91e32b(0x384)](_0x22f8f1[_0x91e32b(0x157)]),this[_0x91e32b(0x3e5)][_0x91e32b(0x384)](_0x22f8f1[_0x91e32b(0x209)]),this[_0x91e32b(0x3e5)][_0x91e32b(0x384)](_0x22f8f1[_0x91e32b(0x185)]),this[_0x91e32b(0x3e5)][_0x91e32b(0x384)](_0x22f8f1[_0x91e32b(0x280)]),this[_0x91e32b(0x3e5)][_0x91e32b(0x384)](_0x22f8f1[_0x91e32b(0x24f)]))[_0x91e32b(0x3dc)](_0x20e81c(this['dispose$']))[_0x91e32b(0x377)](_0x4f5a80=>{const _0x351d07=_0x91e32b;let _0x46a239=_0x4f5a80[_0x351d07(0x15b)](),_0x3d891c=this['_entities'][_0x351d07(0x172)](_0x46a239);_0x3d891c&&(_0x3d891c[_0x351d07(0x1d3)](),this[_0x351d07(0x40d)][_0x351d07(0x435)](_0x46a239));});}async[_0x58e0b4(0x145)](_0x2cb04c,_0x2030db){const _0x39963c=_0x58e0b4;let _0x21b015=await this[_0x39963c(0x2fc)][_0x39963c(0x14b)](_0x2cb04c),_0x50647d=this[_0x39963c(0x268)][_0x39963c(0x1fc)](this['_getCtorByUniverInstanceType'](_0x2030db),_0x2cb04c,_0x2030db,_0x21b015);return await _0x50647d['init'](),this[_0x39963c(0x444)]['next'](_0x50647d),_0x50647d;}[_0x58e0b4(0x24a)](_0x4f65a4){const _0x3a79a2=_0x58e0b4;switch(_0x4f65a4){case _0x22f8f1[_0x3a79a2(0x157)]:return Fn;case _0x22f8f1[_0x3a79a2(0x277)]:return Ln;case _0x22f8f1['UNIVER_SLIDE']:return Rn;case _0x22f8f1['UNIVER_BOARD']:return zn;case _0x22f8f1[_0x3a79a2(0x280)]:return In;case _0x22f8f1[_0x3a79a2(0x24f)]:return Bn;default:throw Error(_0x3a79a2(0x2f2)+_0x4f65a4);}}};er=H([V(0x0,_0x5a17cb(_0x42cf99)),V(0x1,_0x5a17cb(Zn)),V(0x2,_0xf6e881),V(0x3,_0x2c297b)],er);var tr='@univerjs-pro/collaboration-client',nr='1.3.1';let rr=class extends _0x4198a8{constructor(_0x10b10a,_0xfefbc8){const _0x27891b=_0x58e0b4;super(),this[_0x27891b(0x3e5)]=_0x10b10a,this[_0x27891b(0x1a5)]=_0xfefbc8,this[_0x27891b(0x34f)]();}[_0x58e0b4(0x34f)](){const _0x328020=_0x58e0b4;this[_0x328020(0x398)](this[_0x328020(0x3e5)]['focused$'][_0x328020(0x377)](()=>{const _0x35b366=_0x328020;let _0x1a666b=this[_0x35b366(0x3e5)]['getFocusedUnit'](),_0x477bac=this[_0x35b366(0x1a5)]['getConfig'](_0x35b366(0x1e7))??_0x35b366(0x1c3);_0x1a666b instanceof _0x554b42&&(_0x477bac=_0x1a666b[_0x35b366(0x237)]),document[_0x35b366(0x299)]=_0x477bac;}));}};rr=H([V(0x0,_0x2c297b),V(0x1,_0xf6e881)],rr);const ir=_0x1b0051(_0x58e0b4(0x457));let ar=class{constructor(_0x579cda,_0x2f4e8d,_0x3dc7c7){const _0x28388d=_0x58e0b4;this[_0x28388d(0x2c6)]=_0x579cda,this[_0x28388d(0x1a5)]=_0x2f4e8d,this['_univerInstanceService']=_0x3dc7c7;}['getUploadOptions'](){const _0x3b596e=_0x58e0b4;return this[_0x3b596e(0x44a)]()['attachment']??{};}async['saveAttachment'](_0x480c1b){const _0x22c609=_0x58e0b4;let _0x4d3894=this[_0x22c609(0x264)]();if(or(_0x480c1b,_0x4d3894),_0x4d3894[_0x22c609(0x44e)])return _0x4d3894[_0x22c609(0x44e)](_0x480c1b);let _0xd636b3=await this[_0x22c609(0x2f0)](_0x480c1b);return{'id':_0xd636b3,'name':_0x480c1b[_0x22c609(0x237)],'mimeType':_0x480c1b[_0x22c609(0x222)],'size':_0x480c1b['size'],'sourceType':_0x193c57['UUID'],'source':_0xd636b3};}async[_0x58e0b4(0x366)](_0x41335b,_0x115e7a){const _0x39404e=_0x58e0b4;if(_0x115e7a!==_0x193c57[_0x39404e(0x2ba)])return _0x41335b;let _0x39f722=(await this[_0x39404e(0x2c6)]['get'](this['_getSignURL']()[_0x39404e(0x3f8)](_0x39404e(0x29f),_0x41335b)))['body'];if(_0x39f722['error']&&_0x39f722['error'][_0x39404e(0x2ea)]!==_0xb46715['OK'])throw _0x39f722['error'];if(!_0x39f722[_0x39404e(0x3a9)])throw Error(_0x39404e(0x2a0));return _0x278c1f(_0x39f722[_0x39404e(0x3a9)],this['_getDownloadEndpointURL']());}async[_0x58e0b4(0x2f0)](_0x45ff80){const _0x400c74=_0x58e0b4;let _0xd20803=this[_0x400c74(0x3e5)][_0x400c74(0x1d2)](),_0x49e959=_0xd20803==null?void 0x0:_0xd20803['getUnitId']();if(!_0x49e959)throw Error(_0x400c74(0x3f5));let _0xb335fa=new FormData();_0xb335fa['append']('file',_0x45ff80);let _0x5b1b0c=this[_0x400c74(0x32c)]()+_0x400c74(0x284)+_0x45ff80[_0x400c74(0x306)][_0x400c74(0x22c)]()+'&source='+_0x51a094['UnitEmbedded']+'&assign='+encodeURIComponent(_0x49e959),_0x3ff1b1=(await this[_0x400c74(0x2c6)][_0x400c74(0x1ad)](_0x5b1b0c,{'body':_0xb335fa}))[_0x400c74(0x36a)]['FileId'];if(typeof _0x3ff1b1!='string'||!_0x3ff1b1)throw Error(_0x400c74(0x1ec));return _0x3ff1b1;}[_0x58e0b4(0x32c)](){const _0x386567=_0x58e0b4;return this[_0x386567(0x44a)]()[_0x386567(0x443)]??_0x386567(0x460);}['_getSignURL'](){const _0x1d1a52=_0x58e0b4;return this[_0x1d1a52(0x44a)]()['signUrlServerUrl']??'/universer-api/file/{fileID}/sign-url';}[_0x58e0b4(0x29d)](){const _0x1402bd=_0x58e0b4;let _0x5a3551=this[_0x1402bd(0x44a)]();return _0x5a3551[_0x1402bd(0x1ef)]?_0x5a3551[_0x1402bd(0x1ef)]:typeof location<'u'?location[_0x1402bd(0x20c)]:_0x5a3551[_0x1402bd(0x443)]??'';}['_getConfig'](){const _0x553927=_0x58e0b4;return this[_0x553927(0x1a5)]['getConfig'](_0x553927(0x32e))??{};}};ar=H([V(0x0,_0x5a17cb(_0x41a562)),V(0x1,_0x5a17cb(_0xf6e881)),V(0x2,_0x5a17cb(_0x2c297b))],ar);function or(_0x213348,_0x56abc9){const _0x1b7733=_0x58e0b4;var _0x4463da;if(_0x56abc9['maxSize']!=null&&_0x213348['size']>_0x56abc9[_0x1b7733(0x45e)])throw Error(_0x1b7733(0x19e));if((_0x4463da=_0x56abc9['accept'])!=null&&_0x4463da[_0x1b7733(0x2bb)]&&!_0x56abc9[_0x1b7733(0x40c)][_0x1b7733(0x2cd)](_0x2f0b43=>_0x213348['type']===_0x2f0b43||_0x213348[_0x1b7733(0x237)]['endsWith'](_0x2f0b43)||_0x2f0b43[_0x1b7733(0x2aa)]('/*')&&_0x213348[_0x1b7733(0x222)][_0x1b7733(0x1eb)](_0x2f0b43[_0x1b7733(0x3a8)](0x0,-0x1))))throw Error(_0x1b7733(0x18a));}let sr=class{constructor(_0x382098,_0x22f55d,_0x36e422){const _0x103b44=_0x58e0b4;this[_0x103b44(0x1a5)]=_0x382098,this[_0x103b44(0x2c6)]=_0x22f55d,this['localeService']=_0x36e422,this[_0x103b44(0x3fa)]();}['init'](){const _0x374356=_0x58e0b4;this[_0x374356(0x2c6)][_0x374356(0x302)]({'priority':0x1,'interceptor':(_0xb5e4ba,_0x52cdad)=>_0x52cdad(_0xb5e4ba)[_0x374356(0x3dc)](_0x2ff269(async _0x1a0bc1=>{const _0x140259=_0x374356;let _0x481c12=_0x1a0bc1;if(_0x481c12[_0x140259(0x20f)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x140259(0x22e)](this['localeService']['t'](_0x140259(0x215)))){let _0x573504=window[_0x140259(0x290)](window[_0x140259(0x1a4)][_0x140259(0x3b9)]);window['location']['href']=this[_0x140259(0x245)]()+'?url='+_0x573504;}}return _0x481c12;}))});}[_0x58e0b4(0x245)](){const _0x231160=_0x58e0b4;let _0x57d3bf=this[_0x231160(0x1a5)][_0x231160(0x21f)](R);return(_0x57d3bf==null?void 0x0:_0x57d3bf[_0x231160(0x2c3)])??_0x231160(0x2b7);}};sr=H([V(0x0,_0xf6e881),V(0x1,_0x5a17cb(_0x41a562)),V(0x2,_0x5a17cb(_0x4e02d2))],sr);let cr=class extends _0x4198a8{constructor(_0xc514c6,_0x106fba){const _0x193edb=_0x58e0b4;super(),this[_0x193edb(0x177)]=_0xc514c6,this['_configService']=_0x106fba,z(this,'_cfgEnableObjInherit',!0x1),this[_0x193edb(0x21b)]();}[_0x58e0b4(0x21b)](){const _0x5a3c7d=_0x58e0b4;let _0x58e809=this;this[_0x5a3c7d(0x398)](this[_0x5a3c7d(0x177)][_0x5a3c7d(0x302)]({'priority':0x3e7,'interceptor':_0x2349b0({'isMatch'(_0xff7621){const _0x2bce74=_0x5a3c7d;var _0x50d2a;if(_0xff7621[_0x2bce74(0x348)]===_0x2bce74(0x2a5)&&(_0x50d2a=_0xff7621[_0x2bce74(0x2a3)])!=null&&_0x50d2a[_0x2bce74(0x36a)]){let {objectID:_0xbe0c84,objectType:_0x947ac}=_0xff7621['requestParams']['body']||{};if(!_0xbe0c84||_0x947ac===void 0x0)return!0x1;let _0x120735=_0x58e809[_0x2bce74(0x1c9)]()+'/'+_0x947ac+'/object/'+encodeURIComponent(_0xbe0c84)+_0x2bce74(0x44f);if(_0xff7621[_0x2bce74(0x3a9)]===_0x120735)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1fd218){const _0x577369=_0x5a3c7d;var _0x4a82c3;return(_0x4a82c3=_0x1fd218[_0x577369(0x2a3)])==null?void 0x0:_0x4a82c3[_0x577369(0x36a)];},'mergeParamsToRequest'(_0x37403e,_0x5bff99){const _0x4a12d6=_0x5a3c7d;let _0x3bd237=_0x58e809[_0x4a12d6(0x1c9)]()+_0x4a12d6(0x33f),_0x239a69=_0x37403e[_0x4a12d6(0x1b7)]((_0x3975d2,_0x1847ab)=>{const _0x370ba4=_0x4a12d6;let {unitID:_0x468570,objectID:_0x1c53f2,objectType:_0x30805c,actions:_0x42b27e}=_0x1847ab;return _0x3975d2[_0x468570]||(_0x3975d2[_0x468570]=Object[_0x370ba4(0x38d)](null)),_0x3975d2[_0x468570][_0x1c53f2]||(_0x3975d2[_0x468570][_0x1c53f2]={'objectID':_0x1c53f2,'objectType':_0x30805c,'actions':[]}),_0x3975d2[_0x468570][_0x1c53f2][_0x370ba4(0x2fb)][_0x370ba4(0x3ad)](..._0x42b27e),_0x3975d2;},Object['create'](null)),_0x174004=[];for(let _0x22930a in _0x239a69)for(let _0xca5a10 in _0x239a69[_0x22930a]){let {actions:_0x368d92,objectType:_0x79a837}=_0x239a69[_0x22930a][_0xca5a10],_0x33e7b3=[...new Set(_0x368d92)];_0x174004[_0x4a12d6(0x3ad)]({'unitID':_0x22930a,'objectID':_0xca5a10,'objectType':_0x79a837,'actions':_0x33e7b3});}return new _0xf1a50(_0x4a12d6(0x2a5),_0x3bd237,{'headers':_0x5bff99[_0x4a12d6(0x1f2)],'withCredentials':_0x5bff99[_0x4a12d6(0x223)],'responseType':_0x5bff99[_0x4a12d6(0x47a)],'body':{'requests':_0x174004}});}},{'distributeResult'(_0x2e8a4d,_0x169cf6){let {objectActions:_0x570756}=_0x2e8a4d;return _0x169cf6['map'](_0x41526c=>{const _0x111194=_0x2b0c;let {unitID:_0x5d3af5,objectID:_0x305ced,actions:_0x571166}=_0x41526c,_0x54bc85=_0x570756[_0x111194(0x244)](_0x4e65fa=>_0x4e65fa['unitID']===_0x5d3af5&&_0x4e65fa[_0x111194(0x258)]===_0x305ced);return{'config':_0x41526c,'result':{'actions':_0x571166[_0x111194(0x3da)](_0x5522c9=>_0x54bc85==null?void 0x0:_0x54bc85[_0x111194(0x2fb)][_0x111194(0x244)](_0x459e03=>_0x459e03[_0x111194(0x1e2)]===_0x5522c9))[_0x111194(0x326)](_0x420db2=>!!_0x420db2),'error':_0x2e8a4d['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x15a3cc=_0x58e0b4;let _0x32e3e6=this['_configService'][_0x15a3cc(0x21f)](R);return(_0x32e3e6==null?void 0x0:_0x32e3e6['authzUrl'])??'/universer-api/authz';}async[_0x58e0b4(0x38d)](_0x252919){const _0x56b622=_0x58e0b4;let _0x502054=this[_0x56b622(0x1c9)]()+'/'+_0x252919[_0x56b622(0x279)]+'/object';return(await this['_HTTPService'][_0x56b622(0x1ad)](_0x502054,{'body':_0x252919}))[_0x56b622(0x36a)]['objectID']||'';}async[_0x58e0b4(0x438)](_0x7c65a4){const _0x4955e8=_0x58e0b4;let _0x1a84d6=this[_0x4955e8(0x1c9)]()+'/-/object/list';return(await this[_0x4955e8(0x177)][_0x4955e8(0x1ad)](_0x1a84d6,{'body':_0x7c65a4}))[_0x4955e8(0x36a)][_0x4955e8(0x399)];}async[_0x58e0b4(0x324)](_0x48ba24){const _0x4fb607=_0x58e0b4;var _0x366893;let _0x5da2d=this[_0x4fb607(0x1c9)]()+'/'+_0x48ba24[_0x4fb607(0x279)]+_0x4fb607(0x32a)+encodeURIComponent(_0x48ba24[_0x4fb607(0x258)]),_0x3632f1=await this[_0x4fb607(0x177)][_0x4fb607(0x22d)](_0x5da2d,{'body':_0x48ba24});if((_0x3632f1==null||(_0x366893=_0x3632f1['body'])==null||(_0x366893=_0x366893[_0x4fb607(0x2fa)])==null?void 0x0:_0x366893[_0x4fb607(0x2ea)])!==0x1)throw Error(_0x4fb607(0x40b));}async[_0x58e0b4(0x247)](_0x54ea5c){const _0x51d397=_0x58e0b4;let _0x1f03d5=this[_0x51d397(0x1c9)]()+'/'+_0x54ea5c[_0x51d397(0x279)]+_0x51d397(0x32a)+encodeURIComponent(_0x54ea5c['objectID'])+'/allowed';return(await this[_0x51d397(0x177)][_0x51d397(0x1ad)](_0x1f03d5,{'body':_0x54ea5c}))[_0x51d397(0x36a)][_0x51d397(0x2fb)];}async[_0x58e0b4(0x39b)](_0x514d7c){const _0xf46033=_0x58e0b4;let _0x2e2c99=this[_0xf46033(0x1c9)]()+_0xf46033(0x33f);return(await this['_HTTPService'][_0xf46033(0x1ad)](_0x2e2c99,{'body':{'requests':_0x514d7c}}))['body']['objectActions'];}async[_0x58e0b4(0x26e)](_0xe94fee){const _0x57ce18=_0x58e0b4;let _0x5096f8=this['_getAPIPrefixPath']()+'/'+_0xe94fee['objectType']+_0x57ce18(0x2f6),_0x2f6d96=await this['_HTTPService'][_0x57ce18(0x1ad)](_0x5096f8,{'body':_0xe94fee});return{'roles':_0x2f6d96[_0x57ce18(0x36a)][_0x57ce18(0x148)],'actions':_0x2f6d96[_0x57ce18(0x36a)][_0x57ce18(0x2fb)]};}async['deleteCollaborator'](_0x70764d){const _0x4baac7=_0x58e0b4;let _0x3ddf9e=this['_getAPIPrefixPath']()+_0x4baac7(0x400);await this[_0x4baac7(0x177)][_0x4baac7(0x435)](_0x3ddf9e,{'params':{'collaboratorID':_0x70764d[_0x4baac7(0x442)],'objectID':_0x70764d[_0x4baac7(0x258)],'unitID':_0x70764d[_0x4baac7(0x468)]}});}async[_0x58e0b4(0x41a)](_0x4caa19){const _0x5d58c3=_0x58e0b4;let _0x28a271=this[_0x5d58c3(0x1c9)]()+_0x5d58c3(0x400);await this[_0x5d58c3(0x177)]['patch'](_0x28a271,{'body':_0x4caa19});}async['createCollaborator'](_0x18585b){const _0x1daeb2=_0x58e0b4;let _0x14530d=this[_0x1daeb2(0x1c9)]()+'/collaborator';await this[_0x1daeb2(0x177)]['post'](_0x14530d,{'body':_0x18585b});}async[_0x58e0b4(0x3f7)](_0x202d44){const _0x2f65d3=_0x58e0b4;let _0x194a87=this[_0x2f65d3(0x1c9)]()+_0x2f65d3(0x400),_0x3edbda=await this['_HTTPService'][_0x2f65d3(0x172)](_0x194a87,{'params':{'objectID':_0x202d44['objectID'],'unitID':_0x202d44[_0x2f65d3(0x468)]}});return this[_0x2f65d3(0x19b)](_0x3edbda[_0x2f65d3(0x36a)][_0x2f65d3(0x436)]??!0x1),_0x3edbda[_0x2f65d3(0x36a)][_0x2f65d3(0x24d)];}async[_0x58e0b4(0x1c6)](_0x416c44){const _0x14902d=_0x58e0b4;let _0x11fdb5=this[_0x14902d(0x1c9)]()+_0x14902d(0x400);await this[_0x14902d(0x177)][_0x14902d(0x22d)](_0x11fdb5,{'body':_0x416c44});}[_0x58e0b4(0x19b)](_0x5be5fb){const _0x28b47c=_0x58e0b4;this[_0x28b47c(0x282)]=_0x5be5fb;}[_0x58e0b4(0x253)](){const _0x2c4fcd=_0x58e0b4;return this[_0x2c4fcd(0x282)];}};cr=H([V(0x0,_0x5a17cb(_0x41a562)),V(0x1,_0x5a17cb(_0xf6e881))],cr);function lr(_0xbc2325){const _0x22465d=_0x58e0b4;let _0x4effde=atob(_0xbc2325),_0xe38be5=new Uint8Array(_0x4effde[_0x22465d(0x2bb)]);for(let _0x599207=0x0;_0x599207<_0x4effde[_0x22465d(0x2bb)];_0x599207++)_0xe38be5[_0x599207]=_0x4effde[_0x22465d(0x221)](_0x599207);return _0xe38be5;}function ur(_0x508438){const _0x450bb2=_0x58e0b4;let _0x4df643='';for(let _0x1dc5a0=0x0;_0x1dc5a0<_0x508438['length'];_0x1dc5a0++)_0x4df643+=String[_0x450bb2(0x20a)](_0x508438[_0x1dc5a0]);return btoa(_0x4df643);}function dr(_0x1ea675,_0x6c888b){const _0x209fe2=_0x58e0b4;let _0x29cea6=lr(_0x6c888b),_0x1e3028=_0x5b40cd(0x10),_0x4096a2=_0x1f598d(_0x29cea6,_0x1e3028)[_0x209fe2(0x181)](_0x661604(_0x1ea675));return ur(_0x4a6733(_0x1e3028,_0x4096a2));}function fr(){const _0x3d42de=_0x58e0b4;let _0x49f15a=_0x5c0508()[_0x3d42de(0x3d5)];if(typeof window<'u'&&window[_0x3d42de(0x1a4)]!==void 0x0&&_0x49f15a){let _0x441ecd={'time':Math[_0x3d42de(0x406)](Date[_0x3d42de(0x208)]()/0x3e8),'domain':location[_0x3d42de(0x2f4)]};return dr(JSON[_0x3d42de(0x412)](_0x441ecd),_0x49f15a);}}let pr=class{constructor(_0x15f6c3){const _0x5baba1=_0x58e0b4;this[_0x5baba1(0x2c6)]=_0x15f6c3,this[_0x5baba1(0x297)]();}[_0x58e0b4(0x297)](){const _0x5e8991=_0x58e0b4;this[_0x5e8991(0x2c6)]['registerHTTPInterceptor']({'interceptor':(_0x54bc96,_0x46cfc9)=>{const _0x6d13f7=_0x5e8991;let _0x49f1f3=fr();return _0x49f1f3&&_0x54bc96[_0x6d13f7(0x1f2)][_0x6d13f7(0x3bb)](_0x6d13f7(0x190),_0x49f1f3),_0x46cfc9(_0x54bc96);}});}};pr=H([V(0x0,_0x5a17cb(_0x41a562))],pr);let mr=class extends _0x3129e8{constructor(_0x37e919,_0x5923e1,_0x411d6e){const _0x55481a=_0x58e0b4;super(),this[_0x55481a(0x401)]=_0x37e919,this[_0x55481a(0x3e4)]=_0x5923e1,this['_localCacheService']=_0x411d6e,z(this,_0x55481a(0x243),new _0xabbeab(null)),z(this,_0x55481a(0x252),new _0x5159b6()),z(this,'unitInfo$',this[_0x55481a(0x243)][_0x55481a(0x42c)]()),z(this,_0x55481a(0x1be),this[_0x55481a(0x252)][_0x55481a(0x42c)]());}[_0x58e0b4(0x1d3)](){const _0xae2953=_0x58e0b4;super[_0xae2953(0x1d3)](),this[_0xae2953(0x252)]['complete'](),this[_0xae2953(0x243)][_0xae2953(0x19a)]();}[_0x58e0b4(0x3eb)](_0x34cba1,_0x5ab4be,_0x2641e5,_0x1a47a8,_0x1698ca){const _0x1f22db=_0x58e0b4;return this[_0x1f22db(0x176)](_0x34cba1,_0x5ab4be,_0x2641e5,_0x1a47a8,_0x1698ca);}[_0x58e0b4(0x378)](_0x1bbe60,_0x830e8f,_0x5c103d,_0xfc33c7){return this['_loadUnit'](_0x1bbe60,_0x830e8f,void 0x0,_0x5c103d,_0xfc33c7);}async[_0x58e0b4(0x176)](_0x324ef3,_0x1eda61,_0x1f4ff2,_0x105e1c,_0x16d8d4){const _0x186603=_0x58e0b4;this[_0x186603(0x243)][_0x186603(0x450)]({'unitId':_0x324ef3,'type':_0x1eda61,'subUnitId':_0x105e1c});let _0x2dc98c=_0x1f4ff2;if(_0x2dc98c===void 0x0){var _0x540d09;let _0x1f45fb=await((_0x540d09=this[_0x186603(0x13e)])==null?void 0x0:_0x540d09[_0x186603(0x21d)](_0x324ef3));_0x2dc98c=_0x1f45fb&&(_0x1f45fb[_0x186603(0x154)]||_0x1f45fb[_0x186603(0x17f)][_0x186603(0x2bb)]!==0x0)?_0x1f45fb[_0x186603(0x372)]:0x0,_0x2dc98c===0x0&&this[_0x186603(0x401)][_0x186603(0x36f)](_0x186603(0x2ca),_0x186603(0x463));}return this[_0x186603(0x3fd)](_0x324ef3,_0x1eda61,_0x2dc98c,_0x105e1c,_0x16d8d4);}async['_loadSnapshot'](_0xe164d1,_0x48797b,_0x183da4,_0xd913b8,_0x2530bd){const _0x4d91c1=_0x58e0b4;let _0x906c29=null;switch(_0x48797b){case _0x22f8f1['UNIVER_SHEET']:_0x906c29=await this[_0x4d91c1(0x3e4)][_0x4d91c1(0x28d)](_0xe164d1,_0x183da4,_0x2530bd,{'initialSubUnitId':_0xd913b8});break;case _0x22f8f1[_0x4d91c1(0x157)]:_0x906c29=await this[_0x4d91c1(0x3e4)][_0x4d91c1(0x179)](_0xe164d1,_0x183da4,_0x2530bd);break;case _0x22f8f1[_0x4d91c1(0x209)]:_0x906c29=await this[_0x4d91c1(0x3e4)][_0x4d91c1(0x164)](_0xe164d1,_0x183da4,_0x2530bd);break;case _0x22f8f1[_0x4d91c1(0x185)]:_0x906c29=await this[_0x4d91c1(0x3e4)][_0x4d91c1(0x332)](_0xe164d1,_0x183da4,_0x2530bd);break;case _0x22f8f1[_0x4d91c1(0x280)]:_0x906c29=await this[_0x4d91c1(0x3e4)][_0x4d91c1(0x3ab)](_0xe164d1,_0x183da4,_0x2530bd);break;case _0x22f8f1[_0x4d91c1(0x24f)]:_0x906c29=await this[_0x4d91c1(0x3e4)][_0x4d91c1(0x3d1)](_0xe164d1,_0x183da4,_0x2530bd);break;default:this[_0x4d91c1(0x401)][_0x4d91c1(0x2fa)]('[DataLoaderService]',_0x4d91c1(0x334));}return _0x906c29&&this['_unitLoaded$']['next'](_0x906c29),_0x906c29;}};mr=H([V(0x0,_0x273710),V(0x1,_0x5a17cb(_0x52793a)),V(0x2,_0x16c3fa(U))],mr);let hr=class{constructor(_0x404dde,_0x1ac6e5,_0x5cc311){const _0x48d8bf=_0x58e0b4;this['_httpService']=_0x404dde,this[_0x48d8bf(0x1a5)]=_0x1ac6e5,this[_0x48d8bf(0x3e5)]=_0x5cc311,z(this,_0x48d8bf(0x35e),0x0),z(this,_0x48d8bf(0x227),new _0x5159b6()),z(this,_0x48d8bf(0x1d1),this[_0x48d8bf(0x227)]),z(this,_0x48d8bf(0x30b),new Map());}[_0x58e0b4(0x1dc)](_0x8dc15){const _0xc616c4=_0x58e0b4;this[_0xc616c4(0x35e)]=_0x8dc15,this['_change$']['next'](_0x8dc15);}[_0x58e0b4(0x141)](_0x1705e4,_0x41f668){const _0x1511dc=_0x58e0b4;if(_0x41f668===_0x193c57['BASE64']){let _0x45f357=new Image();return _0x45f357[_0x1511dc(0x2cc)]=_0x1705e4,_0x45f357;}return this[_0x1511dc(0x30b)][_0x1511dc(0x172)](_0x1705e4);}[_0x58e0b4(0x1b1)](_0x658ad7,_0x214505,_0x254c17){const _0x2d79bd=_0x58e0b4;_0x214505!==_0x193c57[_0x2d79bd(0x3bf)]&&_0x254c17!=null&&this[_0x2d79bd(0x30b)][_0x2d79bd(0x3bb)](_0x658ad7,_0x254c17);}async[_0x58e0b4(0x28a)](_0x42257a){const _0x2960ac=_0x58e0b4;try{let _0x390b78=this[_0x2960ac(0x3a7)](this[_0x2960ac(0x425)](),''+_0x42257a),_0x29e788=(await this['_httpService'][_0x2960ac(0x172)](_0x390b78))[_0x2960ac(0x36a)];if(_0x29e788['error']&&_0x29e788[_0x2960ac(0x2fa)][_0x2960ac(0x2ea)]===_0xb46715['OK']){let _0x39db6c=_0x278c1f(_0x29e788['url'],this[_0x2960ac(0x29d)]());return Promise[_0x2960ac(0x192)](_0x39db6c);}return Promise['reject'](_0x29e788[_0x2960ac(0x2fa)]);}catch(_0x54eeb2){return Promise[_0x2960ac(0x1e8)](_0x54eeb2);}}async[_0x58e0b4(0x1fa)](_0x2896d0){const _0x4032b1=_0x58e0b4;let _0x36350d='';if(!_0x350cf2[_0x4032b1(0x25a)](_0x2896d0[_0x4032b1(0x222)]))return this[_0x4032b1(0x262)](),Promise[_0x4032b1(0x1e8)](Error(_0x345769[_0x4032b1(0x238)]));if(_0x2896d0[_0x4032b1(0x306)]>_0x5a3a67())return this[_0x4032b1(0x262)](),Promise['reject'](Error(_0x345769['ERROR_EXCEED_SIZE']));try{let _0x1c2ac2=new FormData();_0x1c2ac2[_0x4032b1(0x392)](_0x4032b1(0x149),_0x2896d0);let _0x27c156=this['_univerInstanceService']['getFocusedUnit'](),_0xce2cf=_0x27c156==null?void 0x0:_0x27c156[_0x4032b1(0x15b)]();if(!_0xce2cf)throw Error('unitId\x20is\x20not\x20found');let _0x448a28=this[_0x4032b1(0x32c)]()+'?size='+_0x2896d0[_0x4032b1(0x306)][_0x4032b1(0x22c)]()+_0x4032b1(0x2ee)+_0x51a094[_0x4032b1(0x2e7)]+_0x4032b1(0x217)+encodeURIComponent(_0xce2cf),_0x104499={'body':_0x1c2ac2},_0x43e5d7=(await this[_0x4032b1(0x2c6)][_0x4032b1(0x1ad)](_0x448a28,_0x104499))[_0x4032b1(0x36a)];if(typeof _0x43e5d7['FileId']!=_0x4032b1(0x140))return this['_decreaseWaiting'](),Promise[_0x4032b1(0x1e8)](Error(_0x345769[_0x4032b1(0x2a6)]));_0x36350d=_0x43e5d7['FileId'];}catch{return this[_0x4032b1(0x262)](),Promise[_0x4032b1(0x1e8)](Error(_0x345769[_0x4032b1(0x2a6)]));}return new Promise((_0x346506,_0x363ebd)=>{const _0x4cae5f=_0x4032b1;let _0x30305d=new FileReader();_0x30305d[_0x4cae5f(0x2d0)](_0x2896d0),_0x30305d[_0x4cae5f(0x17e)]=_0x531871=>{const _0x590744=_0x4cae5f;var _0x45ac87;let _0xa0e371=(_0x45ac87=_0x531871[_0x590744(0x300)])==null?void 0x0:_0x45ac87[_0x590744(0x187)];_0xa0e371==null?(this[_0x590744(0x262)](),_0x363ebd(Error(_0x345769[_0x590744(0x2a6)]))):(_0x346506({'imageId':_0x2043b6(0x6),'imageSourceType':_0x193c57[_0x590744(0x2ba)],'source':_0x36350d,'base64Cache':_0xa0e371,'status':_0x345769['SUCCUSS']}),this[_0x590744(0x262)]());};});}[_0x58e0b4(0x32c)](){const _0x44432b=_0x58e0b4;let _0x126d65=this['_configService'][_0x44432b(0x21f)](R);return(_0x126d65==null?void 0x0:_0x126d65['uploadFileServerUrl'])??_0x44432b(0x460);}[_0x58e0b4(0x425)](){const _0x55993f=_0x58e0b4;let _0x1034f7=this[_0x55993f(0x1a5)][_0x55993f(0x21f)](R);return(_0x1034f7==null?void 0x0:_0x1034f7[_0x55993f(0x2f5)])??'/universer-api/file/{fileID}/sign-url';}['_getDownloadEndpointURL'](){const _0x1cbd3f=_0x58e0b4;let _0x21be0f=this[_0x1cbd3f(0x1a5)][_0x1cbd3f(0x21f)](R);return(_0x21be0f==null?void 0x0:_0x21be0f[_0x1cbd3f(0x1ef)])??location[_0x1cbd3f(0x20c)];}['_replaceFileID'](_0x451727,_0xe54247){const _0x58d586=_0x58e0b4;return _0x451727['replace'](_0x58d586(0x29f),_0xe54247);}[_0x58e0b4(0x262)](){const _0xb32753=_0x58e0b4;--this['_waitCount'],this[_0xb32753(0x227)][_0xb32753(0x450)](this[_0xb32753(0x35e)]);}};hr=H([V(0x0,_0x5a17cb(_0x41a562)),V(0x1,_0xf6e881),V(0x2,_0x5a17cb(_0x2c297b))],hr);let gr=class{constructor(_0x2b62c2,_0xb731c2){const _0x31f2e4=_0x58e0b4;this[_0x31f2e4(0x1a5)]=_0x2b62c2,this['_HTTPService']=_0xb731c2;}[_0x58e0b4(0x1c9)](){const _0x3bf796=_0x58e0b4;let _0x45be00=this[_0x3bf796(0x1a5)][_0x3bf796(0x21f)](R);return(_0x45be00==null?void 0x0:_0x45be00[_0x3bf796(0x1ee)])??_0x3bf796(0x2e6);}async[_0x58e0b4(0x438)](_0x215eb7){const _0x5527f9=_0x58e0b4;let _0x53fc3b=this[_0x5527f9(0x1c9)]()+'/collaborator';return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x5527f9(0x172)](_0x53fc3b,{'params':{'objectID':_0x215eb7[_0x5527f9(0x25c)],'unitID':_0x215eb7[_0x5527f9(0x25c)]}}))[_0x5527f9(0x36a)][_0x5527f9(0x24d)][_0x5527f9(0x3da)](_0x45a63a=>({'objectId':_0x45a63a['id'],'name':_0x45a63a['subject']['name'],'metadata':{'icon':_0x45a63a[_0x5527f9(0x2dc)][_0x5527f9(0x3e3)]},'label':_0x45a63a[_0x5527f9(0x2dc)][_0x5527f9(0x237)],'objectType':_0x390ab1['PERSON']})),'metadata':{},'type':_0x390ab1[_0x5527f9(0x2ae)]}]};}};gr=H([V(0x0,_0x5a17cb(_0xf6e881)),V(0x1,_0x5a17cb(_0x41a562))],gr);let _r=class extends _0x3129e8{constructor(_0x398fcc,_0xcb2ca6,_0x3e427d,_0x22e848,_0x112179,_0x348464){const _0xff8c35=_0x58e0b4;super(),this[_0xff8c35(0x268)]=_0x398fcc,this['_univerInstanceService']=_0xcb2ca6,this[_0xff8c35(0x397)]=_0x3e427d,this[_0xff8c35(0x234)]=_0x22e848,this['_collaborationSessionService']=_0x112179,this[_0xff8c35(0x2ad)]=_0x348464,z(this,_0xff8c35(0x27b),new Set()),this['disposeWithMe'](()=>this['_closedUnits'][_0xff8c35(0x1d6)]()),this[_0xff8c35(0x398)](vr(this[_0xff8c35(0x3e5)])['subscribe'](({unitId:_0x24e088})=>this['_closedUnits'][_0xff8c35(0x435)](_0x24e088))),this['_initUnitPermissionChange'](),this['_initCloseConn'](),[_0x22f8f1[_0xff8c35(0x157)],_0x22f8f1[_0xff8c35(0x209)],_0x22f8f1[_0xff8c35(0x280)],_0x22f8f1[_0xff8c35(0x185)]][_0xff8c35(0x266)](_0x15220f=>{const _0x3304dd=_0xff8c35;this[_0x3304dd(0x398)](this['_univerInstanceService'][_0x3304dd(0x384)](_0x15220f)['subscribe'](_0x2d9741=>{const _0x30f51b=_0x3304dd;this[_0x30f51b(0x27b)][_0x30f51b(0x19c)](_0x2d9741['getUnitId']()),this[_0x30f51b(0x268)][_0x30f51b(0x172)](_0x530872)[_0x30f51b(0x321)](_0x2d9741[_0x30f51b(0x15b)]());}));});}[_0x58e0b4(0x2e5)](){const _0x2c3b0f=_0x58e0b4;let _0x39cb00=async(_0x1b8287,_0x2f7cd7)=>{const _0x120abe=_0x2b0c;let _0x4a38e1=await this[_0x120abe(0x2e4)][_0x120abe(0x14b)](_0x1b8287);this[_0x120abe(0x424)]||this[_0x120abe(0x27b)][_0x120abe(0x2b9)](_0x1b8287)||!this[_0x120abe(0x3e5)]['getUnit'](_0x1b8287)||_0x4a38e1['event$']['pipe'](_0x1a5549(_0xc88549=>_0xc88549[_0x120abe(0x2e9)]===_0x43c2b6[_0x120abe(0x3b1)]),_0x2631f4(_0x53f80a(this[_0x120abe(0x46f)],this['_univerInstanceService']['unitDisposed$'][_0x120abe(0x3dc)](_0x1a5549(_0x411d4b=>_0x411d4b['getUnitId']()===_0x1b8287)))))[_0x120abe(0x377)](_0x5976d5=>{const _0x507a0b=_0x120abe;let {reason:_0x329b7b}=_0x5976d5['data'];this[_0x507a0b(0x2ad)][_0x507a0b(0x3c1)]({'id':_0x507a0b(0x341),'data':_0x329b7b}),this[_0x507a0b(0x27b)]['add'](_0x1b8287),this[_0x507a0b(0x268)][_0x507a0b(0x172)](_0x530872)['clearUnit'](_0x1b8287);let _0x9e6b4=yr(_0x2f7cd7);_0x9e6b4!=null&&this[_0x507a0b(0x2d1)](_0x1b8287,_0x9e6b4,_0x51d148[_0x507a0b(0x441)],!0x1),this[_0x507a0b(0x2e4)][_0x507a0b(0x3ba)](_0x1b8287);});};vr(this[_0x2c3b0f(0x3e5)])[_0x2c3b0f(0x3dc)](_0x1a5549(({unitId:_0x3e69a4})=>!_0x7840f(_0x3e69a4)),_0x2631f4(this[_0x2c3b0f(0x46f)]))[_0x2c3b0f(0x377)](({type:_0x3d9033,unitId:_0x3b11cc})=>{const _0x7d2505=_0x2c3b0f;_0x39cb00(_0x3b11cc,_0x3d9033)[_0x7d2505(0x3c3)](_0x1807de=>this[_0x7d2505(0x268)]['get'](_0x273710)[_0x7d2505(0x2fa)](_0x1807de));});}[_0x58e0b4(0x20d)](){const _0x1f0f97=_0x58e0b4;let _0x3d8a7c=async(_0x2ec9a5,_0x5c2e9f)=>{const _0x56f8cb=_0x2b0c;let _0x6048eb=await this[_0x56f8cb(0x2e4)][_0x56f8cb(0x14b)](_0x2ec9a5);if(!(this[_0x56f8cb(0x424)]||this[_0x56f8cb(0x27b)]['has'](_0x2ec9a5)||!this[_0x56f8cb(0x3e5)][_0x56f8cb(0x3c2)](_0x2ec9a5))){if(_0x5c2e9f===_0x22f8f1[_0x56f8cb(0x277)]){let _0x1def57=this[_0x56f8cb(0x268)][_0x56f8cb(0x172)](_0x207115);await _0x1def57['initWorkbookPermissionChange'](_0x2ec9a5),_0x6048eb['event$'][_0x56f8cb(0x3dc)](_0x1a5549(_0x556821=>_0x556821[_0x56f8cb(0x2e9)]===_0x43c2b6[_0x56f8cb(0x1ab)]),_0x2631f4(_0x53f80a(this[_0x56f8cb(0x46f)],_0x6048eb[_0x56f8cb(0x206)][_0x56f8cb(0x3dc)](_0x1a5549(_0x18c413=>_0x18c413[_0x56f8cb(0x2e9)]===_0x43c2b6[_0x56f8cb(0x3b1)])),this[_0x56f8cb(0x3e5)][_0x56f8cb(0x414)][_0x56f8cb(0x3dc)](_0x1a5549(_0x471239=>_0x471239[_0x56f8cb(0x15b)]()===_0x2ec9a5)))))[_0x56f8cb(0x377)](_0x20f4d6=>{const _0x535769=_0x56f8cb;let {objectId:_0x1ce911}=_0x20f4d6[_0x535769(0x1d7)];_0x1ce911===_0x2ec9a5?_0x1def57['initWorkbookPermissionChange'](_0x2ec9a5):_0x1def57[_0x535769(0x409)](_0x2ec9a5,_0x1ce911);});}else _0x6048eb[_0x56f8cb(0x206)][_0x56f8cb(0x3dc)](_0x1a5549(_0x23bddb=>_0x23bddb['eventID']===_0x43c2b6['UPDATE_PERMISSION_OBJ']),_0x2631f4(_0x53f80a(this[_0x56f8cb(0x46f)],_0x6048eb[_0x56f8cb(0x206)][_0x56f8cb(0x3dc)](_0x1a5549(_0x2c2ba9=>_0x2c2ba9[_0x56f8cb(0x2e9)]===_0x43c2b6[_0x56f8cb(0x3b1)])),this[_0x56f8cb(0x3e5)][_0x56f8cb(0x414)][_0x56f8cb(0x3dc)](_0x1a5549(_0xa5cf02=>_0xa5cf02[_0x56f8cb(0x15b)]()===_0x2ec9a5)))))['subscribe'](()=>{const _0x213850=_0x56f8cb;this[_0x213850(0x1fe)](_0x2ec9a5,_0x5c2e9f)[_0x213850(0x3c3)](_0xe02c4b=>this[_0x213850(0x268)]['get'](_0x273710)[_0x213850(0x2fa)](_0xe02c4b));}),await this[_0x56f8cb(0x1fe)](_0x2ec9a5,_0x5c2e9f);}};vr(this[_0x1f0f97(0x3e5)])[_0x1f0f97(0x3dc)](_0x1a5549(({unitId:_0x598560})=>!_0x7840f(_0x598560)),_0x2631f4(this[_0x1f0f97(0x46f)]))[_0x1f0f97(0x377)](({type:_0x1b8e63,unitId:_0x182437})=>{const _0x3fa261=_0x1f0f97;_0x3d8a7c(_0x182437,_0x1b8e63)[_0x3fa261(0x3c3)](_0x4ef60a=>this[_0x3fa261(0x268)]['get'](_0x273710)[_0x3fa261(0x2fa)](_0x4ef60a));});}async[_0x58e0b4(0x1fe)](_0x38380f,_0x53e3b8){const _0x42c9b3=_0x58e0b4;let _0x29c1ec=yr(_0x53e3b8);if(_0x29c1ec==null)return;let _0x4f3489=this[_0x42c9b3(0x268)][_0x42c9b3(0x172)](_0x530872);if(_0x4f3489['supports']({'unitId':_0x38380f,'objectId':_0x38380f,'objectType':_0x29c1ec})){await _0x4f3489['refreshUnit'](_0x38380f);return;}let _0xb68d4e=this[_0x42c9b3(0x2dd)](_0x38380f,_0x29c1ec);if(!_0xb68d4e[_0x42c9b3(0x2bb)])return;let _0x2d23df=await this[_0x42c9b3(0x234)][_0x42c9b3(0x247)]({'objectID':_0x38380f,'objectType':_0x29c1ec,'unitID':_0x38380f,'actions':_0xb68d4e[_0x42c9b3(0x3da)](({action:_0x1bec25})=>_0x1bec25)});this[_0x42c9b3(0x424)]||this['_closedUnits'][_0x42c9b3(0x2b9)](_0x38380f)||!this[_0x42c9b3(0x3e5)][_0x42c9b3(0x3c2)](_0x38380f)||_0x2d23df[_0x42c9b3(0x266)](_0x3b38d1=>{const _0x108f26=_0x42c9b3;let _0x500eb9=_0x3b38d1[_0x108f26(0x1e2)],_0x1c4da7=_0x3b38d1[_0x108f26(0x247)];_0x500eb9!=null&&_0x1c4da7!=null&&_0xb68d4e[_0x108f26(0x326)](_0x37e107=>_0x37e107[_0x108f26(0x1e2)]===_0x500eb9)['forEach'](_0x2ce3ed=>this['_permissionService'][_0x108f26(0x454)](_0x2ce3ed['id'],_0x1c4da7));});}[_0x58e0b4(0x2dd)](_0x160a75,_0x40e566){const _0x172f60=_0x58e0b4;let _0x241f81=[];return this[_0x172f60(0x397)][_0x172f60(0x2a9)]()[_0x172f60(0x266)]((_0x1ba0b4,_0x984bb7)=>{const _0x4e6d51=_0x172f60;_0x1ba0b4['subscribe'](_0x38e58d=>{const _0x4e9f8b=_0x2b0c;_0x38e58d[_0x4e9f8b(0x222)]===_0x40e566&&_0x4e9f8b(0x25c)in _0x38e58d&&_0x38e58d[_0x4e9f8b(0x25c)]===_0x160a75&&(!(_0x4e9f8b(0x168)in _0x38e58d)||_0x38e58d[_0x4e9f8b(0x168)]===_0x160a75)&&_0x241f81['push']({'id':_0x984bb7,'action':_0x38e58d[_0x4e9f8b(0x207)]});})[_0x4e6d51(0x34e)]();}),_0x241f81;}[_0x58e0b4(0x2d1)](_0x66d984,_0xf05d7d,_0x366978,_0x103a30){const _0x4bfeb7=_0x58e0b4;this[_0x4bfeb7(0x397)][_0x4bfeb7(0x2a9)]()['forEach']((_0x234b9a,_0x364690)=>{const _0x3245d3=_0x4bfeb7;let _0x14421b=!0x1;_0x234b9a[_0x3245d3(0x377)](_0x307311=>{const _0x3d8860=_0x3245d3;_0x14421b=_0x307311[_0x3d8860(0x222)]===_0xf05d7d&&_0x307311[_0x3d8860(0x207)]===_0x366978&&'unitId'in _0x307311&&_0x307311[_0x3d8860(0x25c)]===_0x66d984&&(!(_0x3d8860(0x168)in _0x307311)||_0x307311[_0x3d8860(0x168)]===_0x66d984);})[_0x3245d3(0x34e)](),_0x14421b&&this[_0x3245d3(0x397)][_0x3245d3(0x454)](_0x364690,_0x103a30);});}};_r=H([V(0x0,_0x5a17cb(_0x42cf99)),V(0x1,_0x2c297b),V(0x2,_0x4bb697),V(0x3,_0x573925),V(0x4,_0x5a17cb(Zn)),V(0x5,_0x5a17cb(B))],_r);function vr(_0x14baf7){const _0x11cb9d=_0x58e0b4;return _0x53f80a(...[_0x22f8f1[_0x11cb9d(0x277)],_0x22f8f1[_0x11cb9d(0x157)],_0x22f8f1[_0x11cb9d(0x209)],_0x22f8f1[_0x11cb9d(0x185)],_0x22f8f1[_0x11cb9d(0x280)]][_0x11cb9d(0x3da)](_0x48715d=>_0x14baf7[_0x11cb9d(0x34c)](_0x48715d)['pipe'](_0x280b22(_0x45c297=>({'type':_0x48715d,'unitId':_0x45c297[_0x11cb9d(0x363)][_0x11cb9d(0x15b)]()})))));}function yr(_0x2cae09){const _0x4a426f=_0x58e0b4;switch(_0x2cae09){case _0x22f8f1['UNIVER_SHEET']:return _0x1b27ce[_0x4a426f(0x3b6)];case _0x22f8f1['UNIVER_DOC']:return _0x1b27ce[_0x4a426f(0x3fc)];case _0x22f8f1[_0x4a426f(0x209)]:return _0x1b27ce[_0x4a426f(0x455)];case _0x22f8f1[_0x4a426f(0x185)]:return _0x1b27ce[_0x4a426f(0x3e7)];case _0x22f8f1[_0x4a426f(0x280)]:return _0x1b27ce[_0x4a426f(0x375)];default:return;}}let br=class{constructor(_0x399ef2,_0x54f256){const _0x66d3f=_0x58e0b4;this[_0x66d3f(0x1a5)]=_0x399ef2,this['_httpService']=_0x54f256;}async[_0x58e0b4(0x325)](_0x3c6fdc,_0x26f7f6){const _0x476652=_0x58e0b4;var _0x130fca;let {unitID:_0x2a58d6,type:_0x2de052,revision:_0x541f53=0x0}=_0x26f7f6,_0x30072b=this[_0x476652(0x16a)]()+'/'+_0x2de052+_0x476652(0x195)+_0x2a58d6+_0x476652(0x41f)+_0x541f53,_0x42a943=(await this[_0x476652(0x2c6)][_0x476652(0x172)](_0x30072b))[_0x476652(0x36a)],_0x161e9c=(_0x130fca=_0x42a943[_0x476652(0x242)])==null?void 0x0:_0x130fca['workbook'];if(_0x161e9c){let _0x2612d5=_0x161e9c==null?void 0x0:_0x161e9c[_0x476652(0x31a)];_0x161e9c['originalMeta']=_0x34830c[_0x476652(0x1ca)](_0x34a21a(_0x2612d5)),Object['entries'](_0x161e9c[_0x476652(0x248)])[_0x476652(0x266)](([,_0x265c20])=>{const _0x5561cc=_0x476652;let _0x314eee=_0x265c20[_0x5561cc(0x31a)];_0x265c20[_0x5561cc(0x31a)]=_0x34830c[_0x5561cc(0x1ca)](_0x34a21a(_0x314eee));});}return _0x42a943;}async[_0x58e0b4(0x37e)](_0x4ac883,_0x518fc0){const _0x34bce5=_0x58e0b4;let {unitID:_0x4a9a79,type:_0xf1d35d,blockID:_0x3453a5}=_0x518fc0,_0x211dbd=this[_0x34bce5(0x42f)]()+'/'+_0xf1d35d+_0x34bce5(0x195)+_0x4a9a79+_0x34bce5(0x368)+_0x3453a5;return(await this[_0x34bce5(0x2c6)][_0x34bce5(0x172)](_0x211dbd))[_0x34bce5(0x36a)];}async[_0x58e0b4(0x316)](_0x3005fb,_0x5c3fc5){const _0x11cfd1=_0x58e0b4;let {unitID:_0x3117ce,type:_0x544f93,blockID:_0x4e7bd6}=_0x5c3fc5,_0xe931ac=this[_0x11cfd1(0x42f)]()+_0x11cfd1(0x368)+_0x544f93+_0x11cfd1(0x195)+_0x3117ce+_0x11cfd1(0x368)+_0x4e7bd6;return(await this[_0x11cfd1(0x2c6)][_0x11cfd1(0x172)](_0xe931ac))[_0x11cfd1(0x36a)];}async[_0x58e0b4(0x15e)](_0x920c6d,_0x13e7d2){const _0x1006c5=_0x58e0b4;let {unitID:_0x30b61d,type:_0x3fc332,from:_0x26c171,to:_0x3676f8}=_0x13e7d2,_0x4ccc5d=this[_0x1006c5(0x42f)]()+'/'+_0x3fc332+_0x1006c5(0x195)+_0x30b61d+_0x1006c5(0x3cc)+_0x26c171+_0x1006c5(0x477)+_0x3676f8;return(await this[_0x1006c5(0x2c6)]['get'](_0x4ccc5d))['body'];}[_0x58e0b4(0x16a)](){const _0x519f05=_0x58e0b4;return this[_0x519f05(0x1a5)][_0x519f05(0x21f)](_0x519f05(0x199))??this['_getAPIPrefix']();}[_0x58e0b4(0x42f)](){const _0x156952=_0x58e0b4;let _0x31a5db=this['_configService']['getConfig'](R);return(_0x31a5db==null?void 0x0:_0x31a5db[_0x156952(0x415)])??_0x156952(0x204);}async[_0x58e0b4(0x269)](_0x5c04be,_0xf1de78){const _0x47e979=_0x58e0b4;let _0x109f4f=_0x47e979(0x272)+_0xf1de78[_0x47e979(0x222)]+'/unit/'+_0xf1de78[_0x47e979(0x468)]+'/resources';return(await this[_0x47e979(0x2c6)][_0x47e979(0x172)](_0x109f4f,{'params':{'resourceId':JSON[_0x47e979(0x412)](_0xf1de78['resourceIDs'])}}))[_0x47e979(0x36a)];}[_0x58e0b4(0x27e)](){const _0x57c244=_0x58e0b4;throw Error(_0x57c244(0x1c4));}[_0x58e0b4(0x2bd)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x58e0b4(0x353)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x58e0b4(0x26b)](){const _0x206d27=_0x58e0b4;throw Error(_0x206d27(0x1c4));}['copyFileMeta'](){const _0x25d592=_0x58e0b4;throw Error(_0x25d592(0x1c4));}[_0x58e0b4(0x1b4)](){const _0x5edaec=_0x58e0b4;throw Error(_0x5edaec(0x1c4));}};br=H([V(0x0,_0xf6e881),V(0x1,_0x5a17cb(_0x41a562))],br);let xr=class extends _0x553c47{constructor(_0x14b7e9,_0x5252a7,_0x59f16f,_0x2769d6,_0x36e1e7,_0x1d8293){const _0x126283=_0x58e0b4;super(_0x14b7e9,_0x5252a7,_0x59f16f,_0x2769d6),this['_transformService']=_0x36e1e7,this[_0x126283(0x401)]=_0x1d8293;}[_0x58e0b4(0x1f3)](_0x176880,_0x54b7b9){const _0x340f3a=_0x58e0b4;let _0x34210e=this[_0x340f3a(0x356)](_0x176880);if(_0x34210e)try{let _0x10375c=this[_0x340f3a(0x3d4)](_0x34210e,_0x54b7b9);this[_0x340f3a(0x39a)](_0x176880,_0x10375c);}catch(_0x590f8b){this[_0x340f3a(0x401)][_0x340f3a(0x2fa)]('[CollaborationUndoRedoService]',_0x590f8b),this[_0x340f3a(0x159)](_0x176880);}let _0x21fe24=this['_getRedoStack'](_0x176880);if(_0x21fe24)try{let _0x2acb8f=this[_0x340f3a(0x3d4)](_0x21fe24,_0x54b7b9,!0x0);this[_0x340f3a(0x381)](_0x176880,_0x2acb8f);}catch(_0x3fbb38){this[_0x340f3a(0x401)][_0x340f3a(0x2fa)](_0x3fbb38),this['_clearRedo'](_0x176880);}}[_0x58e0b4(0x159)](_0x975232){const _0x54c710=_0x58e0b4;let _0x311b38=this[_0x54c710(0x356)](_0x975232);_0x311b38&&(_0x311b38[_0x54c710(0x2bb)]=0x0,this['_updateStatus']());}[_0x58e0b4(0x365)](_0x4c1f56){const _0x4525d1=_0x58e0b4;let _0x1669b0=this[_0x4525d1(0x3b2)](_0x4c1f56);_0x1669b0&&(_0x1669b0[_0x4525d1(0x2bb)]=0x0,this[_0x4525d1(0x333)]());}['_substituteUndoStack'](_0x1532f2,_0x4e893a){const _0x215b51=_0x58e0b4;this[_0x215b51(0x246)][_0x215b51(0x3bb)](_0x1532f2,_0x4e893a),this[_0x215b51(0x333)]();}[_0x58e0b4(0x381)](_0x221af9,_0x1c2292){const _0x3d6764=_0x58e0b4;this[_0x3d6764(0x22b)][_0x3d6764(0x3bb)](_0x221af9,_0x1c2292),this[_0x3d6764(0x333)]();}[_0x58e0b4(0x3d4)](_0x1cd852,_0x8b6da2,_0x1d7964=!0x1){const _0x239456=_0x58e0b4;if(!_0x1cd852[_0x239456(0x2bb)])return[];let _0x5d6523=[],_0xea1370=_0x8b6da2,_0x56d6c9=_0x8b6da2[_0x239456(0x222)]===_0x22f8f1[_0x239456(0x157)]?this[_0x239456(0x3e5)][_0x239456(0x3c2)](_0x8b6da2[_0x239456(0x468)],_0x22f8f1[_0x239456(0x157)]):null,_0x229f07=_0x56d6c9?{'id':_0x56d6c9[_0x239456(0x15b)](),'documentStyle':{},'tableSource':_0x1d0822['deepClone'](_0x56d6c9['getSnapshot']()[_0x239456(0x38c)]??{})}:null;for(let _0x23e47a=_0x1cd852[_0x239456(0x2bb)]-0x1;_0x23e47a>=0x0;_0x23e47a--){let {unitID:_0xf898b5,undoMutations:_0x9e0e5,redoMutations:_0x4bbfb8}=_0x1cd852[_0x23e47a],_0x957105=_0x1d7964?_0x4bbfb8:_0x9e0e5,_0xe2b064=this[_0x239456(0x1aa)](_0xea1370,_0x957105);if(_0x2a7fc3(_0xe2b064)){this[_0x239456(0x401)][_0x239456(0x2fa)]('[CollaborationUndoRedoService]',_0x239456(0x165),_0xe2b064);break;}let _0x8cfe3e=_0x1d7964?_0x9e0e5:_0x4bbfb8,_0x5c14da=this['_transformHistoryMutations'](_0xe2b064['c1Prime'],_0x8cfe3e);if(_0x2a7fc3(_0x5c14da)){this[_0x239456(0x401)][_0x239456(0x2fa)](_0x239456(0x3cd),_0x239456(0x165),_0x5c14da);break;}let _0x287d4b=_0x1d7964?_0x5c14da:_0xe2b064,_0x68b86b=_0x1d7964?_0xe2b064:_0x5c14da;_0xea1370=_0xe2b064[_0x239456(0x45f)],_0x229f07&&=this[_0x239456(0x43f)](_0x229f07,_0xe2b064['m2Prime'],_0x5c14da[_0x239456(0x1a6)]),_0x5d6523[_0x239456(0x3ad)]({'unitID':_0xf898b5,'undoMutations':_0x287d4b['m2Prime'],'redoMutations':_0x68b86b[_0x239456(0x1a6)]});}return _0x5d6523[_0x239456(0x276)]();}[_0x58e0b4(0x1aa)](_0x3f7a1e,_0x48e892){const _0x204621=_0x58e0b4;if(_0x3f7a1e[_0x204621(0x222)]!==_0x22f8f1[_0x204621(0x157)]||_0x48e892[_0x204621(0x2cd)](_0x4361c8=>_0x4361c8['id']!==_0x5061cf['id']))return this['_transformService'][_0x204621(0x155)](_0x3f7a1e,_0x48e892);let _0x5b3d15=_0x1d0822[_0x204621(0x1d4)](_0x48e892),_0x341b6a=[];for(let _0x41ab3d of _0x3f7a1e[_0x204621(0x17f)]){let _0x372b1c={..._0x3f7a1e,'mutations':[_0x41ab3d]},_0x279fce=[];for(let _0x36fac2 of _0x5b3d15){_0x372b1c=this[_0x204621(0x31c)](_0x372b1c,[_0x36fac2]);let _0x31f74d=this[_0x204621(0x3ca)][_0x204621(0x155)](_0x372b1c,[_0x36fac2]);if(_0x2a7fc3(_0x31f74d))return _0x31f74d;_0x372b1c=_0x31f74d['c1Prime'],_0x279fce['push'](..._0x31f74d[_0x204621(0x1a6)]);}_0x5b3d15=_0x279fce,_0x341b6a[_0x204621(0x3ad)](..._0x372b1c[_0x204621(0x17f)]);}return{'m2Prime':_0x5b3d15,'c1Prime':{..._0x3f7a1e,'mutations':_0x341b6a}};}[_0x58e0b4(0x31c)](_0x589834,_0x115931){const _0x3f61e4=_0x58e0b4;let _0x57507e=new Map(),_0x248209=_0x3915f5[_0x3f61e4(0x222)][_0x3f61e4(0x440)](_0x115931[0x0]['params'][_0x3f61e4(0x2fb)]);if(_0x248209['traverse'](null,_0x4eccd8=>{const _0x48414f=_0x3f61e4;if(_0x4eccd8['et']!=='text-x')return;let _0x12f510=JSON[_0x48414f(0x412)](_0x248209[_0x48414f(0x230)]()),_0x5c6c1a=_0x57507e['get'](_0x12f510)??new Map(),_0x22d749=0x0;for(let _0x504046 of _0x4eccd8['e']){if(_0x504046['t']===_0x123ce4[_0x48414f(0x23a)]){var _0x3f4025;for(let _0x5c4bca of((_0x3f4025=_0x504046[_0x48414f(0x36a)])==null?void 0x0:_0x3f4025[_0x48414f(0x186)])??[])_0x5c6c1a[_0x48414f(0x3bb)](_0x22d749+_0x5c4bca['startIndex'],{'paragraph':_0x5c4bca,'replace':_0x504046[_0x48414f(0x43d)]===_0x22a6a2[_0x48414f(0x2a8)]});}_0x504046['t']!==_0x123ce4[_0x48414f(0x474)]&&(_0x22d749+=_0x504046[_0x48414f(0x308)]);}_0x5c6c1a['size']>0x0&&_0x57507e[_0x48414f(0x3bb)](_0x12f510,_0x5c6c1a);}),_0x57507e[_0x3f61e4(0x306)]===0x0)return _0x589834;let _0xea846d=_0x1d0822['deepClone'](_0x589834);for(let _0xd188b8 of _0xea846d['mutations']){if(_0xd188b8['id']!==_0x5061cf['id'])continue;let _0x50fa34=_0x3915f5[_0x3f61e4(0x222)]['readCursor'](_0xd188b8[_0x3f61e4(0x417)][_0x3f61e4(0x2fb)]);_0x50fa34['traverse'](null,_0x55c585=>{const _0xd51a51=_0x3f61e4;if(_0x55c585['et']!==_0xd51a51(0x22a))return;let _0x27e289=JSON[_0xd51a51(0x412)](_0x50fa34['getPath']()),_0x147067=_0x57507e[_0xd51a51(0x172)](_0x27e289);if(!(_0x147067!=null&&_0x147067['size']))return;let _0x1f42a0=0x0;for(let _0x469405 of _0x55c585['e']){if(_0x469405['t']===_0x123ce4[_0xd51a51(0x23a)]&&_0x469405['coverType']===_0x22a6a2[_0xd51a51(0x2a8)]){var _0x13526d;for(let _0x19a194 of((_0x13526d=_0x469405[_0xd51a51(0x36a)])==null?void 0x0:_0x13526d[_0xd51a51(0x186)])??[]){var _0x1dbed0;let _0x1ee80a=(_0x1dbed0=_0x469405[_0xd51a51(0x162)])==null||(_0x1dbed0=_0x1dbed0['paragraphs'])==null?void 0x0:_0x1dbed0[_0xd51a51(0x244)](_0x4bcefd=>_0x4bcefd['startIndex']===_0x19a194['startIndex']),_0x393416=_0x147067[_0xd51a51(0x172)](_0x1f42a0+_0x19a194[_0xd51a51(0x1e9)]);if(_0x1ee80a&&_0x393416){this[_0xd51a51(0x23c)](_0x19a194,_0x1ee80a,_0x393416[_0xd51a51(0x24e)],_0x393416['replace']);let _0x4dcf39=_0x393416[_0xd51a51(0x3f8)]?new Set([...Object[_0xd51a51(0x21a)](_0x393416[_0xd51a51(0x24e)]),...Object[_0xd51a51(0x21a)](_0x19a194)]):Object['keys'](_0x393416['paragraph']);for(let _0x3cd6e2 of _0x4dcf39){if(_0x3cd6e2===_0xd51a51(0x1e9)||_0x3cd6e2===_0xd51a51(0x343))continue;let _0x4eab51=Reflect['get'](_0x19a194,_0x3cd6e2);_0x4eab51===void 0x0?Reflect['deleteProperty'](_0x393416[_0xd51a51(0x24e)],_0x3cd6e2):Reflect[_0xd51a51(0x3bb)](_0x393416['paragraph'],_0x3cd6e2,_0x1d0822[_0xd51a51(0x1d4)](_0x4eab51));}}}}_0x469405['t']!==_0x123ce4[_0xd51a51(0x474)]&&(_0x1f42a0+=_0x469405[_0xd51a51(0x308)]);}});}return _0xea846d;}[_0x58e0b4(0x23c)](_0xa712f4,_0x1efac2,_0x36028d,_0x5becfe){const _0x37e30b=_0x58e0b4;let _0x154ee6=new Set([...Object[_0x37e30b(0x21a)](_0xa712f4),...Object[_0x37e30b(0x21a)](_0x1efac2),...Object['keys'](_0x36028d)]);for(let _0x44a18e of _0x154ee6){if(_0x44a18e===_0x37e30b(0x1e9)||_0x44a18e==='paragraphId')continue;let _0x2dead0=Reflect[_0x37e30b(0x172)](_0xa712f4,_0x44a18e),_0x5416e9=Reflect[_0x37e30b(0x172)](_0x1efac2,_0x44a18e),_0x5197e6=Reflect[_0x37e30b(0x172)](_0x36028d,_0x44a18e);if(_0x5becfe||_0x5197e6!==void 0x0){if(_0x1d0822[_0x37e30b(0x475)](_0x2dead0,_0x5416e9))_0x5197e6===void 0x0?(Reflect[_0x37e30b(0x310)](_0xa712f4,_0x44a18e),Reflect['deleteProperty'](_0x1efac2,_0x44a18e)):(Reflect[_0x37e30b(0x3bb)](_0xa712f4,_0x44a18e,_0x1d0822[_0x37e30b(0x1d4)](_0x5197e6)),Reflect[_0x37e30b(0x3bb)](_0x1efac2,_0x44a18e,_0x1d0822[_0x37e30b(0x1d4)](_0x5197e6)));else{if(_0x1d0822[_0x37e30b(0x465)](_0x2dead0)&&(_0x1d0822['isObject'](_0x5416e9)||_0x5416e9===void 0x0)){let _0x999425=_0x5416e9??{};this[_0x37e30b(0x23c)](_0x2dead0,_0x999425,_0x1d0822[_0x37e30b(0x465)](_0x5197e6)?_0x5197e6:{},_0x5becfe),(_0x5416e9!==void 0x0||Object[_0x37e30b(0x21a)](_0x999425)[_0x37e30b(0x2bb)]>0x0)&&Reflect['set'](_0x1efac2,_0x44a18e,_0x999425);}}}}}[_0x58e0b4(0x43f)](_0x5c81da,_0x46d332,_0x375eb9){const _0x29a0ef=_0x58e0b4;if(_0x46d332[_0x29a0ef(0x2bb)]!==0x1||_0x375eb9['length']!==0x1||_0x46d332[0x0]['id']!==_0x5061cf['id']||_0x375eb9[0x0]['id']!==_0x5061cf['id'])return _0x5c81da;let _0xc89cf4=_0x46d332[0x0][_0x29a0ef(0x417)],_0x42dfc6=_0x375eb9[0x0][_0x29a0ef(0x417)],_0x4087fe=this[_0x29a0ef(0x273)](_0xc89cf4['actions'],!0x0);return _0x4c5074[_0x29a0ef(0x394)](_0x4087fe)?_0x5c81da:(_0x42dfc6[_0x29a0ef(0x2fb)]=_0x4c5074[_0x29a0ef(0x479)](this[_0x29a0ef(0x273)](_0x42dfc6[_0x29a0ef(0x2fb)],!0x1),_0x4c5074['invertWithDoc'](_0x4087fe,_0x5c81da)),_0x4c5074['apply'](_0x5c81da,_0x4087fe)??_0x5c81da);}[_0x58e0b4(0x273)](_0x4d1d7a,_0x10e7f8){const _0x23e9c4=_0x58e0b4;let _0x5c65e8=_0x3915f5['type'][_0x23e9c4(0x440)](_0x4d1d7a),_0x4cdf71=_0x3915f5[_0x23e9c4(0x222)][_0x23e9c4(0x3e8)]();return _0x5c65e8[_0x23e9c4(0x14e)](null,_0x4f6ca1=>{const _0x346f61=_0x23e9c4;let _0x68e3a1=_0x5c65e8['getPath']();if(_0x68e3a1[0x0]===_0x346f61(0x38c)===_0x10e7f8){for(let _0x4425de of Object[_0x346f61(0x21a)](_0x4f6ca1))_0x4cdf71[_0x346f61(0x2f3)](_0x68e3a1,_0x4425de,_0x4f6ca1[_0x4425de]);}}),_0x4cdf71[_0x23e9c4(0x172)]();}};xr=H([V(0x0,_0x2c297b),V(0x1,_0x1db1d2),V(0x2,_0x4ad6a3),V(0x3,_0xf6e881),V(0x4,_0x1ce01e),V(0x5,_0x273710)],xr);let Sr=class extends _0x268bdb{constructor(_0x4ede1e=Tt,_0x307055,_0x2d5df6,_0x318409){const _0x1c08cd=_0x58e0b4;super(),this[_0x1c08cd(0x41e)]=_0x4ede1e,this['_logService']=_0x307055,this[_0x1c08cd(0x268)]=_0x2d5df6,this['_configService']=_0x318409;let {..._0x4eba20}=_0x5090c8({},Tt,this[_0x1c08cd(0x41e)]);if(!_0x4eba20[_0x1c08cd(0x471)])throw Error(_0x1c08cd(0x335));this[_0x1c08cd(0x41e)]=_0x4eba20,this[_0x1c08cd(0x1a5)]['setConfig'](R,_0x4eba20);}[_0x58e0b4(0x3ac)](){const _0x1772e3=_0x58e0b4;this['_configService'][_0x1772e3(0x231)](_0x5d6118,this[_0x1772e3(0x41e)]['objectPermissionTypes']??[]),this[_0x1772e3(0x3d7)](),this[_0x1772e3(0x23b)]();}[_0x58e0b4(0x3d7)](){const _0x591a5c=_0x58e0b4;var _0x3c0cea,_0x4fe86e;this[_0x591a5c(0x268)][_0x591a5c(0x2b9)](_0xbb7bbe)&&this[_0x591a5c(0x401)]['error'](_0x591a5c(0x2c8),_0x591a5c(0x1de));let _0xd5a9b9=_0x1d6a71([[_0xbb7bbe,{'useClass':xr}],[Jn,{'useValue':Yn()}],[Zn],[Kt],[ln],[sr],[pr],[Gt],[_r],[B],[mr],[Wn,{'useClass':this[_0x591a5c(0x41e)][_0x591a5c(0x471)]}],[_0x295e26,{'useClass':br}],[_0x573925,{'useClass':cr}],[_0x43a554,{'useClass':hr}],[ir,{'useClass':ar}],[_0x49104c,{'useClass':gr}],[er],[rr]],(_0x3c0cea=this[_0x591a5c(0x41e)])==null?void 0x0:_0x3c0cea[_0x591a5c(0x1e3)]);if(!((_0x4fe86e=this[_0x591a5c(0x41e)])!=null&&_0x4fe86e[_0x591a5c(0x3a0)])){let _0x3a7b2a=_0xd5a9b9[_0x591a5c(0x445)](([_0x41f13c])=>_0x41f13c===W);_0x3a7b2a!==-0x1&&_0xd5a9b9[_0x591a5c(0x35f)](_0x3a7b2a,0x1);}_0x159939(this[_0x591a5c(0x268)],_0xd5a9b9);}[_0x58e0b4(0x23b)](){const _0x5d01e4=_0x58e0b4;var _0x2ca20c,_0x247856;if(this[_0x5d01e4(0x268)][_0x5d01e4(0x172)](_0x41a562)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x556633({'maxParallel':0x6})}),!((_0x2ca20c=this[_0x5d01e4(0x41e)])!=null&&_0x2ca20c[_0x5d01e4(0x267)])){var _0x5b4ecc;(_0x5b4ecc=this[_0x5d01e4(0x268)][_0x5d01e4(0x172)](U,_0x136e89['OPTIONAL']))==null||_0x5b4ecc[_0x5d01e4(0x3ef)]();}(_0x247856=this[_0x5d01e4(0x41e)])!=null&&_0x247856[_0x5d01e4(0x3af)]&&_0x4deee6(this['_injector'],[[sr]]),_0x4deee6(this[_0x5d01e4(0x268)],[[pr],[er],[_r]]);}};z(Sr,'pluginName',_0x58e0b4(0x387)),z(Sr,_0x58e0b4(0x2ac),tr),z(Sr,_0x58e0b4(0x203),nr),Sr=H([_0x1d6b03(_0x3ad829,_0x158a36,_0x1c2944),V(0x1,_0x273710),V(0x2,_0x5a17cb(_0x42cf99)),V(0x3,_0xf6e881)],Sr);export{cr as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,In as BaseCollaborationEntity,zn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Bt as ChangesetSubmitter,ar as CollaborationAttachmentIoService,er as CollaborationController,$ as CollaborationEntity,hr as CollaborationImageIoService,on as CollaborationSession,Zn as CollaborationSessionService,Kn as CollaborationSocketService,Nn as CollaborationStatus,Wt as CollaborationUIEventId,B as CollaborationUIEventService,xr as CollaborativeUndoRedoService,Gt as CommentService,X as ConflictState,Rt as DEFAULT_ACK_TIMEOUT,Et as DEFAULT_COLLAB_WEB_SOCKET_URL,Pt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,Dt as DEFAULT_WS_SESSION_TICKET_URL,mr as DataLoaderService,Fn as DocCollaborationEntity,Q as FetchingMissState,Ot as HEARTBEAT_INTERVAL_KEY,kt as HEARTBEAT_TIMEOUT_KEY,ir as IAttachmentIoService,Jn as ICollaborationClientAdapterService,Wn as ICollaborationSocketService,U as ILocalCacheService,Vn as INetworkConditionService,W as ISingleActiveUnitService,Mt as LOCAL_CACHE_INTERVAL,jt as LOCAL_CACHE_INTERVAL_KEY,zt as MAX_ACK_TIMEOUT,Kt as MemberService,gr as MentionIoHttpService,Z as OfflineState,Bn as PdfCollaborationEntity,q as PendingState,Nt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,At as RETRY_CONNECTING_MAX_COUNT_KEY,rn as SessionStatus,Ln as SheetCollaborationEntity,ln as SheetTransformSelectionsService,Rn as SlideCollaborationEntity,br as SnapshotServerOverHTTPService,K as SyncedState,un as UnitStatus,Sr as UniverCollaborationClientPlugin,Yn as createUniverCollaborationAdapter,Hn as deserializeToCombResponse,sn as getLocalCacheKey,Un as serializeCombRequest};
|