UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines • 21.8 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x4d93(_0x45006b,_0xb652fc){const _0x3c2d27=_0x3c2d();return _0x4d93=function(_0x4d939a,_0x12ccd2){_0x4d939a=_0x4d939a-0x95;let _0x193269=_0x3c2d27[_0x4d939a];return _0x193269;},_0x4d93(_0x45006b,_0xb652fc);}const _0x28b3e4=_0x4d93;(function(_0x39db59,_0x2afd81){const _0x4ecb8c=_0x4d93,_0x26f6ac=_0x39db59();while(!![]){try{const _0x5ae31e=-parseInt(_0x4ecb8c(0xaa))/0x1*(-parseInt(_0x4ecb8c(0xd2))/0x2)+-parseInt(_0x4ecb8c(0x104))/0x3+parseInt(_0x4ecb8c(0xbb))/0x4*(parseInt(_0x4ecb8c(0xa5))/0x5)+-parseInt(_0x4ecb8c(0x110))/0x6*(parseInt(_0x4ecb8c(0xba))/0x7)+-parseInt(_0x4ecb8c(0xca))/0x8+parseInt(_0x4ecb8c(0xeb))/0x9*(parseInt(_0x4ecb8c(0x140))/0xa)+-parseInt(_0x4ecb8c(0xde))/0xb*(-parseInt(_0x4ecb8c(0xc2))/0xc);if(_0x5ae31e===_0x2afd81)break;else _0x26f6ac['push'](_0x26f6ac['shift']());}catch(_0x3589e3){_0x26f6ac['push'](_0x26f6ac['shift']());}}}(_0x3c2d,0xe938b));import{Plugin as _0x1ea8df}from'ckeditor5/src/core.js';import{Collection as _0x1e7c9e}from'ckeditor5/src/utils.js';import{IconTrackChanges as _0x5a24a5}from'ckeditor5/src/icons.js';import{addListToDropdown as _0x505e6b,createDropdown as _0x33353d,ListSeparatorView as _0x247c48,MenuBarMenuView as _0x548cab,MenuBarMenuListView as _0x2aa210,MenuBarMenuListItemView as _0x10c777,MenuBarMenuListItemButtonView as _0x4d2ee3,SplitButtonView as _0x4c3a6f,ViewModel as _0x32abe3}from'ckeditor5/src/ui.js';import{Users as _0x47361c,getDateTimeFormatter as _0x583e9d,getAllMarkersDomElementsSorted as _0x2d28f4}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2067c8 from'./trackchangesediting.js';import _0x27ab01 from'./ui/suggestioncontroller.js';import _0x4479a4 from'./ui/view/suggestionthreadview.js';function _0x3c2d(){const _0x5e748f=['_bindAnnotationToEditors','TrackChangesPreview','Preview\x20final\x20content','view','set','33660ZOjtdN','locale','stopListening','requires','panelView','values','source','createCommentThreadController','1726888daCwew','createAnnotationView','TrackChangesUI','isPremiumPlugin','separator','mainView','trackChangesLicenseKeyEvaluationLimit','createAnnotation','2eqMBZT','usageLimit','acceptAllSuggestions','_destroyController','descriptionFactory','featureNotAllowed','comments.editorConfig','config','trackChangesLicenseKeyExpired','suggestionChanged','TrackChangesEditing','fire','1265rkQztQ','editor','trackChanges.SuggestionThreadView','discardAllSuggestions','addSourceCollector','arrowView','Discard\x20all\x20suggestions','_addUIComponentsToFactory','switchbutton','suggestionLoaded','reduce','isOfficialPlugin','activeMarkers','441psysJG','keys','isEnabled','trackChangesLicenseKeyInvalid','filter','delegate','Accept\x20all\x20suggestions','getAllAdjacentSuggestions','comments','lowest','isOn','_handleSuggestionControllerDelayed','_licenseKeyCheckInterval','trackChanges.SuggestionView','hasSuggestion','Track\x20changes','descriptionParts','EditorAnnotations','commands','destroy','commentsListView','comments.maxCommentCharsWhenCollapsed','items','_createToolbarButton','registerAnnotation','5030988sxpNzm','comments.maxCommentsWhenCollapsed','getFirstRange','discardSelectedSuggestions','clear','toMany','Discard\x20all\x20selected\x20suggestions','trackChangesLicenseKeyDomainLimit','push','commentThread','bind','change:previous','18WwfyXN','isMultiRange','isDirty','licenseKey','expired','some','acceptButton','suggestionView','getMarkerNames','domainLimit','trackChangesLicenseKeyUsageLimit','from','previewFinalContent','evaluationLimit','innerView','size','init','focus','_unbindEditors','CommentsUI','_createMenuBarMenu','_annotationViews','refreshSelectedViews','escape','pluginName','_refreshActiveMarkers','unbind','trackChangesLicenseKeyNotAllowed','discardButton','define','getDescriptions','_updateController','get','menuitemcheckbox','head','Accept\x20all\x20selected\x20suggestions','remove','invalid','_suggestionToController','trackChanges','has','SuggestionView','getSuggestion','CommentsRepository','CommentView','getJoined','change:activeAnnotations','getRanges','242150KPozdf','commandName','plugins','previous','listenTo','trackChanges.disableComments','isInContent','_showLicenseError','_disableComments','buttonView','getMarkers','activeAnnotations','Annotations','editing','menuBar:trackChanges','button','addMany','add','menuitem','suggestionUnloaded','_handleControllerBuffer','trialLimit','menu','5kEZUco','trackChangesLicenseKeyTrialLimit','getByInnerView','actionView','execute','1371569HaVfOZ','componentFactory','_initializeController','comments.maxThreadTotalWeight','suggestion-','model','length','value','trackChangesLicenseKeyValid','type','SuggestionThreadView','addComment','_viewToController','acceptSelectedSuggestions','delete','children','1640478KWKesF','2682060lWMHqc','TrackChanges'];_0x3c2d=function(){return _0x5e748f;};return _0x3c2d();}import _0x244c12 from'./ui/view/suggestionview.js';import{getTranslation as _0x371be7}from'./utils/common-translations.js';export default class d extends _0x1ea8df{[_0x28b3e4(0x113)];[_0x28b3e4(0xf7)];[_0x28b3e4(0x136)];[_0x28b3e4(0xb6)];[_0x28b3e4(0x125)];[_0x28b3e4(0xa2)];[_0x28b3e4(0x96)];static get[_0x28b3e4(0xc5)](){const _0x2c79af=_0x28b3e4;return[_0x2067c8,_0x47361c,_0x2c79af(0x13b),_0x2c79af(0x9a),_0x2c79af(0xfc)];}static get[_0x28b3e4(0x128)](){const _0x3d9699=_0x28b3e4;return _0x3d9699(0xcc);}static get[_0x28b3e4(0xe9)](){return!0x0;}static get[_0x28b3e4(0xcd)](){return!0x0;}constructor(_0x3266ec){const _0x64b0c2=_0x28b3e4;super(_0x3266ec),this[_0x64b0c2(0x136)]=new Map(),this[_0x64b0c2(0xb6)]=new Map(),this[_0x64b0c2(0x125)]=new Map(),this[_0x64b0c2(0xa2)]=new Map();const _0x5edd01=this[_0x64b0c2(0xdf)][_0x64b0c2(0xd9)];_0x5edd01[_0x64b0c2(0x12d)](_0x64b0c2(0xe0),_0x4479a4),_0x5edd01[_0x64b0c2(0x12d)](_0x64b0c2(0xf8),_0x244c12),_0x5edd01[_0x64b0c2(0x12d)](_0x64b0c2(0x145),!0x1),this[_0x64b0c2(0x96)]=_0x5edd01[_0x64b0c2(0x130)](_0x64b0c2(0x145));}[_0x28b3e4(0xf6)](_0x445bb8,_0x24640c){const _0x51b17a=_0x28b3e4;0x0===this[_0x51b17a(0xa2)][_0x51b17a(0x11f)]&&setTimeout(()=>{const _0x1eafe0=_0x51b17a;for(const [_0xf00e93,_0x9ee99e]of this[_0x1eafe0(0xa2)]){const _0x3dd772=this[_0x1eafe0(0x136)][_0x1eafe0(0x138)](_0xf00e93);_0x3dd772||_0x9ee99e?_0x3dd772&&_0x9ee99e&&this[_0x1eafe0(0xd5)](_0xf00e93):this[_0x1eafe0(0xac)](_0xf00e93);}this[_0x1eafe0(0xa2)][_0x1eafe0(0x108)](),this[_0x1eafe0(0xdf)][_0x1eafe0(0x142)][_0x1eafe0(0x130)](_0x1eafe0(0xfc))[_0x1eafe0(0x126)](),this[_0x1eafe0(0x129)]();},0xa),this[_0x51b17a(0xa2)][_0x51b17a(0xc1)](_0x445bb8,_0x24640c);}[_0x28b3e4(0x120)](){const _0x4b215c=_0x28b3e4,_0x10a94e=this[_0x4b215c(0xdf)],_0x2e1e96=_0x10a94e[_0x4b215c(0x142)][_0x4b215c(0x130)](_0x4b215c(0xdc)),_0x4125a5=_0x10a94e[_0x4b215c(0x142)][_0x4b215c(0x130)](_0x4b215c(0x9a)),_0x1c6c79=_0x10a94e[_0x4b215c(0x142)][_0x4b215c(0x130)](_0x4b215c(0xfc)),_0x3b35cf=_0x10a94e[_0x4b215c(0x142)][_0x4b215c(0x130)](_0x4b215c(0x13b));this[_0x4b215c(0xe5)](),_0x1c6c79[_0x4b215c(0xe2)](()=>{const _0x113682=_0x4b215c,_0x20ace1=[];for(const [_0x17f8ea,_0xcfdbeb]of Array[_0x113682(0x11b)](this[_0x113682(0x136)])){const _0x19ae3b=_0x17f8ea[_0x113682(0xf2)](),_0x231665=[];for(const _0x52d392 of _0x19ae3b){if(!_0x52d392[_0x113682(0x146)])continue;if(_0x52d392[_0x113682(0x111)]){_0x231665[_0x113682(0x10c)](..._0x52d392[_0x113682(0x13f)]());continue;}const _0x3e87e3=_0x52d392[_0x113682(0x106)]();if(_0x231665[_0x113682(0xb0)]>0x0){const _0x4ab9bf=_0x231665[0x0][_0x113682(0x13d)](_0x3e87e3);if(_0x4ab9bf){_0x231665[0x0]=_0x4ab9bf;continue;}}_0x231665[_0x113682(0x10c)](_0x3e87e3);}_0x20ace1[_0x113682(0x10c)]([_0xcfdbeb[_0x113682(0xc0)],_0x231665]);}return _0x20ace1;}),this[_0x4b215c(0x144)](_0x2e1e96,_0x4b215c(0xe7),(_0x371ca1,_0x10add6)=>{const _0x2a65bb=_0x4b215c;this[_0x2a65bb(0x144)](_0x10add6,_0x2a65bb(0x10f),(_0x5edc46,_0x5e1c57,_0x18ae07,_0x2043e7)=>{const _0x31ebf7=_0x2a65bb;_0x10add6[_0x31ebf7(0x146)]&&(null==_0x18ae07?(this[_0x31ebf7(0x12f)](_0x2043e7[_0x31ebf7(0x132)]),this[_0x31ebf7(0xf6)](_0x10add6,!0x1)):(this[_0x31ebf7(0x12f)](_0x18ae07[_0x31ebf7(0x132)]),null==_0x2043e7&&this[_0x31ebf7(0xf6)](_0x10add6,!0x0)));}),null!==_0x10add6[_0x2a65bb(0x143)]?this[_0x2a65bb(0x12f)](_0x10add6[_0x2a65bb(0x132)]):this[_0x2a65bb(0xf6)](_0x10add6,!0x1);}),this[_0x4b215c(0x144)](_0x2e1e96,_0x4b215c(0xa1),(_0x535281,_0x56f93a,_0xb2ae82)=>{const _0x481934=_0x4b215c;this[_0x481934(0xc4)](_0x56f93a,_0x481934(0x10f)),this[_0x481934(0xa2)][_0x481934(0xb8)](_0x56f93a),this[_0x481934(0x136)][_0x481934(0x138)](_0x56f93a)&&this[_0x481934(0xd5)](_0x56f93a),_0xb2ae82&&this[_0x481934(0x12f)](_0xb2ae82[_0x481934(0x132)]);}),this[_0x4b215c(0x144)](_0x2e1e96,_0x4b215c(0xdb),(_0x4b957f,_0x17e9b1)=>{const _0xd18923=_0x4b215c;this[_0xd18923(0x12f)](_0x17e9b1);}),this[_0x4b215c(0x144)](_0x4125a5,_0x4b215c(0x13e),()=>{const _0x5b0402=_0x4b215c;this[_0x5b0402(0x129)]();}),this[_0x4b215c(0x144)](_0x3b35cf,_0x4b215c(0xb5),(_0x1d2423,{threadId:_0x58e21a,isFromAdapter:_0x282fe5})=>{const _0x2febbd=_0x4b215c;if(_0x282fe5||!_0x2e1e96[_0x2febbd(0xf9)](_0x58e21a))return;const _0x4e1de6=_0x2e1e96[_0x2febbd(0x13a)](_0x58e21a);this[_0x2febbd(0x136)][_0x2febbd(0x130)](_0x4e1de6)[_0x2febbd(0xc0)][_0x2febbd(0xff)][_0x2febbd(0x121)](-0x1);},{'priority':_0x4b215c(0xf4)}),this[_0x4b215c(0x113)]=this[_0x4b215c(0xdf)][_0x4b215c(0xd9)][_0x4b215c(0x130)](_0x4b215c(0x113));const _0x2e5212=this[_0x4b215c(0xdf)];this[_0x4b215c(0xf7)]=setInterval(()=>{const _0x3da849=_0x4b215c;let _0x5c0f3a;for(const _0x167515 in _0x2e5212){const _0x3d6c7c=_0x167515,_0x5917a1=_0x2e5212[_0x3d6c7c];if(_0x3da849(0xb2)==_0x5917a1||_0x3da849(0xee)==_0x5917a1||_0x3da849(0xda)==_0x5917a1||_0x3da849(0x10b)==_0x5917a1||_0x3da849(0x12b)==_0x5917a1||_0x3da849(0xd0)==_0x5917a1||_0x3da849(0xa6)==_0x5917a1||_0x3da849(0x11a)==_0x5917a1){delete _0x2e5212[_0x3d6c7c],_0x5c0f3a=_0x5917a1,clearInterval(this[_0x3da849(0xf7)]),this[_0x3da849(0xf7)]=void 0x0;break;}}_0x3da849(0xee)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0x135)),_0x3da849(0xda)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0x114)),_0x3da849(0x10b)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0x119)),_0x3da849(0x12b)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0xd7),_0x3da849(0xbc)),_0x3da849(0xd0)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0x11d)),_0x3da849(0xa6)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0xa3)),_0x3da849(0x11a)==_0x5c0f3a&&_0x2e5212[_0x3da849(0x95)](_0x3da849(0xd3));},0x3e8);}[_0x28b3e4(0x129)](){const _0x37fd2f=_0x28b3e4,_0x1eed1f=this[_0x37fd2f(0xdf)][_0x37fd2f(0x142)][_0x37fd2f(0x130)](_0x37fd2f(0x9a)),_0x2a4077=this[_0x37fd2f(0xdf)][_0x37fd2f(0x142)][_0x37fd2f(0x130)](_0x37fd2f(0xdc)),_0x4b3744=Array[_0x37fd2f(0x11b)](_0x1eed1f[_0x37fd2f(0x99)],_0x1ac8e7=>_0x1ac8e7[_0x37fd2f(0x11e)])[_0x37fd2f(0xef)](_0x40e278=>this[_0x37fd2f(0xb6)][_0x37fd2f(0x138)](_0x40e278)),_0x23c203=[];for(const _0x52cd3d of _0x4b3744){const _0x45f8d2=this[_0x37fd2f(0xb6)][_0x37fd2f(0x130)](_0x52cd3d)[_0x37fd2f(0xaf)][_0x37fd2f(0xf2)]();_0x23c203[_0x37fd2f(0x10c)](..._0x45f8d2[_0x37fd2f(0xe8)]((_0x25ecf0,_0x473313)=>[..._0x25ecf0,..._0x473313[_0x37fd2f(0x118)]()],[]));}_0x2a4077[_0x37fd2f(0xea)]=_0x23c203;}[_0x28b3e4(0xe5)](){const _0x478520=_0x28b3e4,_0x2a86fe=this[_0x478520(0xdf)],_0x45c4ea=_0x2a86fe[_0x478520(0xc3)],_0x2e7127=_0x371be7(_0x45c4ea,_0x478520(0xfa)),_0x1641e5=new _0x1e7c9e([{'type':_0x478520(0xe6),'model':new _0x32abe3({'withText':!0x0,'isToggleable':!0x0,'label':_0x2e7127,'commandName':_0x478520(0x137),'role':_0x478520(0x131)})},{'type':_0x478520(0xce)},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0xf1)),'commandName':_0x478520(0xd4),'role':_0x478520(0xa0)})},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0x133)),'commandName':_0x478520(0xb7),'role':_0x478520(0xa0)})},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0xe4)),'commandName':_0x478520(0xe1),'role':_0x478520(0xa0)})},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0x10a)),'commandName':_0x478520(0x107),'role':_0x478520(0xa0)})}]);_0x2a86fe[_0x478520(0x142)][_0x478520(0x138)](_0x478520(0xbe))&&_0x1641e5[_0x478520(0x9e)]([{'type':_0x478520(0xce)},{'type':_0x478520(0x9d),'model':new _0x32abe3({'withText':!0x0,'label':_0x371be7(_0x45c4ea,_0x478520(0xbf)),'commandName':_0x478520(0x11c),'role':_0x478520(0xa0)})}]);for(const _0x1ecd13 of _0x1641e5)if(ke(_0x1ecd13)){const _0x334c4a=_0x2a86fe[_0x478520(0xfd)][_0x478520(0x130)](_0x1ecd13[_0x478520(0xaf)][_0x478520(0x141)]);_0x1ecd13[_0x478520(0xaf)][_0x478520(0x10e)](_0x478520(0xf5),_0x478520(0xed))['to'](_0x334c4a,_0x478520(0xb1),_0x478520(0xed));}_0x2a86fe['ui'][_0x478520(0xab)][_0x478520(0x9f)](_0x478520(0x137),_0x19d65d=>this[_0x478520(0x102)](_0x19d65d,_0x1641e5,_0x2e7127)),_0x2a86fe['ui'][_0x478520(0xab)][_0x478520(0x9f)](_0x478520(0x9c),_0x51e0ab=>this[_0x478520(0x124)](_0x51e0ab,_0x1641e5,_0x2e7127));}[_0x28b3e4(0x102)](_0x32d8ee,_0x1ed77f,_0x51ac83){const _0x372650=_0x28b3e4,_0x27485e=_0x33353d(_0x32d8ee,_0x4c3a6f),_0x26d31c=this[_0x372650(0xdf)][_0x372650(0xfd)][_0x372650(0x130)](_0x372650(0x137));_0x27485e[_0x372650(0x97)][_0x372650(0xc1)]({'tooltip':_0x51ac83,'label':_0x51ac83,'icon':_0x5a24a5}),_0x27485e[_0x372650(0x97)][_0x372650(0x10e)](_0x372650(0xf5))['to'](_0x26d31c,_0x372650(0xb1)),_0x27485e[_0x372650(0x97)]['on'](_0x372650(0xa9),()=>{const _0x17a8b7=_0x372650;_0x26d31c[_0x17a8b7(0xa9)](),this[_0x17a8b7(0xdf)][_0x17a8b7(0x9b)][_0x17a8b7(0xc0)][_0x17a8b7(0x121)]();}),_0x505e6b(_0x27485e,_0x1ed77f,{'role':_0x372650(0xa4)});const _0x1142a7=[];for(const _0x187e80 of _0x1ed77f)ke(_0x187e80)&&_0x1142a7[_0x372650(0x10c)](this[_0x372650(0xdf)][_0x372650(0xfd)][_0x372650(0x130)](_0x187e80[_0x372650(0xaf)][_0x372650(0x141)]));const _0x51a314=_0x27485e[_0x372650(0x97)];return _0x51a314[_0x372650(0xa8)][_0x372650(0x12a)](_0x372650(0xed)),_0x51a314[_0x372650(0xe3)][_0x372650(0x12a)](_0x372650(0xed)),_0x51a314[_0x372650(0xa8)][_0x372650(0x10e)](_0x372650(0xed))['to'](_0x26d31c,_0x372650(0xed)),_0x51a314[_0x372650(0xe3)][_0x372650(0x10e)](_0x372650(0xed))[_0x372650(0x109)](_0x1142a7,_0x372650(0xed),(..._0x5a1d7d)=>_0x5a1d7d[_0x372650(0x115)](_0x43e06b=>_0x43e06b)),_0x27485e['on'](_0x372650(0xa9),_0x4744d4=>{const _0x1ec376=_0x372650;this[_0x1ec376(0xdf)][_0x1ec376(0xa9)](_0x4744d4[_0x1ec376(0xc8)][_0x1ec376(0x141)]),this[_0x1ec376(0xdf)][_0x1ec376(0x9b)][_0x1ec376(0xc0)][_0x1ec376(0x121)]();}),_0x27485e;}[_0x28b3e4(0x124)](_0x22091b,_0x880eee,_0x4ffd1f){const _0x2cd792=_0x28b3e4,_0x3f4af2=new _0x548cab(_0x22091b),_0x35bfca=this[_0x2cd792(0xdf)][_0x2cd792(0xfd)][_0x2cd792(0x130)](_0x2cd792(0x137));_0x3f4af2[_0x2cd792(0x97)][_0x2cd792(0xc1)]({'label':_0x4ffd1f,'icon':_0x5a24a5});const _0x376f4a=new _0x2aa210(_0x22091b);for(const _0x1da33f of _0x880eee){if(_0x2cd792(0xce)==_0x1da33f[_0x2cd792(0xb3)]){_0x376f4a[_0x2cd792(0x101)][_0x2cd792(0x9f)](new _0x247c48(_0x22091b));continue;}const _0x4db982=new _0x10c777(_0x22091b,_0x3f4af2),_0x273198=new _0x4d2ee3(_0x22091b),_0x52d258=_0x1da33f[_0x2cd792(0xaf)];_0x273198[_0x2cd792(0x10e)](...Object[_0x2cd792(0xec)](_0x52d258))['to'](_0x52d258),_0x273198[_0x2cd792(0xf0)](_0x2cd792(0xa9))['to'](_0x3f4af2),_0x273198['on'](_0x2cd792(0xa9),()=>{const _0x1072b1=_0x2cd792;this[_0x1072b1(0xdf)][_0x1072b1(0xa9)](_0x52d258[_0x1072b1(0x141)]),this[_0x1072b1(0xdf)][_0x1072b1(0x9b)][_0x1072b1(0xc0)][_0x1072b1(0x121)]();}),_0x4db982[_0x2cd792(0xb9)][_0x2cd792(0x9f)](_0x273198),_0x376f4a[_0x2cd792(0x101)][_0x2cd792(0x9f)](_0x4db982);}return _0x3f4af2[_0x2cd792(0x10e)](_0x2cd792(0xed))['to'](_0x35bfca,_0x2cd792(0xed)),_0x3f4af2[_0x2cd792(0xc6)][_0x2cd792(0xb9)][_0x2cd792(0x9f)](_0x376f4a),_0x3f4af2;}[_0x28b3e4(0xac)](_0x27ceb6){const _0x9be2b=_0x28b3e4,_0x434c29=this[_0x9be2b(0xdf)],_0x54f9e5=_0x434c29[_0x9be2b(0xd9)],_0x102cde=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0x9a)),_0xa9d697=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0x13b)),_0x373290=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0xfc)),_0x3900ff=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x47361c)['me'],_0x501ec8=_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x137))[_0x9be2b(0xb4)],_0x4833f1=_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x137))[_0x9be2b(0x139)],{CommentsListView:_0x31697a,CommentThreadInputView:_0x4f609f}=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0x123));let _0xab818,_0x3a3b0f,_0xff4b59;this[_0x9be2b(0x125)][_0x9be2b(0x138)](_0x27ceb6['id'])?(_0x3a3b0f=this[_0x9be2b(0x125)][_0x9be2b(0x130)](_0x27ceb6['id']),_0xab818=_0x3a3b0f[_0x9be2b(0xcf)]):(_0xab818=new _0x501ec8(_0x434c29[_0x9be2b(0xc3)],_0x27ceb6,_0x3900ff,{'disableComments':this[_0x9be2b(0x96)],'editorConfig':{..._0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0xd8)),'licenseKey':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x113))},'maxCommentsWhenCollapsed':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x105)),'maxThreadTotalWeight':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0xad)),'maxCommentCharsWhenCollapsed':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0x100)),'formatDateTime':_0x583e9d(_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0xc3)),_0x434c29[_0x9be2b(0xc3)]),'CommentView':_0x54f9e5[_0x9be2b(0x130)](_0x9be2b(0xf3))[_0x9be2b(0x13c)],'CommentsListView':_0x31697a,'CommentThreadInputView':_0x4f609f,'SuggestionView':_0x4833f1}),_0xab818[_0x9be2b(0x117)][_0x9be2b(0x116)]['on'](_0x9be2b(0xa9),()=>{const _0x2ac13b=_0x9be2b;_0x434c29[_0x2ac13b(0x9b)][_0x2ac13b(0xc0)][_0x2ac13b(0x121)]();}),_0xab818[_0x9be2b(0x117)][_0x9be2b(0x12c)]['on'](_0x9be2b(0xa9),()=>{const _0x94c564=_0x9be2b;_0x434c29[_0x94c564(0x9b)][_0x94c564(0xc0)][_0x94c564(0x121)]();}),_0x3a3b0f=_0x102cde[_0x9be2b(0xcb)](this[_0x9be2b(0xdf)][_0x9be2b(0xc3)],_0xab818),_0x3a3b0f[_0x9be2b(0x10e)](_0x9be2b(0x112))['to'](_0xab818,_0x9be2b(0x112)),_0x3a3b0f[_0x9be2b(0x10e)](_0x9be2b(0xb0))['to'](_0xab818),_0x3a3b0f[_0x9be2b(0x10e)](_0x9be2b(0xb3))['to'](_0xab818,_0x9be2b(0xb3),_0x1c434e=>_0x9be2b(0xae)+_0x1c434e),_0xab818['on'](_0x9be2b(0x127),()=>{const _0x24b4d6=_0x9be2b;_0xff4b59[_0x24b4d6(0xdd)](_0x24b4d6(0x127));}),this[_0x9be2b(0x125)][_0x9be2b(0xc1)](_0x27ceb6['id'],_0x3a3b0f));const _0x558f82=_0xa9d697[_0x9be2b(0xc9)](_0x27ceb6[_0x9be2b(0x10d)],_0xab818),_0x4b8024=new _0x27ab01(_0x434c29,_0x27ceb6,_0xab818,_0x558f82),_0x367d0c=_0x27ceb6[_0x9be2b(0xf2)]()[_0x9be2b(0xef)](_0x4114ee=>_0x4114ee[_0x9be2b(0x146)]);_0xab818[_0x9be2b(0xfb)]=_0x434c29[_0x9be2b(0x142)][_0x9be2b(0x130)](_0x9be2b(0xdc))[_0x9be2b(0xd6)][_0x9be2b(0x12e)](_0x367d0c),this[_0x9be2b(0x136)][_0x9be2b(0xc1)](_0x27ceb6,_0x4b8024),this[_0x9be2b(0xb6)][_0x9be2b(0xc1)](_0xab818,_0x4b8024),_0xff4b59=_0x102cde[_0x9be2b(0xd1)]({'view':_0x3a3b0f,'target':()=>{const _0x162120=_0x9be2b,_0x51b50f=[],_0x3a3c3b=_0x27ceb6[_0x162120(0xf2)]()[_0x162120(0xef)](_0x3514a7=>_0x3514a7[_0x162120(0x146)]);for(const _0xd70e1f of _0x3a3c3b)_0x51b50f[_0x162120(0x10c)](..._0xd70e1f[_0x162120(0x98)]());return _0x2d28f4(_0x434c29[_0x162120(0x9b)],_0x51b50f);},'type':()=>_0x9be2b(0xae)+_0x4b8024[_0x9be2b(0xc0)][_0x9be2b(0xb3)]}),_0xa9d697[_0x9be2b(0xbd)](_0xab818,_0xff4b59),_0x102cde[_0x9be2b(0x9f)](_0xff4b59),_0x373290[_0x9be2b(0x103)](_0xff4b59);}[_0x28b3e4(0xd5)](_0xdddd82){const _0x21d801=_0x28b3e4,_0x3190d2=this[_0x21d801(0xdf)][_0x21d801(0x142)][_0x21d801(0x130)](_0x21d801(0x13b)),_0x436548=this[_0x21d801(0xdf)][_0x21d801(0x142)][_0x21d801(0x130)](_0x21d801(0x9a)),_0x28a799=this[_0x21d801(0x136)][_0x21d801(0x130)](_0xdddd82),_0x38c19e=_0x28a799[_0x21d801(0xc0)],_0x25f502=_0x436548[_0x21d801(0xa7)](_0x38c19e);_0x3190d2[_0x21d801(0x122)](_0x38c19e),_0x25f502&&_0x436548[_0x21d801(0x134)](_0x25f502),this[_0x21d801(0x136)][_0x21d801(0xb8)](_0xdddd82),this[_0x21d801(0xb6)][_0x21d801(0xb8)](_0x38c19e),_0x28a799[_0x21d801(0xfe)]();}[_0x28b3e4(0x12f)](_0x597e10){const _0x405315=_0x28b3e4;if(!_0x597e10[_0x405315(0x146)]||!this[_0x405315(0x136)][_0x405315(0x138)](_0x597e10))return;const _0x2c9c59=this[_0x405315(0xdf)][_0x405315(0x142)][_0x405315(0x130)](_0x405315(0xdc)),_0x1c15ee=this[_0x405315(0x136)][_0x405315(0x130)](_0x597e10),_0x350c5b=_0x597e10[_0x405315(0xf2)]();_0x1c15ee[_0x405315(0xc0)][_0x405315(0xfb)]=_0x2c9c59[_0x405315(0xd6)][_0x405315(0x12e)](_0x350c5b);}[_0x28b3e4(0xfe)](){const _0x1f34e9=_0x28b3e4;for(const _0x71318a of this[_0x1f34e9(0x136)][_0x1f34e9(0xec)]())this[_0x1f34e9(0xd5)](_0x71318a);for(const _0x4672b8 of this[_0x1f34e9(0x125)][_0x1f34e9(0xc7)]())_0x4672b8[_0x1f34e9(0xcf)][_0x1f34e9(0xfe)]();super[_0x1f34e9(0xfe)](),this[_0x1f34e9(0xf7)]&&clearInterval(this[_0x1f34e9(0xf7)]);}}function ke(_0xe904ac){const _0x2f6da2=_0x28b3e4;return _0x2f6da2(0xaf)in _0xe904ac;}